@totalis/hip4-client 0.99.0 → 0.100.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 +30 -0
- package/dist/generated/account-read.d.ts +1 -1
- package/dist/generated/api-keys.d.ts +1 -1
- package/dist/generated/browse.d.ts +1 -1
- package/dist/generated/client.d.ts +3 -1
- package/dist/generated/errors.d.ts +8 -2
- package/dist/generated/errors.js +14 -1
- package/dist/generated/maker.d.ts +2 -1
- package/dist/generated/openapi.d.ts +289 -5
- package/dist/generated/realtime.d.ts +296 -0
- package/dist/generated/version.d.ts +8 -8
- package/dist/generated/version.js +9 -6
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,36 @@
|
|
|
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.100.0
|
|
7
|
+
|
|
8
|
+
### Added
|
|
9
|
+
|
|
10
|
+
- Live order books and perp marks on the market stream (TT-1804, contract
|
|
11
|
+
`234.0.0-live-book-lane`, major 230, additive). A market subscription may set
|
|
12
|
+
`books` (up to 8 outcome IDs), `marks` (up to 8 chart perps) and `mark_ticks`
|
|
13
|
+
(up to 64 card perps), gets `live` limits and liveness thresholds in its
|
|
14
|
+
`subscriptionResponse`, and may send revisioned `MarketSetInterest` frames
|
|
15
|
+
(acknowledged by `interest` barriers) and `MarketResnapshot`. Followed books
|
|
16
|
+
arrive as `bookSnapshot` then `bookDelta` frames, up to 100 levels a side of
|
|
17
|
+
the merged YES book, with `bookProgress` carrying coverage and per-book seqs
|
|
18
|
+
every 250 or 1000 ms; chart perps as `markSnapshot` with recent recorded runs,
|
|
19
|
+
a `mark` per node read and `markSealed` runs; card perps as `markTicks`.
|
|
20
|
+
Sockets that do not opt in are unchanged.
|
|
21
|
+
- Market display (TT-2797, contract `236.0.0-market-display`, major 232,
|
|
22
|
+
additive). `getMarketDisplay` (`GET /v1/market-display?outcome_ids=…`, no
|
|
23
|
+
credential) names and pictures up to 100 outcome IDs, strictly ascending,
|
|
24
|
+
live or departed: each known outcome's English `title`, its native
|
|
25
|
+
definition as Hyperliquid listed it (or, for one no kept catalog copy holds,
|
|
26
|
+
as Hyperliquid's settlement record names it, with `native_question_id` null
|
|
27
|
+
where that record names none), and finished pictures for the market, each
|
|
28
|
+
pick (Yes, No, and before a side is chosen), each side's own subject, its
|
|
29
|
+
row in its question's list and both participants. A picture is a `SUBJECT`
|
|
30
|
+
key into `subjects` (label, monogram and WebP variants with fit and palette,
|
|
31
|
+
or `image: null` for a coin) or a `DRAW`/`TOTAL` glyph. IDs Totalis holds no
|
|
32
|
+
definition of come back in `not_recorded`, ones newer than anything it
|
|
33
|
+
recorded in `pending`. Read it with
|
|
34
|
+
`totalis.client.GET("/v1/market-display", …)`.
|
|
35
|
+
|
|
6
36
|
## 0.99.0
|
|
7
37
|
|
|
8
38
|
### Added
|
|
@@ -756,7 +756,7 @@ export type components = {
|
|
|
756
756
|
* @description Stable HTTP error code. Each code has one HTTP status and one retry value.
|
|
757
757
|
* @enum {string}
|
|
758
758
|
*/
|
|
759
|
-
readonly ErrorCode: "INVALID_REQUEST" | "INVALID_QUERY" | "INVALID_CURSOR" | "INVALID_IDEMPOTENCY_KEY" | "ORIGIN_REQUIRED" | "SUBPROTOCOL_REQUIRED" | "UNSUPPORTED_BROWSE_CONTRACT" | "UNAUTHENTICATED" | "FORBIDDEN" | "ORIGIN_NOT_ALLOWED" | "ACCESS_REQUIRED" | "SIGN_IN_REQUIRED" | "NOT_FOUND" | "IDENTITY_NOT_FOUND" | "QUOTE_NOT_FOUND" | "INVITE_CODE_NOT_FOUND" | "IDEMPOTENCY_KEY_REUSED" | "STATE_CONFLICT" | "INVITE_CODE_EXHAUSTED" | "STALE_CURSOR" | "CURSOR_EXPIRED" | "CURSOR_RESET" | "RECURRING_DEFINITION_CONFLICT" | "EMBEDDED_WALLET_CONFLICT" | "SECRET_UNAVAILABLE" | "ROTATION_IN_PROGRESS" | "TELEMETRY_CONFLICT" | "RFQ_NOT_CANCELLABLE" | "RFQ_NOT_OPEN" | "RFQ_GENERATION_STALE" | "RFQ_GENERATION_IN_FLIGHT" | "QUOTE_EXPIRED" | "QUOTE_CANCELLED" | "QUOTE_REPLACED" | "QUOTE_SIGNER_CHANGED" | "QUOTE_CAPACITY_EXCEEDED" | "CORE_ACCOUNT_NOT_READY" | "CORE_ACCOUNT_ACTIVATION_REQUIRED" | "CORE_EXIT_ABANDONED" | "CORE_MOVE_IN_FLIGHT" | "ACCEPTANCE_IN_FLIGHT" | "USERNAME_TAKEN" | "USERNAME_ALREADY_SET" | "USERNAME_REQUIRED" | "GOLDEN_TICKET_NONE" | "GOLDEN_TICKET_USED" | "GOLDEN_TICKET_EXPIRED" | "GOLDEN_PLACEMENT_IN_FLIGHT" | "GOLDEN_PROMO_BUSY" | "GOLDEN_CASHOUT_REFUSED" | "GOLDEN_OFFER_BELOW_FLOOR" | "GOLDEN_GIFT_TERMS_EXPIRED" | "GOLDEN_UNLOCK_REQUIRED" | "GOLDEN_GIVEN_OUT" | "GOLDEN_CODE_DISABLED" | "X_REQUIRED" | "X_ALREADY_CLAIMED" | "INVALID_SIGNATURE" | "WALLET_CONTRACT_UNSUPPORTED" | "WRONG_AUTHORITY" | "KEY_LIMIT_REACHED" | "USERNAME_NOT_ALLOWED" | "FOLLOW_SELF" | "FOLLOW_LIMIT_REACHED" | "GOLDEN_LEG_COUNT" | "GOLDEN_LEG_NOT_ELIGIBLE" | "GOLDEN_QUOTE_NOT_HOUSE" | "RATE_LIMITED" | "CONNECTION_LIMIT" | "RFQ_INTENT_LIMIT" | "QUOTE_EXPOSURE_LIMIT" | "DEPENDENCY_STALE" | "AUTHORIZATION_UNAVAILABLE" | "SOURCE_UNAVAILABLE" | "CONTRACT_UNAVAILABLE" | "MARKET_DATA_UNAVAILABLE" | "BROWSE_UNAVAILABLE" | "FINANCIAL_ACTIONS_DISABLED" | "CORE_EXIT_UNAVAILABLE" | "COLLATERAL_REDUCTION_UNAVAILABLE" | "SPONSORSHIP_UNAVAILABLE" | "CONTRACT_SIGNATURE_OVERLOADED" | "QUOTE_EXPOSURE_STALE" | "COMBO_AUTOMATIC_DISABLED" | "GAS_PRICE_ABOVE_CEILING" | "EXECUTION_BACKLOG_FULL" | "EMBEDDED_WALLET_UNAVAILABLE" | "GOLDEN_PROMO_FUNDS_LOW" | "X_VERIFICATION_UNAVAILABLE" | "CONNECTION_DRAIN";
|
|
759
|
+
readonly ErrorCode: "INVALID_REQUEST" | "INVALID_QUERY" | "INVALID_CURSOR" | "INVALID_IDEMPOTENCY_KEY" | "ORIGIN_REQUIRED" | "SUBPROTOCOL_REQUIRED" | "UNSUPPORTED_BROWSE_CONTRACT" | "UNAUTHENTICATED" | "FORBIDDEN" | "ORIGIN_NOT_ALLOWED" | "ACCESS_REQUIRED" | "SIGN_IN_REQUIRED" | "NOT_FOUND" | "IDENTITY_NOT_FOUND" | "QUOTE_NOT_FOUND" | "INVITE_CODE_NOT_FOUND" | "IDEMPOTENCY_KEY_REUSED" | "STATE_CONFLICT" | "INVITE_CODE_EXHAUSTED" | "STALE_CURSOR" | "CURSOR_EXPIRED" | "CURSOR_RESET" | "RECURRING_DEFINITION_CONFLICT" | "EMBEDDED_WALLET_CONFLICT" | "SECRET_UNAVAILABLE" | "ROTATION_IN_PROGRESS" | "TELEMETRY_CONFLICT" | "RFQ_NOT_CANCELLABLE" | "RFQ_NOT_OPEN" | "RFQ_GENERATION_STALE" | "RFQ_GENERATION_IN_FLIGHT" | "QUOTE_EXPIRED" | "QUOTE_CANCELLED" | "QUOTE_REPLACED" | "QUOTE_SIGNER_CHANGED" | "QUOTE_CAPACITY_EXCEEDED" | "CORE_ACCOUNT_NOT_READY" | "CORE_ACCOUNT_ACTIVATION_REQUIRED" | "CORE_EXIT_ABANDONED" | "CORE_MOVE_IN_FLIGHT" | "ACCEPTANCE_IN_FLIGHT" | "USERNAME_TAKEN" | "USERNAME_ALREADY_SET" | "USERNAME_REQUIRED" | "GOLDEN_TICKET_NONE" | "GOLDEN_TICKET_USED" | "GOLDEN_TICKET_EXPIRED" | "GOLDEN_PLACEMENT_IN_FLIGHT" | "GOLDEN_PROMO_BUSY" | "GOLDEN_CASHOUT_REFUSED" | "GOLDEN_OFFER_BELOW_FLOOR" | "GOLDEN_GIFT_TERMS_EXPIRED" | "GOLDEN_UNLOCK_REQUIRED" | "GOLDEN_GIVEN_OUT" | "GOLDEN_CODE_DISABLED" | "X_REQUIRED" | "X_ALREADY_CLAIMED" | "GOLDEN_NOT_ELIGIBLE" | "INVALID_SIGNATURE" | "WALLET_CONTRACT_UNSUPPORTED" | "WRONG_AUTHORITY" | "KEY_LIMIT_REACHED" | "USERNAME_NOT_ALLOWED" | "FOLLOW_SELF" | "FOLLOW_LIMIT_REACHED" | "GOLDEN_LEG_COUNT" | "GOLDEN_LEG_NOT_ELIGIBLE" | "GOLDEN_QUOTE_NOT_HOUSE" | "RATE_LIMITED" | "CONNECTION_LIMIT" | "RFQ_INTENT_LIMIT" | "QUOTE_EXPOSURE_LIMIT" | "DEPENDENCY_STALE" | "AUTHORIZATION_UNAVAILABLE" | "SOURCE_UNAVAILABLE" | "CONTRACT_UNAVAILABLE" | "MARKET_DATA_UNAVAILABLE" | "BROWSE_UNAVAILABLE" | "FINANCIAL_ACTIONS_DISABLED" | "CORE_EXIT_UNAVAILABLE" | "COLLATERAL_REDUCTION_UNAVAILABLE" | "SPONSORSHIP_UNAVAILABLE" | "CONTRACT_SIGNATURE_OVERLOADED" | "QUOTE_EXPOSURE_STALE" | "COMBO_AUTOMATIC_DISABLED" | "GAS_PRICE_ABOVE_CEILING" | "EXECUTION_BACKLOG_FULL" | "EMBEDDED_WALLET_UNAVAILABLE" | "GOLDEN_PROMO_FUNDS_LOW" | "X_VERIFICATION_UNAVAILABLE" | "CONNECTION_DRAIN";
|
|
760
760
|
readonly FieldViolation: {
|
|
761
761
|
/**
|
|
762
762
|
* @description REQUIRED: the input is missing. INVALID: it is present but malformed or out of range. UNEXPECTED: the input is not accepted here.
|
|
@@ -375,7 +375,7 @@ export type components = {
|
|
|
375
375
|
* @description Stable HTTP error code. Each code has one HTTP status and one retry value.
|
|
376
376
|
* @enum {string}
|
|
377
377
|
*/
|
|
378
|
-
readonly ErrorCode: "INVALID_REQUEST" | "INVALID_QUERY" | "INVALID_CURSOR" | "INVALID_IDEMPOTENCY_KEY" | "ORIGIN_REQUIRED" | "SUBPROTOCOL_REQUIRED" | "UNSUPPORTED_BROWSE_CONTRACT" | "UNAUTHENTICATED" | "FORBIDDEN" | "ORIGIN_NOT_ALLOWED" | "ACCESS_REQUIRED" | "SIGN_IN_REQUIRED" | "NOT_FOUND" | "IDENTITY_NOT_FOUND" | "QUOTE_NOT_FOUND" | "INVITE_CODE_NOT_FOUND" | "IDEMPOTENCY_KEY_REUSED" | "STATE_CONFLICT" | "INVITE_CODE_EXHAUSTED" | "STALE_CURSOR" | "CURSOR_EXPIRED" | "CURSOR_RESET" | "RECURRING_DEFINITION_CONFLICT" | "EMBEDDED_WALLET_CONFLICT" | "SECRET_UNAVAILABLE" | "ROTATION_IN_PROGRESS" | "TELEMETRY_CONFLICT" | "RFQ_NOT_CANCELLABLE" | "RFQ_NOT_OPEN" | "RFQ_GENERATION_STALE" | "RFQ_GENERATION_IN_FLIGHT" | "QUOTE_EXPIRED" | "QUOTE_CANCELLED" | "QUOTE_REPLACED" | "QUOTE_SIGNER_CHANGED" | "QUOTE_CAPACITY_EXCEEDED" | "CORE_ACCOUNT_NOT_READY" | "CORE_ACCOUNT_ACTIVATION_REQUIRED" | "CORE_EXIT_ABANDONED" | "CORE_MOVE_IN_FLIGHT" | "ACCEPTANCE_IN_FLIGHT" | "USERNAME_TAKEN" | "USERNAME_ALREADY_SET" | "USERNAME_REQUIRED" | "GOLDEN_TICKET_NONE" | "GOLDEN_TICKET_USED" | "GOLDEN_TICKET_EXPIRED" | "GOLDEN_PLACEMENT_IN_FLIGHT" | "GOLDEN_PROMO_BUSY" | "GOLDEN_CASHOUT_REFUSED" | "GOLDEN_OFFER_BELOW_FLOOR" | "GOLDEN_GIFT_TERMS_EXPIRED" | "GOLDEN_UNLOCK_REQUIRED" | "GOLDEN_GIVEN_OUT" | "GOLDEN_CODE_DISABLED" | "X_REQUIRED" | "X_ALREADY_CLAIMED" | "INVALID_SIGNATURE" | "WALLET_CONTRACT_UNSUPPORTED" | "WRONG_AUTHORITY" | "KEY_LIMIT_REACHED" | "USERNAME_NOT_ALLOWED" | "FOLLOW_SELF" | "FOLLOW_LIMIT_REACHED" | "GOLDEN_LEG_COUNT" | "GOLDEN_LEG_NOT_ELIGIBLE" | "GOLDEN_QUOTE_NOT_HOUSE" | "RATE_LIMITED" | "CONNECTION_LIMIT" | "RFQ_INTENT_LIMIT" | "QUOTE_EXPOSURE_LIMIT" | "DEPENDENCY_STALE" | "AUTHORIZATION_UNAVAILABLE" | "SOURCE_UNAVAILABLE" | "CONTRACT_UNAVAILABLE" | "MARKET_DATA_UNAVAILABLE" | "BROWSE_UNAVAILABLE" | "FINANCIAL_ACTIONS_DISABLED" | "CORE_EXIT_UNAVAILABLE" | "COLLATERAL_REDUCTION_UNAVAILABLE" | "SPONSORSHIP_UNAVAILABLE" | "CONTRACT_SIGNATURE_OVERLOADED" | "QUOTE_EXPOSURE_STALE" | "COMBO_AUTOMATIC_DISABLED" | "GAS_PRICE_ABOVE_CEILING" | "EXECUTION_BACKLOG_FULL" | "EMBEDDED_WALLET_UNAVAILABLE" | "GOLDEN_PROMO_FUNDS_LOW" | "X_VERIFICATION_UNAVAILABLE" | "CONNECTION_DRAIN";
|
|
378
|
+
readonly ErrorCode: "INVALID_REQUEST" | "INVALID_QUERY" | "INVALID_CURSOR" | "INVALID_IDEMPOTENCY_KEY" | "ORIGIN_REQUIRED" | "SUBPROTOCOL_REQUIRED" | "UNSUPPORTED_BROWSE_CONTRACT" | "UNAUTHENTICATED" | "FORBIDDEN" | "ORIGIN_NOT_ALLOWED" | "ACCESS_REQUIRED" | "SIGN_IN_REQUIRED" | "NOT_FOUND" | "IDENTITY_NOT_FOUND" | "QUOTE_NOT_FOUND" | "INVITE_CODE_NOT_FOUND" | "IDEMPOTENCY_KEY_REUSED" | "STATE_CONFLICT" | "INVITE_CODE_EXHAUSTED" | "STALE_CURSOR" | "CURSOR_EXPIRED" | "CURSOR_RESET" | "RECURRING_DEFINITION_CONFLICT" | "EMBEDDED_WALLET_CONFLICT" | "SECRET_UNAVAILABLE" | "ROTATION_IN_PROGRESS" | "TELEMETRY_CONFLICT" | "RFQ_NOT_CANCELLABLE" | "RFQ_NOT_OPEN" | "RFQ_GENERATION_STALE" | "RFQ_GENERATION_IN_FLIGHT" | "QUOTE_EXPIRED" | "QUOTE_CANCELLED" | "QUOTE_REPLACED" | "QUOTE_SIGNER_CHANGED" | "QUOTE_CAPACITY_EXCEEDED" | "CORE_ACCOUNT_NOT_READY" | "CORE_ACCOUNT_ACTIVATION_REQUIRED" | "CORE_EXIT_ABANDONED" | "CORE_MOVE_IN_FLIGHT" | "ACCEPTANCE_IN_FLIGHT" | "USERNAME_TAKEN" | "USERNAME_ALREADY_SET" | "USERNAME_REQUIRED" | "GOLDEN_TICKET_NONE" | "GOLDEN_TICKET_USED" | "GOLDEN_TICKET_EXPIRED" | "GOLDEN_PLACEMENT_IN_FLIGHT" | "GOLDEN_PROMO_BUSY" | "GOLDEN_CASHOUT_REFUSED" | "GOLDEN_OFFER_BELOW_FLOOR" | "GOLDEN_GIFT_TERMS_EXPIRED" | "GOLDEN_UNLOCK_REQUIRED" | "GOLDEN_GIVEN_OUT" | "GOLDEN_CODE_DISABLED" | "X_REQUIRED" | "X_ALREADY_CLAIMED" | "GOLDEN_NOT_ELIGIBLE" | "INVALID_SIGNATURE" | "WALLET_CONTRACT_UNSUPPORTED" | "WRONG_AUTHORITY" | "KEY_LIMIT_REACHED" | "USERNAME_NOT_ALLOWED" | "FOLLOW_SELF" | "FOLLOW_LIMIT_REACHED" | "GOLDEN_LEG_COUNT" | "GOLDEN_LEG_NOT_ELIGIBLE" | "GOLDEN_QUOTE_NOT_HOUSE" | "RATE_LIMITED" | "CONNECTION_LIMIT" | "RFQ_INTENT_LIMIT" | "QUOTE_EXPOSURE_LIMIT" | "DEPENDENCY_STALE" | "AUTHORIZATION_UNAVAILABLE" | "SOURCE_UNAVAILABLE" | "CONTRACT_UNAVAILABLE" | "MARKET_DATA_UNAVAILABLE" | "BROWSE_UNAVAILABLE" | "FINANCIAL_ACTIONS_DISABLED" | "CORE_EXIT_UNAVAILABLE" | "COLLATERAL_REDUCTION_UNAVAILABLE" | "SPONSORSHIP_UNAVAILABLE" | "CONTRACT_SIGNATURE_OVERLOADED" | "QUOTE_EXPOSURE_STALE" | "COMBO_AUTOMATIC_DISABLED" | "GAS_PRICE_ABOVE_CEILING" | "EXECUTION_BACKLOG_FULL" | "EMBEDDED_WALLET_UNAVAILABLE" | "GOLDEN_PROMO_FUNDS_LOW" | "X_VERIFICATION_UNAVAILABLE" | "CONNECTION_DRAIN";
|
|
379
379
|
readonly FieldViolation: {
|
|
380
380
|
/**
|
|
381
381
|
* @description REQUIRED: the input is missing. INVALID: it is present but malformed or out of range. UNEXPECTED: the input is not accepted here.
|
|
@@ -734,7 +734,7 @@ export type components = {
|
|
|
734
734
|
* @description Stable HTTP error code. Each code has one HTTP status and one retry value.
|
|
735
735
|
* @enum {string}
|
|
736
736
|
*/
|
|
737
|
-
readonly ErrorCode: "INVALID_REQUEST" | "INVALID_QUERY" | "INVALID_CURSOR" | "INVALID_IDEMPOTENCY_KEY" | "ORIGIN_REQUIRED" | "SUBPROTOCOL_REQUIRED" | "UNSUPPORTED_BROWSE_CONTRACT" | "UNAUTHENTICATED" | "FORBIDDEN" | "ORIGIN_NOT_ALLOWED" | "ACCESS_REQUIRED" | "SIGN_IN_REQUIRED" | "NOT_FOUND" | "IDENTITY_NOT_FOUND" | "QUOTE_NOT_FOUND" | "INVITE_CODE_NOT_FOUND" | "IDEMPOTENCY_KEY_REUSED" | "STATE_CONFLICT" | "INVITE_CODE_EXHAUSTED" | "STALE_CURSOR" | "CURSOR_EXPIRED" | "CURSOR_RESET" | "RECURRING_DEFINITION_CONFLICT" | "EMBEDDED_WALLET_CONFLICT" | "SECRET_UNAVAILABLE" | "ROTATION_IN_PROGRESS" | "TELEMETRY_CONFLICT" | "RFQ_NOT_CANCELLABLE" | "RFQ_NOT_OPEN" | "RFQ_GENERATION_STALE" | "RFQ_GENERATION_IN_FLIGHT" | "QUOTE_EXPIRED" | "QUOTE_CANCELLED" | "QUOTE_REPLACED" | "QUOTE_SIGNER_CHANGED" | "QUOTE_CAPACITY_EXCEEDED" | "CORE_ACCOUNT_NOT_READY" | "CORE_ACCOUNT_ACTIVATION_REQUIRED" | "CORE_EXIT_ABANDONED" | "CORE_MOVE_IN_FLIGHT" | "ACCEPTANCE_IN_FLIGHT" | "USERNAME_TAKEN" | "USERNAME_ALREADY_SET" | "USERNAME_REQUIRED" | "GOLDEN_TICKET_NONE" | "GOLDEN_TICKET_USED" | "GOLDEN_TICKET_EXPIRED" | "GOLDEN_PLACEMENT_IN_FLIGHT" | "GOLDEN_PROMO_BUSY" | "GOLDEN_CASHOUT_REFUSED" | "GOLDEN_OFFER_BELOW_FLOOR" | "GOLDEN_GIFT_TERMS_EXPIRED" | "GOLDEN_UNLOCK_REQUIRED" | "GOLDEN_GIVEN_OUT" | "GOLDEN_CODE_DISABLED" | "X_REQUIRED" | "X_ALREADY_CLAIMED" | "INVALID_SIGNATURE" | "WALLET_CONTRACT_UNSUPPORTED" | "WRONG_AUTHORITY" | "KEY_LIMIT_REACHED" | "USERNAME_NOT_ALLOWED" | "FOLLOW_SELF" | "FOLLOW_LIMIT_REACHED" | "GOLDEN_LEG_COUNT" | "GOLDEN_LEG_NOT_ELIGIBLE" | "GOLDEN_QUOTE_NOT_HOUSE" | "RATE_LIMITED" | "CONNECTION_LIMIT" | "RFQ_INTENT_LIMIT" | "QUOTE_EXPOSURE_LIMIT" | "DEPENDENCY_STALE" | "AUTHORIZATION_UNAVAILABLE" | "SOURCE_UNAVAILABLE" | "CONTRACT_UNAVAILABLE" | "MARKET_DATA_UNAVAILABLE" | "BROWSE_UNAVAILABLE" | "FINANCIAL_ACTIONS_DISABLED" | "CORE_EXIT_UNAVAILABLE" | "COLLATERAL_REDUCTION_UNAVAILABLE" | "SPONSORSHIP_UNAVAILABLE" | "CONTRACT_SIGNATURE_OVERLOADED" | "QUOTE_EXPOSURE_STALE" | "COMBO_AUTOMATIC_DISABLED" | "GAS_PRICE_ABOVE_CEILING" | "EXECUTION_BACKLOG_FULL" | "EMBEDDED_WALLET_UNAVAILABLE" | "GOLDEN_PROMO_FUNDS_LOW" | "X_VERIFICATION_UNAVAILABLE" | "CONNECTION_DRAIN";
|
|
737
|
+
readonly ErrorCode: "INVALID_REQUEST" | "INVALID_QUERY" | "INVALID_CURSOR" | "INVALID_IDEMPOTENCY_KEY" | "ORIGIN_REQUIRED" | "SUBPROTOCOL_REQUIRED" | "UNSUPPORTED_BROWSE_CONTRACT" | "UNAUTHENTICATED" | "FORBIDDEN" | "ORIGIN_NOT_ALLOWED" | "ACCESS_REQUIRED" | "SIGN_IN_REQUIRED" | "NOT_FOUND" | "IDENTITY_NOT_FOUND" | "QUOTE_NOT_FOUND" | "INVITE_CODE_NOT_FOUND" | "IDEMPOTENCY_KEY_REUSED" | "STATE_CONFLICT" | "INVITE_CODE_EXHAUSTED" | "STALE_CURSOR" | "CURSOR_EXPIRED" | "CURSOR_RESET" | "RECURRING_DEFINITION_CONFLICT" | "EMBEDDED_WALLET_CONFLICT" | "SECRET_UNAVAILABLE" | "ROTATION_IN_PROGRESS" | "TELEMETRY_CONFLICT" | "RFQ_NOT_CANCELLABLE" | "RFQ_NOT_OPEN" | "RFQ_GENERATION_STALE" | "RFQ_GENERATION_IN_FLIGHT" | "QUOTE_EXPIRED" | "QUOTE_CANCELLED" | "QUOTE_REPLACED" | "QUOTE_SIGNER_CHANGED" | "QUOTE_CAPACITY_EXCEEDED" | "CORE_ACCOUNT_NOT_READY" | "CORE_ACCOUNT_ACTIVATION_REQUIRED" | "CORE_EXIT_ABANDONED" | "CORE_MOVE_IN_FLIGHT" | "ACCEPTANCE_IN_FLIGHT" | "USERNAME_TAKEN" | "USERNAME_ALREADY_SET" | "USERNAME_REQUIRED" | "GOLDEN_TICKET_NONE" | "GOLDEN_TICKET_USED" | "GOLDEN_TICKET_EXPIRED" | "GOLDEN_PLACEMENT_IN_FLIGHT" | "GOLDEN_PROMO_BUSY" | "GOLDEN_CASHOUT_REFUSED" | "GOLDEN_OFFER_BELOW_FLOOR" | "GOLDEN_GIFT_TERMS_EXPIRED" | "GOLDEN_UNLOCK_REQUIRED" | "GOLDEN_GIVEN_OUT" | "GOLDEN_CODE_DISABLED" | "X_REQUIRED" | "X_ALREADY_CLAIMED" | "GOLDEN_NOT_ELIGIBLE" | "INVALID_SIGNATURE" | "WALLET_CONTRACT_UNSUPPORTED" | "WRONG_AUTHORITY" | "KEY_LIMIT_REACHED" | "USERNAME_NOT_ALLOWED" | "FOLLOW_SELF" | "FOLLOW_LIMIT_REACHED" | "GOLDEN_LEG_COUNT" | "GOLDEN_LEG_NOT_ELIGIBLE" | "GOLDEN_QUOTE_NOT_HOUSE" | "RATE_LIMITED" | "CONNECTION_LIMIT" | "RFQ_INTENT_LIMIT" | "QUOTE_EXPOSURE_LIMIT" | "DEPENDENCY_STALE" | "AUTHORIZATION_UNAVAILABLE" | "SOURCE_UNAVAILABLE" | "CONTRACT_UNAVAILABLE" | "MARKET_DATA_UNAVAILABLE" | "BROWSE_UNAVAILABLE" | "FINANCIAL_ACTIONS_DISABLED" | "CORE_EXIT_UNAVAILABLE" | "COLLATERAL_REDUCTION_UNAVAILABLE" | "SPONSORSHIP_UNAVAILABLE" | "CONTRACT_SIGNATURE_OVERLOADED" | "QUOTE_EXPOSURE_STALE" | "COMBO_AUTOMATIC_DISABLED" | "GAS_PRICE_ABOVE_CEILING" | "EXECUTION_BACKLOG_FULL" | "EMBEDDED_WALLET_UNAVAILABLE" | "GOLDEN_PROMO_FUNDS_LOW" | "X_VERIFICATION_UNAVAILABLE" | "CONNECTION_DRAIN";
|
|
738
738
|
readonly FieldViolation: {
|
|
739
739
|
/**
|
|
740
740
|
* @description REQUIRED: the input is missing. INVALID: it is present but malformed or out of range. UNEXPECTED: the input is not accepted here.
|
|
@@ -100,6 +100,8 @@ export type paths = {
|
|
|
100
100
|
readonly "/v1/market-stats": Pick<SharedPaths["/v1/market-stats"], "parameters" | "get">;
|
|
101
101
|
readonly "/v1/market-data/config": Pick<SharedPaths["/v1/market-data/config"], "parameters" | "get">;
|
|
102
102
|
readonly "/v1/market-definitions": Pick<SharedPaths["/v1/market-definitions"], "parameters" | "get">;
|
|
103
|
+
readonly "/v1/market-display": Pick<SharedPaths["/v1/market-display"], "parameters" | "get">;
|
|
104
|
+
readonly "/v1/outcome-metadata": Pick<SharedPaths["/v1/outcome-metadata"], "parameters" | "get">;
|
|
103
105
|
readonly "/v1/perp-marks": Pick<SharedPaths["/v1/perp-marks"], "parameters" | "get">;
|
|
104
106
|
readonly "/v1/rfqs/{rfq_id}": Pick<SharedPaths["/v1/rfqs/{rfq_id}"], "parameters" | "get">;
|
|
105
107
|
readonly "/v1/rfqs/{rfq_id}/cancel": Pick<SharedPaths["/v1/rfqs/{rfq_id}/cancel"], "parameters" | "post">;
|
|
@@ -123,4 +125,4 @@ export type paths = {
|
|
|
123
125
|
readonly "/v1/makers/{maker_id}/exposure": Pick<SharedPaths["/v1/makers/{maker_id}/exposure"], "parameters" | "get">;
|
|
124
126
|
readonly "/v1/makers/{maker_id}/performance": Pick<SharedPaths["/v1/makers/{maker_id}/performance"], "parameters" | "get">;
|
|
125
127
|
};
|
|
126
|
-
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" | "getMarketHistory" | "getMarketRecurringRound" | "getMarketReferenceCloses" | "getMarketScoreTimeline" | "getMarketStats" | "getMyGenesis" | "getMyReferralBonus" | "getOperation" | "getOwnMaker" | "getPartnerAccountValue" | "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" | "listPartnerWebhookEvents" | "listQuotes" | "listTraderPositions" | "listTraderTrades" | "markMyNotificationsRead" | "placeGolden" | "reactComment" | "recordAcquisition" | "recordGoldenTelegramClick" | "refreshPicture" | "requestComboCopyAgent" | "requestCoreCopyAgent" | "revokeComboCopyAgent" | "searchCatalog" | "setAvatar" | "setCopyAllocation" | "setCopySettings" | "setPublicProfile" | "setUsername" | "setXHandleShown" | "signGoldenGift" | "stream" | "streamMarkets" | "switchOffComboCopyAgent" | "switchOffCoreCopyAgent" | "unfollowTrader" | "unlikeComment" | "unlockGolden" | "unreactComment">;
|
|
128
|
+
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" | "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" | "listPartnerWebhookEvents" | "listQuotes" | "listTraderPositions" | "listTraderTrades" | "markMyNotificationsRead" | "placeGolden" | "reactComment" | "recordAcquisition" | "recordGoldenTelegramClick" | "refreshPicture" | "requestComboCopyAgent" | "requestCoreCopyAgent" | "revokeComboCopyAgent" | "searchCatalog" | "setAvatar" | "setCopyAllocation" | "setCopySettings" | "setPublicProfile" | "setUsername" | "setXHandleShown" | "signGoldenGift" | "stream" | "streamMarkets" | "switchOffComboCopyAgent" | "switchOffCoreCopyAgent" | "unfollowTrader" | "unlikeComment" | "unlockGolden" | "unreactComment">;
|
|
@@ -230,6 +230,10 @@ export declare const errorRegistry: {
|
|
|
230
230
|
readonly status: 409;
|
|
231
231
|
readonly retry: "NEVER";
|
|
232
232
|
};
|
|
233
|
+
readonly GOLDEN_NOT_ELIGIBLE: {
|
|
234
|
+
readonly status: 409;
|
|
235
|
+
readonly retry: "NEVER";
|
|
236
|
+
};
|
|
233
237
|
readonly INVALID_SIGNATURE: {
|
|
234
238
|
readonly status: 422;
|
|
235
239
|
readonly retry: "NEVER";
|
|
@@ -396,7 +400,7 @@ export declare const errorRegistry: {
|
|
|
396
400
|
};
|
|
397
401
|
/** NEVER: stop. BACKOFF: resend the same request with the same Idempotency-Key after Retry-After. REFRESH: re-read state, then send a new request with a new key. */
|
|
398
402
|
export type Retry = "NEVER" | "BACKOFF" | "REFRESH";
|
|
399
|
-
export type ErrorCode = "INVALID_REQUEST" | "INVALID_QUERY" | "INVALID_CURSOR" | "INVALID_IDEMPOTENCY_KEY" | "ORIGIN_REQUIRED" | "SUBPROTOCOL_REQUIRED" | "UNSUPPORTED_BROWSE_CONTRACT" | "UNAUTHENTICATED" | "FORBIDDEN" | "ORIGIN_NOT_ALLOWED" | "ACCESS_REQUIRED" | "SIGN_IN_REQUIRED" | "NOT_FOUND" | "IDENTITY_NOT_FOUND" | "QUOTE_NOT_FOUND" | "INVITE_CODE_NOT_FOUND" | "IDEMPOTENCY_KEY_REUSED" | "STATE_CONFLICT" | "INVITE_CODE_EXHAUSTED" | "STALE_CURSOR" | "CURSOR_EXPIRED" | "CURSOR_RESET" | "RECURRING_DEFINITION_CONFLICT" | "EMBEDDED_WALLET_CONFLICT" | "SECRET_UNAVAILABLE" | "ROTATION_IN_PROGRESS" | "TELEMETRY_CONFLICT" | "RFQ_NOT_CANCELLABLE" | "RFQ_NOT_OPEN" | "RFQ_GENERATION_STALE" | "RFQ_GENERATION_IN_FLIGHT" | "QUOTE_EXPIRED" | "QUOTE_CANCELLED" | "QUOTE_REPLACED" | "QUOTE_SIGNER_CHANGED" | "QUOTE_CAPACITY_EXCEEDED" | "CORE_ACCOUNT_NOT_READY" | "CORE_ACCOUNT_ACTIVATION_REQUIRED" | "CORE_EXIT_ABANDONED" | "CORE_MOVE_IN_FLIGHT" | "ACCEPTANCE_IN_FLIGHT" | "USERNAME_TAKEN" | "USERNAME_ALREADY_SET" | "USERNAME_REQUIRED" | "GOLDEN_TICKET_NONE" | "GOLDEN_TICKET_USED" | "GOLDEN_TICKET_EXPIRED" | "GOLDEN_PLACEMENT_IN_FLIGHT" | "GOLDEN_PROMO_BUSY" | "GOLDEN_CASHOUT_REFUSED" | "GOLDEN_OFFER_BELOW_FLOOR" | "GOLDEN_GIFT_TERMS_EXPIRED" | "GOLDEN_UNLOCK_REQUIRED" | "GOLDEN_GIVEN_OUT" | "GOLDEN_CODE_DISABLED" | "X_REQUIRED" | "X_ALREADY_CLAIMED" | "INVALID_SIGNATURE" | "WALLET_CONTRACT_UNSUPPORTED" | "WRONG_AUTHORITY" | "KEY_LIMIT_REACHED" | "USERNAME_NOT_ALLOWED" | "FOLLOW_SELF" | "FOLLOW_LIMIT_REACHED" | "GOLDEN_LEG_COUNT" | "GOLDEN_LEG_NOT_ELIGIBLE" | "GOLDEN_QUOTE_NOT_HOUSE" | "RATE_LIMITED" | "CONNECTION_LIMIT" | "RFQ_INTENT_LIMIT" | "QUOTE_EXPOSURE_LIMIT" | "DEPENDENCY_STALE" | "AUTHORIZATION_UNAVAILABLE" | "SOURCE_UNAVAILABLE" | "CONTRACT_UNAVAILABLE" | "MARKET_DATA_UNAVAILABLE" | "BROWSE_UNAVAILABLE" | "FINANCIAL_ACTIONS_DISABLED" | "CORE_EXIT_UNAVAILABLE" | "COLLATERAL_REDUCTION_UNAVAILABLE" | "SPONSORSHIP_UNAVAILABLE" | "CONTRACT_SIGNATURE_OVERLOADED" | "QUOTE_EXPOSURE_STALE" | "COMBO_AUTOMATIC_DISABLED" | "GAS_PRICE_ABOVE_CEILING" | "EXECUTION_BACKLOG_FULL" | "EMBEDDED_WALLET_UNAVAILABLE" | "GOLDEN_PROMO_FUNDS_LOW" | "X_VERIFICATION_UNAVAILABLE" | "CONNECTION_DRAIN";
|
|
403
|
+
export type ErrorCode = "INVALID_REQUEST" | "INVALID_QUERY" | "INVALID_CURSOR" | "INVALID_IDEMPOTENCY_KEY" | "ORIGIN_REQUIRED" | "SUBPROTOCOL_REQUIRED" | "UNSUPPORTED_BROWSE_CONTRACT" | "UNAUTHENTICATED" | "FORBIDDEN" | "ORIGIN_NOT_ALLOWED" | "ACCESS_REQUIRED" | "SIGN_IN_REQUIRED" | "NOT_FOUND" | "IDENTITY_NOT_FOUND" | "QUOTE_NOT_FOUND" | "INVITE_CODE_NOT_FOUND" | "IDEMPOTENCY_KEY_REUSED" | "STATE_CONFLICT" | "INVITE_CODE_EXHAUSTED" | "STALE_CURSOR" | "CURSOR_EXPIRED" | "CURSOR_RESET" | "RECURRING_DEFINITION_CONFLICT" | "EMBEDDED_WALLET_CONFLICT" | "SECRET_UNAVAILABLE" | "ROTATION_IN_PROGRESS" | "TELEMETRY_CONFLICT" | "RFQ_NOT_CANCELLABLE" | "RFQ_NOT_OPEN" | "RFQ_GENERATION_STALE" | "RFQ_GENERATION_IN_FLIGHT" | "QUOTE_EXPIRED" | "QUOTE_CANCELLED" | "QUOTE_REPLACED" | "QUOTE_SIGNER_CHANGED" | "QUOTE_CAPACITY_EXCEEDED" | "CORE_ACCOUNT_NOT_READY" | "CORE_ACCOUNT_ACTIVATION_REQUIRED" | "CORE_EXIT_ABANDONED" | "CORE_MOVE_IN_FLIGHT" | "ACCEPTANCE_IN_FLIGHT" | "USERNAME_TAKEN" | "USERNAME_ALREADY_SET" | "USERNAME_REQUIRED" | "GOLDEN_TICKET_NONE" | "GOLDEN_TICKET_USED" | "GOLDEN_TICKET_EXPIRED" | "GOLDEN_PLACEMENT_IN_FLIGHT" | "GOLDEN_PROMO_BUSY" | "GOLDEN_CASHOUT_REFUSED" | "GOLDEN_OFFER_BELOW_FLOOR" | "GOLDEN_GIFT_TERMS_EXPIRED" | "GOLDEN_UNLOCK_REQUIRED" | "GOLDEN_GIVEN_OUT" | "GOLDEN_CODE_DISABLED" | "X_REQUIRED" | "X_ALREADY_CLAIMED" | "GOLDEN_NOT_ELIGIBLE" | "INVALID_SIGNATURE" | "WALLET_CONTRACT_UNSUPPORTED" | "WRONG_AUTHORITY" | "KEY_LIMIT_REACHED" | "USERNAME_NOT_ALLOWED" | "FOLLOW_SELF" | "FOLLOW_LIMIT_REACHED" | "GOLDEN_LEG_COUNT" | "GOLDEN_LEG_NOT_ELIGIBLE" | "GOLDEN_QUOTE_NOT_HOUSE" | "RATE_LIMITED" | "CONNECTION_LIMIT" | "RFQ_INTENT_LIMIT" | "QUOTE_EXPOSURE_LIMIT" | "DEPENDENCY_STALE" | "AUTHORIZATION_UNAVAILABLE" | "SOURCE_UNAVAILABLE" | "CONTRACT_UNAVAILABLE" | "MARKET_DATA_UNAVAILABLE" | "BROWSE_UNAVAILABLE" | "FINANCIAL_ACTIONS_DISABLED" | "CORE_EXIT_UNAVAILABLE" | "COLLATERAL_REDUCTION_UNAVAILABLE" | "SPONSORSHIP_UNAVAILABLE" | "CONTRACT_SIGNATURE_OVERLOADED" | "QUOTE_EXPOSURE_STALE" | "COMBO_AUTOMATIC_DISABLED" | "GAS_PRICE_ABOVE_CEILING" | "EXECUTION_BACKLOG_FULL" | "EMBEDDED_WALLET_UNAVAILABLE" | "GOLDEN_PROMO_FUNDS_LOW" | "X_VERIFICATION_UNAVAILABLE" | "CONNECTION_DRAIN";
|
|
400
404
|
export type CloseReason = "SUBPROTOCOL_REQUIRED" | "CURSOR_RESET" | "DEPENDENCY_STALE" | "SOURCE_UNAVAILABLE" | "CONNECTION_DRAIN" | "INVALID_SUBSCRIPTION" | "SUBSCRIPTION_DENIED" | "AUTHORIZATION_REVOKED" | "STREAM_REPLACED" | "SLOW_CONSUMER" | "RESNAPSHOT_REQUIRED" | "SNAPSHOT_TOO_LARGE";
|
|
401
405
|
/** The codes each live operation can return. */
|
|
402
406
|
export declare const operationErrors: {
|
|
@@ -468,6 +472,7 @@ export declare const operationErrors: {
|
|
|
468
472
|
readonly getMarket: readonly ["INVALID_REQUEST", "NOT_FOUND", "MARKET_DATA_UNAVAILABLE", "UNSUPPORTED_BROWSE_CONTRACT", "INVALID_QUERY"];
|
|
469
473
|
readonly getMarketDataConfig: readonly ["MARKET_DATA_UNAVAILABLE", "INVALID_QUERY"];
|
|
470
474
|
readonly getMarketDefinitions: readonly ["MARKET_DATA_UNAVAILABLE", "INVALID_QUERY"];
|
|
475
|
+
readonly getMarketDisplay: readonly ["MARKET_DATA_UNAVAILABLE", "INVALID_QUERY"];
|
|
471
476
|
readonly getMarketHistory: readonly ["INVALID_REQUEST", "NOT_FOUND", "MARKET_DATA_UNAVAILABLE", "INVALID_QUERY", "INVALID_CURSOR"];
|
|
472
477
|
readonly getMarketRecurringRound: readonly ["INVALID_REQUEST", "NOT_FOUND", "MARKET_DATA_UNAVAILABLE", "RECURRING_DEFINITION_CONFLICT", "INVALID_QUERY"];
|
|
473
478
|
readonly getMarketReferenceCloses: readonly ["INVALID_REQUEST", "NOT_FOUND", "MARKET_DATA_UNAVAILABLE", "INVALID_QUERY", "INVALID_CURSOR", "STALE_CURSOR"];
|
|
@@ -476,6 +481,7 @@ export declare const operationErrors: {
|
|
|
476
481
|
readonly getMyGenesis: readonly ["UNAUTHENTICATED", "FORBIDDEN", "AUTHORIZATION_UNAVAILABLE", "RATE_LIMITED", "ORIGIN_REQUIRED", "IDENTITY_NOT_FOUND", "INVALID_QUERY", "CONTRACT_UNAVAILABLE"];
|
|
477
482
|
readonly getMyReferralBonus: readonly ["UNAUTHENTICATED", "FORBIDDEN", "AUTHORIZATION_UNAVAILABLE", "RATE_LIMITED", "ORIGIN_REQUIRED", "IDENTITY_NOT_FOUND", "INVALID_QUERY", "CONTRACT_UNAVAILABLE"];
|
|
478
483
|
readonly getOperation: readonly ["UNAUTHENTICATED", "FORBIDDEN", "AUTHORIZATION_UNAVAILABLE", "DEPENDENCY_STALE", "RATE_LIMITED", "INVALID_REQUEST", "NOT_FOUND", "IDENTITY_NOT_FOUND"];
|
|
484
|
+
readonly getOutcomeMetadata: readonly ["MARKET_DATA_UNAVAILABLE", "INVALID_QUERY"];
|
|
479
485
|
readonly getOwnMaker: readonly ["UNAUTHENTICATED", "FORBIDDEN", "AUTHORIZATION_UNAVAILABLE", "DEPENDENCY_STALE", "RATE_LIMITED", "ORIGIN_REQUIRED", "NOT_FOUND", "IDENTITY_NOT_FOUND"];
|
|
480
486
|
readonly getPartnerAccountValue: readonly ["INVALID_REQUEST", "UNAUTHENTICATED", "FORBIDDEN", "NOT_FOUND", "RATE_LIMITED", "AUTHORIZATION_UNAVAILABLE", "DEPENDENCY_STALE", "FINANCIAL_ACTIONS_DISABLED", "SOURCE_UNAVAILABLE"];
|
|
481
487
|
readonly getPartnerReport: readonly ["INVALID_QUERY", "UNAUTHENTICATED", "FORBIDDEN", "RATE_LIMITED", "AUTHORIZATION_UNAVAILABLE", "SOURCE_UNAVAILABLE"];
|
|
@@ -561,7 +567,7 @@ export declare const operationErrors: {
|
|
|
561
567
|
readonly switchOffCoreCopyAgent: readonly ["UNAUTHENTICATED", "FORBIDDEN", "AUTHORIZATION_UNAVAILABLE", "RATE_LIMITED", "ORIGIN_REQUIRED", "IDENTITY_NOT_FOUND", "CONTRACT_UNAVAILABLE", "INVALID_IDEMPOTENCY_KEY", "IDEMPOTENCY_KEY_REUSED"];
|
|
562
568
|
readonly unfollowTrader: readonly ["UNAUTHENTICATED", "FORBIDDEN", "AUTHORIZATION_UNAVAILABLE", "RATE_LIMITED", "ORIGIN_REQUIRED", "IDENTITY_NOT_FOUND", "INVALID_IDEMPOTENCY_KEY", "INVALID_REQUEST", "IDEMPOTENCY_KEY_REUSED"];
|
|
563
569
|
readonly unlikeComment: readonly ["UNAUTHENTICATED", "FORBIDDEN", "AUTHORIZATION_UNAVAILABLE", "DEPENDENCY_STALE", "RATE_LIMITED", "ORIGIN_REQUIRED", "IDENTITY_NOT_FOUND", "NOT_FOUND", "INVALID_IDEMPOTENCY_KEY"];
|
|
564
|
-
readonly unlockGolden: readonly ["UNAUTHENTICATED", "FORBIDDEN", "AUTHORIZATION_UNAVAILABLE", "DEPENDENCY_STALE", "RATE_LIMITED", "ORIGIN_REQUIRED", "IDENTITY_NOT_FOUND", "INVALID_REQUEST", "CONTRACT_UNAVAILABLE", "GOLDEN_TICKET_NONE", "GOLDEN_TICKET_USED", "GOLDEN_TICKET_EXPIRED", "GOLDEN_PLACEMENT_IN_FLIGHT", "X_REQUIRED", "X_ALREADY_CLAIMED", "GOLDEN_GIVEN_OUT", "GOLDEN_CODE_DISABLED", "X_VERIFICATION_UNAVAILABLE"];
|
|
570
|
+
readonly unlockGolden: readonly ["UNAUTHENTICATED", "FORBIDDEN", "AUTHORIZATION_UNAVAILABLE", "DEPENDENCY_STALE", "RATE_LIMITED", "ORIGIN_REQUIRED", "IDENTITY_NOT_FOUND", "INVALID_REQUEST", "CONTRACT_UNAVAILABLE", "GOLDEN_TICKET_NONE", "GOLDEN_TICKET_USED", "GOLDEN_TICKET_EXPIRED", "GOLDEN_PLACEMENT_IN_FLIGHT", "X_REQUIRED", "X_ALREADY_CLAIMED", "GOLDEN_GIVEN_OUT", "GOLDEN_CODE_DISABLED", "X_VERIFICATION_UNAVAILABLE", "GOLDEN_NOT_ELIGIBLE"];
|
|
565
571
|
readonly unreactComment: readonly ["UNAUTHENTICATED", "FORBIDDEN", "AUTHORIZATION_UNAVAILABLE", "DEPENDENCY_STALE", "RATE_LIMITED", "ORIGIN_REQUIRED", "IDENTITY_NOT_FOUND", "NOT_FOUND", "INVALID_IDEMPOTENCY_KEY"];
|
|
566
572
|
};
|
|
567
573
|
export type OperationErrorCode<Id extends keyof typeof operationErrors> = (typeof operationErrors)[Id][number];
|
package/dist/generated/errors.js
CHANGED
|
@@ -231,6 +231,10 @@ export const errorRegistry = {
|
|
|
231
231
|
"status": 409,
|
|
232
232
|
"retry": "NEVER"
|
|
233
233
|
},
|
|
234
|
+
"GOLDEN_NOT_ELIGIBLE": {
|
|
235
|
+
"status": 409,
|
|
236
|
+
"retry": "NEVER"
|
|
237
|
+
},
|
|
234
238
|
"INVALID_SIGNATURE": {
|
|
235
239
|
"status": 422,
|
|
236
240
|
"retry": "NEVER"
|
|
@@ -1239,6 +1243,10 @@ export const operationErrors = {
|
|
|
1239
1243
|
"MARKET_DATA_UNAVAILABLE",
|
|
1240
1244
|
"INVALID_QUERY"
|
|
1241
1245
|
],
|
|
1246
|
+
"getMarketDisplay": [
|
|
1247
|
+
"MARKET_DATA_UNAVAILABLE",
|
|
1248
|
+
"INVALID_QUERY"
|
|
1249
|
+
],
|
|
1242
1250
|
"getMarketHistory": [
|
|
1243
1251
|
"INVALID_REQUEST",
|
|
1244
1252
|
"NOT_FOUND",
|
|
@@ -1301,6 +1309,10 @@ export const operationErrors = {
|
|
|
1301
1309
|
"NOT_FOUND",
|
|
1302
1310
|
"IDENTITY_NOT_FOUND"
|
|
1303
1311
|
],
|
|
1312
|
+
"getOutcomeMetadata": [
|
|
1313
|
+
"MARKET_DATA_UNAVAILABLE",
|
|
1314
|
+
"INVALID_QUERY"
|
|
1315
|
+
],
|
|
1304
1316
|
"getOwnMaker": [
|
|
1305
1317
|
"UNAUTHENTICATED",
|
|
1306
1318
|
"FORBIDDEN",
|
|
@@ -2216,7 +2228,8 @@ export const operationErrors = {
|
|
|
2216
2228
|
"X_ALREADY_CLAIMED",
|
|
2217
2229
|
"GOLDEN_GIVEN_OUT",
|
|
2218
2230
|
"GOLDEN_CODE_DISABLED",
|
|
2219
|
-
"X_VERIFICATION_UNAVAILABLE"
|
|
2231
|
+
"X_VERIFICATION_UNAVAILABLE",
|
|
2232
|
+
"GOLDEN_NOT_ELIGIBLE"
|
|
2220
2233
|
],
|
|
2221
2234
|
"unreactComment": [
|
|
2222
2235
|
"UNAUTHENTICATED",
|
|
@@ -30,6 +30,7 @@ export type paths = {
|
|
|
30
30
|
readonly "/v1/questions/{question_id}/recurring-round": Pick<SharedPaths["/v1/questions/{question_id}/recurring-round"], "parameters" | "get">;
|
|
31
31
|
readonly "/v1/series/{series_id}": Pick<SharedPaths["/v1/series/{series_id}"], "parameters" | "get">;
|
|
32
32
|
readonly "/v1/taxonomy": Pick<SharedPaths["/v1/taxonomy"], "parameters" | "get">;
|
|
33
|
+
readonly "/v1/market-display": Pick<SharedPaths["/v1/market-display"], "parameters" | "get">;
|
|
33
34
|
readonly "/v1/rfqs/{rfq_id}": Pick<SharedPaths["/v1/rfqs/{rfq_id}"], "parameters" | "get">;
|
|
34
35
|
readonly "/v1/me/operations": Pick<SharedPaths["/v1/me/operations"], "parameters" | "get">;
|
|
35
36
|
readonly "/v1/me/operations/{operation_id}": Pick<SharedPaths["/v1/me/operations/{operation_id}"], "parameters" | "get">;
|
|
@@ -44,4 +45,4 @@ export type paths = {
|
|
|
44
45
|
readonly "/v1/makers/{maker_id}/exposure": Pick<SharedPaths["/v1/makers/{maker_id}/exposure"], "parameters" | "get">;
|
|
45
46
|
readonly "/v1/makers/{maker_id}/performance": Pick<SharedPaths["/v1/makers/{maker_id}/performance"], "parameters" | "get">;
|
|
46
47
|
};
|
|
47
|
-
export type operations = Pick<SharedOperations, "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">;
|
|
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">;
|
|
@@ -426,7 +426,7 @@ export type paths = {
|
|
|
426
426
|
readonly put?: never;
|
|
427
427
|
/**
|
|
428
428
|
* Bind embedded wallet
|
|
429
|
-
* @description Idempotently makes a wallet attested by the authenticated user's signed Privy identity token the account's: the account's current wallet if it has one, else the Privy embedded wallet, else the one Ethereum wallet the user signed in with. The account's wallet never changes once bound; several external wallets on a new account, or a wallet another account holds, answer EMBEDDED_WALLET_CONFLICT, and a smart contract wallet answers WALLET_CONTRACT_UNSUPPORTED. Creating a new account needs a Google, email, X or Ethereum wallet login linked in the identity token, or a Solana wallet login (such as one from the Solana app on the same Privy app) once the user has a Privy embedded wallet, or this answers SIGN_IN_REQUIRED, and, while the closed launch is on, an invite code redeemed with the access service first, or this answers ACCESS_REQUIRED. Existing accounts are unaffected.
|
|
429
|
+
* @description Idempotently makes a wallet attested by the authenticated user's signed Privy identity token the account's: the account's current wallet if it has one, else the Privy embedded wallet, else the one Ethereum wallet the user signed in with. The account's wallet never changes once bound; several external wallets on a new account, or a wallet another account holds, answer EMBEDDED_WALLET_CONFLICT, and a smart contract wallet answers WALLET_CONTRACT_UNSUPPORTED. Creating a new account needs a Google, email, X or Ethereum wallet login linked in the identity token, or a Solana wallet login (such as one from the Solana app on the same Privy app) once the user has a Privy embedded wallet, or this answers SIGN_IN_REQUIRED, and, while the closed launch is on, an invite code redeemed with the access service first, or this answers ACCESS_REQUIRED. Existing accounts are unaffected. The body is optional: an app may send the browser's analytics `device_id`, which only feeds the free Combo's farm check when the new account gets a golden ticket; it never changes the account or the idempotent answer.
|
|
430
430
|
*/
|
|
431
431
|
readonly post: operations["bindEmbeddedWallet"];
|
|
432
432
|
readonly delete?: never;
|
|
@@ -766,7 +766,7 @@ export type paths = {
|
|
|
766
766
|
readonly put?: never;
|
|
767
767
|
/**
|
|
768
768
|
* Unlock the golden ticket
|
|
769
|
-
* @description Unlocks this account's LOCKED golden ticket, which makes it AVAILABLE. Totalis reads from the login provider which X account is linked to this account's login now, then, in one step, records that X account as having unlocked a free Combo, for good and on any account, and takes one free Combo from the invite code the account joined with: whoever unlocks first gets the last one.
|
|
769
|
+
* @description Unlocks this account's LOCKED golden ticket, which makes it AVAILABLE. Totalis reads from the login provider which X account is linked to this account's login now, then, in one step, records that X account as having unlocked a free Combo, for good and on any account, and takes one free Combo from the invite code the account joined with: whoever unlocks first gets the last one. Totalis takes no X account, code or proof from the client; the body is `{}` or carries the browser's analytics `device_id`, which only feeds the farm check. An X account under 30 days old, or a browser another account already unlocked with, refuses the unlock for good: GOLDEN_NOT_ELIGIBLE, whatever X account the account links next; the account otherwise trades as before. The account's single ticket keys the request: once it is unlocked, the same request answers the ticket as it stands and takes nothing more, also after X was unlinked, so an unlock whose answer was lost is found by unlocking again. Unlinking X later changes nothing, and an unlocked ticket that expires unused gives nothing back. Refusals take nothing: X_REQUIRED (no X account is linked), X_ALREADY_CLAIMED (that X account already unlocked a free Combo), GOLDEN_GIVEN_OUT (the code has none left), GOLDEN_CODE_DISABLED (the code is disabled), GOLDEN_TICKET_EXPIRED (it expired before it was unlocked), GOLDEN_TICKET_USED or GOLDEN_PLACEMENT_IN_FLIGHT (a ticket used before unlocking existed, which needs no unlock), X_VERIFICATION_UNAVAILABLE (the login provider did not answer), GOLDEN_NOT_ELIGIBLE (refused as farming, answered again before X is read). The ticket's 7 days still run from `granted_at`.
|
|
770
770
|
*/
|
|
771
771
|
readonly post: operations["unlockGolden"];
|
|
772
772
|
readonly delete?: never;
|
|
@@ -2278,6 +2278,46 @@ export type paths = {
|
|
|
2278
2278
|
readonly patch?: never;
|
|
2279
2279
|
readonly trace?: never;
|
|
2280
2280
|
};
|
|
2281
|
+
readonly "/v1/market-display": {
|
|
2282
|
+
readonly parameters: {
|
|
2283
|
+
readonly query?: never;
|
|
2284
|
+
readonly header?: never;
|
|
2285
|
+
readonly path?: never;
|
|
2286
|
+
readonly cookie?: never;
|
|
2287
|
+
};
|
|
2288
|
+
/**
|
|
2289
|
+
* Get market display
|
|
2290
|
+
* @description Name and picture up to 100 outcomes from their IDs alone, live or departed, such as the legs of a position or the fills of an account.
|
|
2291
|
+
*/
|
|
2292
|
+
readonly get: operations["getMarketDisplay"];
|
|
2293
|
+
readonly put?: never;
|
|
2294
|
+
readonly post?: never;
|
|
2295
|
+
readonly delete?: never;
|
|
2296
|
+
readonly options?: never;
|
|
2297
|
+
readonly head?: never;
|
|
2298
|
+
readonly patch?: never;
|
|
2299
|
+
readonly trace?: never;
|
|
2300
|
+
};
|
|
2301
|
+
readonly "/v1/outcome-metadata": {
|
|
2302
|
+
readonly parameters: {
|
|
2303
|
+
readonly query?: never;
|
|
2304
|
+
readonly header?: never;
|
|
2305
|
+
readonly path?: never;
|
|
2306
|
+
readonly cookie?: never;
|
|
2307
|
+
};
|
|
2308
|
+
/**
|
|
2309
|
+
* Get outcome metadata
|
|
2310
|
+
* @description Hyperliquid's outcome metadata and outcome templates exactly as our own Hyperliquid node served them in the catalog revision the current catalog generation was built from: every outcome's and question's native name, description and side names, each outcome's `deployerFeeScale` and the venue's `feeScale`, which set a sale's fees. The answer is always the current generation; with `min_generation`, it is at least that one, and a catalog still behind it is 503 MARKET_DATA_UNAVAILABLE. Shared caches keep for 5 seconds only an answer naming exactly the `min_generation` asked for; any other answer is no-store, so it is always current. Before the first catalog publishes, while the catalog source has not reconfirmed the catalog recently, on a standby, or when the current generation holds no metadata, this is 503 MARKET_DATA_UNAVAILABLE, never an older generation's metadata.
|
|
2311
|
+
*/
|
|
2312
|
+
readonly get: operations["getOutcomeMetadata"];
|
|
2313
|
+
readonly put?: never;
|
|
2314
|
+
readonly post?: never;
|
|
2315
|
+
readonly delete?: never;
|
|
2316
|
+
readonly options?: never;
|
|
2317
|
+
readonly head?: never;
|
|
2318
|
+
readonly patch?: never;
|
|
2319
|
+
readonly trace?: never;
|
|
2320
|
+
};
|
|
2281
2321
|
readonly "/v1/perp-marks": {
|
|
2282
2322
|
readonly parameters: {
|
|
2283
2323
|
readonly query?: never;
|
|
@@ -3508,8 +3548,18 @@ export type components = {
|
|
|
3508
3548
|
readonly HyperevmKeeperOperationKind: "DEPOSIT_USER_AUTHORIZED" | "WITHDRAW_USER" | "ACCEPT" | "SETTLE" | "CACHE_SETTLEMENT" | "CLAIM" | "SELL_BACK" | "TRANSFER_TICKET" | "ATTEST" | "SYNC" | "TOTALIS_PAYOUT" | "CORE_EXIT" | "SET_AGENT" | "USDC_PERMIT";
|
|
3509
3549
|
readonly Hash32: string;
|
|
3510
3550
|
readonly Uint256: string;
|
|
3551
|
+
/**
|
|
3552
|
+
* BrowserDevice
|
|
3553
|
+
* @description Optional facts about the browser sending the request; `{}` when it has none.
|
|
3554
|
+
*/
|
|
3555
|
+
readonly BrowserDevice: {
|
|
3556
|
+
/** @description The browser's analytics device ID (PostHog `$device_id`), when the app has one. Hashed with a server key and used only by the free Combo's farm check; missing is unknown, never a refusal. */
|
|
3557
|
+
readonly device_id?: string;
|
|
3558
|
+
};
|
|
3511
3559
|
/** GoldenTicket */
|
|
3512
3560
|
readonly GoldenTicket: {
|
|
3561
|
+
/** @description True when the free Combo's farm check refused this account for good and no operator waived it: the ticket stays LOCKED until it expires and no X account can unlock it (POST /v1/me/golden/unlock answers GOLDEN_NOT_ELIGIBLE). False otherwise. */
|
|
3562
|
+
readonly not_eligible: boolean;
|
|
3513
3563
|
/**
|
|
3514
3564
|
* @description LOCKED: unused and unexpired, and not unlocked yet: unlock it with POST /v1/me/golden/unlock; it cannot be quoted or placed until then (GOLDEN_UNLOCK_REQUIRED). AVAILABLE: unlocked, unused and unexpired. PLACING: Totalis is buying the Combo. BOUGHT: Totalis bought it; the gift to this account is on its way, or, while `placement.gift` is set, waits for this account's wallet to sign it. PLACED: the gift landed; `position_id` is the account's position. LAPSED: Totalis bought it, but the position ended (settled, or lost a leg) before its gift was signed and landed; it stays Totalis's and the ticket is used; `position_id` names it. EXPIRED: it lapsed unused, unlocked or not.
|
|
3515
3565
|
* @enum {string}
|
|
@@ -3638,7 +3688,7 @@ export type components = {
|
|
|
3638
3688
|
* @description Stable HTTP error code. Each code has one HTTP status and one retry value.
|
|
3639
3689
|
* @enum {string}
|
|
3640
3690
|
*/
|
|
3641
|
-
readonly ErrorCode: "INVALID_REQUEST" | "INVALID_QUERY" | "INVALID_CURSOR" | "INVALID_IDEMPOTENCY_KEY" | "ORIGIN_REQUIRED" | "SUBPROTOCOL_REQUIRED" | "UNSUPPORTED_BROWSE_CONTRACT" | "UNAUTHENTICATED" | "FORBIDDEN" | "ORIGIN_NOT_ALLOWED" | "ACCESS_REQUIRED" | "SIGN_IN_REQUIRED" | "NOT_FOUND" | "IDENTITY_NOT_FOUND" | "QUOTE_NOT_FOUND" | "INVITE_CODE_NOT_FOUND" | "IDEMPOTENCY_KEY_REUSED" | "STATE_CONFLICT" | "INVITE_CODE_EXHAUSTED" | "STALE_CURSOR" | "CURSOR_EXPIRED" | "CURSOR_RESET" | "RECURRING_DEFINITION_CONFLICT" | "EMBEDDED_WALLET_CONFLICT" | "SECRET_UNAVAILABLE" | "ROTATION_IN_PROGRESS" | "TELEMETRY_CONFLICT" | "RFQ_NOT_CANCELLABLE" | "RFQ_NOT_OPEN" | "RFQ_GENERATION_STALE" | "RFQ_GENERATION_IN_FLIGHT" | "QUOTE_EXPIRED" | "QUOTE_CANCELLED" | "QUOTE_REPLACED" | "QUOTE_SIGNER_CHANGED" | "QUOTE_CAPACITY_EXCEEDED" | "CORE_ACCOUNT_NOT_READY" | "CORE_ACCOUNT_ACTIVATION_REQUIRED" | "CORE_EXIT_ABANDONED" | "CORE_MOVE_IN_FLIGHT" | "ACCEPTANCE_IN_FLIGHT" | "USERNAME_TAKEN" | "USERNAME_ALREADY_SET" | "USERNAME_REQUIRED" | "GOLDEN_TICKET_NONE" | "GOLDEN_TICKET_USED" | "GOLDEN_TICKET_EXPIRED" | "GOLDEN_PLACEMENT_IN_FLIGHT" | "GOLDEN_PROMO_BUSY" | "GOLDEN_CASHOUT_REFUSED" | "GOLDEN_OFFER_BELOW_FLOOR" | "GOLDEN_GIFT_TERMS_EXPIRED" | "GOLDEN_UNLOCK_REQUIRED" | "GOLDEN_GIVEN_OUT" | "GOLDEN_CODE_DISABLED" | "X_REQUIRED" | "X_ALREADY_CLAIMED" | "INVALID_SIGNATURE" | "WALLET_CONTRACT_UNSUPPORTED" | "WRONG_AUTHORITY" | "KEY_LIMIT_REACHED" | "USERNAME_NOT_ALLOWED" | "FOLLOW_SELF" | "FOLLOW_LIMIT_REACHED" | "GOLDEN_LEG_COUNT" | "GOLDEN_LEG_NOT_ELIGIBLE" | "GOLDEN_QUOTE_NOT_HOUSE" | "RATE_LIMITED" | "CONNECTION_LIMIT" | "RFQ_INTENT_LIMIT" | "QUOTE_EXPOSURE_LIMIT" | "DEPENDENCY_STALE" | "AUTHORIZATION_UNAVAILABLE" | "SOURCE_UNAVAILABLE" | "CONTRACT_UNAVAILABLE" | "MARKET_DATA_UNAVAILABLE" | "BROWSE_UNAVAILABLE" | "FINANCIAL_ACTIONS_DISABLED" | "CORE_EXIT_UNAVAILABLE" | "COLLATERAL_REDUCTION_UNAVAILABLE" | "SPONSORSHIP_UNAVAILABLE" | "CONTRACT_SIGNATURE_OVERLOADED" | "QUOTE_EXPOSURE_STALE" | "COMBO_AUTOMATIC_DISABLED" | "GAS_PRICE_ABOVE_CEILING" | "EXECUTION_BACKLOG_FULL" | "EMBEDDED_WALLET_UNAVAILABLE" | "GOLDEN_PROMO_FUNDS_LOW" | "X_VERIFICATION_UNAVAILABLE" | "CONNECTION_DRAIN";
|
|
3691
|
+
readonly ErrorCode: "INVALID_REQUEST" | "INVALID_QUERY" | "INVALID_CURSOR" | "INVALID_IDEMPOTENCY_KEY" | "ORIGIN_REQUIRED" | "SUBPROTOCOL_REQUIRED" | "UNSUPPORTED_BROWSE_CONTRACT" | "UNAUTHENTICATED" | "FORBIDDEN" | "ORIGIN_NOT_ALLOWED" | "ACCESS_REQUIRED" | "SIGN_IN_REQUIRED" | "NOT_FOUND" | "IDENTITY_NOT_FOUND" | "QUOTE_NOT_FOUND" | "INVITE_CODE_NOT_FOUND" | "IDEMPOTENCY_KEY_REUSED" | "STATE_CONFLICT" | "INVITE_CODE_EXHAUSTED" | "STALE_CURSOR" | "CURSOR_EXPIRED" | "CURSOR_RESET" | "RECURRING_DEFINITION_CONFLICT" | "EMBEDDED_WALLET_CONFLICT" | "SECRET_UNAVAILABLE" | "ROTATION_IN_PROGRESS" | "TELEMETRY_CONFLICT" | "RFQ_NOT_CANCELLABLE" | "RFQ_NOT_OPEN" | "RFQ_GENERATION_STALE" | "RFQ_GENERATION_IN_FLIGHT" | "QUOTE_EXPIRED" | "QUOTE_CANCELLED" | "QUOTE_REPLACED" | "QUOTE_SIGNER_CHANGED" | "QUOTE_CAPACITY_EXCEEDED" | "CORE_ACCOUNT_NOT_READY" | "CORE_ACCOUNT_ACTIVATION_REQUIRED" | "CORE_EXIT_ABANDONED" | "CORE_MOVE_IN_FLIGHT" | "ACCEPTANCE_IN_FLIGHT" | "USERNAME_TAKEN" | "USERNAME_ALREADY_SET" | "USERNAME_REQUIRED" | "GOLDEN_TICKET_NONE" | "GOLDEN_TICKET_USED" | "GOLDEN_TICKET_EXPIRED" | "GOLDEN_PLACEMENT_IN_FLIGHT" | "GOLDEN_PROMO_BUSY" | "GOLDEN_CASHOUT_REFUSED" | "GOLDEN_OFFER_BELOW_FLOOR" | "GOLDEN_GIFT_TERMS_EXPIRED" | "GOLDEN_UNLOCK_REQUIRED" | "GOLDEN_GIVEN_OUT" | "GOLDEN_CODE_DISABLED" | "X_REQUIRED" | "X_ALREADY_CLAIMED" | "GOLDEN_NOT_ELIGIBLE" | "INVALID_SIGNATURE" | "WALLET_CONTRACT_UNSUPPORTED" | "WRONG_AUTHORITY" | "KEY_LIMIT_REACHED" | "USERNAME_NOT_ALLOWED" | "FOLLOW_SELF" | "FOLLOW_LIMIT_REACHED" | "GOLDEN_LEG_COUNT" | "GOLDEN_LEG_NOT_ELIGIBLE" | "GOLDEN_QUOTE_NOT_HOUSE" | "RATE_LIMITED" | "CONNECTION_LIMIT" | "RFQ_INTENT_LIMIT" | "QUOTE_EXPOSURE_LIMIT" | "DEPENDENCY_STALE" | "AUTHORIZATION_UNAVAILABLE" | "SOURCE_UNAVAILABLE" | "CONTRACT_UNAVAILABLE" | "MARKET_DATA_UNAVAILABLE" | "BROWSE_UNAVAILABLE" | "FINANCIAL_ACTIONS_DISABLED" | "CORE_EXIT_UNAVAILABLE" | "COLLATERAL_REDUCTION_UNAVAILABLE" | "SPONSORSHIP_UNAVAILABLE" | "CONTRACT_SIGNATURE_OVERLOADED" | "QUOTE_EXPOSURE_STALE" | "COMBO_AUTOMATIC_DISABLED" | "GAS_PRICE_ABOVE_CEILING" | "EXECUTION_BACKLOG_FULL" | "EMBEDDED_WALLET_UNAVAILABLE" | "GOLDEN_PROMO_FUNDS_LOW" | "X_VERIFICATION_UNAVAILABLE" | "CONNECTION_DRAIN";
|
|
3642
3692
|
readonly FieldViolation: {
|
|
3643
3693
|
/**
|
|
3644
3694
|
* @description REQUIRED: the input is missing. INVALID: it is present but malformed or out of range. UNEXPECTED: the input is not accepted here.
|
|
@@ -5912,6 +5962,146 @@ export type components = {
|
|
|
5912
5962
|
/** @description Reviewed Hyperliquid outcome templates of the network, ascending by ID. */
|
|
5913
5963
|
readonly templates: readonly components["schemas"]["TemplateDefinition"][];
|
|
5914
5964
|
};
|
|
5965
|
+
readonly OutcomeNativeQuestion: {
|
|
5966
|
+
/** @description Hyperliquid question ID; null for an outcome known only from a settlement record that names its question without the ID. */
|
|
5967
|
+
readonly native_question_id: components["schemas"]["RealQuestionId"] | null;
|
|
5968
|
+
/** @description Native question name, for example template:sportsContestResult. */
|
|
5969
|
+
readonly name: string;
|
|
5970
|
+
/** @description Native question description. */
|
|
5971
|
+
readonly description: string;
|
|
5972
|
+
};
|
|
5973
|
+
/** @description The outcome exactly as Hyperliquid listed it in the last catalog Totalis recorded it in (the current one while it is listed) or, for an outcome no kept catalog copy holds, as Hyperliquid's settlement record names it. */
|
|
5974
|
+
readonly OutcomeNative: {
|
|
5975
|
+
/** @description Native outcome name, for example template:sportsContestWinner or Recurring. */
|
|
5976
|
+
readonly name: string;
|
|
5977
|
+
/** @description Native outcome description; a template instance holds its keyword values as key:value pairs separated by a vertical bar. */
|
|
5978
|
+
readonly description: string;
|
|
5979
|
+
/** @description Native side names, Yes then No, as listed (template:Yes, template:{shortNameA}); null where the copy Totalis kept predates side names. */
|
|
5980
|
+
readonly side_names: readonly string[] | null;
|
|
5981
|
+
/** @description The question the outcome belongs to, from the same catalog; null for a standalone outcome. */
|
|
5982
|
+
readonly question: components["schemas"]["OutcomeNativeQuestion"] | null;
|
|
5983
|
+
};
|
|
5984
|
+
/** @description An imagery subject's key: its kind, a colon and its normalized name, such as team:detroit lions. */
|
|
5985
|
+
readonly SubjectKey: string;
|
|
5986
|
+
readonly PictureSubject: {
|
|
5987
|
+
/**
|
|
5988
|
+
* @description SUBJECT: a subject described once in the answer's `subjects`.
|
|
5989
|
+
* @constant
|
|
5990
|
+
*/
|
|
5991
|
+
readonly type: "SUBJECT";
|
|
5992
|
+
/** @description The subject's key in `subjects`. */
|
|
5993
|
+
readonly key: components["schemas"]["SubjectKey"];
|
|
5994
|
+
};
|
|
5995
|
+
readonly PictureGlyph: {
|
|
5996
|
+
/**
|
|
5997
|
+
* @description GLYPH: a mark of the client's own, never artwork.
|
|
5998
|
+
* @constant
|
|
5999
|
+
*/
|
|
6000
|
+
readonly type: "GLYPH";
|
|
6001
|
+
/**
|
|
6002
|
+
* @description DRAW: a contest's draw outcome. TOTAL: an over/under line, drawn as Over for Yes and Under for No where the side is known.
|
|
6003
|
+
* @enum {string}
|
|
6004
|
+
*/
|
|
6005
|
+
readonly glyph: "DRAW" | "TOTAL";
|
|
6006
|
+
};
|
|
6007
|
+
readonly Picture: components["schemas"]["PictureSubject"] | components["schemas"]["PictureGlyph"];
|
|
6008
|
+
/** @description Finished pictures for each place an outcome is drawn. null: nothing to picture there; a caller that needs a picture draws a coin from the title's initials. */
|
|
6009
|
+
readonly OutcomePictures: {
|
|
6010
|
+
/** @description The market as a whole, for a card or a header: its question's subject, or the TOTAL glyph for an over/under line. */
|
|
6011
|
+
readonly market: components["schemas"]["Picture"] | null;
|
|
6012
|
+
/** @description Holding or buying Yes, then No: the side's own subject when it has an image, else the question's subject when it has one, else whichever of them is known (drawn as its coin). A draw carries the DRAW glyph, an over/under line the TOTAL glyph. */
|
|
6013
|
+
readonly pick: readonly (components["schemas"]["Picture"] | null)[];
|
|
6014
|
+
/** @description Holding or buying the outcome before a side is chosen, by the same rule as `pick` with the option's own subject only: a winner's or spread's sides are its teams, so with no side it shows the question's subject. */
|
|
6015
|
+
readonly pick_no_side: components["schemas"]["Picture"] | null;
|
|
6016
|
+
/** @description Yes's and No's own subject with no fallback: the team a side of a winner or spread backs, or the option's own subject (a team, a candidate); null where the side has none. Never a glyph. */
|
|
6017
|
+
readonly own: readonly (components["schemas"]["Picture"] | null)[];
|
|
6018
|
+
/** @description The outcome as one option in its question's list: its own subject when it has an image, the DRAW glyph, or, for an option with no subject of its own (Other), the question's subject when it has an image and another option of the question has an image of its own; else null. Decided from the whole question, so a row reads the same alone as in its list. Its subject always has an image; show a list's picture column only while some row has a subject. */
|
|
6019
|
+
readonly row: components["schemas"]["Picture"] | null;
|
|
6020
|
+
/** @description Participant A's and B's subjects in the outcome's sport when its keywords name both (a game's winner, spread or total, or an option of a contest between them); null otherwise. */
|
|
6021
|
+
readonly teams: readonly (components["schemas"]["PictureSubject"] | null)[] | null;
|
|
6022
|
+
};
|
|
6023
|
+
readonly OutcomeDisplay: {
|
|
6024
|
+
/** @description Hyperliquid outcome ID. */
|
|
6025
|
+
readonly outcome_id: components["schemas"]["UInt32String"];
|
|
6026
|
+
/** @description English display title, the market's `title`. */
|
|
6027
|
+
readonly title: string;
|
|
6028
|
+
/** @description The outcome as Hyperliquid listed it, for a client that names markets itself. */
|
|
6029
|
+
readonly native: components["schemas"]["OutcomeNative"];
|
|
6030
|
+
/** @description Finished pictures for each place the outcome is drawn. */
|
|
6031
|
+
readonly pictures: components["schemas"]["OutcomePictures"];
|
|
6032
|
+
};
|
|
6033
|
+
readonly PictureVariant: {
|
|
6034
|
+
/**
|
|
6035
|
+
* @description Width and height in pixels.
|
|
6036
|
+
* @enum {integer}
|
|
6037
|
+
*/
|
|
6038
|
+
readonly size: 64 | 128 | 256;
|
|
6039
|
+
/** @description Public WebP image URL. */
|
|
6040
|
+
readonly url: string;
|
|
6041
|
+
};
|
|
6042
|
+
readonly OklchColor: {
|
|
6043
|
+
/** @description Oklch lightness, 0 to 1. */
|
|
6044
|
+
readonly l: number;
|
|
6045
|
+
/** @description Oklch chroma. */
|
|
6046
|
+
readonly c: number;
|
|
6047
|
+
/** @description Hue in degrees. */
|
|
6048
|
+
readonly h: number;
|
|
6049
|
+
};
|
|
6050
|
+
readonly SubjectImage: {
|
|
6051
|
+
/**
|
|
6052
|
+
* @description ICON: a logo inset on a transparent square, drawn whole. PHOTO: a photo that fills its circle.
|
|
6053
|
+
* @enum {string}
|
|
6054
|
+
*/
|
|
6055
|
+
readonly fit: "ICON" | "PHOTO";
|
|
6056
|
+
/** @description Square WebP renditions at 64, 128 and 256 pixels, in that order. Their URLs never change content. */
|
|
6057
|
+
readonly variants: readonly components["schemas"]["PictureVariant"][];
|
|
6058
|
+
/** @description The image's chromatic colors, most used first, for team and chart line colors; absent where imagery recorded none. A line wears its side's `own` subject's palette when that subject has an image, or, when it is a chart's only line and its side's own subject has none, `market`'s; a line whose `pick` is a glyph wears none. */
|
|
6059
|
+
readonly palette?: readonly components["schemas"]["OklchColor"][];
|
|
6060
|
+
};
|
|
6061
|
+
readonly Subject: {
|
|
6062
|
+
/** @description The subject's name, for alternative text. */
|
|
6063
|
+
readonly label: string;
|
|
6064
|
+
/** @description The subject's short mark, drawn on a coin when it has no image, while its image loads or when it fails. */
|
|
6065
|
+
readonly monogram: string;
|
|
6066
|
+
/** @description The subject's artwork; null for a known subject without any, drawn as its coin. */
|
|
6067
|
+
readonly image: components["schemas"]["SubjectImage"] | null;
|
|
6068
|
+
};
|
|
6069
|
+
/** @description Each subject a picture of the answer names, once, by key. */
|
|
6070
|
+
readonly Subjects: {
|
|
6071
|
+
readonly [key: string]: components["schemas"]["Subject"];
|
|
6072
|
+
};
|
|
6073
|
+
readonly MarketDisplay: {
|
|
6074
|
+
/**
|
|
6075
|
+
* @description Hyperliquid network the outcomes are listed on.
|
|
6076
|
+
* @enum {string}
|
|
6077
|
+
*/
|
|
6078
|
+
readonly network: "HYPEREVM_TESTNET" | "HYPEREVM_MAINNET";
|
|
6079
|
+
/** @description The imagery manifest publication every subject was resolved from. null while market-data holds no manifest: every picture that would name a subject is then null and `subjects` is empty, the Draw and Total glyphs still show, and the answer is never cached. */
|
|
6080
|
+
readonly imagery_publication: string | null;
|
|
6081
|
+
/** @description Every asked outcome Totalis recorded, live or departed, ascending by outcome ID. */
|
|
6082
|
+
readonly outcomes: readonly components["schemas"]["OutcomeDisplay"][];
|
|
6083
|
+
/** @description Each subject the outcomes' pictures name, once, by key. */
|
|
6084
|
+
readonly subjects: components["schemas"]["Subjects"];
|
|
6085
|
+
/** @description Asked outcome IDs Totalis holds no definition of although it recorded a newer one, such as one no catalog listed and Hyperliquid has not settled yet: nothing names or pictures them. Ascending. */
|
|
6086
|
+
readonly not_recorded: readonly components["schemas"]["UInt32String"][];
|
|
6087
|
+
/** @description Asked outcome IDs newer than every outcome Totalis recorded, such as one listed seconds ago: ask again shortly. An answer with any is never cached. Ascending. */
|
|
6088
|
+
readonly pending: readonly components["schemas"]["UInt32String"][];
|
|
6089
|
+
/** @description The entries of Hyperliquid's info `outcomeTemplates` answer, unchanged, that these outcomes and their questions are instances of, from the current catalog generation's template list, ascending by `id`. A template Hyperliquid no longer lists is left out: name that outcome by `title`. */
|
|
6090
|
+
readonly templates: readonly unknown[];
|
|
6091
|
+
};
|
|
6092
|
+
readonly OutcomeMetadata: {
|
|
6093
|
+
/** @description Catalog generation built from this metadata. */
|
|
6094
|
+
readonly catalog_generation: components["schemas"]["PositiveInt64"];
|
|
6095
|
+
/**
|
|
6096
|
+
* @description Hyperliquid network the metadata was read from.
|
|
6097
|
+
* @enum {string}
|
|
6098
|
+
*/
|
|
6099
|
+
readonly network: "HYPEREVM_TESTNET" | "HYPEREVM_MAINNET";
|
|
6100
|
+
/** @description Hyperliquid's info `outcomeMeta` answer, unchanged: an object of `outcomes`, `questions`, `deployers` and `feeScale`, in Hyperliquid's own shape, which Hyperliquid may extend. */
|
|
6101
|
+
readonly outcome_meta: unknown;
|
|
6102
|
+
/** @description Hyperliquid's info `outcomeTemplates` answer from the same catalog revision, unchanged. */
|
|
6103
|
+
readonly outcome_templates: readonly unknown[];
|
|
6104
|
+
};
|
|
5915
6105
|
/** @description [step, mark, steps]: steps consecutive steps of step_seconds starting at step, each ending at mark. */
|
|
5916
6106
|
readonly PerpMarkRun: readonly [
|
|
5917
6107
|
number,
|
|
@@ -6660,6 +6850,16 @@ export type components = {
|
|
|
6660
6850
|
* @example 1209
|
|
6661
6851
|
*/
|
|
6662
6852
|
readonly OutcomeId: components["schemas"]["UInt32String"];
|
|
6853
|
+
/**
|
|
6854
|
+
* @description 1 to 100 HIP-4 outcome IDs as decimal strings, comma-separated, strictly ascending, so one set of outcomes is always one URL. Any other order, a repeat or an ID above 4294967295 is 400 INVALID_QUERY.
|
|
6855
|
+
* @example 35280,36412
|
|
6856
|
+
*/
|
|
6857
|
+
readonly OutcomeIds: string;
|
|
6858
|
+
/**
|
|
6859
|
+
* @description The latest `catalog_generation` a market or browse read named; the answer is that generation or a later one.
|
|
6860
|
+
* @example 20291
|
|
6861
|
+
*/
|
|
6862
|
+
readonly MinCatalogGeneration: components["schemas"]["PositiveInt64"];
|
|
6663
6863
|
/**
|
|
6664
6864
|
* @description Browse contract of the detail. 4 adds game, the market's game with up to 256 current members, estimated_live_until and scoreboard, the in-play window end and live game reading of the market's matchup, and series_id for IPO ladder members; 2, 3 or omitted return the earlier detail. Only this query parameter selects it, so a browser read needs no CORS preflight; the X-Totalis-Browse-Contract header is ignored on this route. Repeated, malformed or other values return 400 UNSUPPORTED_BROWSE_CONTRACT.
|
|
6665
6865
|
* @example 4
|
|
@@ -6901,6 +7101,10 @@ export type components = {
|
|
|
6901
7101
|
headers: {
|
|
6902
7102
|
/** @description Seconds to wait before resending the same request */
|
|
6903
7103
|
readonly RetryAfter: number;
|
|
7104
|
+
/** @description Strong validator of the whole answer; send it as `If-None-Match` to get 304 when the answer is unchanged */
|
|
7105
|
+
readonly MarketDisplayETag: string;
|
|
7106
|
+
/** @description Strong validator of the answer; send it as `If-None-Match` to get 304 when the answer is unchanged */
|
|
7107
|
+
readonly OutcomeMetadataETag: string;
|
|
6904
7108
|
/** @description Always `no-store`; account data must not be cached. */
|
|
6905
7109
|
readonly CacheControl: "no-store";
|
|
6906
7110
|
/** @description The response varies by the Authorization header, so shared caches must not reuse it across credentials. */
|
|
@@ -7862,7 +8066,11 @@ export interface operations {
|
|
|
7862
8066
|
readonly path?: never;
|
|
7863
8067
|
readonly cookie?: never;
|
|
7864
8068
|
};
|
|
7865
|
-
readonly requestBody?:
|
|
8069
|
+
readonly requestBody?: {
|
|
8070
|
+
readonly content: {
|
|
8071
|
+
readonly "application/json": components["schemas"]["BrowserDevice"];
|
|
8072
|
+
};
|
|
8073
|
+
};
|
|
7866
8074
|
readonly responses: {
|
|
7867
8075
|
/** @description Account wallet is bound */
|
|
7868
8076
|
readonly 204: {
|
|
@@ -8461,7 +8669,7 @@ export interface operations {
|
|
|
8461
8669
|
};
|
|
8462
8670
|
readonly requestBody: {
|
|
8463
8671
|
readonly content: {
|
|
8464
|
-
readonly "application/json":
|
|
8672
|
+
readonly "application/json": components["schemas"]["BrowserDevice"];
|
|
8465
8673
|
};
|
|
8466
8674
|
};
|
|
8467
8675
|
readonly responses: {
|
|
@@ -11719,6 +11927,82 @@ export interface operations {
|
|
|
11719
11927
|
readonly 503: components["responses"]["Unavailable"];
|
|
11720
11928
|
};
|
|
11721
11929
|
};
|
|
11930
|
+
readonly getMarketDisplay: {
|
|
11931
|
+
readonly parameters: {
|
|
11932
|
+
readonly query: {
|
|
11933
|
+
/**
|
|
11934
|
+
* @description 1 to 100 HIP-4 outcome IDs as decimal strings, comma-separated, strictly ascending, so one set of outcomes is always one URL. Any other order, a repeat or an ID above 4294967295 is 400 INVALID_QUERY.
|
|
11935
|
+
* @example 35280,36412
|
|
11936
|
+
*/
|
|
11937
|
+
readonly outcome_ids: components["parameters"]["OutcomeIds"];
|
|
11938
|
+
};
|
|
11939
|
+
readonly header?: never;
|
|
11940
|
+
readonly path?: never;
|
|
11941
|
+
readonly cookie?: never;
|
|
11942
|
+
};
|
|
11943
|
+
readonly requestBody?: never;
|
|
11944
|
+
readonly responses: {
|
|
11945
|
+
/** @description Each asked outcome Totalis recorded with its English title, its native definition exactly as Hyperliquid listed it, and finished pictures for each place it is drawn, resolved from the published imagery manifest. Pictures are decoration: they never carry prices, state or results. IDs Totalis holds no definition of are in `not_recorded`; IDs newer than every outcome it recorded are in `pending`. */
|
|
11946
|
+
readonly 200: {
|
|
11947
|
+
headers: {
|
|
11948
|
+
/** @description Shared caches may reuse an answer with an imagery publication and nothing pending for 60 seconds; any other answer is no-store. */
|
|
11949
|
+
readonly "Cache-Control"?: "public, max-age=60" | "no-store";
|
|
11950
|
+
readonly ETag: components["headers"]["MarketDisplayETag"];
|
|
11951
|
+
readonly [name: string]: unknown;
|
|
11952
|
+
};
|
|
11953
|
+
content: {
|
|
11954
|
+
readonly "application/json": components["schemas"]["MarketDisplay"];
|
|
11955
|
+
};
|
|
11956
|
+
};
|
|
11957
|
+
/** @description The answer matches the `If-None-Match` ETag. */
|
|
11958
|
+
readonly 304: {
|
|
11959
|
+
headers: {
|
|
11960
|
+
readonly [name: string]: unknown;
|
|
11961
|
+
};
|
|
11962
|
+
content?: never;
|
|
11963
|
+
};
|
|
11964
|
+
readonly 400: components["responses"]["Error"];
|
|
11965
|
+
readonly 503: components["responses"]["Unavailable"];
|
|
11966
|
+
};
|
|
11967
|
+
};
|
|
11968
|
+
readonly getOutcomeMetadata: {
|
|
11969
|
+
readonly parameters: {
|
|
11970
|
+
readonly query?: {
|
|
11971
|
+
/**
|
|
11972
|
+
* @description The latest `catalog_generation` a market or browse read named; the answer is that generation or a later one.
|
|
11973
|
+
* @example 20291
|
|
11974
|
+
*/
|
|
11975
|
+
readonly min_generation?: components["parameters"]["MinCatalogGeneration"];
|
|
11976
|
+
};
|
|
11977
|
+
readonly header?: never;
|
|
11978
|
+
readonly path?: never;
|
|
11979
|
+
readonly cookie?: never;
|
|
11980
|
+
};
|
|
11981
|
+
readonly requestBody?: never;
|
|
11982
|
+
readonly responses: {
|
|
11983
|
+
/** @description The current catalog generation's outcome metadata */
|
|
11984
|
+
readonly 200: {
|
|
11985
|
+
headers: {
|
|
11986
|
+
/** @description Shared caches may reuse an answer naming exactly the min_generation asked for for 5 seconds; any other answer is no-store. */
|
|
11987
|
+
readonly "Cache-Control"?: "public, max-age=5" | "no-store";
|
|
11988
|
+
readonly ETag: components["headers"]["OutcomeMetadataETag"];
|
|
11989
|
+
readonly [name: string]: unknown;
|
|
11990
|
+
};
|
|
11991
|
+
content: {
|
|
11992
|
+
readonly "application/json": components["schemas"]["OutcomeMetadata"];
|
|
11993
|
+
};
|
|
11994
|
+
};
|
|
11995
|
+
/** @description The answer matches the `If-None-Match` ETag. */
|
|
11996
|
+
readonly 304: {
|
|
11997
|
+
headers: {
|
|
11998
|
+
readonly [name: string]: unknown;
|
|
11999
|
+
};
|
|
12000
|
+
content?: never;
|
|
12001
|
+
};
|
|
12002
|
+
readonly 400: components["responses"]["Error"];
|
|
12003
|
+
readonly 503: components["responses"]["Unavailable"];
|
|
12004
|
+
};
|
|
12005
|
+
};
|
|
11722
12006
|
readonly getPerpMarks: {
|
|
11723
12007
|
readonly parameters: {
|
|
11724
12008
|
readonly query: {
|
|
@@ -580,6 +580,300 @@ export type components = {
|
|
|
580
580
|
readonly scoreboards?: boolean;
|
|
581
581
|
/** @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. */
|
|
582
582
|
readonly network?: boolean;
|
|
583
|
+
/** @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 mark_ticks present, even empty, the subscriptionResponse carries live and the socket accepts setInterest and resnapshot frames; without all three it gets no live-lane frame and accepts no frame after its subscribe. */
|
|
584
|
+
readonly books?: readonly components["schemas"]["UInt32String"][];
|
|
585
|
+
/** @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. */
|
|
586
|
+
readonly marks?: readonly components["schemas"]["MarketPerpCoin"][];
|
|
587
|
+
/** @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. */
|
|
588
|
+
readonly mark_ticks?: readonly components["schemas"]["MarketPerpCoin"][];
|
|
589
|
+
/** @description bookProgress cadence for revision 0; 1000 when absent. */
|
|
590
|
+
readonly progress_interval_ms?: components["schemas"]["MarketProgressInterval"];
|
|
591
|
+
};
|
|
592
|
+
/**
|
|
593
|
+
* @description Wall-clock interval of bookProgress frames in milliseconds. 250 while the client may trade on a followed book: only then does a quiet book stay inside max_proof_age_ms between proofs. 1000 for a book only on display.
|
|
594
|
+
* @enum {integer}
|
|
595
|
+
*/
|
|
596
|
+
readonly MarketProgressInterval: 250 | 1000;
|
|
597
|
+
/** @description Unix time in milliseconds. */
|
|
598
|
+
readonly MarketUnixMs: number;
|
|
599
|
+
/** @description HyperCore block height. */
|
|
600
|
+
readonly MarketHeight: number;
|
|
601
|
+
/** @description Live-lane limits and liveness thresholds; they differ by network, so read them here rather than hard-coding them. */
|
|
602
|
+
readonly MarketLiveSettings: {
|
|
603
|
+
/** @description The bookProgress intervals a client may ask for. */
|
|
604
|
+
readonly progress_intervals_ms: readonly components["schemas"]["MarketProgressInterval"][];
|
|
605
|
+
/** @description Source check, on server clocks only: a proof (a bookSnapshot, bookDelta or bookProgress that proves the book at its seq) passes when sent_ms minus block_ms is at most this. Currently 1500. */
|
|
606
|
+
readonly max_source_age_ms: number;
|
|
607
|
+
/** @description Transport check, on one monotonic client clock (performance.now() anchored once): baseline is the smallest receive time minus sent_ms over proofs that passed the source check; a proof passes when its receive time minus sent_ms minus baseline is at most this. The baseline starts unset and resets to unset, failing closed, on a new socket, a new producer and any client clock discontinuity (a jump of the anchored clock against the monotonic one, a resume from sleep); the next proof that passes the source check sets it. Currently 1000. */
|
|
608
|
+
readonly max_transport_lag_ms: number;
|
|
609
|
+
/** @description A book is tradeable only while its latest proof passed both checks, its seq matches local state, and that proof was received at most this long ago on the monotonic client clock. Meant for progress_interval_ms 250; a book at 1000 is for display. Currently 750. */
|
|
610
|
+
readonly max_proof_age_ms: number;
|
|
611
|
+
/** @description When the server's coverage is older than this on its own clock (now minus block_ms), because the source stalled or the stream server lost it, every followed AVAILABLE book becomes UNAVAILABLE with SOURCE_UNAVAILABLE. Until then bookProgress keeps coming with the last height, so a stall fails the source check, never shows as silence. Currently 3000. */
|
|
612
|
+
readonly unavailable_after_ms: number;
|
|
613
|
+
/** @description While the socket follows any book, a frame of some kind arrives at least every progress interval; with no frame for this long the socket is dead: reconnect. Currently 5000. */
|
|
614
|
+
readonly reconnect_after_ms: number;
|
|
615
|
+
/** @description Most books one interest revision may follow. Currently 8. */
|
|
616
|
+
readonly max_books: number;
|
|
617
|
+
/** @description Most chart perps one interest revision may follow. Currently 8. */
|
|
618
|
+
readonly max_marks: number;
|
|
619
|
+
/** @description Most ticked perps one interest revision may follow. Currently 64, every perp Totalis can track. */
|
|
620
|
+
readonly max_mark_ticks: number;
|
|
621
|
+
};
|
|
622
|
+
/** @description A perp as Hyperliquid names it: BTC, or a builder-deployed perp with its dex, xyz:SP500. */
|
|
623
|
+
readonly MarketPerpCoin: string;
|
|
624
|
+
/** @description Client to server, any number of times after the subscribe frame on a live-lane socket: the complete interest from this revision on. It never changes outcome_ids. Keep the state of every book and perp of your last acknowledged revision until the next interest frame; that frame is the barrier between revisions. */
|
|
625
|
+
readonly MarketSetInterest: {
|
|
626
|
+
/**
|
|
627
|
+
* @description Always setInterest. Accepted only on a socket whose subscribe frame opted in to the live lane; any other socket closes with INVALID_SUBSCRIPTION. At most 8192 bytes.
|
|
628
|
+
* @constant
|
|
629
|
+
*/
|
|
630
|
+
readonly method: "setInterest";
|
|
631
|
+
/** @description Client revision of this interest, greater than every earlier one on the socket (the subscription is revision 0); otherwise the socket closes with INVALID_SUBSCRIPTION. The server may skip a revision a later one overtook before it applied it, and acknowledges only the revisions it applies, each with an interest frame. */
|
|
632
|
+
readonly rev: number;
|
|
633
|
+
/** @description Every outcome whose book the socket follows from this revision on, replacing the previous set. More than max_books closes the socket with SUBSCRIPTION_DENIED. */
|
|
634
|
+
readonly books: readonly components["schemas"]["UInt32String"][];
|
|
635
|
+
/** @description Every perp the socket follows for a chart from this revision on. More than max_marks closes the socket with SUBSCRIPTION_DENIED. */
|
|
636
|
+
readonly marks: readonly components["schemas"]["MarketPerpCoin"][];
|
|
637
|
+
/** @description Every perp the socket follows as markTicks from this revision on. More than max_mark_ticks closes the socket with SUBSCRIPTION_DENIED. */
|
|
638
|
+
readonly mark_ticks: readonly components["schemas"]["MarketPerpCoin"][];
|
|
639
|
+
/** @description bookProgress cadence from this revision on. */
|
|
640
|
+
readonly progress_interval_ms: components["schemas"]["MarketProgressInterval"];
|
|
641
|
+
};
|
|
642
|
+
/** @description Client to server: ask again for the complete state of followed books. Until each bookSnapshot arrives, treat the book as stale. */
|
|
643
|
+
readonly MarketResnapshot: {
|
|
644
|
+
/**
|
|
645
|
+
* @description Always resnapshot. Accepted only on a live-lane socket; otherwise INVALID_SUBSCRIPTION. At most 8192 bytes.
|
|
646
|
+
* @constant
|
|
647
|
+
*/
|
|
648
|
+
readonly method: "resnapshot";
|
|
649
|
+
/** @description Followed books whose local state failed a check (a bookDelta seq that is not the previous plus one, a bookProgress seq that differs from yours). Each gets a fresh bookSnapshot; an outcome the socket does not follow is ignored. */
|
|
650
|
+
readonly books: readonly components["schemas"]["UInt32String"][];
|
|
651
|
+
};
|
|
652
|
+
readonly MarketInterestFrame: {
|
|
653
|
+
/**
|
|
654
|
+
* @description Frame discriminator, always interest.
|
|
655
|
+
* @constant
|
|
656
|
+
*/
|
|
657
|
+
readonly channel: "interest";
|
|
658
|
+
/** @description Every live-lane frame after this one belongs to revision rev. A book or perp of rev that was not in the previously acknowledged revision gets its bookSnapshot or markSnapshot next (ticked perps their first markTicks); one in both keeps its chain. Drop frames for anything rev does not follow. */
|
|
659
|
+
readonly data: {
|
|
660
|
+
/** @description The revision applied from this frame on. */
|
|
661
|
+
readonly rev: number;
|
|
662
|
+
/** @description Books of the revision this network address may not follow now: it already follows as many as one address may on this server. They get no frames; set a later revision to try again. */
|
|
663
|
+
readonly refused_books: readonly components["schemas"]["UInt32String"][];
|
|
664
|
+
/** @description Chart perps refused for the same reason. */
|
|
665
|
+
readonly refused_marks: readonly components["schemas"]["MarketPerpCoin"][];
|
|
666
|
+
/** @description Ticked perps refused for the same reason. */
|
|
667
|
+
readonly refused_mark_ticks: readonly components["schemas"]["MarketPerpCoin"][];
|
|
668
|
+
};
|
|
669
|
+
};
|
|
670
|
+
/** @description [px, sz, n]: one price level of an outcome's YES book. */
|
|
671
|
+
readonly MarketBookLevel: readonly [
|
|
672
|
+
string,
|
|
673
|
+
string,
|
|
674
|
+
number
|
|
675
|
+
];
|
|
676
|
+
/**
|
|
677
|
+
* @description Why a book is unavailable. NOT_LISTED: our node's catalog does not list the outcome (not yet, or no longer); the book arrives if it is listed while followed. WITHDRAWN: our node withdrew the book (a gap in its source, a failed check, a catalog change, source text the merge cannot read) until it rebuilds it. SOURCE_UNAVAILABLE: Totalis lost its book source, or its coverage stalled for stall_ms; it comes back by itself.
|
|
678
|
+
* @enum {string}
|
|
679
|
+
*/
|
|
680
|
+
readonly MarketBookUnavailableReason: "NOT_LISTED" | "WITHDRAWN" | "SOURCE_UNAVAILABLE";
|
|
681
|
+
/** @description This socket's frame counter for one book: every bookSnapshot and bookDelta of the book carries the previous one's seq plus one, and the first one after the book is followed carries a seq above every earlier seq of the book on the socket. It never repeats or goes back on the socket, across snapshots, resnapshots, status and producer changes, and unfollowing and following again; a reconnect starts over. A bookDelta applies to the state of the frame before it. */
|
|
682
|
+
readonly MarketBookSeq: number;
|
|
683
|
+
/** @description The book source the state came from. It changes when Totalis moves the socket's books to another source instance; every followed book then gets a bookSnapshot with the new producer, and only there may height go back. */
|
|
684
|
+
readonly MarketBookProducer: components["schemas"]["Uuid"];
|
|
685
|
+
/** @description A known book. */
|
|
686
|
+
readonly MarketBookAvailable: {
|
|
687
|
+
/** @description The outcome whose book this is. */
|
|
688
|
+
readonly outcome_id: components["schemas"]["UInt32String"];
|
|
689
|
+
/** @description Above every earlier seq of the book on this socket (one more than the previous frame's); the book's next frame carries seq + 1. */
|
|
690
|
+
readonly seq: components["schemas"]["MarketBookSeq"];
|
|
691
|
+
/** @description Where this state came from. */
|
|
692
|
+
readonly producer: components["schemas"]["Uuid"];
|
|
693
|
+
/**
|
|
694
|
+
* @description The book is known; an empty side is an observed empty side.
|
|
695
|
+
* @constant
|
|
696
|
+
*/
|
|
697
|
+
readonly status: "AVAILABLE";
|
|
698
|
+
/** @description Block height of the source state; never lower than the book's previous frame from the same producer. */
|
|
699
|
+
readonly height: components["schemas"]["MarketHeight"];
|
|
700
|
+
/** @description Block time at height. */
|
|
701
|
+
readonly block_ms: components["schemas"]["MarketUnixMs"];
|
|
702
|
+
/** @description When Totalis received that block from its node, on its clock. */
|
|
703
|
+
readonly recv_ms: components["schemas"]["MarketUnixMs"];
|
|
704
|
+
/** @description When the stream server wrote this frame to the socket, on its clock. */
|
|
705
|
+
readonly sent_ms: components["schemas"]["MarketUnixMs"];
|
|
706
|
+
/** @description YES bids, highest price first, up to 100 levels. */
|
|
707
|
+
readonly bids: readonly components["schemas"]["MarketBookLevel"][];
|
|
708
|
+
/** @description YES asks, lowest price first, up to 100 levels. */
|
|
709
|
+
readonly asks: readonly components["schemas"]["MarketBookLevel"][];
|
|
710
|
+
};
|
|
711
|
+
/** @description An unknown book. */
|
|
712
|
+
readonly MarketBookUnavailable: {
|
|
713
|
+
/** @description The outcome whose book this is. */
|
|
714
|
+
readonly outcome_id: components["schemas"]["UInt32String"];
|
|
715
|
+
/** @description Above every earlier seq of the book on this socket. No bookDelta follows an unavailable book; its next state is a bookSnapshot. */
|
|
716
|
+
readonly seq: components["schemas"]["MarketBookSeq"];
|
|
717
|
+
/** @description The source that withdrew the book; null when Totalis has no book source. */
|
|
718
|
+
readonly producer: components["schemas"]["Uuid"] | null;
|
|
719
|
+
/**
|
|
720
|
+
* @description The book is unknown: it has no levels, which is not an empty book. Never trade on a book in this state.
|
|
721
|
+
* @constant
|
|
722
|
+
*/
|
|
723
|
+
readonly status: "UNAVAILABLE";
|
|
724
|
+
/** @description Why the book is unavailable. */
|
|
725
|
+
readonly reason: components["schemas"]["MarketBookUnavailableReason"];
|
|
726
|
+
/** @description Block height at which the source withdrew the book; null when no height applies. */
|
|
727
|
+
readonly height: components["schemas"]["MarketHeight"] | null;
|
|
728
|
+
/** @description Block time at height; null with height. */
|
|
729
|
+
readonly block_ms: components["schemas"]["MarketUnixMs"] | null;
|
|
730
|
+
};
|
|
731
|
+
readonly MarketBookSnapshotFrame: {
|
|
732
|
+
/**
|
|
733
|
+
* @description Frame discriminator, always bookSnapshot.
|
|
734
|
+
* @constant
|
|
735
|
+
*/
|
|
736
|
+
readonly channel: "bookSnapshot";
|
|
737
|
+
/** @description The complete state of one followed book. Replace the local book with it. */
|
|
738
|
+
readonly data: components["schemas"]["MarketBookAvailable"] | components["schemas"]["MarketBookUnavailable"];
|
|
739
|
+
};
|
|
740
|
+
readonly MarketBookDeltaFrame: {
|
|
741
|
+
/**
|
|
742
|
+
* @description Frame discriminator, always bookDelta.
|
|
743
|
+
* @constant
|
|
744
|
+
*/
|
|
745
|
+
readonly channel: "bookDelta";
|
|
746
|
+
/** @description Price-level changes to one AVAILABLE book between two states Totalis observed; our node publishes about every 50 ms, so intermediate states can be skipped. A book's status or producer changes only by a bookSnapshot. */
|
|
747
|
+
readonly data: {
|
|
748
|
+
/** @description The outcome whose book changed. */
|
|
749
|
+
readonly outcome_id: components["schemas"]["UInt32String"];
|
|
750
|
+
/** @description Exactly one more than the seq of the book's last bookSnapshot or bookDelta on this socket. Any other value means local state is wrong: send resnapshot for the book and treat it as stale, never patch it. The resnapshot's bookSnapshot comes before any later bookDelta or bookProgress of the book. */
|
|
751
|
+
readonly seq: components["schemas"]["MarketBookSeq"];
|
|
752
|
+
/** @description Block height of the source state after this change; higher than the book's previous frame. Heights between frames may be skipped. */
|
|
753
|
+
readonly height: components["schemas"]["MarketHeight"];
|
|
754
|
+
/** @description Block time at height. This frame also proves the book current at height. */
|
|
755
|
+
readonly block_ms: components["schemas"]["MarketUnixMs"];
|
|
756
|
+
/** @description When Totalis received that block from its node, on its clock. */
|
|
757
|
+
readonly recv_ms: components["schemas"]["MarketUnixMs"];
|
|
758
|
+
/** @description When the stream server wrote this frame to the socket, on its clock. */
|
|
759
|
+
readonly sent_ms: components["schemas"]["MarketUnixMs"];
|
|
760
|
+
/** @description Changed YES bid levels, in no particular order: replace the level at each price, or remove it where sz is "0". A level that left the top 100 is removed here. */
|
|
761
|
+
readonly bids: readonly components["schemas"]["MarketBookLevel"][];
|
|
762
|
+
/** @description Changed YES ask levels, as bids. */
|
|
763
|
+
readonly asks: readonly components["schemas"]["MarketBookLevel"][];
|
|
764
|
+
};
|
|
765
|
+
};
|
|
766
|
+
readonly MarketBookProgressFrame: {
|
|
767
|
+
/**
|
|
768
|
+
* @description Frame discriminator, always bookProgress.
|
|
769
|
+
* @constant
|
|
770
|
+
*/
|
|
771
|
+
readonly channel: "bookProgress";
|
|
772
|
+
/** @description Every followed book whose seq here equals your local seq is proven in its state at height: an AVAILABLE book had no change since that frame, an UNAVAILABLE one still is. A book whose seq differs is stale: send resnapshot for it. Sent every progress_interval_ms of wall clock while the socket follows any book, also while the source stalls (with the last height and block_ms, so it fails the source check). A delayed or repeated frame fails the transport or the source check and never makes a book tradeable. */
|
|
773
|
+
readonly data: {
|
|
774
|
+
/** @description Block height the followed books are proven at. It repeats while the source stalls. */
|
|
775
|
+
readonly height: components["schemas"]["MarketHeight"];
|
|
776
|
+
/** @description Block time at height. */
|
|
777
|
+
readonly block_ms: components["schemas"]["MarketUnixMs"];
|
|
778
|
+
/** @description When the stream server wrote this frame to the socket, on its clock: the source check compares it with block_ms, the transport check with the receive time. */
|
|
779
|
+
readonly sent_ms: components["schemas"]["MarketUnixMs"];
|
|
780
|
+
/** @description The seq this socket last sent for each followed book, in the order of the acknowledged revision's books without the refused ones. */
|
|
781
|
+
readonly seqs: readonly components["schemas"]["MarketBookSeq"][];
|
|
782
|
+
};
|
|
783
|
+
};
|
|
784
|
+
/**
|
|
785
|
+
* @description AVAILABLE: Totalis reads the perp's mark from its node. NOT_TRACKED: no listed price market charts the perp, so Totalis does not read it, and following it never makes Totalis read it; it becomes AVAILABLE if a listed market starts to chart it while followed. SOURCE_UNAVAILABLE: Totalis lost its mark source; it comes back by itself.
|
|
786
|
+
* @enum {string}
|
|
787
|
+
*/
|
|
788
|
+
readonly MarketMarkStatus: "AVAILABLE" | "NOT_TRACKED" | "SOURCE_UNAVAILABLE";
|
|
789
|
+
readonly MarketMarkSnapshotFrame: {
|
|
790
|
+
/**
|
|
791
|
+
* @description Frame discriminator, always markSnapshot.
|
|
792
|
+
* @constant
|
|
793
|
+
*/
|
|
794
|
+
readonly channel: "markSnapshot";
|
|
795
|
+
/** @description The complete state of one followed chart perp. Replace the local one with it, then apply mark and markSealed frames. mark windows never go back on a socket, also across a source change. */
|
|
796
|
+
readonly data: {
|
|
797
|
+
/** @description The perp. */
|
|
798
|
+
readonly coin: components["schemas"]["MarketPerpCoin"];
|
|
799
|
+
/** @description Whether its mark is live. */
|
|
800
|
+
readonly status: components["schemas"]["MarketMarkStatus"];
|
|
801
|
+
/** @description The mark at the latest read of our node, as the node gave it; null when that read did not answer the perp, before the first read, or when not AVAILABLE. */
|
|
802
|
+
readonly px: string | null;
|
|
803
|
+
/** @description Start of the latest read's node-time window; px held at some instant in [from, to]. Null before the first read or when not AVAILABLE. */
|
|
804
|
+
readonly from: components["schemas"]["Timestamp"] | null;
|
|
805
|
+
/** @description End of the latest read's node-time window. Null with from. */
|
|
806
|
+
readonly to: components["schemas"]["Timestamp"] | null;
|
|
807
|
+
/** @description How far the perp's recorded history reaches: its marks up to here are final. Null when nothing is recorded. */
|
|
808
|
+
readonly sealed_through: components["schemas"]["Timestamp"] | null;
|
|
809
|
+
/** @description Start of the recorded history this frame carries: 300 seconds before sealed_through. Null with sealed_through. */
|
|
810
|
+
readonly runs_from: components["schemas"]["Timestamp"] | null;
|
|
811
|
+
/** @description Every recorded run that covers an instant in (runs_from, sealed_through], by start, with the same rule as markSealed. Read the perp marks history only for steps up to runs_from; any read that reaches runs_from joins without a gap, including one served from a cache up to two minutes old. If a read ends before runs_from, the steps between are missing on the chart; never read again in a loop. */
|
|
812
|
+
readonly runs: readonly components["schemas"]["MarketMarkRun"][];
|
|
813
|
+
};
|
|
814
|
+
};
|
|
815
|
+
readonly MarketMarkFrame: {
|
|
816
|
+
/**
|
|
817
|
+
* @description Frame discriminator, always mark.
|
|
818
|
+
* @constant
|
|
819
|
+
*/
|
|
820
|
+
readonly channel: "mark";
|
|
821
|
+
/** @description One read of our node, about once a second, sent for every read even when the mark did not change. Windows only move forward on a socket, also when Totalis switches its mark source. With none for a few seconds, the live mark is stale. */
|
|
822
|
+
readonly data: {
|
|
823
|
+
/** @description The perp. */
|
|
824
|
+
readonly coin: components["schemas"]["MarketPerpCoin"];
|
|
825
|
+
/** @description The perp's mark at this read, as our node gave it; null when the read did not answer it, which makes it unknown, not unchanged. */
|
|
826
|
+
readonly px: string | null;
|
|
827
|
+
/** @description Start of the read's node-time window; px held at some instant in [from, to]. */
|
|
828
|
+
readonly from: components["schemas"]["Timestamp"];
|
|
829
|
+
/** @description End of the read's node-time window: the clock recorded history is dated by. */
|
|
830
|
+
readonly to: components["schemas"]["Timestamp"];
|
|
831
|
+
};
|
|
832
|
+
};
|
|
833
|
+
readonly MarketMarkSealedFrame: {
|
|
834
|
+
/**
|
|
835
|
+
* @description Frame discriminator, always markSealed.
|
|
836
|
+
* @constant
|
|
837
|
+
*/
|
|
838
|
+
readonly channel: "markSealed";
|
|
839
|
+
/** @description Marks just recorded for good, the same records the perp marks read serves, so a chart extends its history without reading it again. */
|
|
840
|
+
readonly data: {
|
|
841
|
+
/** @description The perp. */
|
|
842
|
+
readonly coin: components["schemas"]["MarketPerpCoin"];
|
|
843
|
+
/** @description How far the recorded history reached before these runs: always the previous markSealed through or the markSnapshot sealed_through on this socket (a socket that falls behind gets a markSnapshot instead); null when nothing was recorded. */
|
|
844
|
+
readonly from: components["schemas"]["Timestamp"] | null;
|
|
845
|
+
/** @description How far the recorded history now reaches; marks up to here are final. */
|
|
846
|
+
readonly through: components["schemas"]["Timestamp"];
|
|
847
|
+
/** @description Every recorded run that covers an instant in (from, through], by start. The mark at an instant in that span is the px of the run with the latest start at or before it, if that run ends at or after it; otherwise it is unknown for good. A long backlog arrives as several frames that chain by from and through. */
|
|
848
|
+
readonly runs: readonly components["schemas"]["MarketMarkRun"][];
|
|
849
|
+
};
|
|
850
|
+
};
|
|
851
|
+
/** @description [start, end, px]: the mark held from start to end, both included. The perp marks read closes step boundary b at the px of the run with the latest start at or before b, when that run ends at or after b; this is the same record. */
|
|
852
|
+
readonly MarketMarkRun: readonly [
|
|
853
|
+
components["schemas"]["Timestamp"],
|
|
854
|
+
components["schemas"]["Timestamp"],
|
|
855
|
+
string
|
|
856
|
+
];
|
|
857
|
+
readonly MarketMarkTicksFrame: {
|
|
858
|
+
/**
|
|
859
|
+
* @description Frame discriminator, always markTicks.
|
|
860
|
+
* @constant
|
|
861
|
+
*/
|
|
862
|
+
readonly channel: "markTicks";
|
|
863
|
+
/** @description Every ticked perp not in missing had its last sent mark at some node time in [from_ms, to_ms]. */
|
|
864
|
+
readonly data: {
|
|
865
|
+
/** @description Start of the read's node-time window, rounded down. */
|
|
866
|
+
readonly from_ms: components["schemas"]["MarketUnixMs"];
|
|
867
|
+
/** @description End of the read's node-time window, rounded up; never earlier than the previous frame's on this socket. */
|
|
868
|
+
readonly to_ms: components["schemas"]["MarketUnixMs"];
|
|
869
|
+
/** @description Ticked perps whose mark differs from the last one this socket was sent, every ticked perp in the first frame after the interest frame that added it, and every perp back from missing, with its mark even when unchanged. */
|
|
870
|
+
readonly marks: readonly (readonly [
|
|
871
|
+
components["schemas"]["MarketPerpCoin"],
|
|
872
|
+
string
|
|
873
|
+
])[];
|
|
874
|
+
/** @description Ticked perps without a mark in this window: the read did not answer them, or Totalis does not track them. Their mark is unknown until listed in marks again; missing clears the last sent mark, so a recovered perp is always listed. */
|
|
875
|
+
readonly missing: readonly components["schemas"]["MarketPerpCoin"][];
|
|
876
|
+
};
|
|
583
877
|
};
|
|
584
878
|
readonly MarketNetworkFrame: {
|
|
585
879
|
/**
|
|
@@ -672,6 +966,8 @@ export type components = {
|
|
|
672
966
|
* @constant
|
|
673
967
|
*/
|
|
674
968
|
readonly max_frame_bytes: 1048576;
|
|
969
|
+
/** @description Only when the subscription opted in to the live lane: its limits and liveness thresholds. The interest frame for revision 0 follows the market snapshot. */
|
|
970
|
+
readonly live?: components["schemas"]["MarketLiveSettings"];
|
|
675
971
|
};
|
|
676
972
|
};
|
|
677
973
|
readonly MarketSnapshotFrame: {
|
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
export declare const sdkVersion = "
|
|
2
|
-
export declare const openapiSha256 = "
|
|
3
|
-
export declare const realtimeSha256 = "
|
|
1
|
+
export declare const sdkVersion = "236.0.0-market-display";
|
|
2
|
+
export declare const openapiSha256 = "2d3a543422dd85f568f7760641e39f7688c7581ceb4cd8216c61507726ad5697";
|
|
3
|
+
export declare const realtimeSha256 = "bfea15f8334b302a98e58ca5a71f1c9b259e15b5f2c9239620f127270e5b4c7f";
|
|
4
4
|
export declare const jsonSchemaSha256: {
|
|
5
5
|
readonly "account.schema.json": "e6cd5a75429d074f23bd7f6ffd370fa59d0e3f7dbd6aef6433e5ba0d21b5baeb";
|
|
6
6
|
readonly "comments.schema.json": "b3e35b9b1bd90b763658fcd25910ec123d44713cdf608b4e52667c91b78f0aa5";
|
|
7
7
|
readonly "common.schema.json": "04f51deb3cbea448e59195e26ede3212598d58a7940fe67eb2123fd9161c5edb";
|
|
8
8
|
readonly "core-exit.schema.json": "c7f617e815225cdcac95c236f8b73fbe288ee5713ff444c3be90eb915fc3a401";
|
|
9
|
-
readonly "error.schema.json": "
|
|
9
|
+
readonly "error.schema.json": "0e362e916f59125775cf3201681827d394b53a004a53e21fb84746e794982c7f";
|
|
10
10
|
readonly "hypercore.schema.json": "5b89b2bbff7ec8cc1b8717375d12ce9cd5ab6aa5af03c4fdc6cc753ef9583a2c";
|
|
11
11
|
readonly "identity.schema.json": "a97ec2f4319a16619d3a3ab613989fb1dba8107713e0fb8f1f9ad5aea25a67e3";
|
|
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": "229fd522825621e53baa8f85cf6ca56715419ff85df36c0902b3401d50c48a9e";
|
|
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": "bfea15f8334b302a98e58ca5a71f1c9b259e15b5f2c9239620f127270e5b4c7f";
|
|
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", "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", "getMarketHistory", "getMarketRecurringRound", "getMarketReferenceCloses", "getMarketScoreTimeline", "getMarketStats", "getMyGenesis", "getMyReferralBonus", "getOperation", "getOwnMaker", "getPartnerAccountValue", "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", "listPartnerWebhookEvents", "listQuotes", "listTraderPositions", "listTraderTrades", "markMyNotificationsRead", "placeGolden", "reactComment", "recordAcquisition", "recordGoldenTelegramClick", "refreshPicture", "requestComboCopyAgent", "requestCoreCopyAgent", "revokeComboCopyAgent", "searchCatalog", "setAvatar", "setCopyAllocation", "setCopySettings", "setPublicProfile", "setUsername", "setXHandleShown", "signGoldenGift", "stream", "streamMarkets", "switchOffComboCopyAgent", "switchOffCoreCopyAgent", "unfollowTrader", "unlikeComment", "unlockGolden", "unreactComment"];
|
|
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"];
|
|
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", "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", "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", "listPartnerWebhookEvents", "listQuotes", "listTraderPositions", "listTraderTrades", "markMyNotificationsRead", "placeGolden", "reactComment", "recordAcquisition", "recordGoldenTelegramClick", "refreshPicture", "requestComboCopyAgent", "requestCoreCopyAgent", "revokeComboCopyAgent", "searchCatalog", "setAvatar", "setCopyAllocation", "setCopySettings", "setPublicProfile", "setUsername", "setXHandleShown", "signGoldenGift", "stream", "streamMarkets", "switchOffComboCopyAgent", "switchOffCoreCopyAgent", "unfollowTrader", "unlikeComment", "unlockGolden", "unreactComment"];
|
|
22
|
+
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"];
|
|
23
23
|
readonly operator: readonly ["live", "ready"];
|
|
24
24
|
};
|
|
@@ -1,22 +1,22 @@
|
|
|
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 = "236.0.0-market-display";
|
|
3
|
+
export const openapiSha256 = "2d3a543422dd85f568f7760641e39f7688c7581ceb4cd8216c61507726ad5697";
|
|
4
|
+
export const realtimeSha256 = "bfea15f8334b302a98e58ca5a71f1c9b259e15b5f2c9239620f127270e5b4c7f";
|
|
5
5
|
export const jsonSchemaSha256 = {
|
|
6
6
|
"account.schema.json": "e6cd5a75429d074f23bd7f6ffd370fa59d0e3f7dbd6aef6433e5ba0d21b5baeb",
|
|
7
7
|
"comments.schema.json": "b3e35b9b1bd90b763658fcd25910ec123d44713cdf608b4e52667c91b78f0aa5",
|
|
8
8
|
"common.schema.json": "04f51deb3cbea448e59195e26ede3212598d58a7940fe67eb2123fd9161c5edb",
|
|
9
9
|
"core-exit.schema.json": "c7f617e815225cdcac95c236f8b73fbe288ee5713ff444c3be90eb915fc3a401",
|
|
10
|
-
"error.schema.json": "
|
|
10
|
+
"error.schema.json": "0e362e916f59125775cf3201681827d394b53a004a53e21fb84746e794982c7f",
|
|
11
11
|
"hypercore.schema.json": "5b89b2bbff7ec8cc1b8717375d12ce9cd5ab6aa5af03c4fdc6cc753ef9583a2c",
|
|
12
12
|
"identity.schema.json": "a97ec2f4319a16619d3a3ab613989fb1dba8107713e0fb8f1f9ad5aea25a67e3",
|
|
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": "229fd522825621e53baa8f85cf6ca56715419ff85df36c0902b3401d50c48a9e",
|
|
17
17
|
"product-metadata.schema.json": "7c8ffbde878a0aedaed16814fcfd2e80038054b140886cc8736bb7b508042631",
|
|
18
18
|
"quote.schema.json": "52ee1f4708c8b1504e4cd2f2f9279e14c8ec8aeacac1f491441ae0e15ac3c71a",
|
|
19
|
-
"realtime.schema.json": "
|
|
19
|
+
"realtime.schema.json": "bfea15f8334b302a98e58ca5a71f1c9b259e15b5f2c9239620f127270e5b4c7f"
|
|
20
20
|
};
|
|
21
21
|
export const operations = {
|
|
22
22
|
"client": [
|
|
@@ -76,6 +76,7 @@ export const operations = {
|
|
|
76
76
|
"getMarket",
|
|
77
77
|
"getMarketDataConfig",
|
|
78
78
|
"getMarketDefinitions",
|
|
79
|
+
"getMarketDisplay",
|
|
79
80
|
"getMarketHistory",
|
|
80
81
|
"getMarketRecurringRound",
|
|
81
82
|
"getMarketReferenceCloses",
|
|
@@ -84,6 +85,7 @@ export const operations = {
|
|
|
84
85
|
"getMyGenesis",
|
|
85
86
|
"getMyReferralBonus",
|
|
86
87
|
"getOperation",
|
|
88
|
+
"getOutcomeMetadata",
|
|
87
89
|
"getOwnMaker",
|
|
88
90
|
"getPartnerAccountValue",
|
|
89
91
|
"getPartnerReport",
|
|
@@ -174,6 +176,7 @@ export const operations = {
|
|
|
174
176
|
"getMakerVaultFundingTransaction",
|
|
175
177
|
"getMakerWithdrawal",
|
|
176
178
|
"getMarket",
|
|
179
|
+
"getMarketDisplay",
|
|
177
180
|
"getMarketHistory",
|
|
178
181
|
"getMarketRecurringRound",
|
|
179
182
|
"getMarketReferenceCloses",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@totalis/hip4-client",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.100.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": [
|