@totalis/hip4-client 0.78.0 → 0.80.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 +52 -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 +7 -1
- package/dist/generated/errors.d.ts +50 -4
- package/dist/generated/errors.js +150 -0
- package/dist/generated/openapi.d.ts +465 -65
- package/dist/generated/version.d.ts +4 -4
- package/dist/generated/version.js +9 -3
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,58 @@
|
|
|
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.80.0
|
|
7
|
+
|
|
8
|
+
### Added
|
|
9
|
+
|
|
10
|
+
- Golden Combo (TT-2624): `getGolden`, `getGoldenMarkets`,
|
|
11
|
+
`getGoldenSuggestions`, `createGoldenRfq`, `getGoldenOffer` and
|
|
12
|
+
`placeGolden` under `/v1/me/golden`, for an account created from a golden
|
|
13
|
+
invite code to place its one free 5-leg Combo, which Totalis buys and gifts
|
|
14
|
+
to it. `getGoldenSuggestions` lists up to three ready-made golden Combos a
|
|
15
|
+
Totalis maker priced recently, in the `SuggestedCombo` shape. `getGolden`'s `state` is `PLACING` while
|
|
16
|
+
Totalis buys it and `BOUGHT` while the gift is on its way; `getGoldenOffer`
|
|
17
|
+
answers the RFQ's `status` and `expires_at` in `rfq` beside the `offer`. New
|
|
18
|
+
error codes `GOLDEN_TICKET_NONE`,
|
|
19
|
+
`GOLDEN_TICKET_USED`, `GOLDEN_TICKET_EXPIRED`, `GOLDEN_PLACEMENT_IN_FLIGHT`,
|
|
20
|
+
`GOLDEN_LEG_COUNT`, `GOLDEN_LEG_NOT_ELIGIBLE`, `GOLDEN_QUOTE_NOT_HOUSE`,
|
|
21
|
+
`GOLDEN_PROMO_BUSY`, `GOLDEN_PROMO_FUNDS_LOW`, and `GOLDEN_CASHOUT_REFUSED`
|
|
22
|
+
on `createCashout` for a gifted golden ticket. Contract `208.0.0-golden-combo`.
|
|
23
|
+
|
|
24
|
+
## 0.79.1
|
|
25
|
+
|
|
26
|
+
### Changed
|
|
27
|
+
|
|
28
|
+
- `grantVaultAgent` answers `503 CONTRACT_UNAVAILABLE` on a vault whose
|
|
29
|
+
generation has no `setAgent`, instead of relaying a grant that never lands.
|
|
30
|
+
|
|
31
|
+
## 0.79.0
|
|
32
|
+
|
|
33
|
+
### Added
|
|
34
|
+
|
|
35
|
+
- Follow settings (`followTrader`, `listFollows`) take `mode` per product: `COPY`
|
|
36
|
+
or `COUNTER`. A counter of a single buys the outcome's other side, priced
|
|
37
|
+
against 1 less the trader's price and sized from what the trader spent; a
|
|
38
|
+
counter of a Combo flips every leg and takes the best quote paying more than
|
|
39
|
+
its net stake (TT-2628). Contract `207.0.0-copy-modes`.
|
|
40
|
+
- `counter_exit_floor_bps` on Combo settings: the least a counter Combo cashes
|
|
41
|
+
out for when the trader cashes out: what the follower receives, net of the
|
|
42
|
+
vault's profit fee, in basis points of what they staked, 0 to 100000, 10000
|
|
43
|
+
(never below the stake) when left out. Below it, the cash-out is skipped and
|
|
44
|
+
the ticket held to settlement. Core refuses any value but 10000.
|
|
45
|
+
- `new_positions_only` on core settings: copy a buy only when it opens the
|
|
46
|
+
trader's position. Combos refuse `true`.
|
|
47
|
+
- Copy journal rows (`listCopyTrades`, `listComboCopies`) answer `mode`; their
|
|
48
|
+
`side` and `legs` are now the account's own, flipped for a counter.
|
|
49
|
+
|
|
50
|
+
### Changed
|
|
51
|
+
|
|
52
|
+
- `slippage_bps` (max worst entry) allows up to 5000 (50%), from 2000. Writes
|
|
53
|
+
that leave out `mode`, `new_positions_only` and `counter_exit_floor_bps` keep
|
|
54
|
+
meaning `COPY`, every buy copied and a 10000 floor.
|
|
55
|
+
- `createDeposit`'s 0.10 USDC floor covers a Privy external login wallet as
|
|
56
|
+
well as an embedded one; any other wallet still moves at least 1 USDC.
|
|
57
|
+
|
|
6
58
|
## 0.78.0
|
|
7
59
|
|
|
8
60
|
### Added
|
|
@@ -752,7 +752,7 @@ export type components = {
|
|
|
752
752
|
* @description Stable HTTP error code. Each code has one HTTP status and one retry value.
|
|
753
753
|
* @enum {string}
|
|
754
754
|
*/
|
|
755
|
-
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" | "INVALID_SIGNATURE" | "WALLET_CONTRACT_UNSUPPORTED" | "WRONG_AUTHORITY" | "KEY_LIMIT_REACHED" | "USERNAME_NOT_ALLOWED" | "FOLLOW_SELF" | "FOLLOW_LIMIT_REACHED" | "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" | "CONNECTION_DRAIN";
|
|
755
|
+
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" | "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" | "CONNECTION_DRAIN";
|
|
756
756
|
readonly FieldViolation: {
|
|
757
757
|
/**
|
|
758
758
|
* @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" | "INVALID_SIGNATURE" | "WALLET_CONTRACT_UNSUPPORTED" | "WRONG_AUTHORITY" | "KEY_LIMIT_REACHED" | "USERNAME_NOT_ALLOWED" | "FOLLOW_SELF" | "FOLLOW_LIMIT_REACHED" | "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" | "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" | "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" | "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.
|
|
@@ -712,7 +712,7 @@ export type components = {
|
|
|
712
712
|
* @description Stable HTTP error code. Each code has one HTTP status and one retry value.
|
|
713
713
|
* @enum {string}
|
|
714
714
|
*/
|
|
715
|
-
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" | "INVALID_SIGNATURE" | "WALLET_CONTRACT_UNSUPPORTED" | "WRONG_AUTHORITY" | "KEY_LIMIT_REACHED" | "USERNAME_NOT_ALLOWED" | "FOLLOW_SELF" | "FOLLOW_LIMIT_REACHED" | "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" | "CONNECTION_DRAIN";
|
|
715
|
+
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" | "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" | "CONNECTION_DRAIN";
|
|
716
716
|
readonly FieldViolation: {
|
|
717
717
|
/**
|
|
718
718
|
* @description REQUIRED: the input is missing. INVALID: it is present but malformed or out of range. UNEXPECTED: the input is not accepted here.
|
|
@@ -32,6 +32,12 @@ export type paths = {
|
|
|
32
32
|
readonly "/v1/me/picture": Pick<SharedPaths["/v1/me/picture"], "parameters" | "post">;
|
|
33
33
|
readonly "/v1/deployment": Pick<SharedPaths["/v1/deployment"], "parameters" | "get">;
|
|
34
34
|
readonly "/v1/suggested-combo": Pick<SharedPaths["/v1/suggested-combo"], "parameters" | "get">;
|
|
35
|
+
readonly "/v1/me/golden": Pick<SharedPaths["/v1/me/golden"], "parameters" | "get">;
|
|
36
|
+
readonly "/v1/me/golden/markets": Pick<SharedPaths["/v1/me/golden/markets"], "parameters" | "get">;
|
|
37
|
+
readonly "/v1/me/golden/suggestions": Pick<SharedPaths["/v1/me/golden/suggestions"], "parameters" | "get">;
|
|
38
|
+
readonly "/v1/me/golden/rfqs": Pick<SharedPaths["/v1/me/golden/rfqs"], "parameters" | "post">;
|
|
39
|
+
readonly "/v1/me/golden/rfqs/{rfq_id}/offer": Pick<SharedPaths["/v1/me/golden/rfqs/{rfq_id}/offer"], "parameters" | "get">;
|
|
40
|
+
readonly "/v1/me/golden/placements": Pick<SharedPaths["/v1/me/golden/placements"], "parameters" | "post">;
|
|
35
41
|
readonly "/v1/leaderboard/volume": Pick<SharedPaths["/v1/leaderboard/volume"], "parameters" | "get">;
|
|
36
42
|
readonly "/v1/leaderboard/profit": Pick<SharedPaths["/v1/leaderboard/profit"], "parameters" | "get">;
|
|
37
43
|
readonly "/v1/me/public-profile": Pick<SharedPaths["/v1/me/public-profile"], "parameters" | "put">;
|
|
@@ -104,4 +110,4 @@ export type paths = {
|
|
|
104
110
|
readonly "/v1/makers/{maker_id}/exposure": Pick<SharedPaths["/v1/makers/{maker_id}/exposure"], "parameters" | "get">;
|
|
105
111
|
readonly "/v1/makers/{maker_id}/performance": Pick<SharedPaths["/v1/makers/{maker_id}/performance"], "parameters" | "get">;
|
|
106
112
|
};
|
|
107
|
-
export type operations = Pick<SharedOperations, "abandonCoreExit" | "acceptQuote" | "activeCoreExits" | "admitOwnMaker" | "admitPartnerWallet" | "bindEmbeddedWallet" | "cancelRfq" | "confirmComboCopyAgent" | "confirmCoreCopyAgent" | "createCashout" | "createComment" | "createCoreExit" | "createDeposit" | "createRfq" | "createRunOffClaim" | "createWalletChallenge" | "createWalletSession" | "createWithdrawal" | "deleteComment" | "editComment" | "endWalletSession" | "followTrader" | "getAcceptance" | "getAccountActivity" | "getAccountPnl" | "getAccountPosition" | "getBalances" | "getCopyAgents" | "getCopyBudget" | "getCopySettings" | "getCopySummary" | "getCoreExit" | "getDeployment" | "getHypercoreBalance" | "getHypercorePortfolio" | "getHypercoreSettlementCredits" | "getIdentity" | "getMakerActivity" | "getMakerCapital" | "getMakerExposure" | "getMakerPerformance" | "getMakerPosition" | "getMakerQuotes" | "getMakerTelemetry" | "getMakerVaultFundingTransaction" | "getMakerWithdrawal" | "getMarket" | "getMarketDataConfig" | "getMarketDefinitions" | "getMarketHistory" | "getMarketRecurringRound" | "getMarketReferenceCloses" | "getMarketScoreTimeline" | "getMarketStats" | "getOperation" | "getOwnMaker" | "getPartnerReport" | "getPerpMarks" | "getProfitLeaderboard" | "getQuestion" | "getQuestionRecurringRound" | "getQuestionScoreTimeline" | "getRfq" | "getSeries" | "getSuggestedCombo" | "getTaxonomy" | "getTrader" | "getTraderPnl" | "getUsernameAvailability" | "getVaultAgents" | "getVolumeLeaderboard" | "getWithdrawal" | "grantComboCopyAgent" | "grantVaultAgent" | "likeComment" | "listAccountActivity" | "listAccountPositions" | "listComboCopies" | "listComboFeed" | "listCommentReplies" | "listComments" | "listControlledMakers" | "listCopiedFills" | "listCopyTrades" | "listDiscovery" | "listFollows" | "listMakerActivity" | "listMakerPositions" | "listMakerQuoteHistory" | "listMarkets" | "listOperations" | "listQuotes" | "listTraderPositions" | "listTraderTrades" | "reactComment" | "recordAcquisition" | "refreshPicture" | "requestComboCopyAgent" | "requestCoreCopyAgent" | "revokeComboCopyAgent" | "searchCatalog" | "setAvatar" | "setCopyAllocation" | "setCopySettings" | "setPublicProfile" | "setUsername" | "stream" | "streamMarkets" | "switchOffComboCopyAgent" | "switchOffCoreCopyAgent" | "unfollowTrader" | "unlikeComment" | "unreactComment">;
|
|
113
|
+
export type operations = Pick<SharedOperations, "abandonCoreExit" | "acceptQuote" | "activeCoreExits" | "admitOwnMaker" | "admitPartnerWallet" | "bindEmbeddedWallet" | "cancelRfq" | "confirmComboCopyAgent" | "confirmCoreCopyAgent" | "createCashout" | "createComment" | "createCoreExit" | "createDeposit" | "createGoldenRfq" | "createRfq" | "createRunOffClaim" | "createWalletChallenge" | "createWalletSession" | "createWithdrawal" | "deleteComment" | "editComment" | "endWalletSession" | "followTrader" | "getAcceptance" | "getAccountActivity" | "getAccountPnl" | "getAccountPosition" | "getBalances" | "getCopyAgents" | "getCopyBudget" | "getCopySettings" | "getCopySummary" | "getCoreExit" | "getDeployment" | "getGolden" | "getGoldenMarkets" | "getGoldenOffer" | "getGoldenSuggestions" | "getHypercoreBalance" | "getHypercorePortfolio" | "getHypercoreSettlementCredits" | "getIdentity" | "getMakerActivity" | "getMakerCapital" | "getMakerExposure" | "getMakerPerformance" | "getMakerPosition" | "getMakerQuotes" | "getMakerTelemetry" | "getMakerVaultFundingTransaction" | "getMakerWithdrawal" | "getMarket" | "getMarketDataConfig" | "getMarketDefinitions" | "getMarketHistory" | "getMarketRecurringRound" | "getMarketReferenceCloses" | "getMarketScoreTimeline" | "getMarketStats" | "getOperation" | "getOwnMaker" | "getPartnerReport" | "getPerpMarks" | "getProfitLeaderboard" | "getQuestion" | "getQuestionRecurringRound" | "getQuestionScoreTimeline" | "getRfq" | "getSeries" | "getSuggestedCombo" | "getTaxonomy" | "getTrader" | "getTraderPnl" | "getUsernameAvailability" | "getVaultAgents" | "getVolumeLeaderboard" | "getWithdrawal" | "grantComboCopyAgent" | "grantVaultAgent" | "likeComment" | "listAccountActivity" | "listAccountPositions" | "listComboCopies" | "listComboFeed" | "listCommentReplies" | "listComments" | "listControlledMakers" | "listCopiedFills" | "listCopyTrades" | "listDiscovery" | "listFollows" | "listMakerActivity" | "listMakerPositions" | "listMakerQuoteHistory" | "listMarkets" | "listOperations" | "listQuotes" | "listTraderPositions" | "listTraderTrades" | "placeGolden" | "reactComment" | "recordAcquisition" | "refreshPicture" | "requestComboCopyAgent" | "requestCoreCopyAgent" | "revokeComboCopyAgent" | "searchCatalog" | "setAvatar" | "setCopyAllocation" | "setCopySettings" | "setPublicProfile" | "setUsername" | "stream" | "streamMarkets" | "switchOffComboCopyAgent" | "switchOffCoreCopyAgent" | "unfollowTrader" | "unlikeComment" | "unreactComment">;
|
|
@@ -178,6 +178,30 @@ export declare const errorRegistry: {
|
|
|
178
178
|
readonly status: 409;
|
|
179
179
|
readonly retry: "NEVER";
|
|
180
180
|
};
|
|
181
|
+
readonly GOLDEN_TICKET_NONE: {
|
|
182
|
+
readonly status: 409;
|
|
183
|
+
readonly retry: "NEVER";
|
|
184
|
+
};
|
|
185
|
+
readonly GOLDEN_TICKET_USED: {
|
|
186
|
+
readonly status: 409;
|
|
187
|
+
readonly retry: "NEVER";
|
|
188
|
+
};
|
|
189
|
+
readonly GOLDEN_TICKET_EXPIRED: {
|
|
190
|
+
readonly status: 409;
|
|
191
|
+
readonly retry: "NEVER";
|
|
192
|
+
};
|
|
193
|
+
readonly GOLDEN_PLACEMENT_IN_FLIGHT: {
|
|
194
|
+
readonly status: 409;
|
|
195
|
+
readonly retry: "REFRESH";
|
|
196
|
+
};
|
|
197
|
+
readonly GOLDEN_PROMO_BUSY: {
|
|
198
|
+
readonly status: 409;
|
|
199
|
+
readonly retry: "REFRESH";
|
|
200
|
+
};
|
|
201
|
+
readonly GOLDEN_CASHOUT_REFUSED: {
|
|
202
|
+
readonly status: 409;
|
|
203
|
+
readonly retry: "NEVER";
|
|
204
|
+
};
|
|
181
205
|
readonly INVALID_SIGNATURE: {
|
|
182
206
|
readonly status: 422;
|
|
183
207
|
readonly retry: "NEVER";
|
|
@@ -206,6 +230,18 @@ export declare const errorRegistry: {
|
|
|
206
230
|
readonly status: 422;
|
|
207
231
|
readonly retry: "NEVER";
|
|
208
232
|
};
|
|
233
|
+
readonly GOLDEN_LEG_COUNT: {
|
|
234
|
+
readonly status: 422;
|
|
235
|
+
readonly retry: "NEVER";
|
|
236
|
+
};
|
|
237
|
+
readonly GOLDEN_LEG_NOT_ELIGIBLE: {
|
|
238
|
+
readonly status: 422;
|
|
239
|
+
readonly retry: "REFRESH";
|
|
240
|
+
};
|
|
241
|
+
readonly GOLDEN_QUOTE_NOT_HOUSE: {
|
|
242
|
+
readonly status: 422;
|
|
243
|
+
readonly retry: "REFRESH";
|
|
244
|
+
};
|
|
209
245
|
readonly RATE_LIMITED: {
|
|
210
246
|
readonly status: 429;
|
|
211
247
|
readonly retry: "BACKOFF";
|
|
@@ -288,6 +324,10 @@ export declare const errorRegistry: {
|
|
|
288
324
|
readonly status: 503;
|
|
289
325
|
readonly retry: "BACKOFF";
|
|
290
326
|
};
|
|
327
|
+
readonly GOLDEN_PROMO_FUNDS_LOW: {
|
|
328
|
+
readonly status: 503;
|
|
329
|
+
readonly retry: "BACKOFF";
|
|
330
|
+
};
|
|
291
331
|
readonly CONNECTION_DRAIN: {
|
|
292
332
|
readonly status: 503;
|
|
293
333
|
readonly close: 1012;
|
|
@@ -324,12 +364,12 @@ export declare const errorRegistry: {
|
|
|
324
364
|
};
|
|
325
365
|
/** 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. */
|
|
326
366
|
export type Retry = "NEVER" | "BACKOFF" | "REFRESH";
|
|
327
|
-
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" | "INVALID_SIGNATURE" | "WALLET_CONTRACT_UNSUPPORTED" | "WRONG_AUTHORITY" | "KEY_LIMIT_REACHED" | "USERNAME_NOT_ALLOWED" | "FOLLOW_SELF" | "FOLLOW_LIMIT_REACHED" | "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" | "CONNECTION_DRAIN";
|
|
367
|
+
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" | "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" | "CONNECTION_DRAIN";
|
|
328
368
|
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";
|
|
329
369
|
/** The codes each live operation can return. */
|
|
330
370
|
export declare const operationErrors: {
|
|
331
371
|
readonly abandonCoreExit: readonly ["UNAUTHENTICATED", "FORBIDDEN", "AUTHORIZATION_UNAVAILABLE", "DEPENDENCY_STALE", "RATE_LIMITED", "INVALID_REQUEST", "INVALID_IDEMPOTENCY_KEY", "IDEMPOTENCY_KEY_REUSED", "NOT_FOUND", "STATE_CONFLICT", "ORIGIN_REQUIRED"];
|
|
332
|
-
readonly acceptQuote: readonly ["UNAUTHENTICATED", "FORBIDDEN", "AUTHORIZATION_UNAVAILABLE", "DEPENDENCY_STALE", "RATE_LIMITED", "INVALID_REQUEST", "INVALID_IDEMPOTENCY_KEY", "IDEMPOTENCY_KEY_REUSED", "RFQ_NOT_OPEN", "QUOTE_EXPIRED", "QUOTE_CANCELLED", "QUOTE_REPLACED", "QUOTE_SIGNER_CHANGED", "QUOTE_CAPACITY_EXCEEDED", "QUOTE_NOT_FOUND", "STATE_CONFLICT", "FINANCIAL_ACTIONS_DISABLED", "INVALID_SIGNATURE", "CONTRACT_SIGNATURE_OVERLOADED", "EXECUTION_BACKLOG_FULL", "CORE_MOVE_IN_FLIGHT", "ACCEPTANCE_IN_FLIGHT", "NOT_FOUND", "ORIGIN_REQUIRED", "WRONG_AUTHORITY"];
|
|
372
|
+
readonly acceptQuote: readonly ["UNAUTHENTICATED", "FORBIDDEN", "AUTHORIZATION_UNAVAILABLE", "DEPENDENCY_STALE", "RATE_LIMITED", "INVALID_REQUEST", "INVALID_IDEMPOTENCY_KEY", "IDEMPOTENCY_KEY_REUSED", "RFQ_NOT_OPEN", "QUOTE_EXPIRED", "QUOTE_CANCELLED", "QUOTE_REPLACED", "QUOTE_SIGNER_CHANGED", "QUOTE_CAPACITY_EXCEEDED", "QUOTE_NOT_FOUND", "STATE_CONFLICT", "FINANCIAL_ACTIONS_DISABLED", "INVALID_SIGNATURE", "CONTRACT_SIGNATURE_OVERLOADED", "EXECUTION_BACKLOG_FULL", "CORE_MOVE_IN_FLIGHT", "ACCEPTANCE_IN_FLIGHT", "GOLDEN_CASHOUT_REFUSED", "NOT_FOUND", "ORIGIN_REQUIRED", "WRONG_AUTHORITY"];
|
|
333
373
|
readonly activeCoreExits: readonly ["UNAUTHENTICATED", "FORBIDDEN", "AUTHORIZATION_UNAVAILABLE", "DEPENDENCY_STALE", "RATE_LIMITED"];
|
|
334
374
|
readonly admitOwnMaker: readonly ["UNAUTHENTICATED", "FORBIDDEN", "AUTHORIZATION_UNAVAILABLE", "DEPENDENCY_STALE", "RATE_LIMITED", "ORIGIN_REQUIRED", "INVALID_REQUEST", "NOT_FOUND", "STATE_CONFLICT"];
|
|
335
375
|
readonly admitPartnerWallet: readonly ["INVALID_REQUEST", "INVALID_IDEMPOTENCY_KEY", "UNAUTHENTICATED", "FORBIDDEN", "STATE_CONFLICT", "INVALID_SIGNATURE", "RATE_LIMITED", "AUTHORIZATION_UNAVAILABLE"];
|
|
@@ -339,11 +379,12 @@ export declare const operationErrors: {
|
|
|
339
379
|
readonly confirmComboCopyAgent: readonly ["UNAUTHENTICATED", "FORBIDDEN", "AUTHORIZATION_UNAVAILABLE", "RATE_LIMITED", "ORIGIN_REQUIRED", "IDENTITY_NOT_FOUND", "CONTRACT_UNAVAILABLE", "NOT_FOUND", "STATE_CONFLICT", "DEPENDENCY_STALE", "INVALID_IDEMPOTENCY_KEY", "IDEMPOTENCY_KEY_REUSED"];
|
|
340
380
|
readonly confirmCoreCopyAgent: readonly ["UNAUTHENTICATED", "FORBIDDEN", "AUTHORIZATION_UNAVAILABLE", "RATE_LIMITED", "ORIGIN_REQUIRED", "IDENTITY_NOT_FOUND", "CONTRACT_UNAVAILABLE", "NOT_FOUND", "STATE_CONFLICT", "DEPENDENCY_STALE", "INVALID_IDEMPOTENCY_KEY", "IDEMPOTENCY_KEY_REUSED"];
|
|
341
381
|
readonly confirmQuote: readonly ["UNAUTHENTICATED", "FORBIDDEN", "AUTHORIZATION_UNAVAILABLE", "DEPENDENCY_STALE", "RATE_LIMITED", "INVALID_REQUEST", "INVALID_IDEMPOTENCY_KEY", "IDEMPOTENCY_KEY_REUSED", "NOT_FOUND", "STATE_CONFLICT", "INVALID_SIGNATURE", "QUOTE_EXPIRED", "QUOTE_SIGNER_CHANGED", "QUOTE_CAPACITY_EXCEEDED", "QUOTE_EXPOSURE_LIMIT", "QUOTE_EXPOSURE_STALE", "COMBO_AUTOMATIC_DISABLED", "RFQ_GENERATION_STALE", "FINANCIAL_ACTIONS_DISABLED", "WRONG_AUTHORITY"];
|
|
342
|
-
readonly createCashout: readonly ["UNAUTHENTICATED", "FORBIDDEN", "AUTHORIZATION_UNAVAILABLE", "DEPENDENCY_STALE", "RATE_LIMITED", "INVALID_REQUEST", "NOT_FOUND", "INVALID_IDEMPOTENCY_KEY", "IDEMPOTENCY_KEY_REUSED", "RFQ_INTENT_LIMIT", "STATE_CONFLICT", "FINANCIAL_ACTIONS_DISABLED", "GAS_PRICE_ABOVE_CEILING", "ORIGIN_REQUIRED"];
|
|
382
|
+
readonly createCashout: readonly ["UNAUTHENTICATED", "FORBIDDEN", "AUTHORIZATION_UNAVAILABLE", "DEPENDENCY_STALE", "RATE_LIMITED", "INVALID_REQUEST", "NOT_FOUND", "INVALID_IDEMPOTENCY_KEY", "IDEMPOTENCY_KEY_REUSED", "RFQ_INTENT_LIMIT", "STATE_CONFLICT", "GOLDEN_CASHOUT_REFUSED", "FINANCIAL_ACTIONS_DISABLED", "GAS_PRICE_ABOVE_CEILING", "ORIGIN_REQUIRED"];
|
|
343
383
|
readonly createCollateralReduction: readonly ["UNAUTHENTICATED", "FORBIDDEN", "AUTHORIZATION_UNAVAILABLE", "DEPENDENCY_STALE", "RATE_LIMITED", "INVALID_REQUEST", "INVALID_IDEMPOTENCY_KEY", "IDEMPOTENCY_KEY_REUSED", "NOT_FOUND", "STATE_CONFLICT", "FINANCIAL_ACTIONS_DISABLED", "COLLATERAL_REDUCTION_UNAVAILABLE"];
|
|
344
384
|
readonly createComment: readonly ["UNAUTHENTICATED", "FORBIDDEN", "AUTHORIZATION_UNAVAILABLE", "DEPENDENCY_STALE", "RATE_LIMITED", "ORIGIN_REQUIRED", "IDENTITY_NOT_FOUND", "INVALID_REQUEST", "INVALID_IDEMPOTENCY_KEY", "IDEMPOTENCY_KEY_REUSED", "STATE_CONFLICT"];
|
|
345
385
|
readonly createCoreExit: readonly ["UNAUTHENTICATED", "FORBIDDEN", "AUTHORIZATION_UNAVAILABLE", "DEPENDENCY_STALE", "RATE_LIMITED", "INVALID_REQUEST", "INVALID_IDEMPOTENCY_KEY", "IDEMPOTENCY_KEY_REUSED", "CORE_EXIT_UNAVAILABLE", "CORE_ACCOUNT_NOT_READY", "CORE_ACCOUNT_ACTIVATION_REQUIRED", "CORE_MOVE_IN_FLIGHT", "STATE_CONFLICT", "FINANCIAL_ACTIONS_DISABLED", "ORIGIN_REQUIRED"];
|
|
346
386
|
readonly createDeposit: readonly ["UNAUTHENTICATED", "FORBIDDEN", "AUTHORIZATION_UNAVAILABLE", "DEPENDENCY_STALE", "RATE_LIMITED", "INVALID_REQUEST", "INVALID_IDEMPOTENCY_KEY", "IDEMPOTENCY_KEY_REUSED", "STATE_CONFLICT", "FINANCIAL_ACTIONS_DISABLED", "INVALID_SIGNATURE", "SPONSORSHIP_UNAVAILABLE", "ORIGIN_REQUIRED"];
|
|
387
|
+
readonly createGoldenRfq: readonly ["UNAUTHENTICATED", "FORBIDDEN", "AUTHORIZATION_UNAVAILABLE", "DEPENDENCY_STALE", "RATE_LIMITED", "ORIGIN_REQUIRED", "IDENTITY_NOT_FOUND", "INVALID_REQUEST", "INVALID_IDEMPOTENCY_KEY", "IDEMPOTENCY_KEY_REUSED", "CONTRACT_UNAVAILABLE", "GOLDEN_TICKET_NONE", "GOLDEN_TICKET_USED", "GOLDEN_TICKET_EXPIRED", "GOLDEN_PLACEMENT_IN_FLIGHT", "GOLDEN_LEG_COUNT", "GOLDEN_LEG_NOT_ELIGIBLE", "STATE_CONFLICT", "FINANCIAL_ACTIONS_DISABLED", "GAS_PRICE_ABOVE_CEILING", "COMBO_AUTOMATIC_DISABLED", "BROWSE_UNAVAILABLE"];
|
|
347
388
|
readonly createMakerApiKey: readonly ["UNAUTHENTICATED", "FORBIDDEN", "AUTHORIZATION_UNAVAILABLE", "DEPENDENCY_STALE", "RATE_LIMITED", "INVALID_REQUEST", "NOT_FOUND", "IDEMPOTENCY_KEY_REUSED", "SECRET_UNAVAILABLE", "KEY_LIMIT_REACHED"];
|
|
348
389
|
readonly createMakerApiKeyChallenge: readonly ["UNAUTHENTICATED", "FORBIDDEN", "AUTHORIZATION_UNAVAILABLE", "DEPENDENCY_STALE", "RATE_LIMITED", "INVALID_REQUEST", "NOT_FOUND", "IDEMPOTENCY_KEY_REUSED"];
|
|
349
390
|
readonly createOperatorApiKey: readonly ["UNAUTHENTICATED", "FORBIDDEN", "AUTHORIZATION_UNAVAILABLE", "DEPENDENCY_STALE", "RATE_LIMITED", "INVALID_REQUEST", "NOT_FOUND", "IDEMPOTENCY_KEY_REUSED", "SECRET_UNAVAILABLE", "KEY_LIMIT_REACHED"];
|
|
@@ -371,6 +412,10 @@ export declare const operationErrors: {
|
|
|
371
412
|
readonly getCopySummary: readonly ["UNAUTHENTICATED", "FORBIDDEN", "AUTHORIZATION_UNAVAILABLE", "RATE_LIMITED", "ORIGIN_REQUIRED", "IDENTITY_NOT_FOUND", "INVALID_QUERY", "CONTRACT_UNAVAILABLE"];
|
|
372
413
|
readonly getCoreExit: readonly ["UNAUTHENTICATED", "FORBIDDEN", "AUTHORIZATION_UNAVAILABLE", "DEPENDENCY_STALE", "RATE_LIMITED", "INVALID_REQUEST", "NOT_FOUND"];
|
|
373
414
|
readonly getDeployment: readonly ["UNAUTHENTICATED", "FORBIDDEN", "AUTHORIZATION_UNAVAILABLE", "DEPENDENCY_STALE", "RATE_LIMITED", "INVALID_QUERY"];
|
|
415
|
+
readonly getGolden: readonly ["UNAUTHENTICATED", "FORBIDDEN", "AUTHORIZATION_UNAVAILABLE", "DEPENDENCY_STALE", "RATE_LIMITED", "ORIGIN_REQUIRED", "IDENTITY_NOT_FOUND", "INVALID_QUERY"];
|
|
416
|
+
readonly getGoldenMarkets: readonly ["UNAUTHENTICATED", "FORBIDDEN", "AUTHORIZATION_UNAVAILABLE", "DEPENDENCY_STALE", "RATE_LIMITED", "ORIGIN_REQUIRED", "IDENTITY_NOT_FOUND", "INVALID_QUERY", "CONTRACT_UNAVAILABLE", "BROWSE_UNAVAILABLE"];
|
|
417
|
+
readonly getGoldenOffer: readonly ["UNAUTHENTICATED", "FORBIDDEN", "AUTHORIZATION_UNAVAILABLE", "DEPENDENCY_STALE", "RATE_LIMITED", "ORIGIN_REQUIRED", "IDENTITY_NOT_FOUND", "INVALID_QUERY", "NOT_FOUND", "CONTRACT_UNAVAILABLE", "FINANCIAL_ACTIONS_DISABLED"];
|
|
418
|
+
readonly getGoldenSuggestions: readonly ["UNAUTHENTICATED", "FORBIDDEN", "AUTHORIZATION_UNAVAILABLE", "DEPENDENCY_STALE", "RATE_LIMITED", "ORIGIN_REQUIRED", "IDENTITY_NOT_FOUND", "INVALID_QUERY", "CONTRACT_UNAVAILABLE", "GOLDEN_TICKET_NONE", "GOLDEN_TICKET_USED", "GOLDEN_TICKET_EXPIRED", "GOLDEN_PLACEMENT_IN_FLIGHT", "BROWSE_UNAVAILABLE"];
|
|
374
419
|
readonly getHypercoreBalance: readonly ["UNAUTHENTICATED", "FORBIDDEN", "AUTHORIZATION_UNAVAILABLE", "DEPENDENCY_STALE", "RATE_LIMITED", "ORIGIN_REQUIRED", "INVALID_REQUEST"];
|
|
375
420
|
readonly getHypercorePortfolio: readonly ["UNAUTHENTICATED", "FORBIDDEN", "AUTHORIZATION_UNAVAILABLE", "DEPENDENCY_STALE", "RATE_LIMITED", "INVALID_REQUEST"];
|
|
376
421
|
readonly getHypercoreSettlementCredits: readonly ["UNAUTHENTICATED", "FORBIDDEN", "AUTHORIZATION_UNAVAILABLE", "DEPENDENCY_STALE", "RATE_LIMITED", "INVALID_REQUEST"];
|
|
@@ -414,7 +459,7 @@ export declare const operationErrors: {
|
|
|
414
459
|
readonly getVolumeLeaderboard: readonly ["UNAUTHENTICATED", "FORBIDDEN", "AUTHORIZATION_UNAVAILABLE", "DEPENDENCY_STALE", "RATE_LIMITED", "INVALID_QUERY", "CONTRACT_UNAVAILABLE"];
|
|
415
460
|
readonly getWithdrawal: readonly ["UNAUTHENTICATED", "FORBIDDEN", "AUTHORIZATION_UNAVAILABLE", "DEPENDENCY_STALE", "RATE_LIMITED", "INVALID_REQUEST", "NOT_FOUND"];
|
|
416
461
|
readonly grantComboCopyAgent: readonly ["UNAUTHENTICATED", "FORBIDDEN", "AUTHORIZATION_UNAVAILABLE", "RATE_LIMITED", "ORIGIN_REQUIRED", "IDENTITY_NOT_FOUND", "CONTRACT_UNAVAILABLE", "NOT_FOUND", "INVALID_REQUEST", "FINANCIAL_ACTIONS_DISABLED", "DEPENDENCY_STALE", "INVALID_IDEMPOTENCY_KEY", "IDEMPOTENCY_KEY_REUSED"];
|
|
417
|
-
readonly grantVaultAgent: readonly ["UNAUTHENTICATED", "FORBIDDEN", "AUTHORIZATION_UNAVAILABLE", "RATE_LIMITED", "ORIGIN_REQUIRED", "IDENTITY_NOT_FOUND", "INVALID_REQUEST", "FINANCIAL_ACTIONS_DISABLED", "DEPENDENCY_STALE", "INVALID_IDEMPOTENCY_KEY", "IDEMPOTENCY_KEY_REUSED"];
|
|
462
|
+
readonly grantVaultAgent: readonly ["UNAUTHENTICATED", "FORBIDDEN", "AUTHORIZATION_UNAVAILABLE", "RATE_LIMITED", "ORIGIN_REQUIRED", "IDENTITY_NOT_FOUND", "CONTRACT_UNAVAILABLE", "INVALID_REQUEST", "FINANCIAL_ACTIONS_DISABLED", "DEPENDENCY_STALE", "INVALID_IDEMPOTENCY_KEY", "IDEMPOTENCY_KEY_REUSED"];
|
|
418
463
|
readonly likeComment: readonly ["UNAUTHENTICATED", "FORBIDDEN", "AUTHORIZATION_UNAVAILABLE", "DEPENDENCY_STALE", "RATE_LIMITED", "ORIGIN_REQUIRED", "IDENTITY_NOT_FOUND", "NOT_FOUND", "INVALID_IDEMPOTENCY_KEY"];
|
|
419
464
|
readonly listAccountActivity: readonly ["UNAUTHENTICATED", "FORBIDDEN", "AUTHORIZATION_UNAVAILABLE", "DEPENDENCY_STALE", "RATE_LIMITED", "INVALID_QUERY", "ORIGIN_REQUIRED", "NOT_FOUND", "SOURCE_UNAVAILABLE", "CONTRACT_UNAVAILABLE", "CURSOR_EXPIRED"];
|
|
420
465
|
readonly listAccountPositions: readonly ["UNAUTHENTICATED", "FORBIDDEN", "AUTHORIZATION_UNAVAILABLE", "DEPENDENCY_STALE", "RATE_LIMITED", "INVALID_QUERY", "ORIGIN_REQUIRED", "NOT_FOUND", "SOURCE_UNAVAILABLE", "CONTRACT_UNAVAILABLE", "CURSOR_EXPIRED"];
|
|
@@ -441,6 +486,7 @@ export declare const operationErrors: {
|
|
|
441
486
|
readonly listTraderPositions: readonly ["UNAUTHENTICATED", "FORBIDDEN", "AUTHORIZATION_UNAVAILABLE", "RATE_LIMITED", "INVALID_QUERY", "NOT_FOUND", "SOURCE_UNAVAILABLE"];
|
|
442
487
|
readonly listTraderTrades: readonly ["UNAUTHENTICATED", "FORBIDDEN", "AUTHORIZATION_UNAVAILABLE", "RATE_LIMITED", "INVALID_QUERY", "NOT_FOUND", "SOURCE_UNAVAILABLE"];
|
|
443
488
|
readonly live: readonly [];
|
|
489
|
+
readonly placeGolden: readonly ["UNAUTHENTICATED", "FORBIDDEN", "AUTHORIZATION_UNAVAILABLE", "DEPENDENCY_STALE", "RATE_LIMITED", "ORIGIN_REQUIRED", "IDENTITY_NOT_FOUND", "INVALID_REQUEST", "INVALID_IDEMPOTENCY_KEY", "IDEMPOTENCY_KEY_REUSED", "NOT_FOUND", "CONTRACT_UNAVAILABLE", "GOLDEN_TICKET_NONE", "GOLDEN_TICKET_USED", "GOLDEN_TICKET_EXPIRED", "GOLDEN_PLACEMENT_IN_FLIGHT", "GOLDEN_LEG_COUNT", "GOLDEN_LEG_NOT_ELIGIBLE", "GOLDEN_QUOTE_NOT_HOUSE", "QUOTE_EXPIRED", "QUOTE_REPLACED", "GOLDEN_PROMO_BUSY", "GOLDEN_PROMO_FUNDS_LOW", "WRONG_AUTHORITY", "STATE_CONFLICT", "ACCEPTANCE_IN_FLIGHT", "FINANCIAL_ACTIONS_DISABLED", "GAS_PRICE_ABOVE_CEILING", "EXECUTION_BACKLOG_FULL", "BROWSE_UNAVAILABLE"];
|
|
444
490
|
readonly publishMakerTelemetry: readonly ["UNAUTHENTICATED", "FORBIDDEN", "AUTHORIZATION_UNAVAILABLE", "DEPENDENCY_STALE", "RATE_LIMITED", "INVALID_QUERY", "NOT_FOUND", "CONTRACT_UNAVAILABLE", "TELEMETRY_CONFLICT", "INVALID_REQUEST"];
|
|
445
491
|
readonly reactComment: readonly ["UNAUTHENTICATED", "FORBIDDEN", "AUTHORIZATION_UNAVAILABLE", "DEPENDENCY_STALE", "RATE_LIMITED", "ORIGIN_REQUIRED", "IDENTITY_NOT_FOUND", "NOT_FOUND", "INVALID_IDEMPOTENCY_KEY"];
|
|
446
492
|
readonly ready: readonly ["DEPENDENCY_STALE"];
|
package/dist/generated/errors.js
CHANGED
|
@@ -179,6 +179,30 @@ export const errorRegistry = {
|
|
|
179
179
|
"status": 409,
|
|
180
180
|
"retry": "NEVER"
|
|
181
181
|
},
|
|
182
|
+
"GOLDEN_TICKET_NONE": {
|
|
183
|
+
"status": 409,
|
|
184
|
+
"retry": "NEVER"
|
|
185
|
+
},
|
|
186
|
+
"GOLDEN_TICKET_USED": {
|
|
187
|
+
"status": 409,
|
|
188
|
+
"retry": "NEVER"
|
|
189
|
+
},
|
|
190
|
+
"GOLDEN_TICKET_EXPIRED": {
|
|
191
|
+
"status": 409,
|
|
192
|
+
"retry": "NEVER"
|
|
193
|
+
},
|
|
194
|
+
"GOLDEN_PLACEMENT_IN_FLIGHT": {
|
|
195
|
+
"status": 409,
|
|
196
|
+
"retry": "REFRESH"
|
|
197
|
+
},
|
|
198
|
+
"GOLDEN_PROMO_BUSY": {
|
|
199
|
+
"status": 409,
|
|
200
|
+
"retry": "REFRESH"
|
|
201
|
+
},
|
|
202
|
+
"GOLDEN_CASHOUT_REFUSED": {
|
|
203
|
+
"status": 409,
|
|
204
|
+
"retry": "NEVER"
|
|
205
|
+
},
|
|
182
206
|
"INVALID_SIGNATURE": {
|
|
183
207
|
"status": 422,
|
|
184
208
|
"retry": "NEVER"
|
|
@@ -207,6 +231,18 @@ export const errorRegistry = {
|
|
|
207
231
|
"status": 422,
|
|
208
232
|
"retry": "NEVER"
|
|
209
233
|
},
|
|
234
|
+
"GOLDEN_LEG_COUNT": {
|
|
235
|
+
"status": 422,
|
|
236
|
+
"retry": "NEVER"
|
|
237
|
+
},
|
|
238
|
+
"GOLDEN_LEG_NOT_ELIGIBLE": {
|
|
239
|
+
"status": 422,
|
|
240
|
+
"retry": "REFRESH"
|
|
241
|
+
},
|
|
242
|
+
"GOLDEN_QUOTE_NOT_HOUSE": {
|
|
243
|
+
"status": 422,
|
|
244
|
+
"retry": "REFRESH"
|
|
245
|
+
},
|
|
210
246
|
"RATE_LIMITED": {
|
|
211
247
|
"status": 429,
|
|
212
248
|
"retry": "BACKOFF"
|
|
@@ -289,6 +325,10 @@ export const errorRegistry = {
|
|
|
289
325
|
"status": 503,
|
|
290
326
|
"retry": "BACKOFF"
|
|
291
327
|
},
|
|
328
|
+
"GOLDEN_PROMO_FUNDS_LOW": {
|
|
329
|
+
"status": 503,
|
|
330
|
+
"retry": "BACKOFF"
|
|
331
|
+
},
|
|
292
332
|
"CONNECTION_DRAIN": {
|
|
293
333
|
"status": 503,
|
|
294
334
|
"close": 1012,
|
|
@@ -361,6 +401,7 @@ export const operationErrors = {
|
|
|
361
401
|
"EXECUTION_BACKLOG_FULL",
|
|
362
402
|
"CORE_MOVE_IN_FLIGHT",
|
|
363
403
|
"ACCEPTANCE_IN_FLIGHT",
|
|
404
|
+
"GOLDEN_CASHOUT_REFUSED",
|
|
364
405
|
"NOT_FOUND",
|
|
365
406
|
"ORIGIN_REQUIRED",
|
|
366
407
|
"WRONG_AUTHORITY"
|
|
@@ -494,6 +535,7 @@ export const operationErrors = {
|
|
|
494
535
|
"IDEMPOTENCY_KEY_REUSED",
|
|
495
536
|
"RFQ_INTENT_LIMIT",
|
|
496
537
|
"STATE_CONFLICT",
|
|
538
|
+
"GOLDEN_CASHOUT_REFUSED",
|
|
497
539
|
"FINANCIAL_ACTIONS_DISABLED",
|
|
498
540
|
"GAS_PRICE_ABOVE_CEILING",
|
|
499
541
|
"ORIGIN_REQUIRED"
|
|
@@ -557,6 +599,30 @@ export const operationErrors = {
|
|
|
557
599
|
"SPONSORSHIP_UNAVAILABLE",
|
|
558
600
|
"ORIGIN_REQUIRED"
|
|
559
601
|
],
|
|
602
|
+
"createGoldenRfq": [
|
|
603
|
+
"UNAUTHENTICATED",
|
|
604
|
+
"FORBIDDEN",
|
|
605
|
+
"AUTHORIZATION_UNAVAILABLE",
|
|
606
|
+
"DEPENDENCY_STALE",
|
|
607
|
+
"RATE_LIMITED",
|
|
608
|
+
"ORIGIN_REQUIRED",
|
|
609
|
+
"IDENTITY_NOT_FOUND",
|
|
610
|
+
"INVALID_REQUEST",
|
|
611
|
+
"INVALID_IDEMPOTENCY_KEY",
|
|
612
|
+
"IDEMPOTENCY_KEY_REUSED",
|
|
613
|
+
"CONTRACT_UNAVAILABLE",
|
|
614
|
+
"GOLDEN_TICKET_NONE",
|
|
615
|
+
"GOLDEN_TICKET_USED",
|
|
616
|
+
"GOLDEN_TICKET_EXPIRED",
|
|
617
|
+
"GOLDEN_PLACEMENT_IN_FLIGHT",
|
|
618
|
+
"GOLDEN_LEG_COUNT",
|
|
619
|
+
"GOLDEN_LEG_NOT_ELIGIBLE",
|
|
620
|
+
"STATE_CONFLICT",
|
|
621
|
+
"FINANCIAL_ACTIONS_DISABLED",
|
|
622
|
+
"GAS_PRICE_ABOVE_CEILING",
|
|
623
|
+
"COMBO_AUTOMATIC_DISABLED",
|
|
624
|
+
"BROWSE_UNAVAILABLE"
|
|
625
|
+
],
|
|
560
626
|
"createMakerApiKey": [
|
|
561
627
|
"UNAUTHENTICATED",
|
|
562
628
|
"FORBIDDEN",
|
|
@@ -862,6 +928,57 @@ export const operationErrors = {
|
|
|
862
928
|
"RATE_LIMITED",
|
|
863
929
|
"INVALID_QUERY"
|
|
864
930
|
],
|
|
931
|
+
"getGolden": [
|
|
932
|
+
"UNAUTHENTICATED",
|
|
933
|
+
"FORBIDDEN",
|
|
934
|
+
"AUTHORIZATION_UNAVAILABLE",
|
|
935
|
+
"DEPENDENCY_STALE",
|
|
936
|
+
"RATE_LIMITED",
|
|
937
|
+
"ORIGIN_REQUIRED",
|
|
938
|
+
"IDENTITY_NOT_FOUND",
|
|
939
|
+
"INVALID_QUERY"
|
|
940
|
+
],
|
|
941
|
+
"getGoldenMarkets": [
|
|
942
|
+
"UNAUTHENTICATED",
|
|
943
|
+
"FORBIDDEN",
|
|
944
|
+
"AUTHORIZATION_UNAVAILABLE",
|
|
945
|
+
"DEPENDENCY_STALE",
|
|
946
|
+
"RATE_LIMITED",
|
|
947
|
+
"ORIGIN_REQUIRED",
|
|
948
|
+
"IDENTITY_NOT_FOUND",
|
|
949
|
+
"INVALID_QUERY",
|
|
950
|
+
"CONTRACT_UNAVAILABLE",
|
|
951
|
+
"BROWSE_UNAVAILABLE"
|
|
952
|
+
],
|
|
953
|
+
"getGoldenOffer": [
|
|
954
|
+
"UNAUTHENTICATED",
|
|
955
|
+
"FORBIDDEN",
|
|
956
|
+
"AUTHORIZATION_UNAVAILABLE",
|
|
957
|
+
"DEPENDENCY_STALE",
|
|
958
|
+
"RATE_LIMITED",
|
|
959
|
+
"ORIGIN_REQUIRED",
|
|
960
|
+
"IDENTITY_NOT_FOUND",
|
|
961
|
+
"INVALID_QUERY",
|
|
962
|
+
"NOT_FOUND",
|
|
963
|
+
"CONTRACT_UNAVAILABLE",
|
|
964
|
+
"FINANCIAL_ACTIONS_DISABLED"
|
|
965
|
+
],
|
|
966
|
+
"getGoldenSuggestions": [
|
|
967
|
+
"UNAUTHENTICATED",
|
|
968
|
+
"FORBIDDEN",
|
|
969
|
+
"AUTHORIZATION_UNAVAILABLE",
|
|
970
|
+
"DEPENDENCY_STALE",
|
|
971
|
+
"RATE_LIMITED",
|
|
972
|
+
"ORIGIN_REQUIRED",
|
|
973
|
+
"IDENTITY_NOT_FOUND",
|
|
974
|
+
"INVALID_QUERY",
|
|
975
|
+
"CONTRACT_UNAVAILABLE",
|
|
976
|
+
"GOLDEN_TICKET_NONE",
|
|
977
|
+
"GOLDEN_TICKET_USED",
|
|
978
|
+
"GOLDEN_TICKET_EXPIRED",
|
|
979
|
+
"GOLDEN_PLACEMENT_IN_FLIGHT",
|
|
980
|
+
"BROWSE_UNAVAILABLE"
|
|
981
|
+
],
|
|
865
982
|
"getHypercoreBalance": [
|
|
866
983
|
"UNAUTHENTICATED",
|
|
867
984
|
"FORBIDDEN",
|
|
@@ -1244,6 +1361,7 @@ export const operationErrors = {
|
|
|
1244
1361
|
"RATE_LIMITED",
|
|
1245
1362
|
"ORIGIN_REQUIRED",
|
|
1246
1363
|
"IDENTITY_NOT_FOUND",
|
|
1364
|
+
"CONTRACT_UNAVAILABLE",
|
|
1247
1365
|
"INVALID_REQUEST",
|
|
1248
1366
|
"FINANCIAL_ACTIONS_DISABLED",
|
|
1249
1367
|
"DEPENDENCY_STALE",
|
|
@@ -1500,6 +1618,38 @@ export const operationErrors = {
|
|
|
1500
1618
|
"SOURCE_UNAVAILABLE"
|
|
1501
1619
|
],
|
|
1502
1620
|
"live": [],
|
|
1621
|
+
"placeGolden": [
|
|
1622
|
+
"UNAUTHENTICATED",
|
|
1623
|
+
"FORBIDDEN",
|
|
1624
|
+
"AUTHORIZATION_UNAVAILABLE",
|
|
1625
|
+
"DEPENDENCY_STALE",
|
|
1626
|
+
"RATE_LIMITED",
|
|
1627
|
+
"ORIGIN_REQUIRED",
|
|
1628
|
+
"IDENTITY_NOT_FOUND",
|
|
1629
|
+
"INVALID_REQUEST",
|
|
1630
|
+
"INVALID_IDEMPOTENCY_KEY",
|
|
1631
|
+
"IDEMPOTENCY_KEY_REUSED",
|
|
1632
|
+
"NOT_FOUND",
|
|
1633
|
+
"CONTRACT_UNAVAILABLE",
|
|
1634
|
+
"GOLDEN_TICKET_NONE",
|
|
1635
|
+
"GOLDEN_TICKET_USED",
|
|
1636
|
+
"GOLDEN_TICKET_EXPIRED",
|
|
1637
|
+
"GOLDEN_PLACEMENT_IN_FLIGHT",
|
|
1638
|
+
"GOLDEN_LEG_COUNT",
|
|
1639
|
+
"GOLDEN_LEG_NOT_ELIGIBLE",
|
|
1640
|
+
"GOLDEN_QUOTE_NOT_HOUSE",
|
|
1641
|
+
"QUOTE_EXPIRED",
|
|
1642
|
+
"QUOTE_REPLACED",
|
|
1643
|
+
"GOLDEN_PROMO_BUSY",
|
|
1644
|
+
"GOLDEN_PROMO_FUNDS_LOW",
|
|
1645
|
+
"WRONG_AUTHORITY",
|
|
1646
|
+
"STATE_CONFLICT",
|
|
1647
|
+
"ACCEPTANCE_IN_FLIGHT",
|
|
1648
|
+
"FINANCIAL_ACTIONS_DISABLED",
|
|
1649
|
+
"GAS_PRICE_ABOVE_CEILING",
|
|
1650
|
+
"EXECUTION_BACKLOG_FULL",
|
|
1651
|
+
"BROWSE_UNAVAILABLE"
|
|
1652
|
+
],
|
|
1503
1653
|
"publishMakerTelemetry": [
|
|
1504
1654
|
"UNAUTHENTICATED",
|
|
1505
1655
|
"FORBIDDEN",
|
|
@@ -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
|
|
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.
|
|
430
430
|
*/
|
|
431
431
|
readonly post: operations["bindEmbeddedWallet"];
|
|
432
432
|
readonly delete?: never;
|
|
@@ -675,6 +675,126 @@ export type paths = {
|
|
|
675
675
|
readonly patch?: never;
|
|
676
676
|
readonly trace?: never;
|
|
677
677
|
};
|
|
678
|
+
readonly "/v1/me/golden": {
|
|
679
|
+
readonly parameters: {
|
|
680
|
+
readonly query?: never;
|
|
681
|
+
readonly header?: never;
|
|
682
|
+
readonly path?: never;
|
|
683
|
+
readonly cookie?: never;
|
|
684
|
+
};
|
|
685
|
+
/**
|
|
686
|
+
* Get the golden ticket
|
|
687
|
+
* @description The account's golden ticket (TT-2624): one free Combo for an account created from a golden invite code, null for any other account or where golden Combos are off.
|
|
688
|
+
*/
|
|
689
|
+
readonly get: operations["getGolden"];
|
|
690
|
+
readonly put?: never;
|
|
691
|
+
readonly post?: never;
|
|
692
|
+
readonly delete?: never;
|
|
693
|
+
readonly options?: never;
|
|
694
|
+
readonly head?: never;
|
|
695
|
+
readonly patch?: never;
|
|
696
|
+
readonly trace?: never;
|
|
697
|
+
};
|
|
698
|
+
readonly "/v1/me/golden/markets": {
|
|
699
|
+
readonly parameters: {
|
|
700
|
+
readonly query?: never;
|
|
701
|
+
readonly header?: never;
|
|
702
|
+
readonly path?: never;
|
|
703
|
+
readonly cookie?: never;
|
|
704
|
+
};
|
|
705
|
+
/**
|
|
706
|
+
* List golden markets
|
|
707
|
+
* @description The discovery cards a golden Combo may take legs from now: games in the golden leagues that have not started and start within the golden window, with at least one leg a Combo takes. The same rule refuses a golden RFQ's legs.
|
|
708
|
+
*/
|
|
709
|
+
readonly get: operations["getGoldenMarkets"];
|
|
710
|
+
readonly put?: never;
|
|
711
|
+
readonly post?: never;
|
|
712
|
+
readonly delete?: never;
|
|
713
|
+
readonly options?: never;
|
|
714
|
+
readonly head?: never;
|
|
715
|
+
readonly patch?: never;
|
|
716
|
+
readonly trace?: never;
|
|
717
|
+
};
|
|
718
|
+
readonly "/v1/me/golden/suggestions": {
|
|
719
|
+
readonly parameters: {
|
|
720
|
+
readonly query?: never;
|
|
721
|
+
readonly header?: never;
|
|
722
|
+
readonly path?: never;
|
|
723
|
+
readonly cookie?: never;
|
|
724
|
+
};
|
|
725
|
+
/**
|
|
726
|
+
* List golden suggestions
|
|
727
|
+
* @description Up to three ready-made golden Combos that share no outcome, for an account whose golden ticket is available: 5 legs from golden markets at the 1 USDC golden stake, each priced recently by a Totalis maker quote to the promo account. Picking one only fills the slip; place it through POST /v1/me/golden/rfqs, which requotes. A suggestion leaves the list once a leg is no longer a golden market or its quote is two hours old.
|
|
728
|
+
*/
|
|
729
|
+
readonly get: operations["getGoldenSuggestions"];
|
|
730
|
+
readonly put?: never;
|
|
731
|
+
readonly post?: never;
|
|
732
|
+
readonly delete?: never;
|
|
733
|
+
readonly options?: never;
|
|
734
|
+
readonly head?: never;
|
|
735
|
+
readonly patch?: never;
|
|
736
|
+
readonly trace?: never;
|
|
737
|
+
};
|
|
738
|
+
readonly "/v1/me/golden/rfqs": {
|
|
739
|
+
readonly parameters: {
|
|
740
|
+
readonly query?: never;
|
|
741
|
+
readonly header?: never;
|
|
742
|
+
readonly path?: never;
|
|
743
|
+
readonly cookie?: never;
|
|
744
|
+
};
|
|
745
|
+
readonly get?: never;
|
|
746
|
+
readonly put?: never;
|
|
747
|
+
/**
|
|
748
|
+
* Open a golden RFQ
|
|
749
|
+
* @description Opens the Totalis promo account's RFQ for this account's golden Combo: exactly 5 legs, each a golden market, at a 1 USDC stake Totalis pays. Makers quote it like any RFQ; read the best Totalis maker quote with GET /v1/me/golden/rfqs/{rfq_id}/offer.
|
|
750
|
+
*/
|
|
751
|
+
readonly post: operations["createGoldenRfq"];
|
|
752
|
+
readonly delete?: never;
|
|
753
|
+
readonly options?: never;
|
|
754
|
+
readonly head?: never;
|
|
755
|
+
readonly patch?: never;
|
|
756
|
+
readonly trace?: never;
|
|
757
|
+
};
|
|
758
|
+
readonly "/v1/me/golden/rfqs/{rfq_id}/offer": {
|
|
759
|
+
readonly parameters: {
|
|
760
|
+
readonly query?: never;
|
|
761
|
+
readonly header?: never;
|
|
762
|
+
readonly path?: never;
|
|
763
|
+
readonly cookie?: never;
|
|
764
|
+
};
|
|
765
|
+
/**
|
|
766
|
+
* Get the golden offer
|
|
767
|
+
* @description The best live Totalis maker quote on this account's golden RFQ, what it pays on a win, and the gift Transfer this account's wallet signs to receive it. A new quote names another position and needs a new signature. `offer` is null until a Totalis maker quotes. `rfq` is where the RFQ stands, as Get RFQ says, so a client polls this alone.
|
|
768
|
+
*/
|
|
769
|
+
readonly get: operations["getGoldenOffer"];
|
|
770
|
+
readonly put?: never;
|
|
771
|
+
readonly post?: never;
|
|
772
|
+
readonly delete?: never;
|
|
773
|
+
readonly options?: never;
|
|
774
|
+
readonly head?: never;
|
|
775
|
+
readonly patch?: never;
|
|
776
|
+
readonly trace?: never;
|
|
777
|
+
};
|
|
778
|
+
readonly "/v1/me/golden/placements": {
|
|
779
|
+
readonly parameters: {
|
|
780
|
+
readonly query?: never;
|
|
781
|
+
readonly header?: never;
|
|
782
|
+
readonly path?: never;
|
|
783
|
+
readonly cookie?: never;
|
|
784
|
+
};
|
|
785
|
+
readonly get?: never;
|
|
786
|
+
readonly put?: never;
|
|
787
|
+
/**
|
|
788
|
+
* Place the golden Combo
|
|
789
|
+
* @description Totalis buys the offered quote from its promo account and gifts the position to this account. Re-runs the golden checks, verifies the account wallet's Transfer signature, then accepts as the promo account; the gift follows once the accept lands. The promo account accepts one Combo at a time: a placement waits for the previous one until its quote's accept_before.
|
|
790
|
+
*/
|
|
791
|
+
readonly post: operations["placeGolden"];
|
|
792
|
+
readonly delete?: never;
|
|
793
|
+
readonly options?: never;
|
|
794
|
+
readonly head?: never;
|
|
795
|
+
readonly patch?: never;
|
|
796
|
+
readonly trace?: never;
|
|
797
|
+
};
|
|
678
798
|
readonly "/v1/leaderboard/volume": {
|
|
679
799
|
readonly parameters: {
|
|
680
800
|
readonly query?: never;
|
|
@@ -1066,7 +1186,7 @@ export type paths = {
|
|
|
1066
1186
|
readonly put?: never;
|
|
1067
1187
|
/**
|
|
1068
1188
|
* Relay the account's grant or revoke of a device's vault agent
|
|
1069
|
-
* @description Relays the account's EIP-712 signature over AgentGrant(account, agent, valid_until, nonce) to setAgent; Totalis pays the gas. agent is a key one of the account's devices holds, so it can sign the account's named Combo accepts, cash-outs and Exits to its own wallet or Core spot without a wallet prompt. valid_until is unix seconds, in the future and at most 180 days away (the vault's limit); 0 revokes at once. nonce must exceed the agent's last grant (GET /v1/me/vault-agents), so a client uses the current unix time. Only the account's own signature (or its ERC-1271 verdict) grants. 403 FORBIDDEN for a copy agent, whose grants go through /v1/me/copy-agents. While financial actions run off only a revoke is relayed. A retry with the same Idempotency-Key returns the same operation.
|
|
1189
|
+
* @description Relays the account's EIP-712 signature over AgentGrant(account, agent, valid_until, nonce) to setAgent; Totalis pays the gas. agent is a key one of the account's devices holds, so it can sign the account's named Combo accepts, cash-outs and Exits to its own wallet or Core spot without a wallet prompt. valid_until is unix seconds, in the future and at most 180 days away (the vault's limit); 0 revokes at once. nonce must exceed the agent's last grant (GET /v1/me/vault-agents), so a client uses the current unix time. Only the account's own signature (or its ERC-1271 verdict) grants. 403 FORBIDDEN for a copy agent, whose grants go through /v1/me/copy-agents. While financial actions run off only a revoke is relayed. 503 CONTRACT_UNAVAILABLE when the vault has no setAgent. A retry with the same Idempotency-Key returns the same operation.
|
|
1070
1190
|
*/
|
|
1071
1191
|
readonly post: operations["grantVaultAgent"];
|
|
1072
1192
|
readonly delete?: never;
|
|
@@ -2523,10 +2643,19 @@ export type components = {
|
|
|
2523
2643
|
readonly max_per_trade: components["schemas"]["$defs-Amount"];
|
|
2524
2644
|
/** @description Most positions copied from this trader open at once. */
|
|
2525
2645
|
readonly max_open: number;
|
|
2526
|
-
/** @description
|
|
2646
|
+
/** @description Max worst entry: the worst price a copy accepts against the trader's, in basis points, 0 to 5000 (50%); a copy outside it is skipped. A COUNTER of a Combo has no band from the trader, whose price says nothing of the flipped Combo's: it takes the best quote paying more than its net stake. */
|
|
2527
2647
|
readonly slippage_bps: number;
|
|
2528
2648
|
/** @description Copy the trader's reductions and cash-outs too. */
|
|
2529
2649
|
readonly mirror_exits: boolean;
|
|
2650
|
+
/**
|
|
2651
|
+
* @description COPY takes the trader's side. COUNTER takes the other side: a single buys the outcome's other side, priced against 1 less the trader's price and sized from what the trader spent; a Combo flips every leg, so it pays only if every one of the trader's legs loses. A counter mirrors the trader's exits as a copy does: a single's sells are priced against 1 less the trader's price, and a Combo's cash-out at no less than counter_exit_floor_bps of what the follower staked, as the trader's cash-out prices their ticket, not the flipped one. After a change of mode, buys in a market are not copied while copies of it are held on the other side. Left out of a write, COPY.
|
|
2652
|
+
* @enum {unknown}
|
|
2653
|
+
*/
|
|
2654
|
+
readonly mode?: "COPY" | "COUNTER";
|
|
2655
|
+
/** @description Copy a buy only when it opens the trader's position, never one adding to it. Core only: every Combo opens a new position, so combos refuses true. Left out of a write, false. */
|
|
2656
|
+
readonly new_positions_only?: boolean;
|
|
2657
|
+
/** @description The least a COUNTER Combo cashes out for when the trader cashes out: what the follower receives, after the vault's profit fee on a sell-back, in basis points of what they staked, fee included, 0 to 100000: 10000 never sells for less than the stake, 8000 accepts up to a 20% loss, 0 takes the best quote at any price. With none at or above it, the cash-out is skipped and the ticket held to settlement. Combos only: listed on combos, never on core, and core refuses any value but 10000. Left out of a write, 10000. */
|
|
2658
|
+
readonly counter_exit_floor_bps?: number;
|
|
2530
2659
|
};
|
|
2531
2660
|
readonly FollowSettingsFields: {
|
|
2532
2661
|
/** @description How the follow copies HyperCore orders. */
|
|
@@ -3142,7 +3271,7 @@ export type components = {
|
|
|
3142
3271
|
* @description Stable HTTP error code. Each code has one HTTP status and one retry value.
|
|
3143
3272
|
* @enum {string}
|
|
3144
3273
|
*/
|
|
3145
|
-
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" | "INVALID_SIGNATURE" | "WALLET_CONTRACT_UNSUPPORTED" | "WRONG_AUTHORITY" | "KEY_LIMIT_REACHED" | "USERNAME_NOT_ALLOWED" | "FOLLOW_SELF" | "FOLLOW_LIMIT_REACHED" | "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" | "CONNECTION_DRAIN";
|
|
3274
|
+
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" | "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" | "CONNECTION_DRAIN";
|
|
3146
3275
|
readonly FieldViolation: {
|
|
3147
3276
|
/**
|
|
3148
3277
|
* @description REQUIRED: the input is missing. INVALID: it is present but malformed or out of range. UNEXPECTED: the input is not accepted here.
|
|
@@ -4494,6 +4623,62 @@ export type components = {
|
|
|
4494
4623
|
/** @description End of a scheduled single contest's in-play window [date_at, estimated_live_until): its scheduled start plus its league's reviewed usual game length, unless the live game feed shows the game in play (then at least 15 minutes past publication, republished before it closes, until the game ends) or over (then the moment it was first seen over, or date_at if that was earlier). Never a trading cutoff, closure or settlement. Present before the contest starts. Null for anything else: tournaments, series, leagues without a reviewed length, or markets that disagree on the start. */
|
|
4495
4624
|
readonly estimated_live_until: components["schemas"]["$defs-Timestamp"] | null;
|
|
4496
4625
|
};
|
|
4626
|
+
/** @description Entry terms a maker quotes; they mirror the signed Quote and TakerAccept structs field for field. */
|
|
4627
|
+
readonly "schemas-QuoteTerms": {
|
|
4628
|
+
/** @description On-chain maker ID of the quoting maker. */
|
|
4629
|
+
readonly maker_id: components["schemas"]["NonZeroUInt64String"];
|
|
4630
|
+
/** @description Legs the quote covers; must equal the RFQ legs in order. The signed Leg encodes outcome_id as uint32 and side as uint8, 0 for YES and 1 for NO. */
|
|
4631
|
+
readonly legs: readonly components["schemas"]["$defs-Leg"][];
|
|
4632
|
+
/** @description Taker stake in atomic USDC (6 decimals), before taker fees. */
|
|
4633
|
+
readonly stake: components["schemas"]["$defs-Amount"];
|
|
4634
|
+
/** @description Gross amount the position pays if every leg wins, in atomic USDC (6 decimals), before the profit fee. */
|
|
4635
|
+
readonly payout: components["schemas"]["$defs-Amount"];
|
|
4636
|
+
/** @description Profit fee in basis points, charged at claim on the winning profit (payout minus net stake). */
|
|
4637
|
+
readonly fee_bps: number;
|
|
4638
|
+
/** @description Entry fee in basis points taken from the stake at accept: net stake is stake minus floor(stake * taker_fee_bps / 10000). */
|
|
4639
|
+
readonly taker_fee_bps: number;
|
|
4640
|
+
/** @description Wallet that must sign the accept and will own the position. */
|
|
4641
|
+
readonly taker: string;
|
|
4642
|
+
/** @description Unix seconds after which the quote can no longer be accepted. */
|
|
4643
|
+
readonly expiry: components["schemas"]["UInt64String"];
|
|
4644
|
+
/** @description Random uint256, as a decimal string, that makes each signed quote unique. */
|
|
4645
|
+
readonly salt: components["schemas"]["Uint256"];
|
|
4646
|
+
};
|
|
4647
|
+
/** @description Sell-back terms: the underwriting maker buys the position back and it closes. They mirror the signed SellBack struct. */
|
|
4648
|
+
readonly "schemas-SellBackTerms": {
|
|
4649
|
+
/** @description Position the quote is for; the signed SellBack names it ticketId. */
|
|
4650
|
+
readonly position_id: components["schemas"]["Hash32"];
|
|
4651
|
+
/** @description Buyback price the original maker pays the owner to close the ticket, in atomic USDC (6 decimals). */
|
|
4652
|
+
readonly price: components["schemas"]["$defs-Amount"];
|
|
4653
|
+
/** @description Current position owner, who sells the ticket back. */
|
|
4654
|
+
readonly owner: components["schemas"]["LowercaseNonZeroAddress"];
|
|
4655
|
+
/** @description Unix seconds after which the quote can no longer be executed. */
|
|
4656
|
+
readonly expiry: components["schemas"]["UInt64String"];
|
|
4657
|
+
/** @description Random uint256, as a decimal string, that makes each signed quote unique. */
|
|
4658
|
+
readonly salt: components["schemas"]["Uint256"];
|
|
4659
|
+
/** @description Position leg state the quote was priced against; must equal the RFQ's leg_state. */
|
|
4660
|
+
readonly leg_state: components["schemas"]["Hash32"];
|
|
4661
|
+
};
|
|
4662
|
+
/** @description Transfer terms: another maker buys the position and becomes its owner. They mirror the signed CashoutTransfer struct. */
|
|
4663
|
+
readonly "schemas-TransferTerms": {
|
|
4664
|
+
/** @description Position the quote is for; the signed CashoutTransfer names it ticketId. */
|
|
4665
|
+
readonly position_id: components["schemas"]["Hash32"];
|
|
4666
|
+
/** @description Price the buyer pays the seller for the whole position, in atomic USDC (6 decimals). */
|
|
4667
|
+
readonly price: components["schemas"]["$defs-Amount"];
|
|
4668
|
+
/** @description Current position owner, who sells the ticket. */
|
|
4669
|
+
readonly seller: components["schemas"]["LowercaseNonZeroAddress"];
|
|
4670
|
+
/** @description The bidding maker's current quote signer, which becomes the owner and pays from its own vault balance. */
|
|
4671
|
+
readonly buyer: components["schemas"]["LowercaseNonZeroAddress"];
|
|
4672
|
+
/** @description Unix seconds after which the quote can no longer be executed. */
|
|
4673
|
+
readonly expiry: components["schemas"]["UInt64String"];
|
|
4674
|
+
/** @description Random uint256, as a decimal string, that makes each signed quote unique. */
|
|
4675
|
+
readonly salt: components["schemas"]["Uint256"];
|
|
4676
|
+
/** @description Position leg state the quote was priced against; must equal the RFQ's leg_state. */
|
|
4677
|
+
readonly leg_state: components["schemas"]["Hash32"];
|
|
4678
|
+
};
|
|
4679
|
+
/** Format: uint256-decimal */
|
|
4680
|
+
readonly Uint: string;
|
|
4681
|
+
readonly ContractSignature: string;
|
|
4497
4682
|
/** @description 1 to 1000 characters after surrounding whitespace is trimmed. Newlines are kept; other control characters are refused. */
|
|
4498
4683
|
readonly CommentBody: string;
|
|
4499
4684
|
/**
|
|
@@ -4559,59 +4744,6 @@ export type components = {
|
|
|
4559
4744
|
readonly EditCommentRequest: {
|
|
4560
4745
|
readonly body: components["schemas"]["CommentBody"];
|
|
4561
4746
|
};
|
|
4562
|
-
/** @description Entry terms a maker quotes; they mirror the signed Quote and TakerAccept structs field for field. */
|
|
4563
|
-
readonly "schemas-QuoteTerms": {
|
|
4564
|
-
/** @description On-chain maker ID of the quoting maker. */
|
|
4565
|
-
readonly maker_id: components["schemas"]["NonZeroUInt64String"];
|
|
4566
|
-
/** @description Legs the quote covers; must equal the RFQ legs in order. The signed Leg encodes outcome_id as uint32 and side as uint8, 0 for YES and 1 for NO. */
|
|
4567
|
-
readonly legs: readonly components["schemas"]["$defs-Leg"][];
|
|
4568
|
-
/** @description Taker stake in atomic USDC (6 decimals), before taker fees. */
|
|
4569
|
-
readonly stake: components["schemas"]["$defs-Amount"];
|
|
4570
|
-
/** @description Gross amount the position pays if every leg wins, in atomic USDC (6 decimals), before the profit fee. */
|
|
4571
|
-
readonly payout: components["schemas"]["$defs-Amount"];
|
|
4572
|
-
/** @description Profit fee in basis points, charged at claim on the winning profit (payout minus net stake). */
|
|
4573
|
-
readonly fee_bps: number;
|
|
4574
|
-
/** @description Entry fee in basis points taken from the stake at accept: net stake is stake minus floor(stake * taker_fee_bps / 10000). */
|
|
4575
|
-
readonly taker_fee_bps: number;
|
|
4576
|
-
/** @description Wallet that must sign the accept and will own the position. */
|
|
4577
|
-
readonly taker: string;
|
|
4578
|
-
/** @description Unix seconds after which the quote can no longer be accepted. */
|
|
4579
|
-
readonly expiry: components["schemas"]["UInt64String"];
|
|
4580
|
-
/** @description Random uint256, as a decimal string, that makes each signed quote unique. */
|
|
4581
|
-
readonly salt: components["schemas"]["Uint256"];
|
|
4582
|
-
};
|
|
4583
|
-
/** @description Sell-back terms: the underwriting maker buys the position back and it closes. They mirror the signed SellBack struct. */
|
|
4584
|
-
readonly "schemas-SellBackTerms": {
|
|
4585
|
-
/** @description Position the quote is for; the signed SellBack names it ticketId. */
|
|
4586
|
-
readonly position_id: components["schemas"]["Hash32"];
|
|
4587
|
-
/** @description Buyback price the original maker pays the owner to close the ticket, in atomic USDC (6 decimals). */
|
|
4588
|
-
readonly price: components["schemas"]["$defs-Amount"];
|
|
4589
|
-
/** @description Current position owner, who sells the ticket back. */
|
|
4590
|
-
readonly owner: components["schemas"]["LowercaseNonZeroAddress"];
|
|
4591
|
-
/** @description Unix seconds after which the quote can no longer be executed. */
|
|
4592
|
-
readonly expiry: components["schemas"]["UInt64String"];
|
|
4593
|
-
/** @description Random uint256, as a decimal string, that makes each signed quote unique. */
|
|
4594
|
-
readonly salt: components["schemas"]["Uint256"];
|
|
4595
|
-
/** @description Position leg state the quote was priced against; must equal the RFQ's leg_state. */
|
|
4596
|
-
readonly leg_state: components["schemas"]["Hash32"];
|
|
4597
|
-
};
|
|
4598
|
-
/** @description Transfer terms: another maker buys the position and becomes its owner. They mirror the signed CashoutTransfer struct. */
|
|
4599
|
-
readonly "schemas-TransferTerms": {
|
|
4600
|
-
/** @description Position the quote is for; the signed CashoutTransfer names it ticketId. */
|
|
4601
|
-
readonly position_id: components["schemas"]["Hash32"];
|
|
4602
|
-
/** @description Price the buyer pays the seller for the whole position, in atomic USDC (6 decimals). */
|
|
4603
|
-
readonly price: components["schemas"]["$defs-Amount"];
|
|
4604
|
-
/** @description Current position owner, who sells the ticket. */
|
|
4605
|
-
readonly seller: components["schemas"]["LowercaseNonZeroAddress"];
|
|
4606
|
-
/** @description The bidding maker's current quote signer, which becomes the owner and pays from its own vault balance. */
|
|
4607
|
-
readonly buyer: components["schemas"]["LowercaseNonZeroAddress"];
|
|
4608
|
-
/** @description Unix seconds after which the quote can no longer be executed. */
|
|
4609
|
-
readonly expiry: components["schemas"]["UInt64String"];
|
|
4610
|
-
/** @description Random uint256, as a decimal string, that makes each signed quote unique. */
|
|
4611
|
-
readonly salt: components["schemas"]["Uint256"];
|
|
4612
|
-
/** @description Position leg state the quote was priced against; must equal the RFQ's leg_state. */
|
|
4613
|
-
readonly leg_state: components["schemas"]["Hash32"];
|
|
4614
|
-
};
|
|
4615
4747
|
/** @description Arm or renew your quote lease. Each renewal sets it to lapse `lease_ms` after the server receives it; it covers the whole maker, whichever key renews it. Without a lease nothing changes. Send no `Idempotency-Key`: a repeat only renews again. */
|
|
4616
4748
|
readonly QuoteLeaseCommand: {
|
|
4617
4749
|
/** @description How long your quotes stand without another renewal, in milliseconds, from 1000 to 60000. Renew well inside it, for example every third of it. */
|
|
@@ -4629,7 +4761,6 @@ export type components = {
|
|
|
4629
4761
|
/** @description `true` if a lease was armed and is now released, `false` if none was. Either way your quotes now stand until their own expiry. */
|
|
4630
4762
|
readonly released: boolean;
|
|
4631
4763
|
};
|
|
4632
|
-
readonly ContractSignature: string;
|
|
4633
4764
|
/** @description A USDC EIP-3009 ReceiveWithAuthorization moving value from the caller's embedded wallet into the vault. The venue fills `from` and `account` with that wallet; sign the message with both set to it. */
|
|
4634
4765
|
readonly WalletFunding: {
|
|
4635
4766
|
/**
|
|
@@ -5463,8 +5594,6 @@ export type components = {
|
|
|
5463
5594
|
/** @description Relative path to poll for this job's status. */
|
|
5464
5595
|
readonly status_url: string;
|
|
5465
5596
|
};
|
|
5466
|
-
/** Format: uint256-decimal */
|
|
5467
|
-
readonly Uint: string;
|
|
5468
5597
|
readonly TransactionCall: {
|
|
5469
5598
|
/**
|
|
5470
5599
|
* @description HyperEVM chain ID for the transaction: 998 testnet or 999 mainnet.
|
|
@@ -7645,6 +7774,267 @@ export interface operations {
|
|
|
7645
7774
|
readonly 503: components["responses"]["Unavailable"];
|
|
7646
7775
|
};
|
|
7647
7776
|
};
|
|
7777
|
+
readonly getGolden: {
|
|
7778
|
+
readonly parameters: {
|
|
7779
|
+
readonly query?: never;
|
|
7780
|
+
readonly header?: never;
|
|
7781
|
+
readonly path?: never;
|
|
7782
|
+
readonly cookie?: never;
|
|
7783
|
+
};
|
|
7784
|
+
readonly requestBody?: never;
|
|
7785
|
+
readonly responses: {
|
|
7786
|
+
/** @description The golden ticket, or null */
|
|
7787
|
+
readonly 200: {
|
|
7788
|
+
headers: {
|
|
7789
|
+
readonly [name: string]: unknown;
|
|
7790
|
+
};
|
|
7791
|
+
content: {
|
|
7792
|
+
readonly "application/json": {
|
|
7793
|
+
readonly golden: null | {
|
|
7794
|
+
/**
|
|
7795
|
+
* @description AVAILABLE: unused and unexpired. PLACING: Totalis is buying the Combo. BOUGHT: Totalis bought it and the gift to this account is on its way. PLACED: the gift landed; `position_id` is the account's position. EXPIRED: it lapsed unused.
|
|
7796
|
+
* @enum {string}
|
|
7797
|
+
*/
|
|
7798
|
+
readonly state: "AVAILABLE" | "PLACING" | "BOUGHT" | "PLACED" | "EXPIRED";
|
|
7799
|
+
readonly granted_at: components["schemas"]["$defs-Timestamp"];
|
|
7800
|
+
readonly expires_at: components["schemas"]["$defs-Timestamp"];
|
|
7801
|
+
/** @description The gross stake Totalis pays, in USDC base units (6 decimals). */
|
|
7802
|
+
readonly stake: components["schemas"]["$defs-Amount"];
|
|
7803
|
+
/** @constant */
|
|
7804
|
+
readonly stake_asset: "USDC";
|
|
7805
|
+
/**
|
|
7806
|
+
* @description The exact number of legs a golden Combo has.
|
|
7807
|
+
* @constant
|
|
7808
|
+
*/
|
|
7809
|
+
readonly legs: 5;
|
|
7810
|
+
/** @description The gifted position once PLACED; null otherwise. */
|
|
7811
|
+
readonly position_id: null | components["schemas"]["Bytes32"];
|
|
7812
|
+
/** @description While AVAILABLE, why the latest placement failed, if one did; null otherwise. */
|
|
7813
|
+
readonly last_failure: null | ("MAKER_DECLINED" | "ACCEPT_FAILED" | "NOT_ACCEPTED" | "PROMO_BUSY" | "GIFT_FAILED" | "GIFT_EXPIRED");
|
|
7814
|
+
};
|
|
7815
|
+
};
|
|
7816
|
+
};
|
|
7817
|
+
};
|
|
7818
|
+
readonly 400: components["responses"]["Error"];
|
|
7819
|
+
readonly 401: components["responses"]["Error"];
|
|
7820
|
+
readonly 403: components["responses"]["Error"];
|
|
7821
|
+
readonly 404: components["responses"]["Error"];
|
|
7822
|
+
readonly 429: components["responses"]["RateLimited"];
|
|
7823
|
+
readonly 503: components["responses"]["Unavailable"];
|
|
7824
|
+
};
|
|
7825
|
+
};
|
|
7826
|
+
readonly getGoldenMarkets: {
|
|
7827
|
+
readonly parameters: {
|
|
7828
|
+
readonly query?: never;
|
|
7829
|
+
readonly header?: never;
|
|
7830
|
+
readonly path?: never;
|
|
7831
|
+
readonly cookie?: never;
|
|
7832
|
+
};
|
|
7833
|
+
readonly requestBody?: never;
|
|
7834
|
+
readonly responses: {
|
|
7835
|
+
/** @description Golden markets in discovery order */
|
|
7836
|
+
readonly 200: {
|
|
7837
|
+
headers: {
|
|
7838
|
+
readonly [name: string]: unknown;
|
|
7839
|
+
};
|
|
7840
|
+
content: {
|
|
7841
|
+
readonly "application/json": {
|
|
7842
|
+
readonly items: readonly components["schemas"]["Card"][];
|
|
7843
|
+
};
|
|
7844
|
+
};
|
|
7845
|
+
};
|
|
7846
|
+
readonly 400: components["responses"]["Error"];
|
|
7847
|
+
readonly 401: components["responses"]["Error"];
|
|
7848
|
+
readonly 403: components["responses"]["Error"];
|
|
7849
|
+
readonly 404: components["responses"]["Error"];
|
|
7850
|
+
readonly 429: components["responses"]["RateLimited"];
|
|
7851
|
+
readonly 503: components["responses"]["Unavailable"];
|
|
7852
|
+
};
|
|
7853
|
+
};
|
|
7854
|
+
readonly getGoldenSuggestions: {
|
|
7855
|
+
readonly parameters: {
|
|
7856
|
+
readonly query?: never;
|
|
7857
|
+
readonly header?: never;
|
|
7858
|
+
readonly path?: never;
|
|
7859
|
+
readonly cookie?: never;
|
|
7860
|
+
};
|
|
7861
|
+
readonly requestBody?: never;
|
|
7862
|
+
readonly responses: {
|
|
7863
|
+
/** @description Golden suggestions */
|
|
7864
|
+
readonly 200: {
|
|
7865
|
+
headers: {
|
|
7866
|
+
readonly [name: string]: unknown;
|
|
7867
|
+
};
|
|
7868
|
+
content: {
|
|
7869
|
+
readonly "application/json": {
|
|
7870
|
+
/** @description In order; empty when none is priced. `payout` is the Totalis maker quote's win amount after the profit fee, indicative only. */
|
|
7871
|
+
readonly combos: readonly components["schemas"]["SuggestedCombo"][];
|
|
7872
|
+
};
|
|
7873
|
+
};
|
|
7874
|
+
};
|
|
7875
|
+
readonly 400: components["responses"]["Error"];
|
|
7876
|
+
readonly 401: components["responses"]["Error"];
|
|
7877
|
+
readonly 403: components["responses"]["Error"];
|
|
7878
|
+
readonly 404: components["responses"]["Error"];
|
|
7879
|
+
readonly 409: components["responses"]["Error"];
|
|
7880
|
+
readonly 429: components["responses"]["RateLimited"];
|
|
7881
|
+
readonly 503: components["responses"]["Unavailable"];
|
|
7882
|
+
};
|
|
7883
|
+
};
|
|
7884
|
+
readonly createGoldenRfq: {
|
|
7885
|
+
readonly parameters: {
|
|
7886
|
+
readonly query?: never;
|
|
7887
|
+
readonly header: {
|
|
7888
|
+
/**
|
|
7889
|
+
* @description Lowercase UUIDv7 naming this command, unique per caller and route. A retry with the same key and body returns the original result; the same key with a different body returns `409 IDEMPOTENCY_KEY_REUSED`.
|
|
7890
|
+
* @example 0198a6f6-82a5-7abc-9f2a-4f0fb437493e
|
|
7891
|
+
*/
|
|
7892
|
+
readonly "Idempotency-Key": components["parameters"]["IdempotencyKey"];
|
|
7893
|
+
};
|
|
7894
|
+
readonly path?: never;
|
|
7895
|
+
readonly cookie?: never;
|
|
7896
|
+
};
|
|
7897
|
+
readonly requestBody: {
|
|
7898
|
+
readonly content: {
|
|
7899
|
+
readonly "application/json": {
|
|
7900
|
+
/** @description Strictly ascending by outcome_id. */
|
|
7901
|
+
readonly legs: readonly components["schemas"]["$defs-Leg"][];
|
|
7902
|
+
};
|
|
7903
|
+
};
|
|
7904
|
+
};
|
|
7905
|
+
readonly responses: {
|
|
7906
|
+
/** @description The golden RFQ, or the one a retry with the same Idempotency-Key opened */
|
|
7907
|
+
readonly 201: {
|
|
7908
|
+
headers: {
|
|
7909
|
+
readonly [name: string]: unknown;
|
|
7910
|
+
};
|
|
7911
|
+
content: {
|
|
7912
|
+
readonly "application/json": components["schemas"]["RfqCreated"];
|
|
7913
|
+
};
|
|
7914
|
+
};
|
|
7915
|
+
readonly 400: components["responses"]["Error"];
|
|
7916
|
+
readonly 401: components["responses"]["Error"];
|
|
7917
|
+
readonly 403: components["responses"]["Error"];
|
|
7918
|
+
readonly 404: components["responses"]["Error"];
|
|
7919
|
+
readonly 409: components["responses"]["Error"];
|
|
7920
|
+
readonly 422: components["responses"]["Error"];
|
|
7921
|
+
readonly 429: components["responses"]["RateLimited"];
|
|
7922
|
+
readonly 503: components["responses"]["Unavailable"];
|
|
7923
|
+
};
|
|
7924
|
+
};
|
|
7925
|
+
readonly getGoldenOffer: {
|
|
7926
|
+
readonly parameters: {
|
|
7927
|
+
readonly query?: never;
|
|
7928
|
+
readonly header?: never;
|
|
7929
|
+
readonly path: {
|
|
7930
|
+
readonly rfq_id: components["schemas"]["Uuid"];
|
|
7931
|
+
};
|
|
7932
|
+
readonly cookie?: never;
|
|
7933
|
+
};
|
|
7934
|
+
readonly requestBody?: never;
|
|
7935
|
+
readonly responses: {
|
|
7936
|
+
/** @description The RFQ's state and its offer, or null */
|
|
7937
|
+
readonly 200: {
|
|
7938
|
+
headers: {
|
|
7939
|
+
readonly [name: string]: unknown;
|
|
7940
|
+
};
|
|
7941
|
+
content: {
|
|
7942
|
+
readonly "application/json": {
|
|
7943
|
+
readonly rfq: {
|
|
7944
|
+
/**
|
|
7945
|
+
* @description The RFQ's status, as Get RFQ's `status`: OPEN collects quotes until expires_at; EXPIRED or DECLINED with a null `offer` means no Totalis maker priced it, so open a new one.
|
|
7946
|
+
* @enum {string}
|
|
7947
|
+
*/
|
|
7948
|
+
readonly status: "OPEN" | "ACCEPTED" | "EXPIRED" | "CANCELLED" | "FAILED" | "DECLINED";
|
|
7949
|
+
/** @description When quote collection ends. A quote made by then stays acceptable until its own `accept_before`. */
|
|
7950
|
+
readonly expires_at: components["schemas"]["$defs-Timestamp"];
|
|
7951
|
+
};
|
|
7952
|
+
readonly offer: null | {
|
|
7953
|
+
readonly quote: components["schemas"]["Quote"];
|
|
7954
|
+
/** @description What the position pays its holder if it wins, after the profit fee, in USDC base units. */
|
|
7955
|
+
readonly win_amount: components["schemas"]["$defs-Amount"];
|
|
7956
|
+
/** @description The gift: a plain `Transfer(bytes32 ticketId,uint128 price,address seller,address buyer,uint64 expiry,uint256 salt)` under the vault's EIP-712 domain (GET /v1/deployment), `ticketId` being `position_id`. The account's wallet itself signs it (eth_signTypedData_v4); an agent cannot. */
|
|
7957
|
+
readonly transfer: {
|
|
7958
|
+
readonly position_id: components["schemas"]["Bytes32"];
|
|
7959
|
+
/** @constant */
|
|
7960
|
+
readonly price: "0";
|
|
7961
|
+
readonly seller: components["schemas"]["Address"];
|
|
7962
|
+
readonly buyer: components["schemas"]["Address"];
|
|
7963
|
+
readonly expiry: components["schemas"]["UInt64String"];
|
|
7964
|
+
readonly salt: components["schemas"]["Uint"];
|
|
7965
|
+
/** @description The Transfer's EIP-712 digest, to check a signer against. */
|
|
7966
|
+
readonly digest: components["schemas"]["Bytes32"];
|
|
7967
|
+
};
|
|
7968
|
+
};
|
|
7969
|
+
};
|
|
7970
|
+
};
|
|
7971
|
+
};
|
|
7972
|
+
readonly 400: components["responses"]["Error"];
|
|
7973
|
+
readonly 401: components["responses"]["Error"];
|
|
7974
|
+
readonly 403: components["responses"]["Error"];
|
|
7975
|
+
readonly 404: components["responses"]["Error"];
|
|
7976
|
+
readonly 429: components["responses"]["RateLimited"];
|
|
7977
|
+
readonly 503: components["responses"]["Unavailable"];
|
|
7978
|
+
};
|
|
7979
|
+
};
|
|
7980
|
+
readonly placeGolden: {
|
|
7981
|
+
readonly parameters: {
|
|
7982
|
+
readonly query?: never;
|
|
7983
|
+
readonly header: {
|
|
7984
|
+
/**
|
|
7985
|
+
* @description Lowercase UUIDv7 naming this command, unique per caller and route. A retry with the same key and body returns the original result; the same key with a different body returns `409 IDEMPOTENCY_KEY_REUSED`.
|
|
7986
|
+
* @example 0198a6f6-82a5-7abc-9f2a-4f0fb437493e
|
|
7987
|
+
*/
|
|
7988
|
+
readonly "Idempotency-Key": components["parameters"]["IdempotencyKey"];
|
|
7989
|
+
};
|
|
7990
|
+
readonly path?: never;
|
|
7991
|
+
readonly cookie?: never;
|
|
7992
|
+
};
|
|
7993
|
+
readonly requestBody: {
|
|
7994
|
+
readonly content: {
|
|
7995
|
+
readonly "application/json": {
|
|
7996
|
+
readonly rfq_id: components["schemas"]["Uuid"];
|
|
7997
|
+
readonly quote_id: components["schemas"]["Bytes32"];
|
|
7998
|
+
/** @description The offer's transfer expiry and salt, as signed. */
|
|
7999
|
+
readonly transfer: {
|
|
8000
|
+
readonly expiry: components["schemas"]["UInt64String"];
|
|
8001
|
+
readonly salt: components["schemas"]["Uint"];
|
|
8002
|
+
};
|
|
8003
|
+
/** @description The account wallet's signature over the offer's Transfer. */
|
|
8004
|
+
readonly buyer_signature: components["schemas"]["ContractSignature"];
|
|
8005
|
+
};
|
|
8006
|
+
};
|
|
8007
|
+
};
|
|
8008
|
+
readonly responses: {
|
|
8009
|
+
/** @description The placement, or the one a retry with the same Idempotency-Key made */
|
|
8010
|
+
readonly 200: {
|
|
8011
|
+
headers: {
|
|
8012
|
+
readonly [name: string]: unknown;
|
|
8013
|
+
};
|
|
8014
|
+
content: {
|
|
8015
|
+
readonly "application/json": {
|
|
8016
|
+
readonly placement_id: components["schemas"]["Uuid"];
|
|
8017
|
+
/**
|
|
8018
|
+
* @description PLACING until the promo account's accept lands, BOUGHT until the gift lands, then DELIVERED; FAILED leaves the golden ticket available again. Read GET /v1/me/golden for its progress.
|
|
8019
|
+
* @enum {string}
|
|
8020
|
+
*/
|
|
8021
|
+
readonly state: "PLACING" | "BOUGHT" | "DELIVERED" | "FAILED";
|
|
8022
|
+
/** @description The quote's digest: the position the gift delivers. */
|
|
8023
|
+
readonly position_id: components["schemas"]["Bytes32"];
|
|
8024
|
+
readonly failure: null | ("MAKER_DECLINED" | "ACCEPT_FAILED" | "NOT_ACCEPTED" | "PROMO_BUSY" | "GIFT_FAILED" | "GIFT_EXPIRED");
|
|
8025
|
+
};
|
|
8026
|
+
};
|
|
8027
|
+
};
|
|
8028
|
+
readonly 400: components["responses"]["Error"];
|
|
8029
|
+
readonly 401: components["responses"]["Error"];
|
|
8030
|
+
readonly 403: components["responses"]["Error"];
|
|
8031
|
+
readonly 404: components["responses"]["Error"];
|
|
8032
|
+
readonly 409: components["responses"]["Error"];
|
|
8033
|
+
readonly 422: components["responses"]["Error"];
|
|
8034
|
+
readonly 429: components["responses"]["RateLimited"];
|
|
8035
|
+
readonly 503: components["responses"]["Unavailable"];
|
|
8036
|
+
};
|
|
8037
|
+
};
|
|
7648
8038
|
readonly getVolumeLeaderboard: {
|
|
7649
8039
|
readonly parameters: {
|
|
7650
8040
|
readonly query?: {
|
|
@@ -8266,13 +8656,18 @@ export interface operations {
|
|
|
8266
8656
|
readonly decided_at?: components["schemas"]["$defs-Timestamp"];
|
|
8267
8657
|
/** @description HIP-4 outcome ID, as a decimal string. */
|
|
8268
8658
|
readonly outcome_id: components["schemas"]["UInt32String"];
|
|
8269
|
-
/** @description
|
|
8659
|
+
/** @description The side the account traded: the trader's, or its other side for a COUNTER. */
|
|
8270
8660
|
readonly side: components["schemas"]["Side"];
|
|
8271
8661
|
/**
|
|
8272
|
-
* @description ENTRY: the trader bought, and the copy buys. REDUCE: the trader sold part of their holding, and the copy sells that fraction of the account's copied shares. CLOSE and EXIT: the trader sold all of it, and the copy sells all copied shares.
|
|
8662
|
+
* @description ENTRY: the trader bought, and the copy buys, or for a COUNTER buys the other side. REDUCE: the trader sold part of their holding, and the copy sells that fraction of the account's copied shares. CLOSE and EXIT: the trader sold all of it, and the copy sells all copied shares.
|
|
8273
8663
|
* @enum {string}
|
|
8274
8664
|
*/
|
|
8275
8665
|
readonly kind: "ENTRY" | "REDUCE" | "CLOSE" | "EXIT";
|
|
8666
|
+
/**
|
|
8667
|
+
* @description Whether this copied the trader's trade or took its other side.
|
|
8668
|
+
* @enum {unknown}
|
|
8669
|
+
*/
|
|
8670
|
+
readonly mode: "COPY" | "COUNTER";
|
|
8276
8671
|
/**
|
|
8277
8672
|
* CopyLeaderTrade
|
|
8278
8673
|
* @description The trader's trade, all of its fills together.
|
|
@@ -8354,11 +8749,16 @@ export interface operations {
|
|
|
8354
8749
|
/** @description When the copy reached its outcome; absent while PENDING. */
|
|
8355
8750
|
readonly decided_at?: components["schemas"]["$defs-Timestamp"];
|
|
8356
8751
|
/**
|
|
8357
|
-
* @description ENTRY: the trader opened a Combo, and the copy opens the same legs at the account's stake. EXIT: the trader cashed theirs out, and the copy cashes out the account's copy.
|
|
8752
|
+
* @description ENTRY: the trader opened a Combo, and the copy opens the same legs, or for a COUNTER each leg's other side, at the account's stake. EXIT: the trader cashed theirs out, and the copy cashes out the account's copy.
|
|
8358
8753
|
* @enum {string}
|
|
8359
8754
|
*/
|
|
8360
8755
|
readonly kind: "ENTRY" | "EXIT";
|
|
8361
|
-
/**
|
|
8756
|
+
/**
|
|
8757
|
+
* @description Whether this copied the trader's trade or took its other side.
|
|
8758
|
+
* @enum {unknown}
|
|
8759
|
+
*/
|
|
8760
|
+
readonly mode: "COPY" | "COUNTER";
|
|
8761
|
+
/** @description The legs the account's copy takes: the trader's, each on its other side for a COUNTER. */
|
|
8362
8762
|
readonly legs: readonly components["schemas"]["TraderLeg"][];
|
|
8363
8763
|
/**
|
|
8364
8764
|
* ComboCopyLeaderTrade
|
|
@@ -10784,7 +11184,7 @@ export interface operations {
|
|
|
10784
11184
|
readonly "application/json": components["schemas"]["DepositAccepted"];
|
|
10785
11185
|
};
|
|
10786
11186
|
};
|
|
10787
|
-
/** @description A deposit moves at least 0.10 USDC from a
|
|
11187
|
+
/** @description A deposit moves at least 0.10 USDC from a Privy login wallet, embedded or external, and 1 USDC from any other, and a wallet that controls a maker cannot deposit (`INVALID_REQUEST`). */
|
|
10788
11188
|
readonly 400: components["responses"]["Error"];
|
|
10789
11189
|
readonly 401: components["responses"]["Error"];
|
|
10790
11190
|
/** @description Wallet sessions and Totalis app sessions only: an API key cannot deposit. */
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
export declare const sdkVersion = "
|
|
2
|
-
export declare const openapiSha256 = "
|
|
1
|
+
export declare const sdkVersion = "208.0.0-golden-combo";
|
|
2
|
+
export declare const openapiSha256 = "d20296ea5f9a68f36dfe34c735d7cac2a5b5e2a0d116f0bb183c1e7f192601ff";
|
|
3
3
|
export declare const realtimeSha256 = "1cac740e108e84ad1979f6ccc71089efd840404cb72d1612a86edc02769637e3";
|
|
4
4
|
export declare const jsonSchemaSha256: {
|
|
5
5
|
readonly "account.schema.json": "5106e2d53abef190990eff113f6692dd27df5848439cf5a80a42c11e89f2bef6";
|
|
6
6
|
readonly "comments.schema.json": "18f4addcfa4e31c2c833fce8b8beca61d2e2ee5b6318c2ed0b479698ff56b65e";
|
|
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": "724f7e86716a49effe27694ca8fd8370d6f215798d3f663362f1718fd89e7ebb";
|
|
10
10
|
readonly "hypercore.schema.json": "5b89b2bbff7ec8cc1b8717375d12ce9cd5ab6aa5af03c4fdc6cc753ef9583a2c";
|
|
11
11
|
readonly "identity.schema.json": "94534b768030736f4fd1fad285f1312454ca5fbff0b1eb5fab70416a78923bd0";
|
|
12
12
|
readonly "maker-access.schema.json": "49698ee0235e42064aae0397db1e0f646bdc10d9dfa10121714ba06dd69fee3b";
|
|
@@ -18,7 +18,7 @@ export declare const jsonSchemaSha256: {
|
|
|
18
18
|
readonly "realtime.schema.json": "1cac740e108e84ad1979f6ccc71089efd840404cb72d1612a86edc02769637e3";
|
|
19
19
|
};
|
|
20
20
|
export declare const operations: {
|
|
21
|
-
readonly client: readonly ["abandonCoreExit", "acceptQuote", "activeCoreExits", "admitOwnMaker", "admitPartnerWallet", "bindEmbeddedWallet", "cancelRfq", "confirmComboCopyAgent", "confirmCoreCopyAgent", "createCashout", "createComment", "createCoreExit", "createDeposit", "createRfq", "createRunOffClaim", "createWalletChallenge", "createWalletSession", "createWithdrawal", "deleteComment", "editComment", "endWalletSession", "followTrader", "getAcceptance", "getAccountActivity", "getAccountPnl", "getAccountPosition", "getBalances", "getCopyAgents", "getCopyBudget", "getCopySettings", "getCopySummary", "getCoreExit", "getDeployment", "getHypercoreBalance", "getHypercorePortfolio", "getHypercoreSettlementCredits", "getIdentity", "getMakerActivity", "getMakerCapital", "getMakerExposure", "getMakerPerformance", "getMakerPosition", "getMakerQuotes", "getMakerTelemetry", "getMakerVaultFundingTransaction", "getMakerWithdrawal", "getMarket", "getMarketDataConfig", "getMarketDefinitions", "getMarketHistory", "getMarketRecurringRound", "getMarketReferenceCloses", "getMarketScoreTimeline", "getMarketStats", "getOperation", "getOwnMaker", "getPartnerReport", "getPerpMarks", "getProfitLeaderboard", "getQuestion", "getQuestionRecurringRound", "getQuestionScoreTimeline", "getRfq", "getSeries", "getSuggestedCombo", "getTaxonomy", "getTrader", "getTraderPnl", "getUsernameAvailability", "getVaultAgents", "getVolumeLeaderboard", "getWithdrawal", "grantComboCopyAgent", "grantVaultAgent", "likeComment", "listAccountActivity", "listAccountPositions", "listComboCopies", "listComboFeed", "listCommentReplies", "listComments", "listControlledMakers", "listCopiedFills", "listCopyTrades", "listDiscovery", "listFollows", "listMakerActivity", "listMakerPositions", "listMakerQuoteHistory", "listMarkets", "listOperations", "listQuotes", "listTraderPositions", "listTraderTrades", "reactComment", "recordAcquisition", "refreshPicture", "requestComboCopyAgent", "requestCoreCopyAgent", "revokeComboCopyAgent", "searchCatalog", "setAvatar", "setCopyAllocation", "setCopySettings", "setPublicProfile", "setUsername", "stream", "streamMarkets", "switchOffComboCopyAgent", "switchOffCoreCopyAgent", "unfollowTrader", "unlikeComment", "unreactComment"];
|
|
21
|
+
readonly client: readonly ["abandonCoreExit", "acceptQuote", "activeCoreExits", "admitOwnMaker", "admitPartnerWallet", "bindEmbeddedWallet", "cancelRfq", "confirmComboCopyAgent", "confirmCoreCopyAgent", "createCashout", "createComment", "createCoreExit", "createDeposit", "createGoldenRfq", "createRfq", "createRunOffClaim", "createWalletChallenge", "createWalletSession", "createWithdrawal", "deleteComment", "editComment", "endWalletSession", "followTrader", "getAcceptance", "getAccountActivity", "getAccountPnl", "getAccountPosition", "getBalances", "getCopyAgents", "getCopyBudget", "getCopySettings", "getCopySummary", "getCoreExit", "getDeployment", "getGolden", "getGoldenMarkets", "getGoldenOffer", "getGoldenSuggestions", "getHypercoreBalance", "getHypercorePortfolio", "getHypercoreSettlementCredits", "getIdentity", "getMakerActivity", "getMakerCapital", "getMakerExposure", "getMakerPerformance", "getMakerPosition", "getMakerQuotes", "getMakerTelemetry", "getMakerVaultFundingTransaction", "getMakerWithdrawal", "getMarket", "getMarketDataConfig", "getMarketDefinitions", "getMarketHistory", "getMarketRecurringRound", "getMarketReferenceCloses", "getMarketScoreTimeline", "getMarketStats", "getOperation", "getOwnMaker", "getPartnerReport", "getPerpMarks", "getProfitLeaderboard", "getQuestion", "getQuestionRecurringRound", "getQuestionScoreTimeline", "getRfq", "getSeries", "getSuggestedCombo", "getTaxonomy", "getTrader", "getTraderPnl", "getUsernameAvailability", "getVaultAgents", "getVolumeLeaderboard", "getWithdrawal", "grantComboCopyAgent", "grantVaultAgent", "likeComment", "listAccountActivity", "listAccountPositions", "listComboCopies", "listComboFeed", "listCommentReplies", "listComments", "listControlledMakers", "listCopiedFills", "listCopyTrades", "listDiscovery", "listFollows", "listMakerActivity", "listMakerPositions", "listMakerQuoteHistory", "listMarkets", "listOperations", "listQuotes", "listTraderPositions", "listTraderTrades", "placeGolden", "reactComment", "recordAcquisition", "refreshPicture", "requestComboCopyAgent", "requestCoreCopyAgent", "revokeComboCopyAgent", "searchCatalog", "setAvatar", "setCopyAllocation", "setCopySettings", "setPublicProfile", "setUsername", "stream", "streamMarkets", "switchOffComboCopyAgent", "switchOffCoreCopyAgent", "unfollowTrader", "unlikeComment", "unreactComment"];
|
|
22
22
|
readonly maker: readonly ["cancelQuote", "confirmQuote", "createCollateralReduction", "createQuote", "getAccountActivity", "getAccountPosition", "getCollateralReduction", "getDeployment", "getMakerActivity", "getMakerCapital", "getMakerExposure", "getMakerPerformance", "getMakerPosition", "getMakerQuotes", "getMakerTelemetry", "getMakerTelemetryPublication", "getMakerVaultFundingTransaction", "getMakerWithdrawal", "getMarket", "getMarketHistory", "getMarketRecurringRound", "getMarketReferenceCloses", "getOperation", "getQuestion", "getQuestionRecurringRound", "getRfq", "getSeries", "getTaxonomy", "listAccountActivity", "listAccountPositions", "listDiscovery", "listMakerAcceptances", "listMakerActivity", "listMakerPositions", "listMakerQuoteHistory", "listMarkets", "listOperations", "listRfqs", "publishMakerTelemetry", "releaseQuoteLease", "renewQuoteLease", "searchCatalog", "stream", "submitMakerSelfFundedTransaction"];
|
|
23
23
|
readonly operator: readonly ["live", "ready"];
|
|
24
24
|
};
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
// Generated by scripts/generate.mjs; do not edit.
|
|
2
|
-
export const sdkVersion = "
|
|
3
|
-
export const openapiSha256 = "
|
|
2
|
+
export const sdkVersion = "208.0.0-golden-combo";
|
|
3
|
+
export const openapiSha256 = "d20296ea5f9a68f36dfe34c735d7cac2a5b5e2a0d116f0bb183c1e7f192601ff";
|
|
4
4
|
export const realtimeSha256 = "1cac740e108e84ad1979f6ccc71089efd840404cb72d1612a86edc02769637e3";
|
|
5
5
|
export const jsonSchemaSha256 = {
|
|
6
6
|
"account.schema.json": "5106e2d53abef190990eff113f6692dd27df5848439cf5a80a42c11e89f2bef6",
|
|
7
7
|
"comments.schema.json": "18f4addcfa4e31c2c833fce8b8beca61d2e2ee5b6318c2ed0b479698ff56b65e",
|
|
8
8
|
"common.schema.json": "04f51deb3cbea448e59195e26ede3212598d58a7940fe67eb2123fd9161c5edb",
|
|
9
9
|
"core-exit.schema.json": "c7f617e815225cdcac95c236f8b73fbe288ee5713ff444c3be90eb915fc3a401",
|
|
10
|
-
"error.schema.json": "
|
|
10
|
+
"error.schema.json": "724f7e86716a49effe27694ca8fd8370d6f215798d3f663362f1718fd89e7ebb",
|
|
11
11
|
"hypercore.schema.json": "5b89b2bbff7ec8cc1b8717375d12ce9cd5ab6aa5af03c4fdc6cc753ef9583a2c",
|
|
12
12
|
"identity.schema.json": "94534b768030736f4fd1fad285f1312454ca5fbff0b1eb5fab70416a78923bd0",
|
|
13
13
|
"maker-access.schema.json": "49698ee0235e42064aae0397db1e0f646bdc10d9dfa10121714ba06dd69fee3b",
|
|
@@ -33,6 +33,7 @@ export const operations = {
|
|
|
33
33
|
"createComment",
|
|
34
34
|
"createCoreExit",
|
|
35
35
|
"createDeposit",
|
|
36
|
+
"createGoldenRfq",
|
|
36
37
|
"createRfq",
|
|
37
38
|
"createRunOffClaim",
|
|
38
39
|
"createWalletChallenge",
|
|
@@ -53,6 +54,10 @@ export const operations = {
|
|
|
53
54
|
"getCopySummary",
|
|
54
55
|
"getCoreExit",
|
|
55
56
|
"getDeployment",
|
|
57
|
+
"getGolden",
|
|
58
|
+
"getGoldenMarkets",
|
|
59
|
+
"getGoldenOffer",
|
|
60
|
+
"getGoldenSuggestions",
|
|
56
61
|
"getHypercoreBalance",
|
|
57
62
|
"getHypercorePortfolio",
|
|
58
63
|
"getHypercoreSettlementCredits",
|
|
@@ -114,6 +119,7 @@ export const operations = {
|
|
|
114
119
|
"listQuotes",
|
|
115
120
|
"listTraderPositions",
|
|
116
121
|
"listTraderTrades",
|
|
122
|
+
"placeGolden",
|
|
117
123
|
"reactComment",
|
|
118
124
|
"recordAcquisition",
|
|
119
125
|
"refreshPicture",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@totalis/hip4-client",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.80.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": [
|