@totalis/hip4-client 0.91.0 → 0.93.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 +51 -0
- package/dist/generated/account-read.d.ts +4 -0
- package/dist/generated/browse.d.ts +4 -0
- package/dist/generated/client.d.ts +4 -1
- package/dist/generated/errors.d.ts +3 -0
- package/dist/generated/errors.js +29 -0
- package/dist/generated/openapi.d.ts +277 -9
- package/dist/generated/realtime.d.ts +4 -0
- package/dist/generated/version.d.ts +5 -5
- package/dist/generated/version.js +7 -4
- 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,57 @@
|
|
|
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.93.0
|
|
7
|
+
|
|
8
|
+
### Added
|
|
9
|
+
|
|
10
|
+
- Referral bonus (contract `222.0.0-referral-bonus`). `getMyReferralBonus`,
|
|
11
|
+
`GET /v1/me/referral-bonus`: the signed-in account's referral bonus. A
|
|
12
|
+
referral is someone the account's own invite code admitted; once their own
|
|
13
|
+
Combo stake since signing up reaches `qualifying_stake` ($50) the account
|
|
14
|
+
earns `bonus` ($5), up to `monthly_cap` ($500) a UTC month. The answer has
|
|
15
|
+
`started_at` (null until the bonus starts), `months` (`earned`, `capped`,
|
|
16
|
+
`bonus`), the most recent `qualified` referrals with their `outcome`
|
|
17
|
+
(`EARNED`, `CAPPED`, `BEFORE_START`, `SELF`) and the most recent `pending`
|
|
18
|
+
referrals with what they have `staked`. Answers `CONTRACT_UNAVAILABLE` where
|
|
19
|
+
the bonus is off. Additive.
|
|
20
|
+
- Awaiting result (contract `221.0.0-awaiting-result`). Optional
|
|
21
|
+
`Market.awaiting_result` (`boolean | null`): `true` while a market's event
|
|
22
|
+
is over and Hyperliquid has not recorded its result (a live scoreboard shows
|
|
23
|
+
its game final, or a price market's observation time has passed), `false`
|
|
24
|
+
when it is known not to be, `null` or absent when unknown. Optional
|
|
25
|
+
per-side `last_chance` (integer string at scale 10^18, or `null`) on
|
|
26
|
+
`MarketSide` and on stream `reference_upserts` items: the side's last real
|
|
27
|
+
chance, set only while `awaiting_result` is `true` and `reference.chance` is
|
|
28
|
+
null. Both are display only: they never change trading, `chance`, `mark` or
|
|
29
|
+
Combo admission. The market stream sends `awaiting_result` in catalog
|
|
30
|
+
upserts. Nothing sends them yet; a schema that rejects unknown properties
|
|
31
|
+
must accept them before the backend starts to. Additive.
|
|
32
|
+
- Market-data now sends `awaiting_result` and `last_chance` (omitted when
|
|
33
|
+
null). Games read `true` once their live scoreboard shows final; price
|
|
34
|
+
markets once their observation time passes. The last chance is the last real
|
|
35
|
+
price (a trade, or a tight-book midpoint), not clamped to a one-sided book.
|
|
36
|
+
|
|
37
|
+
## 0.92.0
|
|
38
|
+
|
|
39
|
+
### Added
|
|
40
|
+
|
|
41
|
+
- Genesis Accounts (contract 219). `getMyGenesis` (`GET /v1/me/genesis`)
|
|
42
|
+
returns the account's progress toward the Genesis Account badge: when it
|
|
43
|
+
signed up against `signup_before`, whether X is bound, its own Combo stake
|
|
44
|
+
against `required_stake` (USDC base units) and the `deadline`, plus
|
|
45
|
+
`earned_at` once earned. Answers `CONTRACT_UNAVAILABLE` where Genesis is
|
|
46
|
+
off. Additive.
|
|
47
|
+
- Partner fills (TT-2749, contract `220.0.0-partner-fills`). `fills()` on
|
|
48
|
+
`createPartnerServer` (`GET /v1/partner/fills`) pages through each fee
|
|
49
|
+
event on positions opened through your builder codes, oldest first: its
|
|
50
|
+
opening (`ACCEPT`), claims (`CLAIM`) and sales back to the vault
|
|
51
|
+
(`CASH_OUT`), with the wallet that acted, the position and its legs, the
|
|
52
|
+
amount, the fee, the position's stake and payout (its price), your
|
|
53
|
+
`share_bps` that day, block time and transaction. Their fees add up to the
|
|
54
|
+
report's `total_fees` for the same range. `next_cursor` follows the last
|
|
55
|
+
fill even on the last page, so keep it to read new fills later. Additive.
|
|
56
|
+
|
|
6
57
|
## 0.91.0
|
|
7
58
|
|
|
8
59
|
### Added
|
|
@@ -535,6 +535,8 @@ export type components = {
|
|
|
535
535
|
readonly maker_id: components["schemas"]["NonZeroUInt64String"];
|
|
536
536
|
/** @description Current position owner wallet (lowercase). */
|
|
537
537
|
readonly owner: components["schemas"]["LowercaseNonZeroAddress"];
|
|
538
|
+
/** @description On a maker's read, the owner's username when the owner wallet is the account wallet of a participant whose public trader profile is on, the pair GET /v1/traders/{username} shows; otherwise null, as for a participant's other linked wallets, and always null on a personal read. */
|
|
539
|
+
readonly owner_username: components["schemas"]["Username"] | null;
|
|
538
540
|
/**
|
|
539
541
|
* @description OPEN: not yet known eligible for settlement; AWAITING_SETTLEMENT: every leg resolved, or the payout with every unresolved leg counted as a win already rounds down to zero, but no settlement observed; SETTLED_UNCLAIMED: settled with profit still unclaimed; CLOSED: closed by zero-profit settlement, final claim or sell-back.
|
|
540
542
|
* @enum {string}
|
|
@@ -906,6 +908,8 @@ export type components = {
|
|
|
906
908
|
/** @description Hyperliquid trade ID, as a decimal string. */
|
|
907
909
|
readonly tid: components["schemas"]["NonZeroUInt64String"];
|
|
908
910
|
};
|
|
911
|
+
/** @description 3 to 20 lowercase letters, digits or underscores. Unique across accounts. */
|
|
912
|
+
readonly Username: string;
|
|
909
913
|
/**
|
|
910
914
|
* @description Where the quote stands now. OPEN: live and acceptable. AWAITING_CONFIRMATION: the taker accepted it and the maker has not answered within its two-second deadline yet. ACCEPTED: the maker confirmed and the trade is queued or on its way to chain. FILLED: the trade committed on chain. FAILED: the trade reverted or expired unexecuted. DECLINED: the maker declined the acceptance. TIMED_OUT: the maker did not answer the acceptance in time. CANCELLED: the maker withdrew the quote. REPLACED: the maker's newer quote on the same RFQ replaced it. EXPIRED: it or its RFQ lapsed unaccepted. NOT_SELECTED: the RFQ's taker accepted another quote first. RFQ_CANCELLED: the taker cancelled or replaced the RFQ.
|
|
911
915
|
* @enum {string}
|
|
@@ -464,6 +464,8 @@ export type components = {
|
|
|
464
464
|
readonly coin: string;
|
|
465
465
|
/** @description Current reference price of this side, or why none is available. */
|
|
466
466
|
readonly reference: components["schemas"]["Reference"];
|
|
467
|
+
/** @description For display only: the side's last real chance at the probability scale (10^18), set only while the market's awaiting_result is true and reference.chance is null. It is the newest evidence the chance rule holds, unclamped: the last book execution, or the last midpoint of a book at most 10% of scale wide. It needs a fresh, uncrossed book on this side; an empty book keeps it. YES and NO sum to scale. Null or absent otherwise. It is not a price, a value or a chance: never trade, value a position or pick a Combo leg with it. */
|
|
468
|
+
readonly last_chance?: components["schemas"]["IntegerValue"] | null;
|
|
467
469
|
};
|
|
468
470
|
readonly DateEvent: {
|
|
469
471
|
/**
|
|
@@ -519,6 +521,8 @@ export type components = {
|
|
|
519
521
|
];
|
|
520
522
|
/** @description Display dates and the market class; null when the market has neither reviewed timing nor a market class. Never controls availability or settlement. */
|
|
521
523
|
readonly dates: components["schemas"]["MarketDates"] | null;
|
|
524
|
+
/** @description For display only: whether the market's event is over while Hyperliquid has not recorded its result. true when a live scoreboard shows its game final (every winner, spread and total market of that game) or a price market's observation time has passed with its result unresolved; false when its event is known not to be over yet or its result is recorded; null or absent when unknown: other kinds of market, a game no scoreboard covers or reads now, or a native result that could not be read. It never closes trading, settles, or changes chance, mark, eligibility or Combo admission. */
|
|
525
|
+
readonly awaiting_result?: boolean | null;
|
|
522
526
|
};
|
|
523
527
|
readonly DiscoveryQuestionItem: components["schemas"]["DiscoveryDisplay"] & {
|
|
524
528
|
/** @description Item ID, question: followed by the native question ID. */
|
|
@@ -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,8 @@ 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">;
|
|
60
|
+
readonly "/v1/me/referral-bonus": Pick<SharedPaths["/v1/me/referral-bonus"], "parameters" | "get">;
|
|
58
61
|
readonly "/v1/me/copy-summary": Pick<SharedPaths["/v1/me/copy-summary"], "parameters" | "get">;
|
|
59
62
|
readonly "/v1/me/copy-fills": Pick<SharedPaths["/v1/me/copy-fills"], "parameters" | "get">;
|
|
60
63
|
readonly "/v1/me/copy-agents": Pick<SharedPaths["/v1/me/copy-agents"], "parameters" | "get">;
|
|
@@ -115,4 +118,4 @@ export type paths = {
|
|
|
115
118
|
readonly "/v1/makers/{maker_id}/exposure": Pick<SharedPaths["/v1/makers/{maker_id}/exposure"], "parameters" | "get">;
|
|
116
119
|
readonly "/v1/makers/{maker_id}/performance": Pick<SharedPaths["/v1/makers/{maker_id}/performance"], "parameters" | "get">;
|
|
117
120
|
};
|
|
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">;
|
|
121
|
+
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" | "getMyReferralBonus" | "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,8 @@ 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"];
|
|
452
|
+
readonly getMyReferralBonus: readonly ["UNAUTHENTICATED", "FORBIDDEN", "AUTHORIZATION_UNAVAILABLE", "RATE_LIMITED", "ORIGIN_REQUIRED", "IDENTITY_NOT_FOUND", "INVALID_QUERY", "CONTRACT_UNAVAILABLE"];
|
|
451
453
|
readonly getOperation: readonly ["UNAUTHENTICATED", "FORBIDDEN", "AUTHORIZATION_UNAVAILABLE", "DEPENDENCY_STALE", "RATE_LIMITED", "INVALID_REQUEST", "NOT_FOUND", "IDENTITY_NOT_FOUND"];
|
|
452
454
|
readonly getOwnMaker: readonly ["UNAUTHENTICATED", "FORBIDDEN", "AUTHORIZATION_UNAVAILABLE", "DEPENDENCY_STALE", "RATE_LIMITED", "ORIGIN_REQUIRED", "NOT_FOUND", "IDENTITY_NOT_FOUND"];
|
|
453
455
|
readonly getPartnerReport: readonly ["INVALID_QUERY", "UNAUTHENTICATED", "FORBIDDEN", "RATE_LIMITED", "AUTHORIZATION_UNAVAILABLE", "SOURCE_UNAVAILABLE"];
|
|
@@ -491,6 +493,7 @@ export declare const operationErrors: {
|
|
|
491
493
|
readonly listMyNotifications: readonly ["UNAUTHENTICATED", "FORBIDDEN", "AUTHORIZATION_UNAVAILABLE", "RATE_LIMITED", "ORIGIN_REQUIRED", "IDENTITY_NOT_FOUND", "INVALID_QUERY", "CONTRACT_UNAVAILABLE"];
|
|
492
494
|
readonly listOperations: readonly ["UNAUTHENTICATED", "FORBIDDEN", "AUTHORIZATION_UNAVAILABLE", "DEPENDENCY_STALE", "RATE_LIMITED", "INVALID_QUERY", "INVALID_CURSOR", "IDENTITY_NOT_FOUND"];
|
|
493
495
|
readonly listOperatorApiKeys: readonly ["UNAUTHENTICATED", "FORBIDDEN", "AUTHORIZATION_UNAVAILABLE", "DEPENDENCY_STALE", "RATE_LIMITED", "INVALID_REQUEST", "NOT_FOUND"];
|
|
496
|
+
readonly listPartnerFills: readonly ["INVALID_QUERY", "INVALID_CURSOR", "UNAUTHENTICATED", "FORBIDDEN", "RATE_LIMITED", "AUTHORIZATION_UNAVAILABLE", "SOURCE_UNAVAILABLE"];
|
|
494
497
|
readonly listPersonalApiKeys: readonly ["UNAUTHENTICATED", "FORBIDDEN", "AUTHORIZATION_UNAVAILABLE", "DEPENDENCY_STALE", "RATE_LIMITED", "INVALID_REQUEST", "NOT_FOUND"];
|
|
495
498
|
readonly listQuotes: readonly ["UNAUTHENTICATED", "FORBIDDEN", "AUTHORIZATION_UNAVAILABLE", "DEPENDENCY_STALE", "RATE_LIMITED", "INVALID_REQUEST", "NOT_FOUND", "IDENTITY_NOT_FOUND"];
|
|
496
499
|
readonly listRfqs: readonly ["UNAUTHENTICATED", "FORBIDDEN", "AUTHORIZATION_UNAVAILABLE", "DEPENDENCY_STALE", "RATE_LIMITED", "INVALID_QUERY", "INVALID_CURSOR"];
|
package/dist/generated/errors.js
CHANGED
|
@@ -1236,6 +1236,26 @@ 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
|
+
],
|
|
1249
|
+
"getMyReferralBonus": [
|
|
1250
|
+
"UNAUTHENTICATED",
|
|
1251
|
+
"FORBIDDEN",
|
|
1252
|
+
"AUTHORIZATION_UNAVAILABLE",
|
|
1253
|
+
"RATE_LIMITED",
|
|
1254
|
+
"ORIGIN_REQUIRED",
|
|
1255
|
+
"IDENTITY_NOT_FOUND",
|
|
1256
|
+
"INVALID_QUERY",
|
|
1257
|
+
"CONTRACT_UNAVAILABLE"
|
|
1258
|
+
],
|
|
1239
1259
|
"getOperation": [
|
|
1240
1260
|
"UNAUTHENTICATED",
|
|
1241
1261
|
"FORBIDDEN",
|
|
@@ -1655,6 +1675,15 @@ export const operationErrors = {
|
|
|
1655
1675
|
"INVALID_REQUEST",
|
|
1656
1676
|
"NOT_FOUND"
|
|
1657
1677
|
],
|
|
1678
|
+
"listPartnerFills": [
|
|
1679
|
+
"INVALID_QUERY",
|
|
1680
|
+
"INVALID_CURSOR",
|
|
1681
|
+
"UNAUTHENTICATED",
|
|
1682
|
+
"FORBIDDEN",
|
|
1683
|
+
"RATE_LIMITED",
|
|
1684
|
+
"AUTHORIZATION_UNAVAILABLE",
|
|
1685
|
+
"SOURCE_UNAVAILABLE"
|
|
1686
|
+
],
|
|
1658
1687
|
"listPersonalApiKeys": [
|
|
1659
1688
|
"UNAUTHENTICATED",
|
|
1660
1689
|
"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,46 @@ 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
|
+
};
|
|
1186
|
+
readonly "/v1/me/referral-bonus": {
|
|
1187
|
+
readonly parameters: {
|
|
1188
|
+
readonly query?: never;
|
|
1189
|
+
readonly header?: never;
|
|
1190
|
+
readonly path?: never;
|
|
1191
|
+
readonly cookie?: never;
|
|
1192
|
+
};
|
|
1193
|
+
/**
|
|
1194
|
+
* Get my referral bonus
|
|
1195
|
+
* @description The authenticated account's referral bonus. A referral is someone the account's own invite code admitted; they qualify once their own Combo stake since signing up reaches qualifying_stake, and the account earns bonus for each, up to monthly_cap a UTC month by when each qualified. Referrals past the cap earn nothing that month and nothing carries over. A one-leg entry is a single-market buy, not a Combo, and a golden Combo is not the referral's own stake. The bonus is separate from the fee share in GET /v1/referrals/me. Answers CONTRACT_UNAVAILABLE where the referral bonus is off.
|
|
1196
|
+
*/
|
|
1197
|
+
readonly get: operations["getMyReferralBonus"];
|
|
1198
|
+
readonly put?: never;
|
|
1199
|
+
readonly post?: never;
|
|
1200
|
+
readonly delete?: never;
|
|
1201
|
+
readonly options?: never;
|
|
1202
|
+
readonly head?: never;
|
|
1203
|
+
readonly patch?: never;
|
|
1204
|
+
readonly trace?: never;
|
|
1205
|
+
};
|
|
1146
1206
|
readonly "/v1/me/copy-summary": {
|
|
1147
1207
|
readonly parameters: {
|
|
1148
1208
|
readonly query?: never;
|
|
@@ -3562,6 +3622,8 @@ export type components = {
|
|
|
3562
3622
|
/** @description Opaque list cursor. Send a previous response's next_cursor back unchanged; never build or parse one. */
|
|
3563
3623
|
readonly PageCursor: string;
|
|
3564
3624
|
readonly LowercaseNonZeroAddress: string;
|
|
3625
|
+
/** @description 3 to 20 lowercase letters, digits or underscores. Unique across accounts. */
|
|
3626
|
+
readonly Username: string;
|
|
3565
3627
|
readonly UInt32String: string;
|
|
3566
3628
|
readonly Leg: {
|
|
3567
3629
|
/** @description HIP-4 outcome ID of the leg, as a decimal string. */
|
|
@@ -3615,6 +3677,8 @@ export type components = {
|
|
|
3615
3677
|
readonly maker_id: components["schemas"]["NonZeroUInt64String"];
|
|
3616
3678
|
/** @description Current position owner wallet (lowercase). */
|
|
3617
3679
|
readonly owner: components["schemas"]["LowercaseNonZeroAddress"];
|
|
3680
|
+
/** @description On a maker's read, the owner's username when the owner wallet is the account wallet of a participant whose public trader profile is on, the pair GET /v1/traders/{username} shows; otherwise null, as for a participant's other linked wallets, and always null on a personal read. */
|
|
3681
|
+
readonly owner_username: components["schemas"]["Username"] | null;
|
|
3618
3682
|
/**
|
|
3619
3683
|
* @description OPEN: not yet known eligible for settlement; AWAITING_SETTLEMENT: every leg resolved, or the payout with every unresolved leg counted as a win already rounds down to zero, but no settlement observed; SETTLED_UNCLAIMED: settled with profit still unclaimed; CLOSED: closed by zero-profit settlement, final claim or sell-back.
|
|
3620
3684
|
* @enum {string}
|
|
@@ -4106,8 +4170,6 @@ export type components = {
|
|
|
4106
4170
|
};
|
|
4107
4171
|
/** Format: uuid */
|
|
4108
4172
|
readonly Uuid: string;
|
|
4109
|
-
/** @description 3 to 20 lowercase letters, digits or underscores. Unique across accounts. */
|
|
4110
|
-
readonly Username: string;
|
|
4111
4173
|
/** @description A random (version 4) UUID, lowercase. */
|
|
4112
4174
|
readonly AvatarSeed: string;
|
|
4113
4175
|
/** @description An X profile picture on pbs.twimg.com or abs.twimg.com, at the size X gave Privy, usually the 48-pixel file ending in _normal; X also serves _bigger (73 px) and _400x400 under the same name. */
|
|
@@ -4336,6 +4398,53 @@ export type components = {
|
|
|
4336
4398
|
/** @description Every payout to you, newest first. */
|
|
4337
4399
|
readonly payouts: readonly components["schemas"]["PartnerPayout"][];
|
|
4338
4400
|
};
|
|
4401
|
+
/** @description One (outcome, side) pair, as markets and positions name it. */
|
|
4402
|
+
readonly "$defs-Leg": {
|
|
4403
|
+
/** @description HIP-4 outcome ID the leg is on, as a decimal string. The signed Leg encodes it as uint32. */
|
|
4404
|
+
readonly outcome_id: components["schemas"]["UInt32String"];
|
|
4405
|
+
/** @description Outcome side the leg backs. The signed Leg encodes YES as 0 and NO as 1. */
|
|
4406
|
+
readonly side: components["schemas"]["Side"];
|
|
4407
|
+
};
|
|
4408
|
+
/** @description One fee event on a position opened through your builder codes. Amounts are atomic USDC (6 decimals) decimal strings. */
|
|
4409
|
+
readonly PartnerFill: {
|
|
4410
|
+
/**
|
|
4411
|
+
* @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.
|
|
4412
|
+
* @enum {string}
|
|
4413
|
+
*/
|
|
4414
|
+
readonly kind: "ACCEPT" | "CLAIM" | "CASH_OUT";
|
|
4415
|
+
/** @description The wallet that acted: the one that opened or claimed, or the seller. */
|
|
4416
|
+
readonly wallet: components["schemas"]["LowercaseNonZeroAddress"];
|
|
4417
|
+
/** @description The position, as GET /v1/me/positions names it. */
|
|
4418
|
+
readonly position_id: components["schemas"]["Bytes32"];
|
|
4419
|
+
/** @description The position's legs: one for a single, more for a Combo. */
|
|
4420
|
+
readonly legs: readonly components["schemas"]["$defs-Leg"][];
|
|
4421
|
+
/** @description What the event moved, as kind says. */
|
|
4422
|
+
readonly amount: components["schemas"]["$defs-Amount"];
|
|
4423
|
+
/** @description The fee the vault took: the taker fee on ACCEPT, the profit fee on CLAIM and CASH_OUT. Zero when none was due. */
|
|
4424
|
+
readonly fee: components["schemas"]["$defs-Amount"];
|
|
4425
|
+
/** @description The position's stake after the taker fee, as it opened. */
|
|
4426
|
+
readonly stake: components["schemas"]["$defs-Amount"];
|
|
4427
|
+
/** @description What the position pays if every leg wins; stake over payout is the price it opened at. */
|
|
4428
|
+
readonly payout: components["schemas"]["$defs-Amount"];
|
|
4429
|
+
/** @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. */
|
|
4430
|
+
readonly share_bps: number | null;
|
|
4431
|
+
/** @description HyperEVM block time. */
|
|
4432
|
+
readonly time: components["schemas"]["$defs-Timestamp"];
|
|
4433
|
+
/** @description HyperEVM block. */
|
|
4434
|
+
readonly block_number: number;
|
|
4435
|
+
/** @description The event's log index in its block; with block_number it identifies the fill. */
|
|
4436
|
+
readonly log_index: number;
|
|
4437
|
+
/** @description The HyperEVM transaction. */
|
|
4438
|
+
readonly transaction_hash: components["schemas"]["Bytes32"];
|
|
4439
|
+
};
|
|
4440
|
+
readonly PartnerFillPage: {
|
|
4441
|
+
/** @description Fills, oldest first. */
|
|
4442
|
+
readonly fills: readonly components["schemas"]["PartnerFill"][];
|
|
4443
|
+
/** @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. */
|
|
4444
|
+
readonly next_cursor: components["schemas"]["NextCursor"];
|
|
4445
|
+
/** @description Whether more fills follow in the range. */
|
|
4446
|
+
readonly has_more: boolean;
|
|
4447
|
+
};
|
|
4339
4448
|
/** @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
4449
|
readonly AcquisitionTouch: {
|
|
4341
4450
|
readonly source?: string;
|
|
@@ -4413,13 +4522,6 @@ export type components = {
|
|
|
4413
4522
|
};
|
|
4414
4523
|
};
|
|
4415
4524
|
};
|
|
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
4525
|
/** @enum {string} */
|
|
4424
4526
|
readonly MarketState: "ACTIVE" | "CLOSED" | "UNSUPPORTED";
|
|
4425
4527
|
readonly Category: ("Crypto" | "Economics" | "Entertainment" | "Esports" | "Finance" | "Politics" | "Sports" | "Tech" | "Weather") | null;
|
|
@@ -4627,6 +4729,8 @@ export type components = {
|
|
|
4627
4729
|
readonly coin: string;
|
|
4628
4730
|
/** @description Current reference price of this side, or why none is available. */
|
|
4629
4731
|
readonly reference: components["schemas"]["Reference"];
|
|
4732
|
+
/** @description For display only: the side's last real chance at the probability scale (10^18), set only while the market's awaiting_result is true and reference.chance is null. It is the newest evidence the chance rule holds, unclamped: the last book execution, or the last midpoint of a book at most 10% of scale wide. It needs a fresh, uncrossed book on this side; an empty book keeps it. YES and NO sum to scale. Null or absent otherwise. It is not a price, a value or a chance: never trade, value a position or pick a Combo leg with it. */
|
|
4733
|
+
readonly last_chance?: components["schemas"]["IntegerValue"] | null;
|
|
4630
4734
|
};
|
|
4631
4735
|
readonly DateEvent: {
|
|
4632
4736
|
/**
|
|
@@ -4679,6 +4783,8 @@ export type components = {
|
|
|
4679
4783
|
readonly sides: readonly components["schemas"]["MarketSide"][];
|
|
4680
4784
|
/** @description Display dates and the market class; null when the market has neither reviewed timing nor a market class. Never controls availability or settlement. */
|
|
4681
4785
|
readonly dates: components["schemas"]["MarketDates"] | null;
|
|
4786
|
+
/** @description For display only: whether the market's event is over while Hyperliquid has not recorded its result. true when a live scoreboard shows its game final (every winner, spread and total market of that game) or a price market's observation time has passed with its result unresolved; false when its event is known not to be over yet or its result is recorded; null or absent when unknown: other kinds of market, a game no scoreboard covers or reads now, or a native result that could not be read. It never closes trading, settles, or changes chance, mark, eligibility or Combo admission. */
|
|
4787
|
+
readonly awaiting_result?: boolean | null;
|
|
4682
4788
|
};
|
|
4683
4789
|
readonly DiscoveryQuestionItem: components["schemas"]["DiscoveryDisplay"] & {
|
|
4684
4790
|
/** @description Item ID, question: followed by the native question ID. */
|
|
@@ -7744,6 +7850,56 @@ export interface operations {
|
|
|
7744
7850
|
readonly 503: components["responses"]["Unavailable"];
|
|
7745
7851
|
};
|
|
7746
7852
|
};
|
|
7853
|
+
readonly listPartnerFills: {
|
|
7854
|
+
readonly parameters: {
|
|
7855
|
+
readonly query?: {
|
|
7856
|
+
/**
|
|
7857
|
+
* @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.
|
|
7858
|
+
* @example 2026-10-01
|
|
7859
|
+
*/
|
|
7860
|
+
readonly from?: string;
|
|
7861
|
+
/**
|
|
7862
|
+
* @description UTC day after the range, exclusive: `from=2026-10-01&to=2026-11-01` is October.
|
|
7863
|
+
* @example 2026-11-01
|
|
7864
|
+
*/
|
|
7865
|
+
readonly to?: string;
|
|
7866
|
+
/**
|
|
7867
|
+
* @description Omit for the first fills in the range; then send a previous response's next_cursor unchanged.
|
|
7868
|
+
* @example v1:21987305:0
|
|
7869
|
+
*/
|
|
7870
|
+
readonly cursor?: components["schemas"]["PageCursor"];
|
|
7871
|
+
/**
|
|
7872
|
+
* @description Maximum items per page, 1 to 200, default 50. A page may hold fewer, even none, while has_more is true.
|
|
7873
|
+
* @example 50
|
|
7874
|
+
*/
|
|
7875
|
+
readonly limit?: components["parameters"]["Limit"];
|
|
7876
|
+
};
|
|
7877
|
+
readonly header?: never;
|
|
7878
|
+
readonly path?: never;
|
|
7879
|
+
readonly cookie?: never;
|
|
7880
|
+
};
|
|
7881
|
+
readonly requestBody?: never;
|
|
7882
|
+
readonly responses: {
|
|
7883
|
+
/** @description A page of your fills. No caching. */
|
|
7884
|
+
readonly 200: {
|
|
7885
|
+
headers: {
|
|
7886
|
+
readonly [name: string]: unknown;
|
|
7887
|
+
};
|
|
7888
|
+
content: {
|
|
7889
|
+
readonly "application/json": components["schemas"]["PartnerFillPage"];
|
|
7890
|
+
};
|
|
7891
|
+
};
|
|
7892
|
+
/** @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. */
|
|
7893
|
+
readonly 400: components["responses"]["Error"];
|
|
7894
|
+
/** @description The partner server key is missing, unknown or revoked, or your partner is suspended. */
|
|
7895
|
+
readonly 401: components["responses"]["Error"];
|
|
7896
|
+
/** @description Any credential but a partner server key, or any request with an `Origin`, is refused: read fills from your server. */
|
|
7897
|
+
readonly 403: components["responses"]["Error"];
|
|
7898
|
+
readonly 429: components["responses"]["RateLimited"];
|
|
7899
|
+
/** @description Fills are temporarily unavailable; resend after `Retry-After`. */
|
|
7900
|
+
readonly 503: components["responses"]["Unavailable"];
|
|
7901
|
+
};
|
|
7902
|
+
};
|
|
7747
7903
|
readonly recordAcquisition: {
|
|
7748
7904
|
readonly parameters: {
|
|
7749
7905
|
readonly query?: never;
|
|
@@ -9162,6 +9318,118 @@ export interface operations {
|
|
|
9162
9318
|
readonly 503: components["responses"]["Unavailable"];
|
|
9163
9319
|
};
|
|
9164
9320
|
};
|
|
9321
|
+
readonly getMyGenesis: {
|
|
9322
|
+
readonly parameters: {
|
|
9323
|
+
readonly query?: never;
|
|
9324
|
+
readonly header?: never;
|
|
9325
|
+
readonly path?: never;
|
|
9326
|
+
readonly cookie?: never;
|
|
9327
|
+
};
|
|
9328
|
+
readonly requestBody?: never;
|
|
9329
|
+
readonly responses: {
|
|
9330
|
+
/** @description Genesis progress */
|
|
9331
|
+
readonly 200: {
|
|
9332
|
+
headers: {
|
|
9333
|
+
readonly "Cache-Control"?: "no-store";
|
|
9334
|
+
readonly [name: string]: unknown;
|
|
9335
|
+
};
|
|
9336
|
+
content: {
|
|
9337
|
+
readonly "application/json": {
|
|
9338
|
+
/** @description When the account was created. */
|
|
9339
|
+
readonly signed_up_at: components["schemas"]["$defs-Timestamp"];
|
|
9340
|
+
/** @description An account created at or after this never earns Genesis. */
|
|
9341
|
+
readonly signup_before: components["schemas"]["$defs-Timestamp"];
|
|
9342
|
+
/** @description Only Combos committed before this count, and X must be bound by then. */
|
|
9343
|
+
readonly deadline: components["schemas"]["$defs-Timestamp"];
|
|
9344
|
+
/** @description Whether the account has an X account linked now. */
|
|
9345
|
+
readonly x_bound: boolean;
|
|
9346
|
+
/** @description What the account staked on Combos with its own money before deadline, in HyperEVM USDC base units (10^-6). */
|
|
9347
|
+
readonly staked: components["schemas"]["$defs-Amount"];
|
|
9348
|
+
/** @description staked must be more than this, in HyperEVM USDC base units (10^-6). */
|
|
9349
|
+
readonly required_stake: components["schemas"]["$defs-Amount"];
|
|
9350
|
+
/** @description When the account earned Genesis; absent until then. */
|
|
9351
|
+
readonly earned_at?: components["schemas"]["$defs-Timestamp"];
|
|
9352
|
+
};
|
|
9353
|
+
};
|
|
9354
|
+
};
|
|
9355
|
+
readonly 400: components["responses"]["Error"];
|
|
9356
|
+
readonly 401: components["responses"]["Error"];
|
|
9357
|
+
readonly 403: components["responses"]["Error"];
|
|
9358
|
+
readonly 404: components["responses"]["Error"];
|
|
9359
|
+
readonly 429: components["responses"]["RateLimited"];
|
|
9360
|
+
readonly 503: components["responses"]["Unavailable"];
|
|
9361
|
+
};
|
|
9362
|
+
};
|
|
9363
|
+
readonly getMyReferralBonus: {
|
|
9364
|
+
readonly parameters: {
|
|
9365
|
+
readonly query?: never;
|
|
9366
|
+
readonly header?: never;
|
|
9367
|
+
readonly path?: never;
|
|
9368
|
+
readonly cookie?: never;
|
|
9369
|
+
};
|
|
9370
|
+
readonly requestBody?: never;
|
|
9371
|
+
readonly responses: {
|
|
9372
|
+
/** @description The referral bonus */
|
|
9373
|
+
readonly 200: {
|
|
9374
|
+
headers: {
|
|
9375
|
+
readonly "Cache-Control"?: "no-store";
|
|
9376
|
+
readonly [name: string]: unknown;
|
|
9377
|
+
};
|
|
9378
|
+
content: {
|
|
9379
|
+
readonly "application/json": {
|
|
9380
|
+
/** @description A referral qualifies once their own Combo stake since signing up with the account's code reaches this, in HyperEVM USDC base units (10^-6). */
|
|
9381
|
+
readonly qualifying_stake: components["schemas"]["$defs-Amount"];
|
|
9382
|
+
/** @description What each qualified referral earns, in HyperEVM USDC base units (10^-6). */
|
|
9383
|
+
readonly bonus: components["schemas"]["$defs-Amount"];
|
|
9384
|
+
/** @description The most the account earns in one UTC month, in HyperEVM USDC base units (10^-6). */
|
|
9385
|
+
readonly monthly_cap: components["schemas"]["$defs-Amount"];
|
|
9386
|
+
/** @description When the bonus started in this deployment; null until it has. A referral that qualified before it earns nothing. */
|
|
9387
|
+
readonly started_at: components["schemas"]["$defs-Timestamp"] | null;
|
|
9388
|
+
/** @description Each UTC month a referral qualified in, newest first. */
|
|
9389
|
+
readonly months: readonly {
|
|
9390
|
+
/** @description The UTC month, YYYY-MM. */
|
|
9391
|
+
readonly month: string;
|
|
9392
|
+
/** @description Referrals that qualified this month and earned the bonus. */
|
|
9393
|
+
readonly earned: number;
|
|
9394
|
+
/** @description Referrals that qualified this month after the cap was reached; they earn nothing, and nothing carries over. */
|
|
9395
|
+
readonly capped: number;
|
|
9396
|
+
/** @description What the month's referrals earned, in HyperEVM USDC base units (10^-6). */
|
|
9397
|
+
readonly bonus: components["schemas"]["$defs-Amount"];
|
|
9398
|
+
}[];
|
|
9399
|
+
/** @description The 100 most recently qualified referrals, newest first. */
|
|
9400
|
+
readonly qualified: readonly {
|
|
9401
|
+
/** @description The referral's username, or null until they pick one. */
|
|
9402
|
+
readonly username: components["schemas"]["Username"] | null;
|
|
9403
|
+
/** @description When their stake reached qualifying_stake: the commit of the Combo that took it there. */
|
|
9404
|
+
readonly qualified_at: components["schemas"]["$defs-Timestamp"];
|
|
9405
|
+
/**
|
|
9406
|
+
* @description EARNED earned the bonus; CAPPED came after the month's cap; BEFORE_START qualified before started_at; SELF shares a wallet with the account.
|
|
9407
|
+
* @enum {unknown}
|
|
9408
|
+
*/
|
|
9409
|
+
readonly outcome: "EARNED" | "CAPPED" | "BEFORE_START" | "SELF";
|
|
9410
|
+
/** @description What this referral earned, in HyperEVM USDC base units (10^-6). */
|
|
9411
|
+
readonly bonus: components["schemas"]["$defs-Amount"];
|
|
9412
|
+
}[];
|
|
9413
|
+
/** @description The 100 most recently admitted referrals who have not qualified yet, newest first. */
|
|
9414
|
+
readonly pending: readonly {
|
|
9415
|
+
/** @description The referral's username, or null until they pick one. */
|
|
9416
|
+
readonly username: components["schemas"]["Username"] | null;
|
|
9417
|
+
/** @description When they signed up with the account's code. */
|
|
9418
|
+
readonly admitted_at: components["schemas"]["$defs-Timestamp"];
|
|
9419
|
+
/** @description Their own Combo stake since then, in HyperEVM USDC base units (10^-6). */
|
|
9420
|
+
readonly staked: components["schemas"]["$defs-Amount"];
|
|
9421
|
+
}[];
|
|
9422
|
+
};
|
|
9423
|
+
};
|
|
9424
|
+
};
|
|
9425
|
+
readonly 400: components["responses"]["Error"];
|
|
9426
|
+
readonly 401: components["responses"]["Error"];
|
|
9427
|
+
readonly 403: components["responses"]["Error"];
|
|
9428
|
+
readonly 404: components["responses"]["Error"];
|
|
9429
|
+
readonly 429: components["responses"]["RateLimited"];
|
|
9430
|
+
readonly 503: components["responses"]["Unavailable"];
|
|
9431
|
+
};
|
|
9432
|
+
};
|
|
9165
9433
|
readonly getCopySummary: {
|
|
9166
9434
|
readonly parameters: {
|
|
9167
9435
|
readonly query?: never;
|
|
@@ -1380,6 +1380,8 @@ export type components = {
|
|
|
1380
1380
|
readonly deadline: components["schemas"]["Deadline"] | components["schemas"]["$defs-Deadline"];
|
|
1381
1381
|
/** @description The YES and NO sides, in that order. */
|
|
1382
1382
|
readonly sides: readonly components["schemas"]["PublicationCatalogSide"][];
|
|
1383
|
+
/** @description For display only: whether the market's event is over while its result is not recorded, as the market's awaiting_result. Absent means null. A change arrives as a catalog upsert, without a metadata revision. */
|
|
1384
|
+
readonly awaiting_result?: boolean | null;
|
|
1383
1385
|
/** @description Publication version at which this item last changed; at most the packet's terminal version. */
|
|
1384
1386
|
readonly version: components["schemas"]["PositiveInt64"];
|
|
1385
1387
|
};
|
|
@@ -1522,6 +1524,8 @@ export type components = {
|
|
|
1522
1524
|
readonly side: components["schemas"]["Side"];
|
|
1523
1525
|
/** @description Current reference price of this side, or why none is available. */
|
|
1524
1526
|
readonly reference: components["schemas"]["FeedReference"];
|
|
1527
|
+
/** @description For display only: the side's last real chance while its market awaits its result and reference.chance is null, as the market side's last_chance. Absent means null. It travels in this reference upsert, so a newer upsert replaces both. */
|
|
1528
|
+
readonly last_chance?: components["schemas"]["IntegerValue"] | null;
|
|
1525
1529
|
/** @description Publication version at which this reference last changed. */
|
|
1526
1530
|
readonly version: components["schemas"]["PositiveInt64"];
|
|
1527
1531
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export declare const sdkVersion = "
|
|
2
|
-
export declare const openapiSha256 = "
|
|
1
|
+
export declare const sdkVersion = "222.0.0-referral-bonus";
|
|
2
|
+
export declare const openapiSha256 = "7af9309ed00fe5096f9f0c9237b49a0be02baa1c173f2607d3c473175a54cad2";
|
|
3
3
|
export declare const realtimeSha256 = "32e56c8bb642401f5b03e9c38274087c09bebb73ffe60c0d34432c2e78ce1e15";
|
|
4
4
|
export declare const jsonSchemaSha256: {
|
|
5
5
|
readonly "account.schema.json": "c11a94438d5f7b54e08d3b559098ce2671f4c9aad3a79feb684b7a81f77d809a";
|
|
@@ -8,17 +8,17 @@ 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";
|
|
15
|
-
readonly "market-data.schema.json": "
|
|
15
|
+
readonly "market-data.schema.json": "d9b277cdd7094a3c32a0c0957ad1de94458b0ea36b9a9fdf6f1f6211bd3c5e61";
|
|
16
16
|
readonly "product-metadata.schema.json": "7c8ffbde878a0aedaed16814fcfd2e80038054b140886cc8736bb7b508042631";
|
|
17
17
|
readonly "quote.schema.json": "52ee1f4708c8b1504e4cd2f2f9279e14c8ec8aeacac1f491441ae0e15ac3c71a";
|
|
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", "getMyReferralBonus", "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 = "222.0.0-referral-bonus";
|
|
3
|
+
export const openapiSha256 = "7af9309ed00fe5096f9f0c9237b49a0be02baa1c173f2607d3c473175a54cad2";
|
|
4
4
|
export const realtimeSha256 = "32e56c8bb642401f5b03e9c38274087c09bebb73ffe60c0d34432c2e78ce1e15";
|
|
5
5
|
export const jsonSchemaSha256 = {
|
|
6
6
|
"account.schema.json": "c11a94438d5f7b54e08d3b559098ce2671f4c9aad3a79feb684b7a81f77d809a",
|
|
@@ -9,11 +9,11 @@ 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",
|
|
16
|
-
"market-data.schema.json": "
|
|
16
|
+
"market-data.schema.json": "d9b277cdd7094a3c32a0c0957ad1de94458b0ea36b9a9fdf6f1f6211bd3c5e61",
|
|
17
17
|
"product-metadata.schema.json": "7c8ffbde878a0aedaed16814fcfd2e80038054b140886cc8736bb7b508042631",
|
|
18
18
|
"quote.schema.json": "52ee1f4708c8b1504e4cd2f2f9279e14c8ec8aeacac1f491441ae0e15ac3c71a",
|
|
19
19
|
"realtime.schema.json": "32e56c8bb642401f5b03e9c38274087c09bebb73ffe60c0d34432c2e78ce1e15"
|
|
@@ -80,6 +80,8 @@ export const operations = {
|
|
|
80
80
|
"getMarketReferenceCloses",
|
|
81
81
|
"getMarketScoreTimeline",
|
|
82
82
|
"getMarketStats",
|
|
83
|
+
"getMyGenesis",
|
|
84
|
+
"getMyReferralBonus",
|
|
83
85
|
"getOperation",
|
|
84
86
|
"getOwnMaker",
|
|
85
87
|
"getPartnerReport",
|
|
@@ -119,6 +121,7 @@ export const operations = {
|
|
|
119
121
|
"listMarkets",
|
|
120
122
|
"listMyNotifications",
|
|
121
123
|
"listOperations",
|
|
124
|
+
"listPartnerFills",
|
|
122
125
|
"listQuotes",
|
|
123
126
|
"listTraderPositions",
|
|
124
127
|
"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.93.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": [
|