@totalis/hip4-client 0.107.0 → 0.109.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 +37 -0
- package/dist/generated/client.d.ts +3 -1
- package/dist/generated/errors.d.ts +3 -1
- package/dist/generated/errors.js +16 -0
- package/dist/generated/maker.d.ts +2 -1
- package/dist/generated/openapi.d.ts +161 -4
- package/dist/generated/realtime.d.ts +68 -2
- package/dist/generated/version.d.ts +7 -7
- package/dist/generated/version.js +8 -5
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,43 @@
|
|
|
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.109.0
|
|
7
|
+
|
|
8
|
+
### Added
|
|
9
|
+
|
|
10
|
+
Contract `244.0.0-rounds-live-trades` (TT-2853), additive:
|
|
11
|
+
|
|
12
|
+
- Round history. `getMarketRoundHistory`
|
|
13
|
+
(`GET /v1/markets/{outcome_id}/recurring-round/history`, no credential, any
|
|
14
|
+
market of the round) returns up to 8 earlier rounds of the same recurring
|
|
15
|
+
series, newest first, one per period step: `RECORDED` rounds with each
|
|
16
|
+
market's native `result`, `NOT_RECORDED` gaps and `CONFLICTED` withheld
|
|
17
|
+
rounds. Fewer than 8 means none older is recorded.
|
|
18
|
+
- Live taker orders on the market stream. A market subscription or
|
|
19
|
+
`MarketSetInterest` may set `trades` (up to 64 outcome IDs); each followed
|
|
20
|
+
outcome gets a `tradesSnapshot` (its latest taker orders, newest block first and
|
|
21
|
+
each block's in execution order, as `trades` frames carry them, and
|
|
22
|
+
`complete_from_height`) and then a `trades` frame per HyperCore block with
|
|
23
|
+
taker orders on it. A `MarketTakerOrder` is one taker order's execution on
|
|
24
|
+
one token in one block, summed exactly: `market_side`, `direction`,
|
|
25
|
+
`shares`, gross `notional` in `quote`, `avg_price`, `height`, `time`, `oid`
|
|
26
|
+
and `taker`. Sockets that never name `trades` are unchanged.
|
|
27
|
+
|
|
28
|
+
### Changed
|
|
29
|
+
|
|
30
|
+
- A golden ticket's `stake` is its own, from 1 to 10 USDC, fixed when the
|
|
31
|
+
ticket is unlocked; golden RFQs and suggestions use it.
|
|
32
|
+
- `getGoldenOffer` may answer `409 QUOTE_EXPIRED` when the RFQ's stake is
|
|
33
|
+
not the ticket's.
|
|
34
|
+
|
|
35
|
+
## 0.108.0
|
|
36
|
+
|
|
37
|
+
### Added
|
|
38
|
+
|
|
39
|
+
- `getGenesis` (`GET /v1/genesis`) reads the Genesis program's public terms
|
|
40
|
+
without signing in: `signup_before`, `deadline` and `required_stake` (USDC
|
|
41
|
+
base units). The answer may be cached for 60 seconds.
|
|
42
|
+
|
|
6
43
|
## 0.107.0
|
|
7
44
|
|
|
8
45
|
### Added
|
|
@@ -71,6 +71,7 @@ export type paths = {
|
|
|
71
71
|
readonly "/v1/me/combo-copies": Pick<SharedPaths["/v1/me/combo-copies"], "parameters" | "get">;
|
|
72
72
|
readonly "/v1/me/notifications": Pick<SharedPaths["/v1/me/notifications"], "parameters" | "get">;
|
|
73
73
|
readonly "/v1/me/notifications/read": Pick<SharedPaths["/v1/me/notifications/read"], "parameters" | "post">;
|
|
74
|
+
readonly "/v1/genesis": Pick<SharedPaths["/v1/genesis"], "parameters" | "get">;
|
|
74
75
|
readonly "/v1/me/genesis": Pick<SharedPaths["/v1/me/genesis"], "parameters" | "get">;
|
|
75
76
|
readonly "/v1/me/referral-bonus": Pick<SharedPaths["/v1/me/referral-bonus"], "parameters" | "get">;
|
|
76
77
|
readonly "/v1/me/copy-summary": Pick<SharedPaths["/v1/me/copy-summary"], "parameters" | "get">;
|
|
@@ -103,6 +104,7 @@ export type paths = {
|
|
|
103
104
|
readonly "/v1/markets/{outcome_id}/history": Pick<SharedPaths["/v1/markets/{outcome_id}/history"], "parameters" | "get">;
|
|
104
105
|
readonly "/v1/markets/{outcome_id}/reference-closes": Pick<SharedPaths["/v1/markets/{outcome_id}/reference-closes"], "parameters" | "get">;
|
|
105
106
|
readonly "/v1/markets/{outcome_id}/recurring-round": Pick<SharedPaths["/v1/markets/{outcome_id}/recurring-round"], "parameters" | "get">;
|
|
107
|
+
readonly "/v1/markets/{outcome_id}/recurring-round/history": Pick<SharedPaths["/v1/markets/{outcome_id}/recurring-round/history"], "parameters" | "get">;
|
|
106
108
|
readonly "/v1/markets/{outcome_id}/score-timeline": Pick<SharedPaths["/v1/markets/{outcome_id}/score-timeline"], "parameters" | "get">;
|
|
107
109
|
readonly "/v1/questions/{question_id}/score-timeline": Pick<SharedPaths["/v1/questions/{question_id}/score-timeline"], "parameters" | "get">;
|
|
108
110
|
readonly "/v1/questions/{question_id}/recurring-round": Pick<SharedPaths["/v1/questions/{question_id}/recurring-round"], "parameters" | "get">;
|
|
@@ -136,4 +138,4 @@ export type paths = {
|
|
|
136
138
|
readonly "/v1/makers/{maker_id}/exposure": Pick<SharedPaths["/v1/makers/{maker_id}/exposure"], "parameters" | "get">;
|
|
137
139
|
readonly "/v1/makers/{maker_id}/performance": Pick<SharedPaths["/v1/makers/{maker_id}/performance"], "parameters" | "get">;
|
|
138
140
|
};
|
|
139
|
-
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" | "getAccountValue" | "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" | "getMarketDisplay" | "getMarketHistory" | "getMarketRecurringRound" | "getMarketReferenceCloses" | "getMarketScoreTimeline" | "getMarketStats" | "getMyGenesis" | "getMyReferralBonus" | "getOperation" | "getOutcomeMetadata" | "getOwnMaker" | "getPartnerAccountValue" | "getPartnerReport" | "getPerpMarks" | "getPicture" | "getProfitLeaderboard" | "getQuestion" | "getQuestionRecurringRound" | "getQuestionScoreTimeline" | "getRfq" | "getSeries" | "getSocialLeaderboard" | "getSocialPerson" | "getSocialPosition" | "getSuggestedCombo" | "getTaxonomy" | "getTrader" | "getTraderPnl" | "getUsernameAvailability" | "getVaultAgents" | "getVolumeLeaderboard" | "getWalletApproval" | "getWithdrawal" | "grantComboCopyAgent" | "grantVaultAgent" | "likeComment" | "listAccountActivity" | "listAccountPositions" | "listComboCopies" | "listComboFeed" | "listCommentReplies" | "listComments" | "listControlledMakers" | "listCopiedFills" | "listCopyTrades" | "listDiscovery" | "listFollowingFeed" | "listFollowingPositions" | "listFollows" | "listMakerActivity" | "listMakerPositions" | "listMakerQuoteHistory" | "listMarkets" | "listMyNotifications" | "listOperations" | "listPartnerFills" | "listPartnerWebhookEvents" | "listQuotes" | "listSocialActivity" | "listSocialFeed" | "listSocialPositions" | "listTraderPositions" | "listTraderTrades" | "markMyNotificationsRead" | "placeGolden" | "reactComment" | "recordAcquisition" | "recordGoldenTelegramClick" | "refreshPicture" | "removeUploadedPicture" | "requestComboCopyAgent" | "requestCoreCopyAgent" | "revokeComboCopyAgent" | "searchCatalog" | "setAvatar" | "setCopyAllocation" | "setCopySettings" | "setPublicProfile" | "setUsername" | "setXHandleShown" | "setXPictureShown" | "signGoldenGift" | "stream" | "streamMarkets" | "switchOffComboCopyAgent" | "switchOffCoreCopyAgent" | "unfollowTrader" | "unlikeComment" | "unlockGolden" | "unreactComment" | "uploadPicture">;
|
|
141
|
+
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" | "getAccountValue" | "getBalances" | "getCopyAgents" | "getCopyBudget" | "getCopySettings" | "getCopySummary" | "getCoreExit" | "getDeployment" | "getGenesis" | "getGolden" | "getGoldenMarkets" | "getGoldenOffer" | "getGoldenSuggestions" | "getHypercoreBalance" | "getHypercorePortfolio" | "getHypercoreSettlementCredits" | "getIdentity" | "getMakerActivity" | "getMakerCapital" | "getMakerExposure" | "getMakerPerformance" | "getMakerPosition" | "getMakerQuotes" | "getMakerTelemetry" | "getMakerVaultFundingTransaction" | "getMakerWithdrawal" | "getMarket" | "getMarketDataConfig" | "getMarketDefinitions" | "getMarketDisplay" | "getMarketHistory" | "getMarketRecurringRound" | "getMarketReferenceCloses" | "getMarketRoundHistory" | "getMarketScoreTimeline" | "getMarketStats" | "getMyGenesis" | "getMyReferralBonus" | "getOperation" | "getOutcomeMetadata" | "getOwnMaker" | "getPartnerAccountValue" | "getPartnerReport" | "getPerpMarks" | "getPicture" | "getProfitLeaderboard" | "getQuestion" | "getQuestionRecurringRound" | "getQuestionScoreTimeline" | "getRfq" | "getSeries" | "getSocialLeaderboard" | "getSocialPerson" | "getSocialPosition" | "getSuggestedCombo" | "getTaxonomy" | "getTrader" | "getTraderPnl" | "getUsernameAvailability" | "getVaultAgents" | "getVolumeLeaderboard" | "getWalletApproval" | "getWithdrawal" | "grantComboCopyAgent" | "grantVaultAgent" | "likeComment" | "listAccountActivity" | "listAccountPositions" | "listComboCopies" | "listComboFeed" | "listCommentReplies" | "listComments" | "listControlledMakers" | "listCopiedFills" | "listCopyTrades" | "listDiscovery" | "listFollowingFeed" | "listFollowingPositions" | "listFollows" | "listMakerActivity" | "listMakerPositions" | "listMakerQuoteHistory" | "listMarkets" | "listMyNotifications" | "listOperations" | "listPartnerFills" | "listPartnerWebhookEvents" | "listQuotes" | "listSocialActivity" | "listSocialFeed" | "listSocialPositions" | "listTraderPositions" | "listTraderTrades" | "markMyNotificationsRead" | "placeGolden" | "reactComment" | "recordAcquisition" | "recordGoldenTelegramClick" | "refreshPicture" | "removeUploadedPicture" | "requestComboCopyAgent" | "requestCoreCopyAgent" | "revokeComboCopyAgent" | "searchCatalog" | "setAvatar" | "setCopyAllocation" | "setCopySettings" | "setPublicProfile" | "setUsername" | "setXHandleShown" | "setXPictureShown" | "signGoldenGift" | "stream" | "streamMarkets" | "switchOffComboCopyAgent" | "switchOffCoreCopyAgent" | "unfollowTrader" | "unlikeComment" | "unlockGolden" | "unreactComment" | "uploadPicture">;
|
|
@@ -470,9 +470,10 @@ export declare const operationErrors: {
|
|
|
470
470
|
readonly getCopySummary: readonly ["UNAUTHENTICATED", "FORBIDDEN", "AUTHORIZATION_UNAVAILABLE", "RATE_LIMITED", "ORIGIN_REQUIRED", "IDENTITY_NOT_FOUND", "INVALID_QUERY", "CONTRACT_UNAVAILABLE"];
|
|
471
471
|
readonly getCoreExit: readonly ["UNAUTHENTICATED", "FORBIDDEN", "AUTHORIZATION_UNAVAILABLE", "DEPENDENCY_STALE", "RATE_LIMITED", "INVALID_REQUEST", "NOT_FOUND", "IDENTITY_NOT_FOUND"];
|
|
472
472
|
readonly getDeployment: readonly ["UNAUTHENTICATED", "FORBIDDEN", "AUTHORIZATION_UNAVAILABLE", "DEPENDENCY_STALE", "RATE_LIMITED", "INVALID_QUERY"];
|
|
473
|
+
readonly getGenesis: readonly ["UNAUTHENTICATED", "FORBIDDEN", "AUTHORIZATION_UNAVAILABLE", "RATE_LIMITED", "INVALID_QUERY", "CONTRACT_UNAVAILABLE"];
|
|
473
474
|
readonly getGolden: readonly ["UNAUTHENTICATED", "FORBIDDEN", "AUTHORIZATION_UNAVAILABLE", "DEPENDENCY_STALE", "RATE_LIMITED", "ORIGIN_REQUIRED", "IDENTITY_NOT_FOUND", "INVALID_QUERY"];
|
|
474
475
|
readonly getGoldenMarkets: readonly ["UNAUTHENTICATED", "FORBIDDEN", "AUTHORIZATION_UNAVAILABLE", "DEPENDENCY_STALE", "RATE_LIMITED", "ORIGIN_REQUIRED", "IDENTITY_NOT_FOUND", "INVALID_QUERY", "CONTRACT_UNAVAILABLE", "BROWSE_UNAVAILABLE"];
|
|
475
|
-
readonly getGoldenOffer: readonly ["UNAUTHENTICATED", "FORBIDDEN", "AUTHORIZATION_UNAVAILABLE", "DEPENDENCY_STALE", "RATE_LIMITED", "ORIGIN_REQUIRED", "IDENTITY_NOT_FOUND", "INVALID_QUERY", "NOT_FOUND", "CONTRACT_UNAVAILABLE", "FINANCIAL_ACTIONS_DISABLED"];
|
|
476
|
+
readonly getGoldenOffer: readonly ["UNAUTHENTICATED", "FORBIDDEN", "AUTHORIZATION_UNAVAILABLE", "DEPENDENCY_STALE", "RATE_LIMITED", "ORIGIN_REQUIRED", "IDENTITY_NOT_FOUND", "INVALID_QUERY", "NOT_FOUND", "QUOTE_EXPIRED", "CONTRACT_UNAVAILABLE", "FINANCIAL_ACTIONS_DISABLED"];
|
|
476
477
|
readonly getGoldenSuggestions: readonly ["UNAUTHENTICATED", "FORBIDDEN", "AUTHORIZATION_UNAVAILABLE", "DEPENDENCY_STALE", "RATE_LIMITED", "ORIGIN_REQUIRED", "IDENTITY_NOT_FOUND", "INVALID_QUERY", "CONTRACT_UNAVAILABLE", "GOLDEN_TICKET_NONE", "GOLDEN_UNLOCK_REQUIRED", "GOLDEN_TICKET_USED", "GOLDEN_TICKET_EXPIRED", "GOLDEN_PLACEMENT_IN_FLIGHT", "BROWSE_UNAVAILABLE"];
|
|
477
478
|
readonly getHypercoreBalance: readonly ["UNAUTHENTICATED", "FORBIDDEN", "AUTHORIZATION_UNAVAILABLE", "DEPENDENCY_STALE", "RATE_LIMITED", "ORIGIN_REQUIRED", "INVALID_REQUEST", "IDENTITY_NOT_FOUND"];
|
|
478
479
|
readonly getHypercorePortfolio: readonly ["UNAUTHENTICATED", "FORBIDDEN", "AUTHORIZATION_UNAVAILABLE", "DEPENDENCY_STALE", "RATE_LIMITED", "INVALID_REQUEST", "IDENTITY_NOT_FOUND"];
|
|
@@ -496,6 +497,7 @@ export declare const operationErrors: {
|
|
|
496
497
|
readonly getMarketHistory: readonly ["INVALID_REQUEST", "NOT_FOUND", "MARKET_DATA_UNAVAILABLE", "INVALID_QUERY", "INVALID_CURSOR"];
|
|
497
498
|
readonly getMarketRecurringRound: readonly ["INVALID_REQUEST", "NOT_FOUND", "MARKET_DATA_UNAVAILABLE", "RECURRING_DEFINITION_CONFLICT", "INVALID_QUERY"];
|
|
498
499
|
readonly getMarketReferenceCloses: readonly ["INVALID_REQUEST", "NOT_FOUND", "MARKET_DATA_UNAVAILABLE", "INVALID_QUERY", "INVALID_CURSOR", "STALE_CURSOR"];
|
|
500
|
+
readonly getMarketRoundHistory: readonly ["INVALID_REQUEST", "NOT_FOUND", "MARKET_DATA_UNAVAILABLE", "RECURRING_DEFINITION_CONFLICT", "INVALID_QUERY"];
|
|
499
501
|
readonly getMarketScoreTimeline: readonly ["INVALID_REQUEST", "NOT_FOUND", "MARKET_DATA_UNAVAILABLE", "INVALID_QUERY"];
|
|
500
502
|
readonly getMarketStats: readonly ["MARKET_DATA_UNAVAILABLE", "INVALID_QUERY"];
|
|
501
503
|
readonly getMyGenesis: readonly ["UNAUTHENTICATED", "FORBIDDEN", "AUTHORIZATION_UNAVAILABLE", "RATE_LIMITED", "ORIGIN_REQUIRED", "IDENTITY_NOT_FOUND", "INVALID_QUERY", "CONTRACT_UNAVAILABLE"];
|
package/dist/generated/errors.js
CHANGED
|
@@ -1026,6 +1026,14 @@ export const operationErrors = {
|
|
|
1026
1026
|
"RATE_LIMITED",
|
|
1027
1027
|
"INVALID_QUERY"
|
|
1028
1028
|
],
|
|
1029
|
+
"getGenesis": [
|
|
1030
|
+
"UNAUTHENTICATED",
|
|
1031
|
+
"FORBIDDEN",
|
|
1032
|
+
"AUTHORIZATION_UNAVAILABLE",
|
|
1033
|
+
"RATE_LIMITED",
|
|
1034
|
+
"INVALID_QUERY",
|
|
1035
|
+
"CONTRACT_UNAVAILABLE"
|
|
1036
|
+
],
|
|
1029
1037
|
"getGolden": [
|
|
1030
1038
|
"UNAUTHENTICATED",
|
|
1031
1039
|
"FORBIDDEN",
|
|
@@ -1058,6 +1066,7 @@ export const operationErrors = {
|
|
|
1058
1066
|
"IDENTITY_NOT_FOUND",
|
|
1059
1067
|
"INVALID_QUERY",
|
|
1060
1068
|
"NOT_FOUND",
|
|
1069
|
+
"QUOTE_EXPIRED",
|
|
1061
1070
|
"CONTRACT_UNAVAILABLE",
|
|
1062
1071
|
"FINANCIAL_ACTIONS_DISABLED"
|
|
1063
1072
|
],
|
|
@@ -1289,6 +1298,13 @@ export const operationErrors = {
|
|
|
1289
1298
|
"INVALID_CURSOR",
|
|
1290
1299
|
"STALE_CURSOR"
|
|
1291
1300
|
],
|
|
1301
|
+
"getMarketRoundHistory": [
|
|
1302
|
+
"INVALID_REQUEST",
|
|
1303
|
+
"NOT_FOUND",
|
|
1304
|
+
"MARKET_DATA_UNAVAILABLE",
|
|
1305
|
+
"RECURRING_DEFINITION_CONFLICT",
|
|
1306
|
+
"INVALID_QUERY"
|
|
1307
|
+
],
|
|
1292
1308
|
"getMarketScoreTimeline": [
|
|
1293
1309
|
"INVALID_REQUEST",
|
|
1294
1310
|
"NOT_FOUND",
|
|
@@ -27,6 +27,7 @@ export type paths = {
|
|
|
27
27
|
readonly "/v1/markets/{outcome_id}/history": Pick<SharedPaths["/v1/markets/{outcome_id}/history"], "parameters" | "get">;
|
|
28
28
|
readonly "/v1/markets/{outcome_id}/reference-closes": Pick<SharedPaths["/v1/markets/{outcome_id}/reference-closes"], "parameters" | "get">;
|
|
29
29
|
readonly "/v1/markets/{outcome_id}/recurring-round": Pick<SharedPaths["/v1/markets/{outcome_id}/recurring-round"], "parameters" | "get">;
|
|
30
|
+
readonly "/v1/markets/{outcome_id}/recurring-round/history": Pick<SharedPaths["/v1/markets/{outcome_id}/recurring-round/history"], "parameters" | "get">;
|
|
30
31
|
readonly "/v1/questions/{question_id}/recurring-round": Pick<SharedPaths["/v1/questions/{question_id}/recurring-round"], "parameters" | "get">;
|
|
31
32
|
readonly "/v1/series/{series_id}": Pick<SharedPaths["/v1/series/{series_id}"], "parameters" | "get">;
|
|
32
33
|
readonly "/v1/taxonomy": Pick<SharedPaths["/v1/taxonomy"], "parameters" | "get">;
|
|
@@ -45,4 +46,4 @@ export type paths = {
|
|
|
45
46
|
readonly "/v1/makers/{maker_id}/exposure": Pick<SharedPaths["/v1/makers/{maker_id}/exposure"], "parameters" | "get">;
|
|
46
47
|
readonly "/v1/makers/{maker_id}/performance": Pick<SharedPaths["/v1/makers/{maker_id}/performance"], "parameters" | "get">;
|
|
47
48
|
};
|
|
48
|
-
export type operations = Pick<SharedOperations, "cancelQuote" | "confirmQuote" | "createCollateralReduction" | "createQuote" | "getAccountActivity" | "getAccountPosition" | "getCollateralReduction" | "getDeployment" | "getMakerActivity" | "getMakerCapital" | "getMakerExposure" | "getMakerPerformance" | "getMakerPosition" | "getMakerQuotes" | "getMakerTelemetry" | "getMakerTelemetryPublication" | "getMakerVaultFundingTransaction" | "getMakerWithdrawal" | "getMarket" | "getMarketDisplay" | "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">;
|
|
49
|
+
export type operations = Pick<SharedOperations, "cancelQuote" | "confirmQuote" | "createCollateralReduction" | "createQuote" | "getAccountActivity" | "getAccountPosition" | "getCollateralReduction" | "getDeployment" | "getMakerActivity" | "getMakerCapital" | "getMakerExposure" | "getMakerPerformance" | "getMakerPosition" | "getMakerQuotes" | "getMakerTelemetry" | "getMakerTelemetryPublication" | "getMakerVaultFundingTransaction" | "getMakerWithdrawal" | "getMarket" | "getMarketDisplay" | "getMarketHistory" | "getMarketRecurringRound" | "getMarketReferenceCloses" | "getMarketRoundHistory" | "getOperation" | "getQuestion" | "getQuestionRecurringRound" | "getRfq" | "getSeries" | "getTaxonomy" | "listAccountActivity" | "listAccountPositions" | "listDiscovery" | "listMakerAcceptances" | "listMakerActivity" | "listMakerPositions" | "listMakerQuoteHistory" | "listMarkets" | "listOperations" | "listRfqs" | "publishMakerTelemetry" | "releaseQuoteLease" | "renewQuoteLease" | "searchCatalog" | "stream" | "submitMakerSelfFundedTransaction">;
|
|
@@ -888,7 +888,7 @@ export type paths = {
|
|
|
888
888
|
};
|
|
889
889
|
/**
|
|
890
890
|
* List golden suggestions
|
|
891
|
-
* @description Up to three ready-made golden Combos from different games, for an account whose golden ticket is available: 5 legs from golden markets at
|
|
891
|
+
* @description Up to three ready-made golden Combos from different games, for an account whose golden ticket is available: 5 legs from golden markets at this account's ticket's stake, one per fair-multiplier band, biggest first. Each shows the best house-maker offer the promo account holds on it at that stake right now, live while any holder of a ticket at that stake reads golden Combos; a five with no such offer, or one paying under the golden value floor, is left out. Picking one only fills the slip; place it through POST /v1/me/golden/rfqs, which asks afresh, so the slip's own offer is what places.
|
|
892
892
|
*/
|
|
893
893
|
readonly get: operations["getGoldenSuggestions"];
|
|
894
894
|
readonly put?: never;
|
|
@@ -910,7 +910,7 @@ export type paths = {
|
|
|
910
910
|
readonly put?: never;
|
|
911
911
|
/**
|
|
912
912
|
* Open a golden RFQ
|
|
913
|
-
* @description Opens the Totalis promo account's RFQ for this account's golden Combo: exactly 5 legs, each a golden market, at
|
|
913
|
+
* @description Opens the Totalis promo account's RFQ for this account's golden Combo: exactly 5 legs, each a golden market, at the ticket's stake, which Totalis pays. Makers quote it like any RFQ; read the best Totalis maker quote with GET /v1/me/golden/rfqs/{rfq_id}/offer.
|
|
914
914
|
*/
|
|
915
915
|
readonly post: operations["createGoldenRfq"];
|
|
916
916
|
readonly delete?: never;
|
|
@@ -928,7 +928,7 @@ export type paths = {
|
|
|
928
928
|
};
|
|
929
929
|
/**
|
|
930
930
|
* Get the golden offer
|
|
931
|
-
* @description The best live Totalis maker quote on this account's golden RFQ, what it pays on a win, and the gift Transfer this account's wallet signs to receive it. A new quote names another position and needs a new signature. `offer` is null until a Totalis maker quotes. `rfq` is where the RFQ stands, as Get RFQ says, so a client polls this alone.
|
|
931
|
+
* @description The best live Totalis maker quote on this account's golden RFQ, what it pays on a win, and the gift Transfer this account's wallet signs to receive it. A new quote names another position and needs a new signature. `offer` is null until a Totalis maker quotes. `rfq` is where the RFQ stands, as Get RFQ says, so a client polls this alone. QUOTE_EXPIRED when the RFQ is not at the ticket's stake, so nothing on it can place; DEPENDENCY_STALE while the ticket's stake is not recorded yet.
|
|
932
932
|
*/
|
|
933
933
|
readonly get: operations["getGoldenOffer"];
|
|
934
934
|
readonly put?: never;
|
|
@@ -1467,6 +1467,26 @@ export type paths = {
|
|
|
1467
1467
|
readonly patch?: never;
|
|
1468
1468
|
readonly trace?: never;
|
|
1469
1469
|
};
|
|
1470
|
+
readonly "/v1/genesis": {
|
|
1471
|
+
readonly parameters: {
|
|
1472
|
+
readonly query?: never;
|
|
1473
|
+
readonly header?: never;
|
|
1474
|
+
readonly path?: never;
|
|
1475
|
+
readonly cookie?: never;
|
|
1476
|
+
};
|
|
1477
|
+
/**
|
|
1478
|
+
* Get Genesis Account terms
|
|
1479
|
+
* @description The public Genesis Account program terms, without account progress or side effects. Anyone can read them without signing in, from any origin; a supplied credential must still authenticate. Uses the same terms as GET /v1/me/genesis. Clients hide signup promotions at signup_before, even while this response is cached; terms remain readable after signup closes. Answers CONTRACT_UNAVAILABLE where Genesis Accounts are off.
|
|
1480
|
+
*/
|
|
1481
|
+
readonly get: operations["getGenesis"];
|
|
1482
|
+
readonly put?: never;
|
|
1483
|
+
readonly post?: never;
|
|
1484
|
+
readonly delete?: never;
|
|
1485
|
+
readonly options?: never;
|
|
1486
|
+
readonly head?: never;
|
|
1487
|
+
readonly patch?: never;
|
|
1488
|
+
readonly trace?: never;
|
|
1489
|
+
};
|
|
1470
1490
|
readonly "/v1/me/genesis": {
|
|
1471
1491
|
readonly parameters: {
|
|
1472
1492
|
readonly query?: never;
|
|
@@ -2318,6 +2338,32 @@ export type paths = {
|
|
|
2318
2338
|
readonly patch?: never;
|
|
2319
2339
|
readonly trace?: never;
|
|
2320
2340
|
};
|
|
2341
|
+
readonly "/v1/markets/{outcome_id}/recurring-round/history": {
|
|
2342
|
+
readonly parameters: {
|
|
2343
|
+
readonly query?: never;
|
|
2344
|
+
readonly header?: never;
|
|
2345
|
+
readonly path: {
|
|
2346
|
+
/**
|
|
2347
|
+
* @description HIP-4 outcome ID of the market, as a decimal string.
|
|
2348
|
+
* @example 1209
|
|
2349
|
+
*/
|
|
2350
|
+
readonly outcome_id: components["parameters"]["OutcomeId"];
|
|
2351
|
+
};
|
|
2352
|
+
readonly cookie?: never;
|
|
2353
|
+
};
|
|
2354
|
+
/**
|
|
2355
|
+
* Get market round history
|
|
2356
|
+
* @description Earlier rounds of the recurring series the market's round belongs to, newest first, each with its markets' native results, for a past-results strip. The same series as the recurring-round route: a native series or the market's template stream, one round per period step. Results come from native result state, never from a price.
|
|
2357
|
+
*/
|
|
2358
|
+
readonly get: operations["getMarketRoundHistory"];
|
|
2359
|
+
readonly put?: never;
|
|
2360
|
+
readonly post?: never;
|
|
2361
|
+
readonly delete?: never;
|
|
2362
|
+
readonly options?: never;
|
|
2363
|
+
readonly head?: never;
|
|
2364
|
+
readonly patch?: never;
|
|
2365
|
+
readonly trace?: never;
|
|
2366
|
+
};
|
|
2321
2367
|
readonly "/v1/markets/{outcome_id}/score-timeline": {
|
|
2322
2368
|
readonly parameters: {
|
|
2323
2369
|
readonly query?: never;
|
|
@@ -3797,7 +3843,7 @@ export type components = {
|
|
|
3797
3843
|
readonly unlocked_at: null | components["schemas"]["$defs-Timestamp"];
|
|
3798
3844
|
/** @description When this account first pressed Join Telegram (POST /v1/me/golden/telegram-click); null before. A record of the press only: it proves no membership and gates nothing. */
|
|
3799
3845
|
readonly telegram_clicked_at: null | components["schemas"]["$defs-Timestamp"];
|
|
3800
|
-
/** @description The gross stake Totalis pays, in USDC base units (6 decimals). */
|
|
3846
|
+
/** @description The gross stake Totalis pays, in USDC base units (6 decimals), from 1 to 10 USDC. The unlock fixes it for good; until then it is what unlocking would take now from the invite code, whose value Totalis may change. */
|
|
3801
3847
|
readonly stake: components["schemas"]["$defs-Amount"];
|
|
3802
3848
|
/** @constant */
|
|
3803
3849
|
readonly stake_asset: "USDC";
|
|
@@ -3863,6 +3909,7 @@ export type components = {
|
|
|
3863
3909
|
readonly legs: readonly components["schemas"]["$defs-Leg"][];
|
|
3864
3910
|
/** @description Browse contract 4 discovery card each leg was picked from, in leg order, as read when the five was composed. Lets a client draw a leg that is not on its own page; its prices are not current. */
|
|
3865
3911
|
readonly cards: readonly components["schemas"]["Card"][];
|
|
3912
|
+
/** @description The reading account's ticket's stake, in USDC base units. */
|
|
3866
3913
|
readonly stake: components["schemas"]["$defs-Amount"];
|
|
3867
3914
|
/** @description What the best house-maker offer on this five pays on a win now, after the taker and profit fees, in USDC base units. An indication: the offer is the promo account's, so the slip asks for its own. */
|
|
3868
3915
|
readonly payout: components["schemas"]["$defs-Amount"];
|
|
@@ -6570,6 +6617,42 @@ export type components = {
|
|
|
6570
6617
|
*/
|
|
6571
6618
|
readonly quality?: "ALL_MIDS_FALLBACK";
|
|
6572
6619
|
});
|
|
6620
|
+
readonly PastRoundMarket: {
|
|
6621
|
+
/** @description Hyperliquid outcome ID of the round's market. */
|
|
6622
|
+
readonly outcome_id: components["schemas"]["UInt32String"];
|
|
6623
|
+
/**
|
|
6624
|
+
* @description As in RecurringRoundMarket.
|
|
6625
|
+
* @enum {string}
|
|
6626
|
+
*/
|
|
6627
|
+
readonly role: "STANDALONE" | "NAMED" | "FALLBACK";
|
|
6628
|
+
/** @description Bucket position the child market states for itself; null unless the role is NAMED. */
|
|
6629
|
+
readonly index: number | null;
|
|
6630
|
+
/** @description The market's terminal native result once recorded, else its current one while listed, else UNAVAILABLE with NOT_QUERIED. NUMERIC_RECORDED with yes_factor_numerator 100000000 settled YES, 0 settled NO, anything between pays fractionally; a result without a factor names no winner. */
|
|
6631
|
+
readonly result: components["schemas"]["Result"];
|
|
6632
|
+
};
|
|
6633
|
+
readonly PastRound: {
|
|
6634
|
+
/** @description Exact deployer settlement instant in Unix seconds. */
|
|
6635
|
+
readonly expiry: components["schemas"]["PositiveInt64"];
|
|
6636
|
+
/**
|
|
6637
|
+
* @description RECORDED: Totalis recorded the round; only it carries a definition and markets. NOT_RECORDED: an expiry on the series' cadence with no recorded round of the series, for a stream also one whose round qualified no period (several markets sharing an expiry included); it never claims Hyperliquid published none. CONFLICTED: a native round was observed at the expiry but is withheld because its recorded definition conflicts.
|
|
6638
|
+
* @enum {string}
|
|
6639
|
+
*/
|
|
6640
|
+
readonly state: "RECORDED" | "NOT_RECORDED" | "CONFLICTED";
|
|
6641
|
+
/** @description As in RecurringRound; null unless state is RECORDED. */
|
|
6642
|
+
readonly target_price: components["schemas"]["RecurringPrice"] | null;
|
|
6643
|
+
/** @description As in RecurringRound; null unless state is RECORDED. */
|
|
6644
|
+
readonly price_thresholds: readonly components["schemas"]["RecurringPrice"][] | null;
|
|
6645
|
+
/** @description Parent question of a recorded bucket round; null otherwise. */
|
|
6646
|
+
readonly native_question_id: components["schemas"]["RealQuestionId"] | null;
|
|
6647
|
+
/** @description Markets of a RECORDED round with their results, in RecurringRound order; empty for any other state. */
|
|
6648
|
+
readonly markets: readonly components["schemas"]["PastRoundMarket"][];
|
|
6649
|
+
};
|
|
6650
|
+
readonly RecurringRoundHistory: {
|
|
6651
|
+
/** @description Recurring series of the requested round, as in RecurringRoundContext. */
|
|
6652
|
+
readonly series: components["schemas"]["RecurringSeries"];
|
|
6653
|
+
/** @description The series' expiries before the requested round's, newest first, one per period step back from it: 8 of them when older rounds are recorded, else down to the oldest recorded round. */
|
|
6654
|
+
readonly rounds: readonly components["schemas"]["PastRound"][];
|
|
6655
|
+
};
|
|
6573
6656
|
readonly ScoreTimelinePoint: {
|
|
6574
6657
|
/** @description Wall-clock time of the scoring play. A play the feed stamps up to a minute before the one listed ahead of it takes that one's time, so times never decrease. */
|
|
6575
6658
|
readonly at: components["schemas"]["$defs-Timestamp"];
|
|
@@ -9654,6 +9737,7 @@ export interface operations {
|
|
|
9654
9737
|
readonly 401: components["responses"]["Error"];
|
|
9655
9738
|
readonly 403: components["responses"]["Error"];
|
|
9656
9739
|
readonly 404: components["responses"]["Error"];
|
|
9740
|
+
readonly 409: components["responses"]["Error"];
|
|
9657
9741
|
readonly 429: components["responses"]["RateLimited"];
|
|
9658
9742
|
readonly 503: components["responses"]["Unavailable"];
|
|
9659
9743
|
};
|
|
@@ -10964,6 +11048,40 @@ export interface operations {
|
|
|
10964
11048
|
readonly 503: components["responses"]["Unavailable"];
|
|
10965
11049
|
};
|
|
10966
11050
|
};
|
|
11051
|
+
readonly getGenesis: {
|
|
11052
|
+
readonly parameters: {
|
|
11053
|
+
readonly query?: never;
|
|
11054
|
+
readonly header?: never;
|
|
11055
|
+
readonly path?: never;
|
|
11056
|
+
readonly cookie?: never;
|
|
11057
|
+
};
|
|
11058
|
+
readonly requestBody?: never;
|
|
11059
|
+
readonly responses: {
|
|
11060
|
+
/** @description Genesis program terms */
|
|
11061
|
+
readonly 200: {
|
|
11062
|
+
headers: {
|
|
11063
|
+
/** @description Public terms may be cached for 60 seconds. */
|
|
11064
|
+
readonly "Cache-Control"?: "public, max-age=60";
|
|
11065
|
+
readonly [name: string]: unknown;
|
|
11066
|
+
};
|
|
11067
|
+
content: {
|
|
11068
|
+
readonly "application/json": {
|
|
11069
|
+
/** @description An account created at or after this never earns Genesis. */
|
|
11070
|
+
readonly signup_before: components["schemas"]["$defs-Timestamp"];
|
|
11071
|
+
/** @description Only Combos accepted in a block before this count, and X must first be bound before it. */
|
|
11072
|
+
readonly deadline: components["schemas"]["$defs-Timestamp"];
|
|
11073
|
+
/** @description An account must stake more than this of its own money on Combos, in USDC base units (10^-6). */
|
|
11074
|
+
readonly required_stake: components["schemas"]["$defs-Amount"];
|
|
11075
|
+
};
|
|
11076
|
+
};
|
|
11077
|
+
};
|
|
11078
|
+
readonly 400: components["responses"]["Error"];
|
|
11079
|
+
readonly 401: components["responses"]["Error"];
|
|
11080
|
+
readonly 403: components["responses"]["Error"];
|
|
11081
|
+
readonly 429: components["responses"]["RateLimited"];
|
|
11082
|
+
readonly 503: components["responses"]["Unavailable"];
|
|
11083
|
+
};
|
|
11084
|
+
};
|
|
10967
11085
|
readonly getMyGenesis: {
|
|
10968
11086
|
readonly parameters: {
|
|
10969
11087
|
readonly query?: never;
|
|
@@ -12802,6 +12920,45 @@ export interface operations {
|
|
|
12802
12920
|
readonly 503: components["responses"]["Unavailable"];
|
|
12803
12921
|
};
|
|
12804
12922
|
};
|
|
12923
|
+
readonly getMarketRoundHistory: {
|
|
12924
|
+
readonly parameters: {
|
|
12925
|
+
readonly query?: never;
|
|
12926
|
+
readonly header?: never;
|
|
12927
|
+
readonly path: {
|
|
12928
|
+
/**
|
|
12929
|
+
* @description HIP-4 outcome ID of the market, as a decimal string.
|
|
12930
|
+
* @example 1209
|
|
12931
|
+
*/
|
|
12932
|
+
readonly outcome_id: components["parameters"]["OutcomeId"];
|
|
12933
|
+
};
|
|
12934
|
+
readonly cookie?: never;
|
|
12935
|
+
};
|
|
12936
|
+
readonly requestBody?: never;
|
|
12937
|
+
readonly responses: {
|
|
12938
|
+
/** @description Up to 8 earlier rounds of the series. Only a full answer, 8 rounds with none NOT_RECORDED and every result terminal, may be shared for a day; any other, a shorter or gapped one included, for 5 seconds */
|
|
12939
|
+
readonly 200: {
|
|
12940
|
+
headers: {
|
|
12941
|
+
readonly "Cache-Control"?: "public, max-age=86400" | "public, max-age=5";
|
|
12942
|
+
readonly ETag?: string;
|
|
12943
|
+
readonly [name: string]: unknown;
|
|
12944
|
+
};
|
|
12945
|
+
content: {
|
|
12946
|
+
readonly "application/json": components["schemas"]["RecurringRoundHistory"];
|
|
12947
|
+
};
|
|
12948
|
+
};
|
|
12949
|
+
/** @description Not modified: the If-None-Match ETag matches */
|
|
12950
|
+
readonly 304: {
|
|
12951
|
+
headers: {
|
|
12952
|
+
readonly [name: string]: unknown;
|
|
12953
|
+
};
|
|
12954
|
+
content?: never;
|
|
12955
|
+
};
|
|
12956
|
+
readonly 400: components["responses"]["Error"];
|
|
12957
|
+
readonly 404: components["responses"]["Error"];
|
|
12958
|
+
readonly 409: components["responses"]["Error"];
|
|
12959
|
+
readonly 503: components["responses"]["Unavailable"];
|
|
12960
|
+
};
|
|
12961
|
+
};
|
|
12805
12962
|
readonly getMarketScoreTimeline: {
|
|
12806
12963
|
readonly parameters: {
|
|
12807
12964
|
readonly query?: never;
|
|
@@ -588,12 +588,14 @@ export type components = {
|
|
|
588
588
|
readonly scoreboards?: boolean;
|
|
589
589
|
/** @description Opt in to network frames: the HyperEVM gas price against the level Totalis accepts quotes at, after each snapshot, then on every change the app acts on. Without it the socket gets no network frame. */
|
|
590
590
|
readonly network?: boolean;
|
|
591
|
-
/** @description Opt in to the live lane: up to 8 outcome IDs whose order book the socket follows from the start, independent of outcome_ids. This is interest revision 0. With books, marks or
|
|
591
|
+
/** @description Opt in to the live lane: up to 8 outcome IDs whose order book the socket follows from the start, independent of outcome_ids. This is interest revision 0. With books, marks, mark_ticks or trades present, even empty, the subscriptionResponse carries live and the socket accepts setInterest and resnapshot frames; without all four it gets no live-lane frame and accepts no frame after its subscribe. */
|
|
592
592
|
readonly books?: readonly components["schemas"]["UInt32String"][];
|
|
593
593
|
/** @description Opt in to the live lane: up to 8 perps whose mark the socket follows for a chart from the start (markSnapshot with recent recorded runs, mark per node read, markSealed). Part of interest revision 0. */
|
|
594
594
|
readonly marks?: readonly components["schemas"]["MarketPerpCoin"][];
|
|
595
595
|
/** @description Opt in to the live lane: up to 64 perps whose live mark the socket follows for cards and rows, as markTicks frames only, without recorded history. Part of interest revision 0. */
|
|
596
596
|
readonly mark_ticks?: readonly components["schemas"]["MarketPerpCoin"][];
|
|
597
|
+
/** @description Opt in to the live lane: up to 64 outcome IDs whose taker orders the socket follows (tradesSnapshot, then trades frames), independent of outcome_ids. Part of interest revision 0. */
|
|
598
|
+
readonly trades?: readonly components["schemas"]["UInt32String"][];
|
|
597
599
|
/** @description bookProgress cadence for revision 0; 1000 when absent. */
|
|
598
600
|
readonly progress_interval_ms?: components["schemas"]["MarketProgressInterval"];
|
|
599
601
|
};
|
|
@@ -644,6 +646,8 @@ export type components = {
|
|
|
644
646
|
readonly marks: readonly components["schemas"]["MarketPerpCoin"][];
|
|
645
647
|
/** @description Every perp the socket follows as markTicks from this revision on. More than max_mark_ticks closes the socket with SUBSCRIPTION_DENIED. */
|
|
646
648
|
readonly mark_ticks: readonly components["schemas"]["MarketPerpCoin"][];
|
|
649
|
+
/** @description Every outcome whose taker orders the socket follows from this revision on; absent is none, so a client that never names trades is unchanged. More than 64 closes the socket with SUBSCRIPTION_DENIED. */
|
|
650
|
+
readonly trades?: readonly components["schemas"]["UInt32String"][];
|
|
647
651
|
/** @description bookProgress cadence from this revision on. */
|
|
648
652
|
readonly progress_interval_ms: components["schemas"]["MarketProgressInterval"];
|
|
649
653
|
};
|
|
@@ -663,7 +667,7 @@ export type components = {
|
|
|
663
667
|
* @constant
|
|
664
668
|
*/
|
|
665
669
|
readonly channel: "interest";
|
|
666
|
-
/** @description Every live-lane frame after this one belongs to revision rev. A book or
|
|
670
|
+
/** @description Every live-lane frame after this one belongs to revision rev. A book, perp or trade outcome of rev that was not in the previously acknowledged revision gets its bookSnapshot, markSnapshot or tradesSnapshot next (ticked perps their first markTicks); one in both keeps its chain. Drop frames for anything rev does not follow. */
|
|
667
671
|
readonly data: {
|
|
668
672
|
/** @description The revision applied from this frame on. */
|
|
669
673
|
readonly rev: number;
|
|
@@ -883,6 +887,68 @@ export type components = {
|
|
|
883
887
|
readonly missing: readonly components["schemas"]["MarketPerpCoin"][];
|
|
884
888
|
};
|
|
885
889
|
};
|
|
890
|
+
/** @description One taker order's execution on one outcome token in one HyperCore block: every fill of the order that crossed the book in that block (dir Buy or Sell, crossed), summed exactly. Makers' sides, settlements, splits, merges and negations are never orders. A Hyperliquid order executes in the block that includes it, so an order is one event; a part that rests and is hit later is a maker fill and not repeated. Two orders of one trader in one block stay two. */
|
|
891
|
+
readonly MarketTakerOrder: {
|
|
892
|
+
/** @description Unique per taker order, token and block: height, Hyperliquid order ID, coin number and side letter (B buy, A sell). Merge by it. */
|
|
893
|
+
readonly id: string;
|
|
894
|
+
/** @description The outcome traded. */
|
|
895
|
+
readonly outcome_id: components["schemas"]["UInt32String"];
|
|
896
|
+
/** @description The outcome token the taker's order traded, YES or NO, also where its fills took liquidity from the other token's book: selling YES into NO bids is a YES sale. */
|
|
897
|
+
readonly market_side: components["schemas"]["Side"];
|
|
898
|
+
/**
|
|
899
|
+
* @description BUY when the taker acquired market_side's token, SELL when it disposed of it. A chart of the YES price reads BUY NO as bearish.
|
|
900
|
+
* @enum {unknown}
|
|
901
|
+
*/
|
|
902
|
+
readonly direction: "BUY" | "SELL";
|
|
903
|
+
/** @description Exact sum of the order's filled shares on the token in this block. */
|
|
904
|
+
readonly shares: string;
|
|
905
|
+
/** @description notional / shares rounded to 8 decimals, halves away from zero; display only, the exact numbers are notional and shares. */
|
|
906
|
+
readonly avg_price: string;
|
|
907
|
+
/** @description Gross trade size in quote: exact sum of price × shares over the order's fills, before fees, the same for buys and sells. */
|
|
908
|
+
readonly notional: string;
|
|
909
|
+
/** @description The asset notional and avg_price are in: the outcome's quote asset, as Hyperliquid names it on the fills (USDC for every outcome Totalis supports). Null when the fills do not name one. */
|
|
910
|
+
readonly quote: string | null;
|
|
911
|
+
/** @description HyperCore block height of the fills: the order executed in this block. */
|
|
912
|
+
readonly height: components["schemas"]["MarketHeight"];
|
|
913
|
+
/** @description Block time, to the millisecond. */
|
|
914
|
+
readonly time: components["schemas"]["Timestamp"];
|
|
915
|
+
/** @description Hyperliquid order ID of the taker's order. */
|
|
916
|
+
readonly oid: number;
|
|
917
|
+
/** @description The taker's HyperCore address, lowercase, as public on Hyperliquid. Nothing else about the trader is attached. */
|
|
918
|
+
readonly taker: string;
|
|
919
|
+
};
|
|
920
|
+
readonly MarketTradesSnapshotFrame: {
|
|
921
|
+
/**
|
|
922
|
+
* @description Frame discriminator, always tradesSnapshot.
|
|
923
|
+
* @constant
|
|
924
|
+
*/
|
|
925
|
+
readonly channel: "tradesSnapshot";
|
|
926
|
+
/** @description Sent when a revision adds the outcome to trades, when the trade source changes or is lost, and in place of trades frames a slow socket could not take. Merge its orders into local state by id. */
|
|
927
|
+
readonly data: {
|
|
928
|
+
/** @description The outcome these orders traded. */
|
|
929
|
+
readonly outcome_id: components["schemas"]["UInt32String"];
|
|
930
|
+
/** @description Every taker order of the outcome at or above this height is in orders or follows in trades frames; below it, orders may be missing. It starts about five minutes before the source started and moves up past a hole in the source, past the 50 orders kept, and for an outcome with no order in about the last hour, to about an hour back. Null while Totalis has no trade source, also between moving to another source and that source's first state: then nothing is claimed complete, and a later tradesSnapshot says from where it is again. */
|
|
931
|
+
readonly complete_from_height: components["schemas"]["MarketHeight"] | null;
|
|
932
|
+
/** @description The outcome's latest taker orders the source holds, newest block first and each block's orders in execution order, as its trades frame carries them: up to 50 in whole blocks, more only when its newest block alone held more. Merge by id; never animate them as new trades. */
|
|
933
|
+
readonly orders: readonly components["schemas"]["MarketTakerOrder"][];
|
|
934
|
+
};
|
|
935
|
+
};
|
|
936
|
+
readonly MarketTradesFrame: {
|
|
937
|
+
/**
|
|
938
|
+
* @description Frame discriminator, always trades.
|
|
939
|
+
* @constant
|
|
940
|
+
*/
|
|
941
|
+
readonly channel: "trades";
|
|
942
|
+
/** @description New taker orders on a followed outcome, one frame per block that had any, as soon as the block reaches Totalis; nothing is batched. A socket that cannot take one gets a tradesSnapshot of the outcome instead, never a silent gap. These are the trades to animate. */
|
|
943
|
+
readonly data: {
|
|
944
|
+
/** @description The outcome traded. */
|
|
945
|
+
readonly outcome_id: components["schemas"]["UInt32String"];
|
|
946
|
+
/** @description The block every order here executed in. */
|
|
947
|
+
readonly height: components["schemas"]["MarketHeight"];
|
|
948
|
+
/** @description The outcome's taker orders in the block, in execution order, however many it held. */
|
|
949
|
+
readonly orders: readonly components["schemas"]["MarketTakerOrder"][];
|
|
950
|
+
};
|
|
951
|
+
};
|
|
886
952
|
readonly MarketNetworkFrame: {
|
|
887
953
|
/**
|
|
888
954
|
* @description Frame discriminator, always network.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export declare const sdkVersion = "
|
|
2
|
-
export declare const openapiSha256 = "
|
|
3
|
-
export declare const realtimeSha256 = "
|
|
1
|
+
export declare const sdkVersion = "244.0.0-rounds-live-trades";
|
|
2
|
+
export declare const openapiSha256 = "5be33e1cd7cb9262f11128c7a87ffd725eb954196764d3a19213fd624f99a4a9";
|
|
3
|
+
export declare const realtimeSha256 = "69596dce99d3ebcd4bbac4587e711017b37ce7e7830940c76b1449d78c070da3";
|
|
4
4
|
export declare const jsonSchemaSha256: {
|
|
5
5
|
readonly "account.schema.json": "e6cd5a75429d074f23bd7f6ffd370fa59d0e3f7dbd6aef6433e5ba0d21b5baeb";
|
|
6
6
|
readonly "comments.schema.json": "5773471b4442ba9d8af0dc012d71561baaf50d0e1c2571039241780848edb4a4";
|
|
@@ -12,14 +12,14 @@ export declare const jsonSchemaSha256: {
|
|
|
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": "8fbe5fab071fb2c99328a48abaeb436d514eb7c36c7d19dde465862c04a6129e";
|
|
16
16
|
readonly "product-metadata.schema.json": "7c8ffbde878a0aedaed16814fcfd2e80038054b140886cc8736bb7b508042631";
|
|
17
17
|
readonly "quote.schema.json": "52ee1f4708c8b1504e4cd2f2f9279e14c8ec8aeacac1f491441ae0e15ac3c71a";
|
|
18
|
-
readonly "realtime.schema.json": "
|
|
18
|
+
readonly "realtime.schema.json": "69596dce99d3ebcd4bbac4587e711017b37ce7e7830940c76b1449d78c070da3";
|
|
19
19
|
readonly "social.schema.json": "de0ddadf418a41d2c2cbe714afb5c83947cd34e05b8082f0ba016e18e0b3cd51";
|
|
20
20
|
};
|
|
21
21
|
export declare const operations: {
|
|
22
|
-
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", "getAccountValue", "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", "getMarketDisplay", "getMarketHistory", "getMarketRecurringRound", "getMarketReferenceCloses", "getMarketScoreTimeline", "getMarketStats", "getMyGenesis", "getMyReferralBonus", "getOperation", "getOutcomeMetadata", "getOwnMaker", "getPartnerAccountValue", "getPartnerReport", "getPerpMarks", "getPicture", "getProfitLeaderboard", "getQuestion", "getQuestionRecurringRound", "getQuestionScoreTimeline", "getRfq", "getSeries", "getSocialLeaderboard", "getSocialPerson", "getSocialPosition", "getSuggestedCombo", "getTaxonomy", "getTrader", "getTraderPnl", "getUsernameAvailability", "getVaultAgents", "getVolumeLeaderboard", "getWalletApproval", "getWithdrawal", "grantComboCopyAgent", "grantVaultAgent", "likeComment", "listAccountActivity", "listAccountPositions", "listComboCopies", "listComboFeed", "listCommentReplies", "listComments", "listControlledMakers", "listCopiedFills", "listCopyTrades", "listDiscovery", "listFollowingFeed", "listFollowingPositions", "listFollows", "listMakerActivity", "listMakerPositions", "listMakerQuoteHistory", "listMarkets", "listMyNotifications", "listOperations", "listPartnerFills", "listPartnerWebhookEvents", "listQuotes", "listSocialActivity", "listSocialFeed", "listSocialPositions", "listTraderPositions", "listTraderTrades", "markMyNotificationsRead", "placeGolden", "reactComment", "recordAcquisition", "recordGoldenTelegramClick", "refreshPicture", "removeUploadedPicture", "requestComboCopyAgent", "requestCoreCopyAgent", "revokeComboCopyAgent", "searchCatalog", "setAvatar", "setCopyAllocation", "setCopySettings", "setPublicProfile", "setUsername", "setXHandleShown", "setXPictureShown", "signGoldenGift", "stream", "streamMarkets", "switchOffComboCopyAgent", "switchOffCoreCopyAgent", "unfollowTrader", "unlikeComment", "unlockGolden", "unreactComment", "uploadPicture"];
|
|
23
|
-
readonly maker: readonly ["cancelQuote", "confirmQuote", "createCollateralReduction", "createQuote", "getAccountActivity", "getAccountPosition", "getCollateralReduction", "getDeployment", "getMakerActivity", "getMakerCapital", "getMakerExposure", "getMakerPerformance", "getMakerPosition", "getMakerQuotes", "getMakerTelemetry", "getMakerTelemetryPublication", "getMakerVaultFundingTransaction", "getMakerWithdrawal", "getMarket", "getMarketDisplay", "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"];
|
|
22
|
+
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", "getAccountValue", "getBalances", "getCopyAgents", "getCopyBudget", "getCopySettings", "getCopySummary", "getCoreExit", "getDeployment", "getGenesis", "getGolden", "getGoldenMarkets", "getGoldenOffer", "getGoldenSuggestions", "getHypercoreBalance", "getHypercorePortfolio", "getHypercoreSettlementCredits", "getIdentity", "getMakerActivity", "getMakerCapital", "getMakerExposure", "getMakerPerformance", "getMakerPosition", "getMakerQuotes", "getMakerTelemetry", "getMakerVaultFundingTransaction", "getMakerWithdrawal", "getMarket", "getMarketDataConfig", "getMarketDefinitions", "getMarketDisplay", "getMarketHistory", "getMarketRecurringRound", "getMarketReferenceCloses", "getMarketRoundHistory", "getMarketScoreTimeline", "getMarketStats", "getMyGenesis", "getMyReferralBonus", "getOperation", "getOutcomeMetadata", "getOwnMaker", "getPartnerAccountValue", "getPartnerReport", "getPerpMarks", "getPicture", "getProfitLeaderboard", "getQuestion", "getQuestionRecurringRound", "getQuestionScoreTimeline", "getRfq", "getSeries", "getSocialLeaderboard", "getSocialPerson", "getSocialPosition", "getSuggestedCombo", "getTaxonomy", "getTrader", "getTraderPnl", "getUsernameAvailability", "getVaultAgents", "getVolumeLeaderboard", "getWalletApproval", "getWithdrawal", "grantComboCopyAgent", "grantVaultAgent", "likeComment", "listAccountActivity", "listAccountPositions", "listComboCopies", "listComboFeed", "listCommentReplies", "listComments", "listControlledMakers", "listCopiedFills", "listCopyTrades", "listDiscovery", "listFollowingFeed", "listFollowingPositions", "listFollows", "listMakerActivity", "listMakerPositions", "listMakerQuoteHistory", "listMarkets", "listMyNotifications", "listOperations", "listPartnerFills", "listPartnerWebhookEvents", "listQuotes", "listSocialActivity", "listSocialFeed", "listSocialPositions", "listTraderPositions", "listTraderTrades", "markMyNotificationsRead", "placeGolden", "reactComment", "recordAcquisition", "recordGoldenTelegramClick", "refreshPicture", "removeUploadedPicture", "requestComboCopyAgent", "requestCoreCopyAgent", "revokeComboCopyAgent", "searchCatalog", "setAvatar", "setCopyAllocation", "setCopySettings", "setPublicProfile", "setUsername", "setXHandleShown", "setXPictureShown", "signGoldenGift", "stream", "streamMarkets", "switchOffComboCopyAgent", "switchOffCoreCopyAgent", "unfollowTrader", "unlikeComment", "unlockGolden", "unreactComment", "uploadPicture"];
|
|
23
|
+
readonly maker: readonly ["cancelQuote", "confirmQuote", "createCollateralReduction", "createQuote", "getAccountActivity", "getAccountPosition", "getCollateralReduction", "getDeployment", "getMakerActivity", "getMakerCapital", "getMakerExposure", "getMakerPerformance", "getMakerPosition", "getMakerQuotes", "getMakerTelemetry", "getMakerTelemetryPublication", "getMakerVaultFundingTransaction", "getMakerWithdrawal", "getMarket", "getMarketDisplay", "getMarketHistory", "getMarketRecurringRound", "getMarketReferenceCloses", "getMarketRoundHistory", "getOperation", "getQuestion", "getQuestionRecurringRound", "getRfq", "getSeries", "getTaxonomy", "listAccountActivity", "listAccountPositions", "listDiscovery", "listMakerAcceptances", "listMakerActivity", "listMakerPositions", "listMakerQuoteHistory", "listMarkets", "listOperations", "listRfqs", "publishMakerTelemetry", "releaseQuoteLease", "renewQuoteLease", "searchCatalog", "stream", "submitMakerSelfFundedTransaction"];
|
|
24
24
|
readonly operator: readonly ["live", "ready"];
|
|
25
25
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// Generated by scripts/generate.mjs; do not edit.
|
|
2
|
-
export const sdkVersion = "
|
|
3
|
-
export const openapiSha256 = "
|
|
4
|
-
export const realtimeSha256 = "
|
|
2
|
+
export const sdkVersion = "244.0.0-rounds-live-trades";
|
|
3
|
+
export const openapiSha256 = "5be33e1cd7cb9262f11128c7a87ffd725eb954196764d3a19213fd624f99a4a9";
|
|
4
|
+
export const realtimeSha256 = "69596dce99d3ebcd4bbac4587e711017b37ce7e7830940c76b1449d78c070da3";
|
|
5
5
|
export const jsonSchemaSha256 = {
|
|
6
6
|
"account.schema.json": "e6cd5a75429d074f23bd7f6ffd370fa59d0e3f7dbd6aef6433e5ba0d21b5baeb",
|
|
7
7
|
"comments.schema.json": "5773471b4442ba9d8af0dc012d71561baaf50d0e1c2571039241780848edb4a4",
|
|
@@ -13,10 +13,10 @@ export const jsonSchemaSha256 = {
|
|
|
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": "8fbe5fab071fb2c99328a48abaeb436d514eb7c36c7d19dde465862c04a6129e",
|
|
17
17
|
"product-metadata.schema.json": "7c8ffbde878a0aedaed16814fcfd2e80038054b140886cc8736bb7b508042631",
|
|
18
18
|
"quote.schema.json": "52ee1f4708c8b1504e4cd2f2f9279e14c8ec8aeacac1f491441ae0e15ac3c71a",
|
|
19
|
-
"realtime.schema.json": "
|
|
19
|
+
"realtime.schema.json": "69596dce99d3ebcd4bbac4587e711017b37ce7e7830940c76b1449d78c070da3",
|
|
20
20
|
"social.schema.json": "de0ddadf418a41d2c2cbe714afb5c83947cd34e05b8082f0ba016e18e0b3cd51"
|
|
21
21
|
};
|
|
22
22
|
export const operations = {
|
|
@@ -57,6 +57,7 @@ export const operations = {
|
|
|
57
57
|
"getCopySummary",
|
|
58
58
|
"getCoreExit",
|
|
59
59
|
"getDeployment",
|
|
60
|
+
"getGenesis",
|
|
60
61
|
"getGolden",
|
|
61
62
|
"getGoldenMarkets",
|
|
62
63
|
"getGoldenOffer",
|
|
@@ -81,6 +82,7 @@ export const operations = {
|
|
|
81
82
|
"getMarketHistory",
|
|
82
83
|
"getMarketRecurringRound",
|
|
83
84
|
"getMarketReferenceCloses",
|
|
85
|
+
"getMarketRoundHistory",
|
|
84
86
|
"getMarketScoreTimeline",
|
|
85
87
|
"getMarketStats",
|
|
86
88
|
"getMyGenesis",
|
|
@@ -193,6 +195,7 @@ export const operations = {
|
|
|
193
195
|
"getMarketHistory",
|
|
194
196
|
"getMarketRecurringRound",
|
|
195
197
|
"getMarketReferenceCloses",
|
|
198
|
+
"getMarketRoundHistory",
|
|
196
199
|
"getOperation",
|
|
197
200
|
"getQuestion",
|
|
198
201
|
"getQuestionRecurringRound",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@totalis/hip4-client",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.109.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": [
|