@totalis/hip4-client 0.91.0 → 0.92.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +20 -0
- package/dist/generated/client.d.ts +3 -1
- package/dist/generated/errors.d.ts +2 -0
- package/dist/generated/errors.js +19 -0
- package/dist/generated/openapi.d.ts +179 -7
- package/dist/generated/version.d.ts +4 -4
- package/dist/generated/version.js +5 -3
- package/dist/partner.d.ts +17 -1
- package/dist/partner.js +12 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,26 @@
|
|
|
3
3
|
`@totalis/hip4-client` follows [semantic versioning](https://semver.org).
|
|
4
4
|
The contract version the generated types come from is `sdkVersion` in `./version`.
|
|
5
5
|
|
|
6
|
+
## 0.92.0
|
|
7
|
+
|
|
8
|
+
### Added
|
|
9
|
+
|
|
10
|
+
- Genesis Accounts (contract 219). `getMyGenesis` (`GET /v1/me/genesis`)
|
|
11
|
+
returns the account's progress toward the Genesis Account badge: when it
|
|
12
|
+
signed up against `signup_before`, whether X is bound, its own Combo stake
|
|
13
|
+
against `required_stake` (USDC base units) and the `deadline`, plus
|
|
14
|
+
`earned_at` once earned. Answers `CONTRACT_UNAVAILABLE` where Genesis is
|
|
15
|
+
off. Additive.
|
|
16
|
+
- Partner fills (TT-2749, contract `220.0.0-partner-fills`). `fills()` on
|
|
17
|
+
`createPartnerServer` (`GET /v1/partner/fills`) pages through each fee
|
|
18
|
+
event on positions opened through your builder codes, oldest first: its
|
|
19
|
+
opening (`ACCEPT`), claims (`CLAIM`) and sales back to the vault
|
|
20
|
+
(`CASH_OUT`), with the wallet that acted, the position and its legs, the
|
|
21
|
+
amount, the fee, the position's stake and payout (its price), your
|
|
22
|
+
`share_bps` that day, block time and transaction. Their fees add up to the
|
|
23
|
+
report's `total_fees` for the same range. `next_cursor` follows the last
|
|
24
|
+
fill even on the last page, so keep it to read new fills later. Additive.
|
|
25
|
+
|
|
6
26
|
## 0.91.0
|
|
7
27
|
|
|
8
28
|
### Added
|
|
@@ -25,6 +25,7 @@ export type paths = {
|
|
|
25
25
|
readonly "/v1/auth/wallet-sessions/current": Pick<SharedPaths["/v1/auth/wallet-sessions/current"], "parameters" | "delete">;
|
|
26
26
|
readonly "/v1/partner/wallet-admissions": Pick<SharedPaths["/v1/partner/wallet-admissions"], "parameters" | "post">;
|
|
27
27
|
readonly "/v1/partner/report": Pick<SharedPaths["/v1/partner/report"], "parameters" | "get">;
|
|
28
|
+
readonly "/v1/partner/fills": Pick<SharedPaths["/v1/partner/fills"], "parameters" | "get">;
|
|
28
29
|
readonly "/v1/me/acquisition": Pick<SharedPaths["/v1/me/acquisition"], "parameters" | "put">;
|
|
29
30
|
readonly "/v1/me/username": Pick<SharedPaths["/v1/me/username"], "parameters" | "put">;
|
|
30
31
|
readonly "/v1/me/username/availability": Pick<SharedPaths["/v1/me/username/availability"], "parameters" | "get">;
|
|
@@ -55,6 +56,7 @@ export type paths = {
|
|
|
55
56
|
readonly "/v1/me/combo-copies": Pick<SharedPaths["/v1/me/combo-copies"], "parameters" | "get">;
|
|
56
57
|
readonly "/v1/me/notifications": Pick<SharedPaths["/v1/me/notifications"], "parameters" | "get">;
|
|
57
58
|
readonly "/v1/me/notifications/read": Pick<SharedPaths["/v1/me/notifications/read"], "parameters" | "post">;
|
|
59
|
+
readonly "/v1/me/genesis": Pick<SharedPaths["/v1/me/genesis"], "parameters" | "get">;
|
|
58
60
|
readonly "/v1/me/copy-summary": Pick<SharedPaths["/v1/me/copy-summary"], "parameters" | "get">;
|
|
59
61
|
readonly "/v1/me/copy-fills": Pick<SharedPaths["/v1/me/copy-fills"], "parameters" | "get">;
|
|
60
62
|
readonly "/v1/me/copy-agents": Pick<SharedPaths["/v1/me/copy-agents"], "parameters" | "get">;
|
|
@@ -115,4 +117,4 @@ export type paths = {
|
|
|
115
117
|
readonly "/v1/makers/{maker_id}/exposure": Pick<SharedPaths["/v1/makers/{maker_id}/exposure"], "parameters" | "get">;
|
|
116
118
|
readonly "/v1/makers/{maker_id}/performance": Pick<SharedPaths["/v1/makers/{maker_id}/performance"], "parameters" | "get">;
|
|
117
119
|
};
|
|
118
|
-
export type operations = Pick<SharedOperations, "abandonCoreExit" | "acceptQuote" | "activeCoreExits" | "admitOwnMaker" | "admitPartnerWallet" | "approveWallet" | "bindEmbeddedWallet" | "cancelRfq" | "confirmComboCopyAgent" | "confirmCoreCopyAgent" | "createCashout" | "createComment" | "createCoreExit" | "createDeposit" | "createGoldenRfq" | "createRfq" | "createRunOffClaim" | "createWalletChallenge" | "createWalletSession" | "createWithdrawal" | "deleteComment" | "editComment" | "endWalletSession" | "followTrader" | "getAcceptance" | "getAccountActivity" | "getAccountPnl" | "getAccountPosition" | "getBalances" | "getCopyAgents" | "getCopyBudget" | "getCopySettings" | "getCopySummary" | "getCoreExit" | "getDeployment" | "getGolden" | "getGoldenMarkets" | "getGoldenOffer" | "getGoldenSuggestions" | "getHypercoreBalance" | "getHypercorePortfolio" | "getHypercoreSettlementCredits" | "getIdentity" | "getMakerActivity" | "getMakerCapital" | "getMakerExposure" | "getMakerPerformance" | "getMakerPosition" | "getMakerQuotes" | "getMakerTelemetry" | "getMakerVaultFundingTransaction" | "getMakerWithdrawal" | "getMarket" | "getMarketDataConfig" | "getMarketDefinitions" | "getMarketHistory" | "getMarketRecurringRound" | "getMarketReferenceCloses" | "getMarketScoreTimeline" | "getMarketStats" | "getOperation" | "getOwnMaker" | "getPartnerReport" | "getPerpMarks" | "getProfitLeaderboard" | "getQuestion" | "getQuestionRecurringRound" | "getQuestionScoreTimeline" | "getRfq" | "getSeries" | "getSuggestedCombo" | "getTaxonomy" | "getTrader" | "getTraderPnl" | "getUsernameAvailability" | "getVaultAgents" | "getVolumeLeaderboard" | "getWalletApproval" | "getWithdrawal" | "grantComboCopyAgent" | "grantVaultAgent" | "likeComment" | "listAccountActivity" | "listAccountPositions" | "listComboCopies" | "listComboFeed" | "listCommentReplies" | "listComments" | "listControlledMakers" | "listCopiedFills" | "listCopyTrades" | "listDiscovery" | "listFollows" | "listMakerActivity" | "listMakerPositions" | "listMakerQuoteHistory" | "listMarkets" | "listMyNotifications" | "listOperations" | "listQuotes" | "listTraderPositions" | "listTraderTrades" | "markMyNotificationsRead" | "placeGolden" | "reactComment" | "recordAcquisition" | "refreshPicture" | "requestComboCopyAgent" | "requestCoreCopyAgent" | "revokeComboCopyAgent" | "searchCatalog" | "setAvatar" | "setCopyAllocation" | "setCopySettings" | "setPublicProfile" | "setUsername" | "setXHandleShown" | "signGoldenGift" | "stream" | "streamMarkets" | "switchOffComboCopyAgent" | "switchOffCoreCopyAgent" | "unfollowTrader" | "unlikeComment" | "unreactComment">;
|
|
120
|
+
export type operations = Pick<SharedOperations, "abandonCoreExit" | "acceptQuote" | "activeCoreExits" | "admitOwnMaker" | "admitPartnerWallet" | "approveWallet" | "bindEmbeddedWallet" | "cancelRfq" | "confirmComboCopyAgent" | "confirmCoreCopyAgent" | "createCashout" | "createComment" | "createCoreExit" | "createDeposit" | "createGoldenRfq" | "createRfq" | "createRunOffClaim" | "createWalletChallenge" | "createWalletSession" | "createWithdrawal" | "deleteComment" | "editComment" | "endWalletSession" | "followTrader" | "getAcceptance" | "getAccountActivity" | "getAccountPnl" | "getAccountPosition" | "getBalances" | "getCopyAgents" | "getCopyBudget" | "getCopySettings" | "getCopySummary" | "getCoreExit" | "getDeployment" | "getGolden" | "getGoldenMarkets" | "getGoldenOffer" | "getGoldenSuggestions" | "getHypercoreBalance" | "getHypercorePortfolio" | "getHypercoreSettlementCredits" | "getIdentity" | "getMakerActivity" | "getMakerCapital" | "getMakerExposure" | "getMakerPerformance" | "getMakerPosition" | "getMakerQuotes" | "getMakerTelemetry" | "getMakerVaultFundingTransaction" | "getMakerWithdrawal" | "getMarket" | "getMarketDataConfig" | "getMarketDefinitions" | "getMarketHistory" | "getMarketRecurringRound" | "getMarketReferenceCloses" | "getMarketScoreTimeline" | "getMarketStats" | "getMyGenesis" | "getOperation" | "getOwnMaker" | "getPartnerReport" | "getPerpMarks" | "getProfitLeaderboard" | "getQuestion" | "getQuestionRecurringRound" | "getQuestionScoreTimeline" | "getRfq" | "getSeries" | "getSuggestedCombo" | "getTaxonomy" | "getTrader" | "getTraderPnl" | "getUsernameAvailability" | "getVaultAgents" | "getVolumeLeaderboard" | "getWalletApproval" | "getWithdrawal" | "grantComboCopyAgent" | "grantVaultAgent" | "likeComment" | "listAccountActivity" | "listAccountPositions" | "listComboCopies" | "listComboFeed" | "listCommentReplies" | "listComments" | "listControlledMakers" | "listCopiedFills" | "listCopyTrades" | "listDiscovery" | "listFollows" | "listMakerActivity" | "listMakerPositions" | "listMakerQuoteHistory" | "listMarkets" | "listMyNotifications" | "listOperations" | "listPartnerFills" | "listQuotes" | "listTraderPositions" | "listTraderTrades" | "markMyNotificationsRead" | "placeGolden" | "reactComment" | "recordAcquisition" | "refreshPicture" | "requestComboCopyAgent" | "requestCoreCopyAgent" | "revokeComboCopyAgent" | "searchCatalog" | "setAvatar" | "setCopyAllocation" | "setCopySettings" | "setPublicProfile" | "setUsername" | "setXHandleShown" | "signGoldenGift" | "stream" | "streamMarkets" | "switchOffComboCopyAgent" | "switchOffCoreCopyAgent" | "unfollowTrader" | "unlikeComment" | "unreactComment">;
|
|
@@ -448,6 +448,7 @@ export declare const operationErrors: {
|
|
|
448
448
|
readonly getMarketReferenceCloses: readonly ["INVALID_REQUEST", "NOT_FOUND", "MARKET_DATA_UNAVAILABLE", "INVALID_QUERY", "INVALID_CURSOR", "STALE_CURSOR"];
|
|
449
449
|
readonly getMarketScoreTimeline: readonly ["INVALID_REQUEST", "NOT_FOUND", "MARKET_DATA_UNAVAILABLE", "INVALID_QUERY"];
|
|
450
450
|
readonly getMarketStats: readonly ["MARKET_DATA_UNAVAILABLE", "INVALID_QUERY"];
|
|
451
|
+
readonly getMyGenesis: readonly ["UNAUTHENTICATED", "FORBIDDEN", "AUTHORIZATION_UNAVAILABLE", "RATE_LIMITED", "ORIGIN_REQUIRED", "IDENTITY_NOT_FOUND", "INVALID_QUERY", "CONTRACT_UNAVAILABLE"];
|
|
451
452
|
readonly getOperation: readonly ["UNAUTHENTICATED", "FORBIDDEN", "AUTHORIZATION_UNAVAILABLE", "DEPENDENCY_STALE", "RATE_LIMITED", "INVALID_REQUEST", "NOT_FOUND", "IDENTITY_NOT_FOUND"];
|
|
452
453
|
readonly getOwnMaker: readonly ["UNAUTHENTICATED", "FORBIDDEN", "AUTHORIZATION_UNAVAILABLE", "DEPENDENCY_STALE", "RATE_LIMITED", "ORIGIN_REQUIRED", "NOT_FOUND", "IDENTITY_NOT_FOUND"];
|
|
453
454
|
readonly getPartnerReport: readonly ["INVALID_QUERY", "UNAUTHENTICATED", "FORBIDDEN", "RATE_LIMITED", "AUTHORIZATION_UNAVAILABLE", "SOURCE_UNAVAILABLE"];
|
|
@@ -491,6 +492,7 @@ export declare const operationErrors: {
|
|
|
491
492
|
readonly listMyNotifications: readonly ["UNAUTHENTICATED", "FORBIDDEN", "AUTHORIZATION_UNAVAILABLE", "RATE_LIMITED", "ORIGIN_REQUIRED", "IDENTITY_NOT_FOUND", "INVALID_QUERY", "CONTRACT_UNAVAILABLE"];
|
|
492
493
|
readonly listOperations: readonly ["UNAUTHENTICATED", "FORBIDDEN", "AUTHORIZATION_UNAVAILABLE", "DEPENDENCY_STALE", "RATE_LIMITED", "INVALID_QUERY", "INVALID_CURSOR", "IDENTITY_NOT_FOUND"];
|
|
493
494
|
readonly listOperatorApiKeys: readonly ["UNAUTHENTICATED", "FORBIDDEN", "AUTHORIZATION_UNAVAILABLE", "DEPENDENCY_STALE", "RATE_LIMITED", "INVALID_REQUEST", "NOT_FOUND"];
|
|
495
|
+
readonly listPartnerFills: readonly ["INVALID_QUERY", "INVALID_CURSOR", "UNAUTHENTICATED", "FORBIDDEN", "RATE_LIMITED", "AUTHORIZATION_UNAVAILABLE", "SOURCE_UNAVAILABLE"];
|
|
494
496
|
readonly listPersonalApiKeys: readonly ["UNAUTHENTICATED", "FORBIDDEN", "AUTHORIZATION_UNAVAILABLE", "DEPENDENCY_STALE", "RATE_LIMITED", "INVALID_REQUEST", "NOT_FOUND"];
|
|
495
497
|
readonly listQuotes: readonly ["UNAUTHENTICATED", "FORBIDDEN", "AUTHORIZATION_UNAVAILABLE", "DEPENDENCY_STALE", "RATE_LIMITED", "INVALID_REQUEST", "NOT_FOUND", "IDENTITY_NOT_FOUND"];
|
|
496
498
|
readonly listRfqs: readonly ["UNAUTHENTICATED", "FORBIDDEN", "AUTHORIZATION_UNAVAILABLE", "DEPENDENCY_STALE", "RATE_LIMITED", "INVALID_QUERY", "INVALID_CURSOR"];
|
package/dist/generated/errors.js
CHANGED
|
@@ -1236,6 +1236,16 @@ export const operationErrors = {
|
|
|
1236
1236
|
"MARKET_DATA_UNAVAILABLE",
|
|
1237
1237
|
"INVALID_QUERY"
|
|
1238
1238
|
],
|
|
1239
|
+
"getMyGenesis": [
|
|
1240
|
+
"UNAUTHENTICATED",
|
|
1241
|
+
"FORBIDDEN",
|
|
1242
|
+
"AUTHORIZATION_UNAVAILABLE",
|
|
1243
|
+
"RATE_LIMITED",
|
|
1244
|
+
"ORIGIN_REQUIRED",
|
|
1245
|
+
"IDENTITY_NOT_FOUND",
|
|
1246
|
+
"INVALID_QUERY",
|
|
1247
|
+
"CONTRACT_UNAVAILABLE"
|
|
1248
|
+
],
|
|
1239
1249
|
"getOperation": [
|
|
1240
1250
|
"UNAUTHENTICATED",
|
|
1241
1251
|
"FORBIDDEN",
|
|
@@ -1655,6 +1665,15 @@ export const operationErrors = {
|
|
|
1655
1665
|
"INVALID_REQUEST",
|
|
1656
1666
|
"NOT_FOUND"
|
|
1657
1667
|
],
|
|
1668
|
+
"listPartnerFills": [
|
|
1669
|
+
"INVALID_QUERY",
|
|
1670
|
+
"INVALID_CURSOR",
|
|
1671
|
+
"UNAUTHENTICATED",
|
|
1672
|
+
"FORBIDDEN",
|
|
1673
|
+
"RATE_LIMITED",
|
|
1674
|
+
"AUTHORIZATION_UNAVAILABLE",
|
|
1675
|
+
"SOURCE_UNAVAILABLE"
|
|
1676
|
+
],
|
|
1658
1677
|
"listPersonalApiKeys": [
|
|
1659
1678
|
"UNAUTHENTICATED",
|
|
1660
1679
|
"FORBIDDEN",
|
|
@@ -535,6 +535,26 @@ export type paths = {
|
|
|
535
535
|
readonly patch?: never;
|
|
536
536
|
readonly trace?: never;
|
|
537
537
|
};
|
|
538
|
+
readonly "/v1/partner/fills": {
|
|
539
|
+
readonly parameters: {
|
|
540
|
+
readonly query?: never;
|
|
541
|
+
readonly header?: never;
|
|
542
|
+
readonly path?: never;
|
|
543
|
+
readonly cookie?: never;
|
|
544
|
+
};
|
|
545
|
+
/**
|
|
546
|
+
* List your partner fills
|
|
547
|
+
* @description Each fee event on a position opened through your builder codes, oldest first: its opening, claims and sale back to the vault, with the wallet that acted, the fee and the transaction, whose fees add up to GET /v1/partner/report's total_fees for the same range.
|
|
548
|
+
*/
|
|
549
|
+
readonly get: operations["listPartnerFills"];
|
|
550
|
+
readonly put?: never;
|
|
551
|
+
readonly post?: never;
|
|
552
|
+
readonly delete?: never;
|
|
553
|
+
readonly options?: never;
|
|
554
|
+
readonly head?: never;
|
|
555
|
+
readonly patch?: never;
|
|
556
|
+
readonly trace?: never;
|
|
557
|
+
};
|
|
538
558
|
readonly "/v1/me/acquisition": {
|
|
539
559
|
readonly parameters: {
|
|
540
560
|
readonly query?: never;
|
|
@@ -1143,6 +1163,26 @@ export type paths = {
|
|
|
1143
1163
|
readonly patch?: never;
|
|
1144
1164
|
readonly trace?: never;
|
|
1145
1165
|
};
|
|
1166
|
+
readonly "/v1/me/genesis": {
|
|
1167
|
+
readonly parameters: {
|
|
1168
|
+
readonly query?: never;
|
|
1169
|
+
readonly header?: never;
|
|
1170
|
+
readonly path?: never;
|
|
1171
|
+
readonly cookie?: never;
|
|
1172
|
+
};
|
|
1173
|
+
/**
|
|
1174
|
+
* Get my Genesis Account progress
|
|
1175
|
+
* @description The authenticated account's progress toward the Genesis Account badge. An account earns it, once and for good, if it signed up before signup_before, has X bound and staked more than required_stake of its own money on Combos committed before deadline. A one-leg entry is a single-market buy, not a Combo, and a golden Combo is not the account's own stake. earned_at is present once earned, and stays if X is later unbound. Answers CONTRACT_UNAVAILABLE where Genesis Accounts are off.
|
|
1176
|
+
*/
|
|
1177
|
+
readonly get: operations["getMyGenesis"];
|
|
1178
|
+
readonly put?: never;
|
|
1179
|
+
readonly post?: never;
|
|
1180
|
+
readonly delete?: never;
|
|
1181
|
+
readonly options?: never;
|
|
1182
|
+
readonly head?: never;
|
|
1183
|
+
readonly patch?: never;
|
|
1184
|
+
readonly trace?: never;
|
|
1185
|
+
};
|
|
1146
1186
|
readonly "/v1/me/copy-summary": {
|
|
1147
1187
|
readonly parameters: {
|
|
1148
1188
|
readonly query?: never;
|
|
@@ -4336,6 +4376,53 @@ export type components = {
|
|
|
4336
4376
|
/** @description Every payout to you, newest first. */
|
|
4337
4377
|
readonly payouts: readonly components["schemas"]["PartnerPayout"][];
|
|
4338
4378
|
};
|
|
4379
|
+
/** @description One (outcome, side) pair, as markets and positions name it. */
|
|
4380
|
+
readonly "$defs-Leg": {
|
|
4381
|
+
/** @description HIP-4 outcome ID the leg is on, as a decimal string. The signed Leg encodes it as uint32. */
|
|
4382
|
+
readonly outcome_id: components["schemas"]["UInt32String"];
|
|
4383
|
+
/** @description Outcome side the leg backs. The signed Leg encodes YES as 0 and NO as 1. */
|
|
4384
|
+
readonly side: components["schemas"]["Side"];
|
|
4385
|
+
};
|
|
4386
|
+
/** @description One fee event on a position opened through your builder codes. Amounts are atomic USDC (6 decimals) decimal strings. */
|
|
4387
|
+
readonly PartnerFill: {
|
|
4388
|
+
/**
|
|
4389
|
+
* @description ACCEPT: the position opened, and amount is its stake with the taker fee. CLAIM: a claim paid amount, before the profit fee. CASH_OUT: the vault bought the position back for amount.
|
|
4390
|
+
* @enum {string}
|
|
4391
|
+
*/
|
|
4392
|
+
readonly kind: "ACCEPT" | "CLAIM" | "CASH_OUT";
|
|
4393
|
+
/** @description The wallet that acted: the one that opened or claimed, or the seller. */
|
|
4394
|
+
readonly wallet: components["schemas"]["LowercaseNonZeroAddress"];
|
|
4395
|
+
/** @description The position, as GET /v1/me/positions names it. */
|
|
4396
|
+
readonly position_id: components["schemas"]["Bytes32"];
|
|
4397
|
+
/** @description The position's legs: one for a single, more for a Combo. */
|
|
4398
|
+
readonly legs: readonly components["schemas"]["$defs-Leg"][];
|
|
4399
|
+
/** @description What the event moved, as kind says. */
|
|
4400
|
+
readonly amount: components["schemas"]["$defs-Amount"];
|
|
4401
|
+
/** @description The fee the vault took: the taker fee on ACCEPT, the profit fee on CLAIM and CASH_OUT. Zero when none was due. */
|
|
4402
|
+
readonly fee: components["schemas"]["$defs-Amount"];
|
|
4403
|
+
/** @description The position's stake after the taker fee, as it opened. */
|
|
4404
|
+
readonly stake: components["schemas"]["$defs-Amount"];
|
|
4405
|
+
/** @description What the position pays if every leg wins; stake over payout is the price it opened at. */
|
|
4406
|
+
readonly payout: components["schemas"]["$defs-Amount"];
|
|
4407
|
+
/** @description Your share of fees, in basis points, under the terms in force on the fill's UTC day; null before your first terms. Each terms period's share is rounded down once, so per-fill shares do not add up exactly to what you are owed. */
|
|
4408
|
+
readonly share_bps: number | null;
|
|
4409
|
+
/** @description HyperEVM block time. */
|
|
4410
|
+
readonly time: components["schemas"]["$defs-Timestamp"];
|
|
4411
|
+
/** @description HyperEVM block. */
|
|
4412
|
+
readonly block_number: number;
|
|
4413
|
+
/** @description The event's log index in its block; with block_number it identifies the fill. */
|
|
4414
|
+
readonly log_index: number;
|
|
4415
|
+
/** @description The HyperEVM transaction. */
|
|
4416
|
+
readonly transaction_hash: components["schemas"]["Bytes32"];
|
|
4417
|
+
};
|
|
4418
|
+
readonly PartnerFillPage: {
|
|
4419
|
+
/** @description Fills, oldest first. */
|
|
4420
|
+
readonly fills: readonly components["schemas"]["PartnerFill"][];
|
|
4421
|
+
/** @description Send it as cursor for the fills after this page. It follows the last fill even when has_more is false, so keep it and read again later, with the same from and a later to, for new fills. Null only when no fill has been returned yet. */
|
|
4422
|
+
readonly next_cursor: components["schemas"]["NextCursor"];
|
|
4423
|
+
/** @description Whether more fills follow in the range. */
|
|
4424
|
+
readonly has_more: boolean;
|
|
4425
|
+
};
|
|
4339
4426
|
/** @description One tagged landing on the app. Values come from utm_source, utm_medium, utm_campaign and ref; the path carries no query string. */
|
|
4340
4427
|
readonly AcquisitionTouch: {
|
|
4341
4428
|
readonly source?: string;
|
|
@@ -4413,13 +4500,6 @@ export type components = {
|
|
|
4413
4500
|
};
|
|
4414
4501
|
};
|
|
4415
4502
|
};
|
|
4416
|
-
/** @description One (outcome, side) pair, as markets and positions name it. */
|
|
4417
|
-
readonly "$defs-Leg": {
|
|
4418
|
-
/** @description HIP-4 outcome ID the leg is on, as a decimal string. The signed Leg encodes it as uint32. */
|
|
4419
|
-
readonly outcome_id: components["schemas"]["UInt32String"];
|
|
4420
|
-
/** @description Outcome side the leg backs. The signed Leg encodes YES as 0 and NO as 1. */
|
|
4421
|
-
readonly side: components["schemas"]["Side"];
|
|
4422
|
-
};
|
|
4423
4503
|
/** @enum {string} */
|
|
4424
4504
|
readonly MarketState: "ACTIVE" | "CLOSED" | "UNSUPPORTED";
|
|
4425
4505
|
readonly Category: ("Crypto" | "Economics" | "Entertainment" | "Esports" | "Finance" | "Politics" | "Sports" | "Tech" | "Weather") | null;
|
|
@@ -7744,6 +7824,56 @@ export interface operations {
|
|
|
7744
7824
|
readonly 503: components["responses"]["Unavailable"];
|
|
7745
7825
|
};
|
|
7746
7826
|
};
|
|
7827
|
+
readonly listPartnerFills: {
|
|
7828
|
+
readonly parameters: {
|
|
7829
|
+
readonly query?: {
|
|
7830
|
+
/**
|
|
7831
|
+
* @description First UTC day of the range, inclusive. Send from and to together, at most 366 days apart; omit both for the 30 days through today.
|
|
7832
|
+
* @example 2026-10-01
|
|
7833
|
+
*/
|
|
7834
|
+
readonly from?: string;
|
|
7835
|
+
/**
|
|
7836
|
+
* @description UTC day after the range, exclusive: `from=2026-10-01&to=2026-11-01` is October.
|
|
7837
|
+
* @example 2026-11-01
|
|
7838
|
+
*/
|
|
7839
|
+
readonly to?: string;
|
|
7840
|
+
/**
|
|
7841
|
+
* @description Omit for the first fills in the range; then send a previous response's next_cursor unchanged.
|
|
7842
|
+
* @example v1:21987305:0
|
|
7843
|
+
*/
|
|
7844
|
+
readonly cursor?: components["schemas"]["PageCursor"];
|
|
7845
|
+
/**
|
|
7846
|
+
* @description Maximum items per page, 1 to 200, default 50. A page may hold fewer, even none, while has_more is true.
|
|
7847
|
+
* @example 50
|
|
7848
|
+
*/
|
|
7849
|
+
readonly limit?: components["parameters"]["Limit"];
|
|
7850
|
+
};
|
|
7851
|
+
readonly header?: never;
|
|
7852
|
+
readonly path?: never;
|
|
7853
|
+
readonly cookie?: never;
|
|
7854
|
+
};
|
|
7855
|
+
readonly requestBody?: never;
|
|
7856
|
+
readonly responses: {
|
|
7857
|
+
/** @description A page of your fills. No caching. */
|
|
7858
|
+
readonly 200: {
|
|
7859
|
+
headers: {
|
|
7860
|
+
readonly [name: string]: unknown;
|
|
7861
|
+
};
|
|
7862
|
+
content: {
|
|
7863
|
+
readonly "application/json": components["schemas"]["PartnerFillPage"];
|
|
7864
|
+
};
|
|
7865
|
+
};
|
|
7866
|
+
/** @description `INVALID_QUERY`: from or to is not a YYYY-MM-DD date, only one was sent, from is not before to, they are more than 366 days apart, or limit is not 1 to 200. `INVALID_CURSOR`: the cursor is not one this endpoint returned. */
|
|
7867
|
+
readonly 400: components["responses"]["Error"];
|
|
7868
|
+
/** @description The partner server key is missing, unknown or revoked, or your partner is suspended. */
|
|
7869
|
+
readonly 401: components["responses"]["Error"];
|
|
7870
|
+
/** @description Any credential but a partner server key, or any request with an `Origin`, is refused: read fills from your server. */
|
|
7871
|
+
readonly 403: components["responses"]["Error"];
|
|
7872
|
+
readonly 429: components["responses"]["RateLimited"];
|
|
7873
|
+
/** @description Fills are temporarily unavailable; resend after `Retry-After`. */
|
|
7874
|
+
readonly 503: components["responses"]["Unavailable"];
|
|
7875
|
+
};
|
|
7876
|
+
};
|
|
7747
7877
|
readonly recordAcquisition: {
|
|
7748
7878
|
readonly parameters: {
|
|
7749
7879
|
readonly query?: never;
|
|
@@ -9162,6 +9292,48 @@ export interface operations {
|
|
|
9162
9292
|
readonly 503: components["responses"]["Unavailable"];
|
|
9163
9293
|
};
|
|
9164
9294
|
};
|
|
9295
|
+
readonly getMyGenesis: {
|
|
9296
|
+
readonly parameters: {
|
|
9297
|
+
readonly query?: never;
|
|
9298
|
+
readonly header?: never;
|
|
9299
|
+
readonly path?: never;
|
|
9300
|
+
readonly cookie?: never;
|
|
9301
|
+
};
|
|
9302
|
+
readonly requestBody?: never;
|
|
9303
|
+
readonly responses: {
|
|
9304
|
+
/** @description Genesis progress */
|
|
9305
|
+
readonly 200: {
|
|
9306
|
+
headers: {
|
|
9307
|
+
readonly "Cache-Control"?: "no-store";
|
|
9308
|
+
readonly [name: string]: unknown;
|
|
9309
|
+
};
|
|
9310
|
+
content: {
|
|
9311
|
+
readonly "application/json": {
|
|
9312
|
+
/** @description When the account was created. */
|
|
9313
|
+
readonly signed_up_at: components["schemas"]["$defs-Timestamp"];
|
|
9314
|
+
/** @description An account created at or after this never earns Genesis. */
|
|
9315
|
+
readonly signup_before: components["schemas"]["$defs-Timestamp"];
|
|
9316
|
+
/** @description Only Combos committed before this count, and X must be bound by then. */
|
|
9317
|
+
readonly deadline: components["schemas"]["$defs-Timestamp"];
|
|
9318
|
+
/** @description Whether the account has an X account linked now. */
|
|
9319
|
+
readonly x_bound: boolean;
|
|
9320
|
+
/** @description What the account staked on Combos with its own money before deadline, in HyperEVM USDC base units (10^-6). */
|
|
9321
|
+
readonly staked: components["schemas"]["$defs-Amount"];
|
|
9322
|
+
/** @description staked must be more than this, in HyperEVM USDC base units (10^-6). */
|
|
9323
|
+
readonly required_stake: components["schemas"]["$defs-Amount"];
|
|
9324
|
+
/** @description When the account earned Genesis; absent until then. */
|
|
9325
|
+
readonly earned_at?: components["schemas"]["$defs-Timestamp"];
|
|
9326
|
+
};
|
|
9327
|
+
};
|
|
9328
|
+
};
|
|
9329
|
+
readonly 400: components["responses"]["Error"];
|
|
9330
|
+
readonly 401: components["responses"]["Error"];
|
|
9331
|
+
readonly 403: components["responses"]["Error"];
|
|
9332
|
+
readonly 404: components["responses"]["Error"];
|
|
9333
|
+
readonly 429: components["responses"]["RateLimited"];
|
|
9334
|
+
readonly 503: components["responses"]["Unavailable"];
|
|
9335
|
+
};
|
|
9336
|
+
};
|
|
9165
9337
|
readonly getCopySummary: {
|
|
9166
9338
|
readonly parameters: {
|
|
9167
9339
|
readonly query?: never;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export declare const sdkVersion = "
|
|
2
|
-
export declare const openapiSha256 = "
|
|
1
|
+
export declare const sdkVersion = "220.0.0-partner-fills";
|
|
2
|
+
export declare const openapiSha256 = "b89f395adf9844ddd0e6543b439cbedaed15b1986dea3ca38800bdcfdd78ca43";
|
|
3
3
|
export declare const realtimeSha256 = "32e56c8bb642401f5b03e9c38274087c09bebb73ffe60c0d34432c2e78ce1e15";
|
|
4
4
|
export declare const jsonSchemaSha256: {
|
|
5
5
|
readonly "account.schema.json": "c11a94438d5f7b54e08d3b559098ce2671f4c9aad3a79feb684b7a81f77d809a";
|
|
@@ -8,7 +8,7 @@ export declare const jsonSchemaSha256: {
|
|
|
8
8
|
readonly "core-exit.schema.json": "c7f617e815225cdcac95c236f8b73fbe288ee5713ff444c3be90eb915fc3a401";
|
|
9
9
|
readonly "error.schema.json": "a980d4d81ea2f8528d24d79a6cf3823b15690d21e81a1852039ae12c4ce0a393";
|
|
10
10
|
readonly "hypercore.schema.json": "5b89b2bbff7ec8cc1b8717375d12ce9cd5ab6aa5af03c4fdc6cc753ef9583a2c";
|
|
11
|
-
readonly "identity.schema.json": "
|
|
11
|
+
readonly "identity.schema.json": "f369f35c612dabd076a6e9525791a008797b8cdbb7e5a5f246b242bad4739aa8";
|
|
12
12
|
readonly "maker-access.schema.json": "49698ee0235e42064aae0397db1e0f646bdc10d9dfa10121714ba06dd69fee3b";
|
|
13
13
|
readonly "maker-action.schema.json": "dc41e52c868848e85cdeb918992cb710d34616d2803a63f6d9a658e016744a50";
|
|
14
14
|
readonly "maker-telemetry.schema.json": "85b111ce0f4935299d1116071b43de12e775bef4e0c283c12f19046d34374a9c";
|
|
@@ -18,7 +18,7 @@ export declare const jsonSchemaSha256: {
|
|
|
18
18
|
readonly "realtime.schema.json": "32e56c8bb642401f5b03e9c38274087c09bebb73ffe60c0d34432c2e78ce1e15";
|
|
19
19
|
};
|
|
20
20
|
export declare const operations: {
|
|
21
|
-
readonly client: readonly ["abandonCoreExit", "acceptQuote", "activeCoreExits", "admitOwnMaker", "admitPartnerWallet", "approveWallet", "bindEmbeddedWallet", "cancelRfq", "confirmComboCopyAgent", "confirmCoreCopyAgent", "createCashout", "createComment", "createCoreExit", "createDeposit", "createGoldenRfq", "createRfq", "createRunOffClaim", "createWalletChallenge", "createWalletSession", "createWithdrawal", "deleteComment", "editComment", "endWalletSession", "followTrader", "getAcceptance", "getAccountActivity", "getAccountPnl", "getAccountPosition", "getBalances", "getCopyAgents", "getCopyBudget", "getCopySettings", "getCopySummary", "getCoreExit", "getDeployment", "getGolden", "getGoldenMarkets", "getGoldenOffer", "getGoldenSuggestions", "getHypercoreBalance", "getHypercorePortfolio", "getHypercoreSettlementCredits", "getIdentity", "getMakerActivity", "getMakerCapital", "getMakerExposure", "getMakerPerformance", "getMakerPosition", "getMakerQuotes", "getMakerTelemetry", "getMakerVaultFundingTransaction", "getMakerWithdrawal", "getMarket", "getMarketDataConfig", "getMarketDefinitions", "getMarketHistory", "getMarketRecurringRound", "getMarketReferenceCloses", "getMarketScoreTimeline", "getMarketStats", "getOperation", "getOwnMaker", "getPartnerReport", "getPerpMarks", "getProfitLeaderboard", "getQuestion", "getQuestionRecurringRound", "getQuestionScoreTimeline", "getRfq", "getSeries", "getSuggestedCombo", "getTaxonomy", "getTrader", "getTraderPnl", "getUsernameAvailability", "getVaultAgents", "getVolumeLeaderboard", "getWalletApproval", "getWithdrawal", "grantComboCopyAgent", "grantVaultAgent", "likeComment", "listAccountActivity", "listAccountPositions", "listComboCopies", "listComboFeed", "listCommentReplies", "listComments", "listControlledMakers", "listCopiedFills", "listCopyTrades", "listDiscovery", "listFollows", "listMakerActivity", "listMakerPositions", "listMakerQuoteHistory", "listMarkets", "listMyNotifications", "listOperations", "listQuotes", "listTraderPositions", "listTraderTrades", "markMyNotificationsRead", "placeGolden", "reactComment", "recordAcquisition", "refreshPicture", "requestComboCopyAgent", "requestCoreCopyAgent", "revokeComboCopyAgent", "searchCatalog", "setAvatar", "setCopyAllocation", "setCopySettings", "setPublicProfile", "setUsername", "setXHandleShown", "signGoldenGift", "stream", "streamMarkets", "switchOffComboCopyAgent", "switchOffCoreCopyAgent", "unfollowTrader", "unlikeComment", "unreactComment"];
|
|
21
|
+
readonly client: readonly ["abandonCoreExit", "acceptQuote", "activeCoreExits", "admitOwnMaker", "admitPartnerWallet", "approveWallet", "bindEmbeddedWallet", "cancelRfq", "confirmComboCopyAgent", "confirmCoreCopyAgent", "createCashout", "createComment", "createCoreExit", "createDeposit", "createGoldenRfq", "createRfq", "createRunOffClaim", "createWalletChallenge", "createWalletSession", "createWithdrawal", "deleteComment", "editComment", "endWalletSession", "followTrader", "getAcceptance", "getAccountActivity", "getAccountPnl", "getAccountPosition", "getBalances", "getCopyAgents", "getCopyBudget", "getCopySettings", "getCopySummary", "getCoreExit", "getDeployment", "getGolden", "getGoldenMarkets", "getGoldenOffer", "getGoldenSuggestions", "getHypercoreBalance", "getHypercorePortfolio", "getHypercoreSettlementCredits", "getIdentity", "getMakerActivity", "getMakerCapital", "getMakerExposure", "getMakerPerformance", "getMakerPosition", "getMakerQuotes", "getMakerTelemetry", "getMakerVaultFundingTransaction", "getMakerWithdrawal", "getMarket", "getMarketDataConfig", "getMarketDefinitions", "getMarketHistory", "getMarketRecurringRound", "getMarketReferenceCloses", "getMarketScoreTimeline", "getMarketStats", "getMyGenesis", "getOperation", "getOwnMaker", "getPartnerReport", "getPerpMarks", "getProfitLeaderboard", "getQuestion", "getQuestionRecurringRound", "getQuestionScoreTimeline", "getRfq", "getSeries", "getSuggestedCombo", "getTaxonomy", "getTrader", "getTraderPnl", "getUsernameAvailability", "getVaultAgents", "getVolumeLeaderboard", "getWalletApproval", "getWithdrawal", "grantComboCopyAgent", "grantVaultAgent", "likeComment", "listAccountActivity", "listAccountPositions", "listComboCopies", "listComboFeed", "listCommentReplies", "listComments", "listControlledMakers", "listCopiedFills", "listCopyTrades", "listDiscovery", "listFollows", "listMakerActivity", "listMakerPositions", "listMakerQuoteHistory", "listMarkets", "listMyNotifications", "listOperations", "listPartnerFills", "listQuotes", "listTraderPositions", "listTraderTrades", "markMyNotificationsRead", "placeGolden", "reactComment", "recordAcquisition", "refreshPicture", "requestComboCopyAgent", "requestCoreCopyAgent", "revokeComboCopyAgent", "searchCatalog", "setAvatar", "setCopyAllocation", "setCopySettings", "setPublicProfile", "setUsername", "setXHandleShown", "signGoldenGift", "stream", "streamMarkets", "switchOffComboCopyAgent", "switchOffCoreCopyAgent", "unfollowTrader", "unlikeComment", "unreactComment"];
|
|
22
22
|
readonly maker: readonly ["cancelQuote", "confirmQuote", "createCollateralReduction", "createQuote", "getAccountActivity", "getAccountPosition", "getCollateralReduction", "getDeployment", "getMakerActivity", "getMakerCapital", "getMakerExposure", "getMakerPerformance", "getMakerPosition", "getMakerQuotes", "getMakerTelemetry", "getMakerTelemetryPublication", "getMakerVaultFundingTransaction", "getMakerWithdrawal", "getMarket", "getMarketHistory", "getMarketRecurringRound", "getMarketReferenceCloses", "getOperation", "getQuestion", "getQuestionRecurringRound", "getRfq", "getSeries", "getTaxonomy", "listAccountActivity", "listAccountPositions", "listDiscovery", "listMakerAcceptances", "listMakerActivity", "listMakerPositions", "listMakerQuoteHistory", "listMarkets", "listOperations", "listRfqs", "publishMakerTelemetry", "releaseQuoteLease", "renewQuoteLease", "searchCatalog", "stream", "submitMakerSelfFundedTransaction"];
|
|
23
23
|
readonly operator: readonly ["live", "ready"];
|
|
24
24
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// Generated by scripts/generate.mjs; do not edit.
|
|
2
|
-
export const sdkVersion = "
|
|
3
|
-
export const openapiSha256 = "
|
|
2
|
+
export const sdkVersion = "220.0.0-partner-fills";
|
|
3
|
+
export const openapiSha256 = "b89f395adf9844ddd0e6543b439cbedaed15b1986dea3ca38800bdcfdd78ca43";
|
|
4
4
|
export const realtimeSha256 = "32e56c8bb642401f5b03e9c38274087c09bebb73ffe60c0d34432c2e78ce1e15";
|
|
5
5
|
export const jsonSchemaSha256 = {
|
|
6
6
|
"account.schema.json": "c11a94438d5f7b54e08d3b559098ce2671f4c9aad3a79feb684b7a81f77d809a",
|
|
@@ -9,7 +9,7 @@ export const jsonSchemaSha256 = {
|
|
|
9
9
|
"core-exit.schema.json": "c7f617e815225cdcac95c236f8b73fbe288ee5713ff444c3be90eb915fc3a401",
|
|
10
10
|
"error.schema.json": "a980d4d81ea2f8528d24d79a6cf3823b15690d21e81a1852039ae12c4ce0a393",
|
|
11
11
|
"hypercore.schema.json": "5b89b2bbff7ec8cc1b8717375d12ce9cd5ab6aa5af03c4fdc6cc753ef9583a2c",
|
|
12
|
-
"identity.schema.json": "
|
|
12
|
+
"identity.schema.json": "f369f35c612dabd076a6e9525791a008797b8cdbb7e5a5f246b242bad4739aa8",
|
|
13
13
|
"maker-access.schema.json": "49698ee0235e42064aae0397db1e0f646bdc10d9dfa10121714ba06dd69fee3b",
|
|
14
14
|
"maker-action.schema.json": "dc41e52c868848e85cdeb918992cb710d34616d2803a63f6d9a658e016744a50",
|
|
15
15
|
"maker-telemetry.schema.json": "85b111ce0f4935299d1116071b43de12e775bef4e0c283c12f19046d34374a9c",
|
|
@@ -80,6 +80,7 @@ export const operations = {
|
|
|
80
80
|
"getMarketReferenceCloses",
|
|
81
81
|
"getMarketScoreTimeline",
|
|
82
82
|
"getMarketStats",
|
|
83
|
+
"getMyGenesis",
|
|
83
84
|
"getOperation",
|
|
84
85
|
"getOwnMaker",
|
|
85
86
|
"getPartnerReport",
|
|
@@ -119,6 +120,7 @@ export const operations = {
|
|
|
119
120
|
"listMarkets",
|
|
120
121
|
"listMyNotifications",
|
|
121
122
|
"listOperations",
|
|
123
|
+
"listPartnerFills",
|
|
122
124
|
"listQuotes",
|
|
123
125
|
"listTraderPositions",
|
|
124
126
|
"listTraderTrades",
|
package/dist/partner.d.ts
CHANGED
|
@@ -4,6 +4,8 @@ import { type SignerInput } from "./signer.js";
|
|
|
4
4
|
export type WalletAdmission = components["schemas"]["WalletAdmission"];
|
|
5
5
|
/** Your partner's fees, terms, balance and payouts (TT-2420). Amounts are atomic USDC strings. */
|
|
6
6
|
export type PartnerReport = components["schemas"]["PartnerReport"];
|
|
7
|
+
/** A page of fee events on your users' positions (TT-2749). Amounts are atomic USDC strings. */
|
|
8
|
+
export type PartnerFillPage = components["schemas"]["PartnerFillPage"];
|
|
7
9
|
/** A wallet's signed consent to one partner opening its account (TT-1688). */
|
|
8
10
|
export type AdmissionConsent = {
|
|
9
11
|
readonly expires_at: string;
|
|
@@ -48,7 +50,8 @@ export type PartnerServerOptions = Omit<ApiClientOptions, "accessToken" | "partn
|
|
|
48
50
|
* wallet gets an account only through a partner: admit it here with the
|
|
49
51
|
* wallet's consent (`signAdmissionConsent` in your frontend), and its next
|
|
50
52
|
* wallet sign-in creates the account, attributed to you. `report` reads your
|
|
51
|
-
* fees, terms and payouts (TT-2420)
|
|
53
|
+
* fees, terms and payouts (TT-2420), and `fills` each fee event on your
|
|
54
|
+
* users' positions (TT-2749). Refuses to run in a browser, where the
|
|
52
55
|
* server key would be exposed.
|
|
53
56
|
*/
|
|
54
57
|
export declare function createPartnerServer(options: PartnerServerOptions): {
|
|
@@ -67,5 +70,18 @@ export declare function createPartnerServer(options: PartnerServerOptions): {
|
|
|
67
70
|
readonly from: string;
|
|
68
71
|
readonly to: string;
|
|
69
72
|
}): Promise<PartnerReport>;
|
|
73
|
+
/**
|
|
74
|
+
* Your fills: each opening, claim and cash-out on a position opened
|
|
75
|
+
* through your codes, oldest first, in `[from, to)` UTC days (omit both
|
|
76
|
+
* for the 30 days through today). Pass `next_cursor` as `cursor` for the
|
|
77
|
+
* next page. It follows the last fill even when `has_more` is false, so
|
|
78
|
+
* keep it to read new fills later with the same `from` and a later `to`.
|
|
79
|
+
*/
|
|
80
|
+
fills(query?: {
|
|
81
|
+
readonly from?: string;
|
|
82
|
+
readonly to?: string;
|
|
83
|
+
readonly cursor?: string;
|
|
84
|
+
readonly limit?: number;
|
|
85
|
+
}): Promise<PartnerFillPage>;
|
|
70
86
|
};
|
|
71
87
|
export type PartnerServer = ReturnType<typeof createPartnerServer>;
|
package/dist/partner.js
CHANGED
|
@@ -32,7 +32,8 @@ export async function signAdmissionConsent(request) {
|
|
|
32
32
|
* wallet gets an account only through a partner: admit it here with the
|
|
33
33
|
* wallet's consent (`signAdmissionConsent` in your frontend), and its next
|
|
34
34
|
* wallet sign-in creates the account, attributed to you. `report` reads your
|
|
35
|
-
* fees, terms and payouts (TT-2420)
|
|
35
|
+
* fees, terms and payouts (TT-2420), and `fills` each fee event on your
|
|
36
|
+
* users' positions (TT-2749). Refuses to run in a browser, where the
|
|
36
37
|
* server key would be exposed.
|
|
37
38
|
*/
|
|
38
39
|
export function createPartnerServer(options) {
|
|
@@ -62,5 +63,15 @@ export function createPartnerServer(options) {
|
|
|
62
63
|
async report(range) {
|
|
63
64
|
return unwrap(await client.GET("/v1/partner/report", { params: { query: range ?? {} } }));
|
|
64
65
|
},
|
|
66
|
+
/**
|
|
67
|
+
* Your fills: each opening, claim and cash-out on a position opened
|
|
68
|
+
* through your codes, oldest first, in `[from, to)` UTC days (omit both
|
|
69
|
+
* for the 30 days through today). Pass `next_cursor` as `cursor` for the
|
|
70
|
+
* next page. It follows the last fill even when `has_more` is false, so
|
|
71
|
+
* keep it to read new fills later with the same `from` and a later `to`.
|
|
72
|
+
*/
|
|
73
|
+
async fills(query) {
|
|
74
|
+
return unwrap(await client.GET("/v1/partner/fills", { params: { query: query ?? {} } }));
|
|
75
|
+
},
|
|
65
76
|
};
|
|
66
77
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@totalis/hip4-client",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.92.0",
|
|
4
4
|
"description": "Totalis HIP-4 SDK: typed HTTP clients, signer-agnostic typed data, a retrying request layer, pagination, a realtime stream and taker/maker flows",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"files": [
|