Skip to content
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
Show all changes
19 commits
Select commit Hold shift + click to select a range
e40a25b
refactor(comlink): extract shared buildClobPairIdToMarket helper, fix…
davidli1997 Feb 12, 2026
473e17d
feat(comlink): add GET /v4/tradeHistory endpoint with cumulative PnL …
davidli1997 Feb 12, 2026
d4319fa
test(comlink): add unit and integration tests for trade history endpoint
davidli1997 Feb 12, 2026
24a72ab
fix cross-zero additionalSize sign convention and group fills by suba…
davidli1997 Feb 17, 2026
803cbcf
fixed lint errors
davidli1997 Feb 17, 2026
671e64d
consistent additionalSize sign convention in cross-zero close rows
davidli1997 Feb 17, 2026
c1a02be
fix tests
davidli1997 Feb 17, 2026
5423b84
address nit comments
davidli1997 Feb 17, 2026
57f93f0
test in staging
davidli1997 Feb 17, 2026
1a843c8
add subaccountNumber to response, fill count guard, remove time filters
davidli1997 Feb 17, 2026
a4961f7
add subaccountNumber, fill count guard, remove time filters, address …
davidli1997 Feb 17, 2026
407b361
done testing in staging
davidli1997 Feb 17, 2026
ad7891e
add pre-fetch fill count guard, lower threshold to 100K after testing…
davidli1997 Feb 18, 2026
ba24553
use SQL LIMIT instead of COUNT(*) for fill count guard to avoid timeout
davidli1997 Feb 19, 2026
449954e
add entryPrice and netRealizedPnlPercent to trade history response
davidli1997 Feb 20, 2026
4db3a11
updated api docs
davidli1997 Feb 20, 2026
7f800f2
fix orderId reuse in trade history fill grouping
davidli1997 Feb 23, 2026
fc56e6f
fix lint errors
davidli1997 Feb 23, 2026
dd75db0
fix non-unique trade history row IDs causing unstable sort order
davidli1997 Feb 23, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view

Large diffs are not rendered by default.

5 changes: 3 additions & 2 deletions indexer/services/comlink/__tests__/helpers/helpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -177,8 +177,9 @@ export function fillResponseObjectFromFillCreateObject(
return fillResponse;
}

function randomInt(range: number = 1000): number {
return Math.floor(Math.random() * range);
let nextInt: number = 100000;
function randomInt(_range: number = 1000): number {
return nextInt++;
}

export function pnlTickCreateObjectToResponseObject(
Expand Down
Loading
Loading