@totalis/hip4-client 0.124.0 → 0.125.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 +380 -0
- package/README.md +9 -5
- package/dist/api-keys.d.ts +21 -2
- package/dist/api-keys.js +12 -10
- package/dist/audience-contract.d.ts +1 -2
- package/dist/client.d.ts +1 -1
- package/dist/client.js +1 -1
- package/dist/flow-errors.d.ts +1 -1
- package/dist/flow-errors.js +1 -1
- package/dist/generated/account-read.d.ts +150 -126
- package/dist/generated/api-keys.d.ts +19 -10
- package/dist/generated/browse.d.ts +12 -12
- package/dist/generated/client.d.ts +5 -2
- package/dist/generated/errors.d.ts +15 -8
- package/dist/generated/errors.js +47 -35
- package/dist/generated/maker.d.ts +3 -4
- package/dist/generated/openapi.d.ts +828 -892
- package/dist/generated/realtime.d.ts +66 -93
- package/dist/generated/vault-abi.d.ts +57 -0
- package/dist/generated/vault-abi.js +77 -0
- package/dist/generated/version.d.ts +16 -16
- package/dist/generated/version.js +20 -18
- package/dist/maker.d.ts +134 -54
- package/dist/maker.js +257 -147
- package/dist/money.d.ts +8 -6
- package/dist/money.js +7 -7
- package/dist/partner.d.ts +2 -0
- package/dist/partner.js +2 -1
- package/dist/request.d.ts +11 -2
- package/dist/request.js +7 -2
- package/dist/totalis.d.ts +147 -232
- package/dist/totalis.js +290 -269
- package/dist/typed-data.d.ts +6 -0
- package/dist/typed-data.js +8 -0
- package/dist/ui.d.ts +6 -10
- package/dist/ui.js +15 -13
- package/dist/vault-reads.d.ts +46 -0
- package/dist/vault-reads.js +72 -0
- package/examples/browser-wallet.mjs +1 -1
- package/examples/node-bot.mjs +15 -12
- package/package.json +1 -1
|
@@ -13,7 +13,11 @@ export type paths = {
|
|
|
13
13
|
readonly get: operations["getMakerQuotes"];
|
|
14
14
|
readonly put?: never;
|
|
15
15
|
readonly post?: never;
|
|
16
|
-
|
|
16
|
+
/**
|
|
17
|
+
* Cancel all quotes
|
|
18
|
+
* @description Cancel all of your open quotes when you stop quoting, as Cancel quote would one at a time, leaving up any quote whose acceptance awaits your answer.
|
|
19
|
+
*/
|
|
20
|
+
readonly delete: operations["cancelAllQuotes"];
|
|
17
21
|
readonly options?: never;
|
|
18
22
|
readonly head?: never;
|
|
19
23
|
readonly patch?: never;
|
|
@@ -361,6 +365,46 @@ export type paths = {
|
|
|
361
365
|
readonly patch?: never;
|
|
362
366
|
readonly trace?: never;
|
|
363
367
|
};
|
|
368
|
+
readonly "/v1/hypercore/orders": {
|
|
369
|
+
readonly parameters: {
|
|
370
|
+
readonly query?: never;
|
|
371
|
+
readonly header?: never;
|
|
372
|
+
readonly path?: never;
|
|
373
|
+
readonly cookie?: never;
|
|
374
|
+
};
|
|
375
|
+
/**
|
|
376
|
+
* Get HyperCore open orders
|
|
377
|
+
* @description Returns the selected linked main account's open HIP-4 orders and its spot fee rates from one Hyperliquid read through our node, with the same linked-account and role checks as the balance read. The read writes nothing. Testnet and Mainnet.
|
|
378
|
+
*/
|
|
379
|
+
readonly get: operations["getHypercoreOrders"];
|
|
380
|
+
readonly put?: never;
|
|
381
|
+
readonly post?: never;
|
|
382
|
+
readonly delete?: never;
|
|
383
|
+
readonly options?: never;
|
|
384
|
+
readonly head?: never;
|
|
385
|
+
readonly patch?: never;
|
|
386
|
+
readonly trace?: never;
|
|
387
|
+
};
|
|
388
|
+
readonly "/v1/hypercore/positions": {
|
|
389
|
+
readonly parameters: {
|
|
390
|
+
readonly query?: never;
|
|
391
|
+
readonly header?: never;
|
|
392
|
+
readonly path?: never;
|
|
393
|
+
readonly cookie?: never;
|
|
394
|
+
};
|
|
395
|
+
/**
|
|
396
|
+
* List own HyperCore positions
|
|
397
|
+
* @description Pages the selected linked main account's own HyperCore positions from the holdings ledger, open and closed (sold out or settled), one row per outcome episode with Yes and No netted, newest opened first. The credential selects the account; a private profile reads its own. Sellable shares and To win come from one Hyperliquid read through our node beside the ledger and are null when it does not answer. Combos are GET /v1/me/positions. The read writes nothing. Testnet and Mainnet.
|
|
398
|
+
*/
|
|
399
|
+
readonly get: operations["listHypercorePositions"];
|
|
400
|
+
readonly put?: never;
|
|
401
|
+
readonly post?: never;
|
|
402
|
+
readonly delete?: never;
|
|
403
|
+
readonly options?: never;
|
|
404
|
+
readonly head?: never;
|
|
405
|
+
readonly patch?: never;
|
|
406
|
+
readonly trace?: never;
|
|
407
|
+
};
|
|
364
408
|
readonly "/health/live": {
|
|
365
409
|
readonly parameters: {
|
|
366
410
|
readonly query?: never;
|
|
@@ -1089,7 +1133,7 @@ export type paths = {
|
|
|
1089
1133
|
readonly get?: never;
|
|
1090
1134
|
/**
|
|
1091
1135
|
* Turn the public trader profile on or off
|
|
1092
|
-
* @description Turns the authenticated account's public trader profile on (public: true) or off. It starts on, and an account without a username can turn it off before picking one; nothing names the profile until then. While it is on, anyone, signed in or not, reads GET /v1/traders/{username}: the username, avatar, account wallet, volume, trades, open Combos and singles and P&L, and GET /v1/feed/combos lists the Combos it opens, and the leaderboards mark the account public_profile. Its HyperCore fills and
|
|
1136
|
+
* @description Turns the authenticated account's public trader profile on (public: true) or off. It starts on, and an account without a username can turn it off before picking one; nothing names the profile until then. While it is on, anyone, signed in or not, reads GET /v1/traders/{username}: the username, avatar, account wallet, volume, trades, open Combos and singles and P&L, and GET /v1/feed/combos lists the Combos it opens, and the leaderboards mark the account public_profile. Its HyperCore fills and positions are public on chain anyway; what turning it on discloses is that the wallet belongs to the username. Turning it on needs a username (409 USERNAME_REQUIRED); public_since keeps the first time it went on until it is turned off. Call it after POST /v1/me/embedded-wallet; before that it is 404 IDENTITY_NOT_FOUND. Asking for the current state again returns 204, so a retry is safe. Idempotency-Keys order these requests: the other state under the account's newest key, or under an older key, is 409 IDEMPOTENCY_KEY_REUSED, so a delayed retry never undoes a newer request. A key stamped more than 5 minutes ahead of server time is 400 INVALID_REQUEST.
|
|
1093
1137
|
*/
|
|
1094
1138
|
readonly put: operations["setPublicProfile"];
|
|
1095
1139
|
readonly post?: never;
|
|
@@ -1168,7 +1212,7 @@ export type paths = {
|
|
|
1168
1212
|
};
|
|
1169
1213
|
/**
|
|
1170
1214
|
* List a public trader's trades
|
|
1171
|
-
* @description A public trader's trades, newest first: each HyperCore fill GET /v1/leaderboard/volume counts as theirs (on their Totalis embedded wallet, or an order the app placed on another linked wallet), each Combo
|
|
1215
|
+
* @description A public trader's trades, newest first: each HyperCore fill GET /v1/leaderboard/volume counts as theirs (on their Totalis embedded wallet, or an order the app placed on another linked wallet), each Combo position a wallet of theirs opened, when it did (a position passed to them is not their entry), each Combo position passed to a wallet of theirs from a wallet that was not theirs, when it was (since contract 226), and each sold back from a wallet of theirs, when it was. Poll the first page for new trades; ids are stable. The cursor never expires. Anyone reads it, signed out or with any credential, from any origin; a supplied credential must still authenticate. A signed-out answer is the same for everyone and is cached for 30 seconds. A username with no public profile, whether private, unknown or held by an account that is not ACTIVE, is 404 NOT_FOUND, signed in or not.
|
|
1172
1216
|
*/
|
|
1173
1217
|
readonly get: operations["listTraderTrades"];
|
|
1174
1218
|
readonly put?: never;
|
|
@@ -1188,7 +1232,7 @@ export type paths = {
|
|
|
1188
1232
|
};
|
|
1189
1233
|
/**
|
|
1190
1234
|
* List a public trader's open Combos and singles
|
|
1191
|
-
* @description A public trader's open Combo
|
|
1235
|
+
* @description A public trader's open Combo positions, newest first by opening, including positions passed to them, and on the first page (no cursor) their singles: the HIP-4 outcome sides their account wallet holds on HyperCore, replayed from its whole fill history in the account index. singles is null while that history cannot prove them: off Mainnet, while the index is behind or missing history, after an outcome token moved by transfer, or while the read fails. A later page leaves singles out. Anyone reads it, signed out or with any credential, from any origin; a supplied credential must still authenticate. A signed-out answer is the same for everyone and is cached for 30 seconds. A username with no public profile, whether private, unknown or held by an account that is not ACTIVE, is 404 NOT_FOUND, signed in or not.
|
|
1192
1236
|
*/
|
|
1193
1237
|
readonly get: operations["listTraderPositions"];
|
|
1194
1238
|
readonly put?: never;
|
|
@@ -1228,7 +1272,7 @@ export type paths = {
|
|
|
1228
1272
|
};
|
|
1229
1273
|
/**
|
|
1230
1274
|
* List the Combos public traders opened
|
|
1231
|
-
* @description Every Combo
|
|
1275
|
+
* @description Every Combo position opened by a trader whose profile is public (PUT /v1/me/public-profile), newest first by opening, a page at a time, with the trader's username and avatar. A position counts for the participant whose linked wallet opened it, whoever holds it now; a profile turned off leaves the feed, and one turned on brings its Combos back. A page reads a bounded run of positions, so it may hold fewer than limit, even none, while has_more is true. Poll the first page for new Combos; the cursor never expires. Anyone reads it, signed out or with any credential, from any origin; a supplied credential must still authenticate. A signed-out answer is the same for everyone and is cached for 30 seconds.
|
|
1232
1276
|
*/
|
|
1233
1277
|
readonly get: operations["listComboFeed"];
|
|
1234
1278
|
readonly put?: never;
|
|
@@ -1268,7 +1312,7 @@ export type paths = {
|
|
|
1268
1312
|
};
|
|
1269
1313
|
/**
|
|
1270
1314
|
* List what a person holds now
|
|
1271
|
-
* @description Everything a person holds now, newest opened first, a page at a time: one position per HyperCore outcome their account wallet holds shares of, on its net side, and each Combo
|
|
1315
|
+
* @description Everything a person holds now, newest opened first, a page at a time: one position per HyperCore outcome their account wallet holds shares of, on its net side, and each Combo position it holds or that settled to it with a residual still to claim, a one-leg position included. Positions under $1 of cost are listed too, so the list adds up to the profile's positions value. Pages are read live, not as a snapshot of the first page: each is what they hold when it is read, so a position closed between pages leaves the later ones and the shares and values a page shows are current; a position keeps its place in the order, so paging never repeats one or skips one still held. Poll the first page for changes. Anyone reads it, as GET /v1/social/people/{username}; the same caching and 404 apply. 503 SOURCE_UNAVAILABLE while the holdings ledger is behind (not yet caught up, or stopped for over five minutes).
|
|
1272
1316
|
*/
|
|
1273
1317
|
readonly get: operations["listSocialPositions"];
|
|
1274
1318
|
readonly put?: never;
|
|
@@ -1288,7 +1332,7 @@ export type paths = {
|
|
|
1288
1332
|
};
|
|
1289
1333
|
/**
|
|
1290
1334
|
* Get one of a person's positions
|
|
1291
|
-
* @description One person's position, everything the position drawer shows in one read. position is an outcome ID for a HyperCore position or a
|
|
1335
|
+
* @description One person's position, everything the position drawer shows in one read. position is an outcome ID for a HyperCore position or a position ID for a Combo. For an outcome, episode names one run of the position from its first share to none left (a feed item names its own); without it the answer is the open one, else the newest that closed. A person who never traded the outcome, an episode that is not theirs, or a position their account wallet never held is 404 NOT_FOUND. An outcome on which the holdings ledger holds no episode of theirs is 404 NOT_FOUND too. Everything about an episode is what the ledger stored as it applied their rows; its trades are its newest 100, with the stored count. Anyone reads it, as GET /v1/social/people/{username}; the same caching and 404 apply. 503 SOURCE_UNAVAILABLE while the holdings ledger is behind (not yet caught up, or stopped for over five minutes).
|
|
1292
1336
|
*/
|
|
1293
1337
|
readonly get: operations["getSocialPosition"];
|
|
1294
1338
|
readonly put?: never;
|
|
@@ -1490,7 +1534,7 @@ export type paths = {
|
|
|
1490
1534
|
readonly put?: never;
|
|
1491
1535
|
/**
|
|
1492
1536
|
* Credit a trader with a trade copied from them
|
|
1493
|
-
* @description Credits the public trader with this username with a trade the account placed by copying one of their positions, so it counts toward their trades_copied on GET /v1/social/people/{username}. Call it once the trade is placed: a single by its order's client order ID (16 bytes), once the order filled; a Combo by its
|
|
1537
|
+
* @description Credits the public trader with this username with a trade the account placed by copying one of their positions, so it counts toward their trades_copied on GET /v1/social/people/{username}. Call it once the trade is placed: a single by its order's client order ID (16 bytes), once the order filled; a Combo by its position ID (32 bytes), once the position opened. Only a trade on the account wallet placed in the last 24 hours counts, and only one the trader made first: a single counts when the trader bought the same side of the same outcome before its first fill (earlier in HyperCore's own order, even within one block) or opened it as a single-market RFQ buy no later, a Combo when the trader opened a Combo no later holding every one of its legs (it may have more); a one-leg position is a single bought as an RFQ, so it also counts when the trader bought its side on HyperCore by then. A trade not read on the account wallet yet, or not at all, is 404 NOT_FOUND: the index reads a fill seconds after it, so send it again shortly, for up to a minute. A username with no public profile is also 404 NOT_FOUND; the account's own username is 422 COPY_SELF; a trade the trader did not make first is 422 COPY_NOT_MATCHED. A trade counts once, for the first trader it is credited to, and a trade automatic copying placed already counts for its trader and is not credited again; either returns 204, so a retry is safe. Servers before contract 259 answer 404.
|
|
1494
1538
|
*/
|
|
1495
1539
|
readonly post: operations["recordCopiedTrade"];
|
|
1496
1540
|
readonly delete?: never;
|
|
@@ -1676,7 +1720,7 @@ export type paths = {
|
|
|
1676
1720
|
};
|
|
1677
1721
|
/**
|
|
1678
1722
|
* Get my referral bonus
|
|
1679
|
-
* @description The authenticated account's referral bonus. A referral is someone the account's own invite code admitted; they qualify once their own Combo stake since signing up reaches qualifying_stake, and the account earns bonus for each, up to monthly_cap a UTC month by when each qualified. Referrals past the cap earn nothing that month and nothing carries over. A one-leg entry is a single-market buy, not a Combo, and a golden Combo is not the referral's own stake. The bonus is separate from the fee share in GET /v1/referrals/me.
|
|
1723
|
+
* @description The authenticated account's referral bonus. A referral is someone the account's own invite code admitted; they qualify once their own Combo stake since signing up reaches qualifying_stake, and the account earns bonus for each, up to monthly_cap a UTC month by when each qualified. Referrals past the cap earn nothing that month and nothing carries over. A one-leg entry is a single-market buy, not a Combo, and a golden Combo is not the referral's own stake. The bonus is separate from the fee share in GET /v1/referrals/me. status is ENABLED with the bonus, or DISABLED with its reason where the bonus is not on for the account. Answers CONTRACT_UNAVAILABLE where the referral bonus is off.
|
|
1680
1724
|
*/
|
|
1681
1725
|
readonly get: operations["getMyReferralBonus"];
|
|
1682
1726
|
readonly put?: never;
|
|
@@ -1848,13 +1892,13 @@ export type paths = {
|
|
|
1848
1892
|
};
|
|
1849
1893
|
/**
|
|
1850
1894
|
* Get my wallet approval
|
|
1851
|
-
* @description The account wallet's USDC approval to WalletAccept, which
|
|
1895
|
+
* @description The account wallet's USDC approval to WalletAccept, from which an entry accept takes any part of the stake your free vault cash does not cover, and its USDC permit nonce, read together at one HyperEVM block.
|
|
1852
1896
|
*/
|
|
1853
1897
|
readonly get: operations["getWalletApproval"];
|
|
1854
1898
|
readonly put?: never;
|
|
1855
1899
|
/**
|
|
1856
1900
|
* Relay the account wallet's USDC permit to WalletAccept
|
|
1857
|
-
* @description Relays the account wallet's USDC permit setting its approval to the active vault's WalletAccept to `
|
|
1901
|
+
* @description Relays the account wallet's USDC permit setting its approval to the active vault's WalletAccept to `amount`, with Totalis paying the gas; `amount` 0 revokes it.
|
|
1858
1902
|
*/
|
|
1859
1903
|
readonly post: operations["approveWallet"];
|
|
1860
1904
|
readonly delete?: never;
|
|
@@ -1872,7 +1916,7 @@ export type paths = {
|
|
|
1872
1916
|
};
|
|
1873
1917
|
/**
|
|
1874
1918
|
* Get my Combo copy budget
|
|
1875
|
-
* @description The account's Combo copy allocation and budget, in USDC base units (6 decimals). The sweeper, which moves free vault cash to HyperCore every 2 s, leaves min(free, budget) in the vault for Combo copying. Copied entries spend the budget and copied
|
|
1919
|
+
* @description The account's Combo copy allocation and budget, in USDC base units (6 decimals). The sweeper, which moves free vault cash to HyperCore every 2 s, leaves min(free, budget) in the vault for Combo copying. Copied entries spend the budget and copied positions' proceeds return to it. Both are 0 when Combo copying has no allocation. The budget limits what automatic copying spends and what the sweeper leaves; it is not a security bound on the Combo copy agent.
|
|
1876
1920
|
*/
|
|
1877
1921
|
readonly get: operations["getCopyBudget"];
|
|
1878
1922
|
/**
|
|
@@ -2168,36 +2212,6 @@ export type paths = {
|
|
|
2168
2212
|
readonly patch?: never;
|
|
2169
2213
|
readonly trace?: never;
|
|
2170
2214
|
};
|
|
2171
|
-
readonly "/v1/makers/{maker_id}/quote-lease": {
|
|
2172
|
-
readonly parameters: {
|
|
2173
|
-
readonly query?: never;
|
|
2174
|
-
readonly header?: never;
|
|
2175
|
-
readonly path: {
|
|
2176
|
-
/**
|
|
2177
|
-
* @description On-chain maker ID, as a decimal string. An API key may only name the maker it is bound to; other makers return 404.
|
|
2178
|
-
* @example 7
|
|
2179
|
-
*/
|
|
2180
|
-
readonly maker_id: components["parameters"]["MakerIdPathRequired"];
|
|
2181
|
-
};
|
|
2182
|
-
readonly cookie?: never;
|
|
2183
|
-
};
|
|
2184
|
-
readonly get?: never;
|
|
2185
|
-
/**
|
|
2186
|
-
* Renew quote lease
|
|
2187
|
-
* @description Arm or renew your quote lease, so that if you go quiet for longer than `lease_ms` your open quotes are withdrawn instead of spending takers' quote windows.
|
|
2188
|
-
*/
|
|
2189
|
-
readonly put: operations["renewQuoteLease"];
|
|
2190
|
-
readonly post?: never;
|
|
2191
|
-
/**
|
|
2192
|
-
* Release quote lease
|
|
2193
|
-
* @description Release your quote lease, so your open quotes stand until their own expiry again.
|
|
2194
|
-
*/
|
|
2195
|
-
readonly delete: operations["releaseQuoteLease"];
|
|
2196
|
-
readonly options?: never;
|
|
2197
|
-
readonly head?: never;
|
|
2198
|
-
readonly patch?: never;
|
|
2199
|
-
readonly trace?: never;
|
|
2200
|
-
};
|
|
2201
2215
|
readonly "/v1/quotes/{quote_id}/accept": {
|
|
2202
2216
|
readonly parameters: {
|
|
2203
2217
|
readonly query?: never;
|
|
@@ -2438,33 +2452,6 @@ export type paths = {
|
|
|
2438
2452
|
readonly patch?: never;
|
|
2439
2453
|
readonly trace?: never;
|
|
2440
2454
|
};
|
|
2441
|
-
readonly "/v1/markets/{outcome_id}/history": {
|
|
2442
|
-
readonly parameters: {
|
|
2443
|
-
readonly query?: never;
|
|
2444
|
-
readonly header?: never;
|
|
2445
|
-
readonly path: {
|
|
2446
|
-
/**
|
|
2447
|
-
* @description HIP-4 outcome ID of the market, as a decimal string.
|
|
2448
|
-
* @example 1209
|
|
2449
|
-
*/
|
|
2450
|
-
readonly outcome_id: components["parameters"]["OutcomeId"];
|
|
2451
|
-
};
|
|
2452
|
-
readonly cookie?: never;
|
|
2453
|
-
};
|
|
2454
|
-
/**
|
|
2455
|
-
* Get market history
|
|
2456
|
-
* @deprecated
|
|
2457
|
-
* @description Get up to 24 hours of one-minute price history for one side of a market; deprecated: the chart read `GET /v1/charts/{series}` replaces it.
|
|
2458
|
-
*/
|
|
2459
|
-
readonly get: operations["getMarketHistory"];
|
|
2460
|
-
readonly put?: never;
|
|
2461
|
-
readonly post?: never;
|
|
2462
|
-
readonly delete?: never;
|
|
2463
|
-
readonly options?: never;
|
|
2464
|
-
readonly head?: never;
|
|
2465
|
-
readonly patch?: never;
|
|
2466
|
-
readonly trace?: never;
|
|
2467
|
-
};
|
|
2468
2455
|
readonly "/v1/markets/{outcome_id}/reference-closes": {
|
|
2469
2456
|
readonly parameters: {
|
|
2470
2457
|
readonly query?: never;
|
|
@@ -2778,6 +2765,26 @@ export type paths = {
|
|
|
2778
2765
|
readonly patch?: never;
|
|
2779
2766
|
readonly trace?: never;
|
|
2780
2767
|
};
|
|
2768
|
+
readonly "/v1/market-results": {
|
|
2769
|
+
readonly parameters: {
|
|
2770
|
+
readonly query?: never;
|
|
2771
|
+
readonly header?: never;
|
|
2772
|
+
readonly path?: never;
|
|
2773
|
+
readonly cookie?: never;
|
|
2774
|
+
};
|
|
2775
|
+
/**
|
|
2776
|
+
* Get market results
|
|
2777
|
+
* @description Read stored HIP-4 settlement results for up to 100 live or departed outcome IDs without calling Hyperliquid.
|
|
2778
|
+
*/
|
|
2779
|
+
readonly get: operations["getMarketResults"];
|
|
2780
|
+
readonly put?: never;
|
|
2781
|
+
readonly post?: never;
|
|
2782
|
+
readonly delete?: never;
|
|
2783
|
+
readonly options?: never;
|
|
2784
|
+
readonly head?: never;
|
|
2785
|
+
readonly patch?: never;
|
|
2786
|
+
readonly trace?: never;
|
|
2787
|
+
};
|
|
2781
2788
|
readonly "/v1/outcome-metadata": {
|
|
2782
2789
|
readonly parameters: {
|
|
2783
2790
|
readonly query?: never;
|
|
@@ -2849,6 +2856,26 @@ export type paths = {
|
|
|
2849
2856
|
readonly patch?: never;
|
|
2850
2857
|
readonly trace?: never;
|
|
2851
2858
|
};
|
|
2859
|
+
readonly "/v1/live-marks": {
|
|
2860
|
+
readonly parameters: {
|
|
2861
|
+
readonly query?: never;
|
|
2862
|
+
readonly header?: never;
|
|
2863
|
+
readonly path?: never;
|
|
2864
|
+
readonly cookie?: never;
|
|
2865
|
+
};
|
|
2866
|
+
/**
|
|
2867
|
+
* Get live marks
|
|
2868
|
+
* @description Anyone: get the current mark of every perp a listed price market charts, with the node time it was observed, to draw before the market stream takes over.
|
|
2869
|
+
*/
|
|
2870
|
+
readonly get: operations["getLiveMarks"];
|
|
2871
|
+
readonly put?: never;
|
|
2872
|
+
readonly post?: never;
|
|
2873
|
+
readonly delete?: never;
|
|
2874
|
+
readonly options?: never;
|
|
2875
|
+
readonly head?: never;
|
|
2876
|
+
readonly patch?: never;
|
|
2877
|
+
readonly trace?: never;
|
|
2878
|
+
};
|
|
2852
2879
|
readonly "/v1/rfqs/{rfq_id}": {
|
|
2853
2880
|
readonly parameters: {
|
|
2854
2881
|
readonly query?: never;
|
|
@@ -2892,7 +2919,7 @@ export type paths = {
|
|
|
2892
2919
|
readonly put?: never;
|
|
2893
2920
|
/**
|
|
2894
2921
|
* Cancel RFQ
|
|
2895
|
-
* @description Cancel your RFQ
|
|
2922
|
+
* @description Cancel your RFQ; it is safe to repeat, so it takes no `Idempotency-Key`.
|
|
2896
2923
|
*/
|
|
2897
2924
|
readonly post: operations["cancelRfq"];
|
|
2898
2925
|
readonly delete?: never;
|
|
@@ -3205,7 +3232,7 @@ export type paths = {
|
|
|
3205
3232
|
readonly put?: never;
|
|
3206
3233
|
/**
|
|
3207
3234
|
* Deposit wallet USDC
|
|
3208
|
-
* @description Moves USDC from the account wallet into its Totalis vault balance with a signed USDC ReceiveWithAuthorization that Totalis relays and pays the gas for.
|
|
3235
|
+
* @description Moves USDC from the credential's account wallet into its Totalis vault balance with a signed USDC ReceiveWithAuthorization that Totalis relays and pays the gas for.
|
|
3209
3236
|
*/
|
|
3210
3237
|
readonly post: operations["createDeposit"];
|
|
3211
3238
|
readonly delete?: never;
|
|
@@ -3406,7 +3433,7 @@ export type paths = {
|
|
|
3406
3433
|
};
|
|
3407
3434
|
/**
|
|
3408
3435
|
* Get maker exposure
|
|
3409
|
-
* @description This maker's open book by outcome at the vault projection checkpoint: per outcome its YES and NO exposure, gross and net, worst case and what offsetting saves, and what awaits settlement; book totals count each
|
|
3436
|
+
* @description This maker's open book by outcome at the vault projection checkpoint: per outcome its YES and NO exposure, gross and net, worst case and what offsetting saves, and what awaits settlement; book totals count each position once. Legs resolve as a position's do. A maker key reads only its own maker.
|
|
3410
3437
|
*/
|
|
3411
3438
|
readonly get: operations["getMakerExposure"];
|
|
3412
3439
|
readonly put?: never;
|
|
@@ -3461,13 +3488,13 @@ export type components = {
|
|
|
3461
3488
|
/** @description Copy the trader's reductions and cash-outs too. */
|
|
3462
3489
|
readonly mirror_exits: boolean;
|
|
3463
3490
|
/**
|
|
3464
|
-
* @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
|
|
3491
|
+
* @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 position, 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.
|
|
3465
3492
|
* @enum {unknown}
|
|
3466
3493
|
*/
|
|
3467
3494
|
readonly mode?: "COPY" | "COUNTER";
|
|
3468
3495
|
/** @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. */
|
|
3469
3496
|
readonly new_positions_only?: boolean;
|
|
3470
|
-
/** @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
|
|
3497
|
+
/** @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 position held to settlement. Combos only: listed on combos, never on core, and core refuses any value but 10000. Left out of a write, 10000. */
|
|
3471
3498
|
readonly counter_exit_floor_bps?: number;
|
|
3472
3499
|
};
|
|
3473
3500
|
readonly FollowSettingsFields: {
|
|
@@ -3498,7 +3525,7 @@ export type components = {
|
|
|
3498
3525
|
* @description PENDING waits for its approval; ACTIVE signs automatic copies until valid_until.
|
|
3499
3526
|
* @enum {string}
|
|
3500
3527
|
*/
|
|
3501
|
-
readonly
|
|
3528
|
+
readonly status: "PENDING" | "ACTIVE";
|
|
3502
3529
|
/**
|
|
3503
3530
|
* @description The named Hyperliquid agent slot to approve the key in.
|
|
3504
3531
|
* @constant
|
|
@@ -3515,7 +3542,7 @@ export type components = {
|
|
|
3515
3542
|
* @description PENDING waits for its grant; ACTIVE signs automatic Combo copies until valid_until.
|
|
3516
3543
|
* @enum {string}
|
|
3517
3544
|
*/
|
|
3518
|
-
readonly
|
|
3545
|
+
readonly status: "PENDING" | "ACTIVE";
|
|
3519
3546
|
/** @description The key's address, the AgentGrant's agent. */
|
|
3520
3547
|
readonly address: components["schemas"]["LowercaseNonZeroAddress"];
|
|
3521
3548
|
/** @description When the grant expires; null while PENDING. Renew in the app before then: a lapsed key copies nothing. */
|
|
@@ -3567,8 +3594,8 @@ export type components = {
|
|
|
3567
3594
|
};
|
|
3568
3595
|
/** WalletApprovalCommand */
|
|
3569
3596
|
readonly WalletApprovalCommand: {
|
|
3570
|
-
/** @description Atomic USDC (6 decimals) the approval becomes
|
|
3571
|
-
readonly
|
|
3597
|
+
/** @description Atomic USDC (6 decimals) the approval becomes, the permit's signed `value`; 0 revokes it. */
|
|
3598
|
+
readonly amount: components["schemas"]["Uint"];
|
|
3572
3599
|
/** @description The permit nonce signed, GET /v1/me/wallet-approval `nonce`. */
|
|
3573
3600
|
readonly nonce: components["schemas"]["Uint"];
|
|
3574
3601
|
/** @description Unix seconds after which USDC refuses the permit; a permit sent after it ends PERMIT_EXPIRED. */
|
|
@@ -3583,7 +3610,7 @@ export type components = {
|
|
|
3583
3610
|
/** @description The USDC_PERMIT operation that relays it. */
|
|
3584
3611
|
readonly operation_id: components["schemas"]["Hash32"];
|
|
3585
3612
|
/** @description The approval it sets, atomic USDC; 0 is a revoke. */
|
|
3586
|
-
readonly
|
|
3613
|
+
readonly amount: components["schemas"]["Uint"];
|
|
3587
3614
|
/** @description The permit nonce it was signed with. */
|
|
3588
3615
|
readonly nonce: components["schemas"]["Uint"];
|
|
3589
3616
|
/** @description The permit's deadline, Unix seconds. */
|
|
@@ -3596,7 +3623,7 @@ export type components = {
|
|
|
3596
3623
|
* @description Why it changed nothing, present only once status is REVERTED or EXPIRED_UNEXECUTED. `PERMIT_EXPIRED`: its deadline passed first. `PERMIT_NONCE_USED`: another permit used its nonce first; read the approval before signing again, as it may already be what you wanted. `PERMIT_REVERTED`: USDC refused it for another reason.
|
|
3597
3624
|
* @enum {unknown}
|
|
3598
3625
|
*/
|
|
3599
|
-
readonly
|
|
3626
|
+
readonly reason?: "PERMIT_EXPIRED" | "PERMIT_NONCE_USED" | "PERMIT_REVERTED";
|
|
3600
3627
|
};
|
|
3601
3628
|
/** VaultAgentGrant */
|
|
3602
3629
|
readonly VaultAgentGrant: {
|
|
@@ -3665,15 +3692,15 @@ export type components = {
|
|
|
3665
3692
|
/** @description Outcome side the leg holds. */
|
|
3666
3693
|
readonly side: components["schemas"]["Side"];
|
|
3667
3694
|
};
|
|
3668
|
-
/** @description The fields of a Combo
|
|
3695
|
+
/** @description The fields of a Combo position on a trader's profile, shared by trades and positions. */
|
|
3669
3696
|
readonly TraderComboFields: {
|
|
3670
|
-
/** @description The Combo
|
|
3697
|
+
/** @description The Combo position, as GET /v1/me/positions names it for its owner. */
|
|
3671
3698
|
readonly position_id: components["schemas"]["Bytes32"];
|
|
3672
3699
|
/** @description Whether the ticket is a free Combo: a promotion paid its stake and gave it away, and it stays one whoever holds it now. Servers before contract 229 leave it out. */
|
|
3673
3700
|
readonly golden: boolean;
|
|
3674
3701
|
/** @description What the ticket staked, in HyperEVM USDC base units (10^-6); null for a free Combo (golden), whose stake no trader paid. Servers before contract 229 never answer null. */
|
|
3675
3702
|
readonly stake: null | components["schemas"]["$defs-Amount"];
|
|
3676
|
-
/** @description What the
|
|
3703
|
+
/** @description What the position pays if every leg wins, in HyperEVM USDC base units (10^-6). */
|
|
3677
3704
|
readonly payout: components["schemas"]["$defs-Amount"];
|
|
3678
3705
|
readonly legs: readonly components["schemas"]["TraderLeg"][];
|
|
3679
3706
|
};
|
|
@@ -3707,14 +3734,14 @@ export type components = {
|
|
|
3707
3734
|
readonly picture_url?: components["schemas"]["ProfilePictureUrl"];
|
|
3708
3735
|
/** @description The trader's Genesis Account badge; absent when they have not earned it. Servers before contract 227 omit it. */
|
|
3709
3736
|
readonly genesis?: components["schemas"]["$defs-Timestamp"];
|
|
3710
|
-
/** @description HyperEVM block time of the
|
|
3737
|
+
/** @description HyperEVM block time of the position's opening. */
|
|
3711
3738
|
readonly opened_at: components["schemas"]["$defs-Timestamp"];
|
|
3712
3739
|
} & components["schemas"]["TraderComboFields"];
|
|
3713
3740
|
/** @description One live, unsigned quote on an RFQ, told apart by `kind`. List quotes, the account snapshot's quotes and `QUOTE_CREATED` carry the same item. */
|
|
3714
3741
|
readonly Quote: components["schemas"]["EntryQuote"] | components["schemas"]["SellBackQuote"];
|
|
3715
3742
|
/** @description A maker's offer to open a position on an entry RFQ. */
|
|
3716
3743
|
readonly EntryQuote: {
|
|
3717
|
-
/** @description Quote ID
|
|
3744
|
+
/** @description Quote ID. Accept it with `POST /v1/quotes/{quote_id}/accept`; it becomes the position's `position_id`. */
|
|
3718
3745
|
readonly quote_id: components["schemas"]["Bytes32"];
|
|
3719
3746
|
/** @description RFQ this quote answers. */
|
|
3720
3747
|
readonly rfq_id: components["schemas"]["Uuid"];
|
|
@@ -3725,14 +3752,17 @@ export type components = {
|
|
|
3725
3752
|
readonly kind: "ENTRY";
|
|
3726
3753
|
/** @description Venue-wide publication sequence number; a higher value was created later. */
|
|
3727
3754
|
readonly sequence: number;
|
|
3728
|
-
/** @description
|
|
3729
|
-
readonly
|
|
3730
|
-
/** @description
|
|
3731
|
-
readonly
|
|
3755
|
+
/** @description What the position pays if every leg wins, in atomic USDC (6 decimals), before the profit fee. */
|
|
3756
|
+
readonly payout: components["schemas"]["$defs-Amount"];
|
|
3757
|
+
/** @description What the taker signs to accept. The SDK signs it for you. */
|
|
3758
|
+
readonly signing: {
|
|
3759
|
+
/** @description The entry terms the taker signs as the EIP-712 `TakerAccept` struct to accept. */
|
|
3760
|
+
readonly entry: components["schemas"]["schemas-QuoteTerms"];
|
|
3761
|
+
};
|
|
3732
3762
|
};
|
|
3733
3763
|
/** @description A cash-out offer from the maker that backs the position: its vault buys the position back for `price`. */
|
|
3734
3764
|
readonly SellBackQuote: {
|
|
3735
|
-
/** @description Quote ID
|
|
3765
|
+
/** @description Quote ID. Accept it with `POST /v1/quotes/{quote_id}/accept`. */
|
|
3736
3766
|
readonly quote_id: components["schemas"]["Bytes32"];
|
|
3737
3767
|
/** @description RFQ this quote answers. */
|
|
3738
3768
|
readonly rfq_id: components["schemas"]["Uuid"];
|
|
@@ -3743,55 +3773,74 @@ export type components = {
|
|
|
3743
3773
|
readonly kind: "SELL_BACK";
|
|
3744
3774
|
/** @description Venue-wide publication sequence number; a higher value was created later. */
|
|
3745
3775
|
readonly sequence: number;
|
|
3746
|
-
/** @description
|
|
3747
|
-
readonly
|
|
3776
|
+
/** @description What the maker pays to close the position, in atomic USDC (6 decimals). */
|
|
3777
|
+
readonly price: components["schemas"]["$defs-Amount"];
|
|
3778
|
+
/** @description What the taker signs to accept. The SDK signs it for you. */
|
|
3779
|
+
readonly signing: {
|
|
3780
|
+
/** @description The sell-back terms the taker signs as the EIP-712 `SellBack` struct, whose digest is `quote_id`, to accept. */
|
|
3781
|
+
readonly sell_back: components["schemas"]["schemas-SellBackTerms"];
|
|
3782
|
+
};
|
|
3748
3783
|
};
|
|
3749
|
-
/** @description Your quote on the RFQ
|
|
3784
|
+
/** @description Your quote on the RFQ, which replaces your live quote there: `payout` on an entry RFQ, `price` on a cash-out RFQ, which only the maker that backs the position may quote. The venue fills in every other term. */
|
|
3750
3785
|
readonly CreateQuoteCommand: {
|
|
3751
|
-
/** @description
|
|
3752
|
-
readonly
|
|
3753
|
-
/** @description Entry terms. `stake`, `taker` and `legs` must match the RFQ, `maker_id` must be your maker, and `expiry` is Unix seconds, more than 14 and at most 30 seconds ahead. */
|
|
3754
|
-
readonly entry: components["schemas"]["schemas-QuoteTerms"];
|
|
3786
|
+
/** @description Gross amount the position pays if every leg wins, in atomic USDC (6 decimals), before the profit fee. It must exceed the RFQ's stake. The venue fills in every other term: the RFQ's legs, stake and taker, the vault's current fees, your maker, a salt and an expiry. It keeps the quote takeable, renewing the expiry and salt and so its `quote_id`, until the RFQ closes or you replace or cancel it. Entry RFQs only. */
|
|
3787
|
+
readonly payout: components["schemas"]["$defs-Amount"];
|
|
3755
3788
|
} | {
|
|
3756
|
-
/** @description
|
|
3757
|
-
readonly
|
|
3758
|
-
/** @description Sell-back terms, only from the maker that backs the position: your maker vault pays the owner `price` and the position closes. `position_id`, `owner` and `leg_state` must match the RFQ, and `expiry` is 25 to 60 seconds ahead. */
|
|
3759
|
-
readonly sell_back: components["schemas"]["schemas-SellBackTerms"];
|
|
3789
|
+
/** @description What your maker vault pays the owner to close the position, in atomic USDC (6 decimals). The venue fills in every other sell-back term: the RFQ's position, owner and leg_state, a salt and an expiry that outlasts the RFQ, so the bid stays takeable until the RFQ closes or you replace or cancel it. Cash-out RFQs only, from the maker that backs the position. */
|
|
3790
|
+
readonly price: components["schemas"]["$defs-Amount"];
|
|
3760
3791
|
};
|
|
3761
3792
|
readonly QuoteList: {
|
|
3762
|
-
/** @description Live quotes on this RFQ in creation order, at most 100. Rank them yourself. Left out: entry quotes
|
|
3793
|
+
/** @description Live quotes on this RFQ in creation order, at most 100. Rank them yourself. Every listed quote can be accepted. Left out: entry quotes about to lapse (the venue renews them first), cash-out quotes within 22 seconds of expiry, a quote whose acceptance timed out, and every quote on a cash-out RFQ that already has an accepted one. */
|
|
3763
3794
|
readonly quotes: readonly components["schemas"]["Quote"][];
|
|
3764
|
-
/** @description The database clock that sets `fund_by`, read with the list, as an RFC3339 UTC timestamp. */
|
|
3765
|
-
readonly server_time: components["schemas"]["$defs-Timestamp"];
|
|
3766
3795
|
};
|
|
3767
3796
|
readonly QuoteCancellation: {
|
|
3768
3797
|
/**
|
|
3769
|
-
* @description The quote's status after the call. `CANCELLED`: off the RFQ, now or earlier (you cancelled or declined it, its acceptance timed out, or
|
|
3798
|
+
* @description The quote's status after the call. `CANCELLED`: off the RFQ, now or earlier (you cancelled or declined it, its acceptance timed out, or you missed a confirm). `REPLACED`: a newer quote of yours replaced it. `ACCEPTED`: you already confirmed it, so it cannot be cancelled; returned with `409`.
|
|
3770
3799
|
* @enum {unknown}
|
|
3771
3800
|
*/
|
|
3772
3801
|
readonly status: "CANCELLED" | "REPLACED" | "ACCEPTED";
|
|
3773
3802
|
};
|
|
3774
|
-
/** @description The taker's accept of the quote in the path. The `Idempotency-Key` header becomes the `acceptance_id`. */
|
|
3803
|
+
/** @description The taker's accept of the quote in the path. The `Idempotency-Key` header becomes the `acceptance_id`. For an entry, any part of the stake your free vault cash does not cover comes from your account wallet, through its USDC approval to WalletAccept (`POST /v1/me/wallet-approval`): approve once and each entry draws what it needs. Without an approval and wallet USDC that cover the shortfall, the trade fails with `reason` `INSUFFICIENT_APPROVAL` or `INSUFFICIENT_WALLET_USDC`. A scoped key draws the wallet only with `funding:deposit`. */
|
|
3775
3804
|
readonly AcceptQuoteCommand: {
|
|
3776
|
-
/** @description Your EIP-712 signature over the quote
|
|
3805
|
+
/** @description Your EIP-712 signature over the quote's `signing` terms: `entry` as `TakerAccept`, or `sell_back` as `SellBack` (its digest is `quote_id`). */
|
|
3777
3806
|
readonly taker_signature: components["schemas"]["ContractSignature"];
|
|
3778
|
-
/** @description Entry quotes only; not allowed on a cash-out. Pays the part of the stake your vault balance is short from your account wallet: `WALLET` with a USDC authorization for the exact shortfall, or `WALLET_APPROVAL` from the wallet's approval to WalletAccept. Omit it when your vault balance covers the stake. The acceptance keeps the route it was admitted with; a replay never switches it. */
|
|
3779
|
-
readonly funding?: components["schemas"]["WalletFunding"] | components["schemas"]["WalletApprovalFunding"];
|
|
3780
3807
|
};
|
|
3781
|
-
/** @description The one record of a taker accepting a quote. */
|
|
3808
|
+
/** @description The one record of a taker accepting a quote. For an entry, the position it opens has the accepted `quote_id` as its `position_id`. */
|
|
3782
3809
|
readonly Acceptance: {
|
|
3783
3810
|
/**
|
|
3784
|
-
* @description
|
|
3811
|
+
* @description `PENDING_CONFIRM`: waiting for the maker. `ACCEPTED`: the maker confirmed and the trade is queued as `operation_id`. `FILLED`: the trade committed on chain. `FAILED`: it reverted or expired unexecuted (see `reason`). `DECLINED`: the maker declined. `TIMED_OUT`: the maker did not answer in its two seconds. `CANCELLED`: the quote or RFQ went away first.
|
|
3785
3812
|
* @enum {unknown}
|
|
3786
3813
|
*/
|
|
3787
|
-
readonly
|
|
3788
|
-
/** @description The
|
|
3789
|
-
readonly
|
|
3790
|
-
|
|
3791
|
-
|
|
3792
|
-
|
|
3793
|
-
|
|
3794
|
-
|
|
3814
|
+
readonly status: "PENDING_CONFIRM" | "ACCEPTED" | "FILLED" | "FAILED" | "DECLINED" | "TIMED_OUT" | "CANCELLED";
|
|
3815
|
+
/** @description The accept's `Idempotency-Key`: which of your accepts took the quote. */
|
|
3816
|
+
readonly acceptance_id: components["schemas"]["Uuid"];
|
|
3817
|
+
/** @description The accepted quote. A quote has at most one acceptance. */
|
|
3818
|
+
readonly quote_id: components["schemas"]["Bytes32"];
|
|
3819
|
+
/** @description RFQ the quote answers. */
|
|
3820
|
+
readonly rfq_id: components["schemas"]["Uuid"];
|
|
3821
|
+
/** @description While `PENDING_CONFIRM`: milliseconds the maker had left to answer when the venue read the acceptance. Read it again once they pass. */
|
|
3822
|
+
readonly confirm_within_ms?: number;
|
|
3823
|
+
/** @description The on-chain operation that executes the trade; present once status is `ACCEPTED`, `FILLED` or `FAILED`. */
|
|
3824
|
+
readonly operation_id?: components["schemas"]["Bytes32"];
|
|
3825
|
+
/**
|
|
3826
|
+
* @description Why a `FAILED` acceptance funded from the wallet failed, when the venue can tell: the wallet's approval (`INSUFFICIENT_APPROVAL`) or USDC (`INSUFFICIENT_WALLET_USDC`) fell short.
|
|
3827
|
+
* @enum {unknown}
|
|
3828
|
+
*/
|
|
3829
|
+
readonly reason?: "INSUFFICIENT_APPROVAL" | "INSUFFICIENT_WALLET_USDC";
|
|
3830
|
+
};
|
|
3831
|
+
/** @description The accept response: the acceptance after the maker answered or its two seconds passed. For an entry, the position's `position_id` is the accepted `quote_id`. */
|
|
3832
|
+
readonly AcceptanceResult: {
|
|
3833
|
+
/**
|
|
3834
|
+
* @description Status after the maker answered or its two seconds passed, as `Acceptance` names it; never `PENDING_CONFIRM`.
|
|
3835
|
+
* @enum {unknown}
|
|
3836
|
+
*/
|
|
3837
|
+
readonly status: "ACCEPTED" | "FILLED" | "FAILED" | "DECLINED" | "TIMED_OUT" | "CANCELLED";
|
|
3838
|
+
/** @description The accept's `Idempotency-Key`. */
|
|
3839
|
+
readonly acceptance_id: components["schemas"]["Uuid"];
|
|
3840
|
+
/** @description The on-chain operation that executes the trade, once status is `ACCEPTED`, `FILLED` or `FAILED`. */
|
|
3841
|
+
readonly operation_id?: components["schemas"]["Bytes32"];
|
|
3842
|
+
/** @description Why a `FAILED` wallet-funded acceptance failed, when the venue can tell. */
|
|
3843
|
+
readonly reason?: components["schemas"]["reason"];
|
|
3795
3844
|
};
|
|
3796
3845
|
/** @description Your answer to the acceptance, before its `deadline`, two seconds after the accept: `CONFIRM` with your signature, or `DECLINE`. Send no `Idempotency-Key`: the quote identifies its one acceptance. */
|
|
3797
3846
|
readonly ConfirmQuoteCommand: {
|
|
@@ -3809,8 +3858,17 @@ export type components = {
|
|
|
3809
3858
|
*/
|
|
3810
3859
|
readonly decision: "DECLINE";
|
|
3811
3860
|
};
|
|
3812
|
-
/** @description The acceptance after your answer.
|
|
3813
|
-
readonly ConfirmQuoteResult:
|
|
3861
|
+
/** @description The acceptance after your answer. */
|
|
3862
|
+
readonly ConfirmQuoteResult: {
|
|
3863
|
+
/** @description The acceptance's status after your answer. */
|
|
3864
|
+
readonly status: components["schemas"]["status"];
|
|
3865
|
+
/** @description The accepted quote. */
|
|
3866
|
+
readonly quote_id: components["schemas"]["Bytes32"];
|
|
3867
|
+
/** @description RFQ the quote answers. */
|
|
3868
|
+
readonly rfq_id: components["schemas"]["Uuid"];
|
|
3869
|
+
/** @description The on-chain operation that executes the trade, once status is `ACCEPTED`, `FILLED` or `FAILED`. */
|
|
3870
|
+
readonly operation_id?: components["schemas"]["Bytes32"];
|
|
3871
|
+
};
|
|
3814
3872
|
/** @description A taker's accept of your quote, waiting for your confirm until `deadline`, told apart by `kind`. `QUOTE_ACCEPTED`, the maker snapshot's `acceptances` and List pending acceptances carry the same item. It never includes the taker's signature or `acceptance_id`. */
|
|
3815
3873
|
readonly MakerAcceptance: components["schemas"]["EntryMakerAcceptance"] | components["schemas"]["SellBackMakerAcceptance"];
|
|
3816
3874
|
/** @description A taker's accept of your entry quote. */
|
|
@@ -3860,26 +3918,11 @@ export type components = {
|
|
|
3860
3918
|
readonly stake: components["schemas"]["$defs-Amount"];
|
|
3861
3919
|
/** @description 1 to 5 legs in strictly increasing outcome_id order, at most one per native question. Every leg's market must have eligibility ENABLED and combo OPEN, and a chance on each side. */
|
|
3862
3920
|
readonly legs: readonly components["schemas"]["$defs-Leg"][];
|
|
3863
|
-
/** @description Optional partner
|
|
3921
|
+
/** @description Optional partner builder code. It credits the partner whose app sent this RFQ with its revenue share and adds nothing to what you pay. An account the partner admitted gets its partner's code without sending one, and a code it sends must be that partner's. From any other account the code counts only when the request comes from the code's registered browser origin, so an API-key or server request from such an account cannot send one. */
|
|
3864
3922
|
readonly builder_code?: string;
|
|
3865
|
-
|
|
3866
|
-
readonly builder_authorization_expiry?: string;
|
|
3867
|
-
/** @description The partner's registered signer's personal_sign signature, made by the partner's server for one RFQ by an account no partner admitted. The message lines are `Authorize Totalis RFQ builder attribution.`, `Environment: <environment>` (the environment in the builder code), `Participant: <account UUID>`, `Idempotency key: <UUID>`, `Request digest: 0x<SHA-256>` and `Expiry: <builder_authorization_expiry>`, joined by newlines. The request digest is SHA-256 of minified JSON with ordered keys intent_id and intent_generation when supplied, followed by stake, legs (as sent), builder_code and origin. */
|
|
3868
|
-
readonly builder_signature?: string;
|
|
3869
|
-
/** @description Automatic-RFQ intent (UUIDv7) this RFQ belongs to. Send it with intent_generation, or omit both. */
|
|
3870
|
-
readonly intent_id?: components["schemas"]["Uuid"];
|
|
3871
|
-
/** @description Generation of the intent, as a decimal string. A higher generation atomically cancels the intent's open earlier RFQ; send it with intent_id. */
|
|
3872
|
-
readonly intent_generation?: components["schemas"]["PositiveInt64String"];
|
|
3873
|
-
} & components["schemas"]["IntentIdentityPair"];
|
|
3874
|
-
/** @description The cash-out RFQ to open on the position in the path. The caller's embedded wallet must be its current owner. */
|
|
3875
|
-
readonly CreateCashoutCommand: {
|
|
3876
|
-
/** @description Automatic-RFQ intent (UUIDv7) this RFQ belongs to. Send it with intent_generation, or omit both. */
|
|
3877
|
-
readonly intent_id?: components["schemas"]["Uuid"];
|
|
3878
|
-
/** @description Generation of the intent, as a decimal string. A higher generation atomically cancels the intent's open earlier RFQ; send it with intent_id. */
|
|
3879
|
-
readonly intent_generation?: components["schemas"]["PositiveInt64String"];
|
|
3880
|
-
} & components["schemas"]["IntentIdentityPair"];
|
|
3923
|
+
};
|
|
3881
3924
|
readonly Rfq: components["schemas"]["EntryRfq"] | components["schemas"]["CashoutRfq"];
|
|
3882
|
-
readonly EntryRfq:
|
|
3925
|
+
readonly EntryRfq: {
|
|
3883
3926
|
/**
|
|
3884
3927
|
* Format: uuid
|
|
3885
3928
|
* @description Identifier of this RFQ (UUID).
|
|
@@ -3897,12 +3940,12 @@ export type components = {
|
|
|
3897
3940
|
/** @description What the vault backs if a quote is accepted, in atomic USDC (6 decimals): stake - floor(stake * taker_fee_bps / 10000), with the taker_fee_bps every quote must carry (the vault's current taker fee). Price the position on this; quotes still sign the gross stake. Absent while the taker fee is unknown. */
|
|
3898
3941
|
readonly net_stake?: components["schemas"]["$defs-Amount"];
|
|
3899
3942
|
/**
|
|
3900
|
-
* @description OPEN collects quotes until expires_at; EXPIRED means that window passed without an accepted quote; CANCELLED means the owner cancelled it
|
|
3943
|
+
* @description OPEN collects quotes until expires_at; EXPIRED means that window passed without an accepted quote; CANCELLED means the owner cancelled it; ACCEPTED means a quote was accepted and confirmed; FAILED means the accepted trade failed on chain (see reason); DECLINED means every maker that could answer declined to quote it before expires_at.
|
|
3901
3944
|
* @enum {string}
|
|
3902
3945
|
*/
|
|
3903
3946
|
readonly status: "OPEN" | "ACCEPTED" | "EXPIRED" | "CANCELLED" | "FAILED" | "DECLINED";
|
|
3904
|
-
/** @description Why a FAILED RFQ ended: the accept transaction reverted (REVERTED), it expired unexecuted (EXPIRED_UNEXECUTED), or the taker's Cash did not cover the stake when it was to execute (INSUFFICIENT_CASH). The accept's operation then has `
|
|
3905
|
-
readonly
|
|
3947
|
+
/** @description Why a FAILED RFQ ended: the accept transaction reverted (REVERTED), it expired unexecuted (EXPIRED_UNEXECUTED), or the taker's Cash did not cover the stake when it was to execute (INSUFFICIENT_CASH). The accept's operation then has `reason` INSUFFICIENT_CASH. Present only when status is FAILED. */
|
|
3948
|
+
readonly reason?: components["schemas"]["RfqTerminalReason"];
|
|
3906
3949
|
/**
|
|
3907
3950
|
* Format: date-time
|
|
3908
3951
|
* @description When the RFQ was durably created, RFC3339 UTC.
|
|
@@ -3910,23 +3953,19 @@ export type components = {
|
|
|
3910
3953
|
readonly created_at: string;
|
|
3911
3954
|
/**
|
|
3912
3955
|
* Format: date-time
|
|
3913
|
-
* @description When quote collection ends,
|
|
3956
|
+
* @description When quote collection ends at the latest. An RFQ the taker opened runs up to an hour and closes sooner when the taker accepts, cancels or goes quiet: about two minutes after their last stream disconnects (`RFQ_CANCELLED`). One the venue opened for the taker, such as a copied trade, ends 20 seconds after creation.
|
|
3914
3957
|
*/
|
|
3915
3958
|
readonly expires_at: string;
|
|
3916
3959
|
/** @description Requested legs in strictly increasing outcome_id order. */
|
|
3917
3960
|
readonly legs: readonly components["schemas"]["$defs-Leg"][];
|
|
3918
|
-
|
|
3919
|
-
readonly intent_id?: components["schemas"]["Uuid"];
|
|
3920
|
-
/** @description Generation of the intent this RFQ was created for, as a decimal string; absent together with intent_id. */
|
|
3921
|
-
readonly intent_generation?: components["schemas"]["PositiveInt64String"];
|
|
3922
|
-
} & components["schemas"]["IntentIdentityPair"]) & ({
|
|
3961
|
+
} & ({
|
|
3923
3962
|
/** @enum {unknown} */
|
|
3924
3963
|
readonly status?: "OPEN" | "ACCEPTED" | "EXPIRED" | "CANCELLED" | "DECLINED";
|
|
3925
|
-
readonly
|
|
3964
|
+
readonly reason?: never;
|
|
3926
3965
|
} | {
|
|
3927
3966
|
/** @constant */
|
|
3928
3967
|
readonly status?: "FAILED";
|
|
3929
|
-
readonly
|
|
3968
|
+
readonly reason: components["schemas"]["RfqTerminalReason"];
|
|
3930
3969
|
});
|
|
3931
3970
|
readonly CashoutRfq: {
|
|
3932
3971
|
/**
|
|
@@ -3941,32 +3980,21 @@ export type components = {
|
|
|
3941
3980
|
readonly kind: "CASHOUT";
|
|
3942
3981
|
/** @description Position being cashed out. */
|
|
3943
3982
|
readonly position_id: components["schemas"]["Hash32"];
|
|
3944
|
-
/** @description
|
|
3945
|
-
readonly
|
|
3946
|
-
/** @description Position leg state returned by legStateOf(legs, decision_read_gas) at decision_block. Quotes must sign this exact value. */
|
|
3947
|
-
readonly leg_state: components["schemas"]["Hash32"];
|
|
3948
|
-
/** @description Hash of the position's canonical legs; equals tickets(position_id).legsHash on chain. */
|
|
3949
|
-
readonly legs_hash: components["schemas"]["Hash32"];
|
|
3950
|
-
/** @description HyperEVM block number, as a decimal string, at which the position, owner and leg_state were read. Makers must price from reads at this block. */
|
|
3951
|
-
readonly decision_block: components["schemas"]["UInt64String"];
|
|
3952
|
-
/**
|
|
3953
|
-
* @description Gas limit, in gas units, for the legStateOf read; always 500000.
|
|
3954
|
-
* @constant
|
|
3955
|
-
*/
|
|
3956
|
-
readonly decision_read_gas: "500000";
|
|
3983
|
+
/** @description The position's owner, who signs to accept a quote. */
|
|
3984
|
+
readonly taker: components["schemas"]["LowercaseNonZeroAddress"];
|
|
3957
3985
|
/** @description On-chain maker ID of the maker that originally underwrote the position. */
|
|
3958
3986
|
readonly maker_id: components["schemas"]["NonZeroUInt64String"];
|
|
3959
|
-
/** @description The position's stake after the taker fee, in atomic USDC (6 decimals): tickets(position_id).stake, which the vault fixes when the position opens
|
|
3987
|
+
/** @description The position's stake after the taker fee, in atomic USDC (6 decimals): tickets(position_id).stake, which the vault fixes when the position opens. */
|
|
3960
3988
|
readonly net_stake: components["schemas"]["$defs-Amount"];
|
|
3961
|
-
/** @description What the position pays if every leg wins, in atomic USDC (6 decimals): tickets(position_id).payout, which the vault fixes when the position opens
|
|
3989
|
+
/** @description What the position pays if every leg wins, in atomic USDC (6 decimals): tickets(position_id).payout, which the vault fixes when the position opens. */
|
|
3962
3990
|
readonly payout: components["schemas"]["$defs-Amount"];
|
|
3963
3991
|
/**
|
|
3964
|
-
* @description OPEN collects cash-out quotes until expires_at; EXPIRED means that window passed without an accepted quote; CANCELLED means the owner cancelled it
|
|
3992
|
+
* @description OPEN collects cash-out quotes until expires_at; EXPIRED means that window passed without an accepted quote; CANCELLED means the owner cancelled it; ACCEPTED means a quote was accepted and confirmed; FAILED means the accepted sell-back failed on chain (see reason); DECLINED means every maker that could answer declined to quote it before expires_at.
|
|
3965
3993
|
* @enum {string}
|
|
3966
3994
|
*/
|
|
3967
3995
|
readonly status: "OPEN" | "ACCEPTED" | "EXPIRED" | "CANCELLED" | "FAILED" | "DECLINED";
|
|
3968
3996
|
/** @description Why a FAILED RFQ ended: the accept transaction reverted, or it expired unexecuted. Present only when status is FAILED. */
|
|
3969
|
-
readonly
|
|
3997
|
+
readonly reason?: components["schemas"]["RfqTerminalReason"];
|
|
3970
3998
|
/**
|
|
3971
3999
|
* Format: date-time
|
|
3972
4000
|
* @description When the RFQ was durably created, RFC3339 UTC.
|
|
@@ -3974,24 +4002,20 @@ export type components = {
|
|
|
3974
4002
|
readonly created_at: string;
|
|
3975
4003
|
/**
|
|
3976
4004
|
* Format: date-time
|
|
3977
|
-
* @description When quote collection ends,
|
|
4005
|
+
* @description When quote collection ends at the latest. A cash-out RFQ the owner opened runs up to an hour and closes sooner when the owner accepts, cancels or goes quiet (about two minutes after their last stream disconnects), or once a leg of its position settles (`RFQ_CANCELLED`). A created quote stays acceptable until its own expiry; the venue re-mints a price-only bid while the RFQ is open.
|
|
3978
4006
|
*/
|
|
3979
4007
|
readonly expires_at: string;
|
|
3980
4008
|
/** @description The position's legs in canonical order. */
|
|
3981
4009
|
readonly legs: readonly components["schemas"]["$defs-Leg"][];
|
|
3982
|
-
|
|
3983
|
-
readonly intent_id?: components["schemas"]["Uuid"];
|
|
3984
|
-
/** @description Generation of the intent this RFQ was created for, as a decimal string; absent together with intent_id. */
|
|
3985
|
-
readonly intent_generation?: components["schemas"]["PositiveInt64String"];
|
|
3986
|
-
} & (components["schemas"]["IntentIdentityPair"] & ({
|
|
4010
|
+
} & ({
|
|
3987
4011
|
/** @enum {unknown} */
|
|
3988
4012
|
readonly status?: "OPEN" | "ACCEPTED" | "EXPIRED" | "CANCELLED" | "DECLINED";
|
|
3989
|
-
readonly
|
|
4013
|
+
readonly reason?: never;
|
|
3990
4014
|
} | {
|
|
3991
4015
|
/** @constant */
|
|
3992
4016
|
readonly status?: "FAILED";
|
|
3993
|
-
readonly
|
|
3994
|
-
})
|
|
4017
|
+
readonly reason: components["schemas"]["RfqTerminalReason"];
|
|
4018
|
+
});
|
|
3995
4019
|
readonly RfqList: {
|
|
3996
4020
|
/** @description Open RFQs on this page, in listing order. */
|
|
3997
4021
|
readonly rfqs: readonly components["schemas"]["Rfq"][];
|
|
@@ -4032,23 +4056,21 @@ export type components = {
|
|
|
4032
4056
|
readonly SellBackTerms: {
|
|
4033
4057
|
/** @description Position the quote is for; the signed SellBack names it ticketId. */
|
|
4034
4058
|
readonly position_id: components["schemas"]["Hash32"];
|
|
4035
|
-
/** @description Buyback price the original maker pays the owner to close the
|
|
4059
|
+
/** @description Buyback price the original maker pays the owner to close the position, in atomic USDC (6 decimals). */
|
|
4036
4060
|
readonly price: components["schemas"]["$defs-Amount"];
|
|
4037
|
-
/** @description Current position owner, who sells the
|
|
4061
|
+
/** @description Current position owner, who sells the position back. */
|
|
4038
4062
|
readonly owner: components["schemas"]["LowercaseNonZeroAddress"];
|
|
4039
4063
|
/** @description Unix seconds after which the quote can no longer be executed. */
|
|
4040
4064
|
readonly expiry: components["schemas"]["UInt64String"];
|
|
4041
4065
|
/** @description Random uint256, as a decimal string, that makes each signed quote unique. */
|
|
4042
4066
|
readonly salt: components["schemas"]["Uint256"];
|
|
4043
|
-
/** @description Position leg state the quote was priced against
|
|
4067
|
+
/** @description Position leg state, legStateOf(legs, 500000), the quote was priced against. */
|
|
4044
4068
|
readonly leg_state: components["schemas"]["Hash32"];
|
|
4045
4069
|
};
|
|
4046
|
-
/** @description The created quote's ID and
|
|
4070
|
+
/** @description The created quote's ID. The venue keeps it live and renews it until you cancel it or the RFQ ends. */
|
|
4047
4071
|
readonly QuoteCreated: {
|
|
4048
|
-
/** @description ID of the created quote: the digest of its terms. */
|
|
4072
|
+
/** @description ID of the created quote: the digest of its terms. The quote gets a new ID each time the venue renews it; any of them cancels the quote. */
|
|
4049
4073
|
readonly quote_id: components["schemas"]["Bytes32"];
|
|
4050
|
-
/** @description An entry quote's `accept_before`, as the taker receives it: takers can accept the quote until then. Renew the quote before it passes. Absent for a cash-out quote. */
|
|
4051
|
-
readonly accept_before?: components["schemas"]["$defs-Timestamp"];
|
|
4052
4074
|
};
|
|
4053
4075
|
/**
|
|
4054
4076
|
* @description Internal chain-agent registry; not a public HTTP command.
|
|
@@ -4079,12 +4101,12 @@ export type components = {
|
|
|
4079
4101
|
* @description LOCKED: unused and unexpired, and not unlocked yet: unlock it with POST /v1/me/golden/unlock; until then it is quoted at `stake` (suggestions, RFQs and offers) unless `not_eligible`, but never placed (GOLDEN_UNLOCK_REQUIRED). AVAILABLE: unlocked, unused and unexpired. PLACING: Totalis is buying the Combo. BOUGHT: Totalis bought it; the gift to this account is on its way, or, while `placement.gift` is set, waits for this account's wallet to sign it. PLACED: the gift landed; `position_id` is the account's position. LAPSED: Totalis bought it, but the position ended (settled, or lost a leg) before its gift was signed and landed; it stays Totalis's and the ticket is used; `position_id` names it. EXPIRED: it lapsed unused, unlocked or not.
|
|
4080
4102
|
* @enum {string}
|
|
4081
4103
|
*/
|
|
4082
|
-
readonly
|
|
4104
|
+
readonly status: "LOCKED" | "AVAILABLE" | "PLACING" | "BOUGHT" | "PLACED" | "LAPSED" | "EXPIRED";
|
|
4083
4105
|
/** @description When the ticket landed in the account: when the account was created with it, claimed its link or Totalis gave it. */
|
|
4084
4106
|
readonly granted_at: components["schemas"]["$defs-Timestamp"];
|
|
4085
4107
|
/** @description 7 days after `granted_at`, unlocked or not. */
|
|
4086
4108
|
readonly expires_at: components["schemas"]["$defs-Timestamp"];
|
|
4087
|
-
/** @description When this account unlocked the ticket; it stays set whatever the
|
|
4109
|
+
/** @description When this account unlocked the ticket; it stays set whatever the status becomes. Null while it was never unlocked, which includes a ticket used before unlocking existed. */
|
|
4088
4110
|
readonly unlocked_at: null | components["schemas"]["$defs-Timestamp"];
|
|
4089
4111
|
/** @description When this account first pressed Join Telegram (POST /v1/me/golden/telegram-click); null before. A record of the press only: it proves no membership and gates nothing. */
|
|
4090
4112
|
readonly telegram_clicked_at: null | components["schemas"]["$defs-Timestamp"];
|
|
@@ -4131,7 +4153,7 @@ export type components = {
|
|
|
4131
4153
|
/** @description True when this account had placed no Combo before this placement was recorded: no Combo of more than one leg it bought itself, and no free Combo delivered to it. A Combo it received from someone else does not count. Fixed when the placement is recorded; nothing after changes it. */
|
|
4132
4154
|
readonly first_combo: boolean;
|
|
4133
4155
|
/** @description As placeGolden answers it, now. */
|
|
4134
|
-
readonly
|
|
4156
|
+
readonly status: components["schemas"]["GoldenPlacementState"];
|
|
4135
4157
|
/** @description The placed quote's digest: the position this placement buys, which is the account's once DELIVERED. */
|
|
4136
4158
|
readonly position_id: components["schemas"]["Bytes32"];
|
|
4137
4159
|
/** @description Why it failed, once FAILED; null otherwise. */
|
|
@@ -4232,7 +4254,7 @@ export type components = {
|
|
|
4232
4254
|
* @description Stable HTTP error code. Each code has one HTTP status and one retry value.
|
|
4233
4255
|
* @enum {string}
|
|
4234
4256
|
*/
|
|
4235
|
-
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" | "PICTURE_UPLOADS_BLOCKED" | "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" | "PICTURE_REMOVED" | "USERNAME_REQUIRED" | "GOLDEN_TICKET_NONE" | "GOLDEN_TICKET_USED" | "GOLDEN_TICKET_EXPIRED" | "GOLDEN_PLACEMENT_IN_FLIGHT" | "GOLDEN_PROMO_BUSY" | "GOLDEN_CASHOUT_REFUSED" | "GOLDEN_OFFER_BELOW_FLOOR" | "GOLDEN_GIFT_TERMS_EXPIRED" | "GOLDEN_UNLOCK_REQUIRED" | "GOLDEN_GIVEN_OUT" | "GOLDEN_CODE_DISABLED" | "GOLDEN_TICKET_HELD" | "GOLDEN_LINK_SIGN_UP_ONLY" | "GOLDEN_LINK_CLAIMED" | "X_REQUIRED" | "X_ALREADY_CLAIMED" | "X_TOO_NEW" | "GOLDEN_NOT_ELIGIBLE" | "INVALID_SIGNATURE" | "WALLET_CONTRACT_UNSUPPORTED" | "WRONG_AUTHORITY" | "KEY_LIMIT_REACHED" | "USERNAME_NOT_ALLOWED" | "PICTURE_TOO_LARGE" | "PICTURE_UNREADABLE" | "PICTURE_TOO_MANY_PIXELS" | "FOLLOW_SELF" | "FOLLOW_LIMIT_REACHED" | "COPY_SELF" | "COPY_NOT_MATCHED" | "GOLDEN_LEG_COUNT" | "GOLDEN_LEG_NOT_ELIGIBLE" | "GOLDEN_QUOTE_NOT_HOUSE" | "RATE_LIMITED" | "CONNECTION_LIMIT" | "RFQ_INTENT_LIMIT" | "QUOTE_EXPOSURE_LIMIT" | "INTERNAL_ERROR" | "DEPENDENCY_STALE" | "AUTHORIZATION_UNAVAILABLE" | "SOURCE_UNAVAILABLE" | "CONTRACT_UNAVAILABLE" | "MARKET_DATA_UNAVAILABLE" | "BROWSE_UNAVAILABLE" | "FINANCIAL_ACTIONS_DISABLED" | "CORE_EXIT_UNAVAILABLE" | "COLLATERAL_REDUCTION_UNAVAILABLE" | "SPONSORSHIP_UNAVAILABLE" | "CONTRACT_SIGNATURE_OVERLOADED" | "QUOTE_EXPOSURE_STALE" | "COMBO_AUTOMATIC_DISABLED" | "GAS_PRICE_ABOVE_CEILING" | "EXECUTION_BACKLOG_FULL" | "EMBEDDED_WALLET_UNAVAILABLE" | "GOLDEN_PROMO_FUNDS_LOW" | "X_VERIFICATION_UNAVAILABLE" | "CONNECTION_DRAIN";
|
|
4257
|
+
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" | "PICTURE_UPLOADS_BLOCKED" | "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" | "INSUFFICIENT_WALLET_BALANCE" | "CORE_MOVE_IN_FLIGHT" | "ACCEPTANCE_IN_FLIGHT" | "USERNAME_TAKEN" | "USERNAME_ALREADY_SET" | "PICTURE_REMOVED" | "USERNAME_REQUIRED" | "GOLDEN_TICKET_NONE" | "GOLDEN_TICKET_USED" | "GOLDEN_TICKET_EXPIRED" | "GOLDEN_PLACEMENT_IN_FLIGHT" | "GOLDEN_PROMO_BUSY" | "GOLDEN_CASHOUT_REFUSED" | "GOLDEN_OFFER_BELOW_FLOOR" | "GOLDEN_GIFT_TERMS_EXPIRED" | "GOLDEN_UNLOCK_REQUIRED" | "GOLDEN_GIVEN_OUT" | "GOLDEN_CODE_DISABLED" | "GOLDEN_TICKET_HELD" | "GOLDEN_LINK_SIGN_UP_ONLY" | "GOLDEN_LINK_CLAIMED" | "X_REQUIRED" | "X_ALREADY_CLAIMED" | "X_TOO_NEW" | "GOLDEN_NOT_ELIGIBLE" | "INVALID_SIGNATURE" | "WALLET_CONTRACT_UNSUPPORTED" | "WRONG_AUTHORITY" | "KEY_LIMIT_REACHED" | "USERNAME_NOT_ALLOWED" | "PICTURE_TOO_LARGE" | "PICTURE_UNREADABLE" | "PICTURE_TOO_MANY_PIXELS" | "FOLLOW_SELF" | "FOLLOW_LIMIT_REACHED" | "COPY_SELF" | "COPY_NOT_MATCHED" | "GOLDEN_LEG_COUNT" | "GOLDEN_LEG_NOT_ELIGIBLE" | "GOLDEN_QUOTE_NOT_HOUSE" | "RATE_LIMITED" | "CONNECTION_LIMIT" | "RFQ_INTENT_LIMIT" | "QUOTE_EXPOSURE_LIMIT" | "INTERNAL_ERROR" | "DEPENDENCY_STALE" | "AUTHORIZATION_UNAVAILABLE" | "SOURCE_UNAVAILABLE" | "CONTRACT_UNAVAILABLE" | "MARKET_DATA_UNAVAILABLE" | "BROWSE_UNAVAILABLE" | "FINANCIAL_ACTIONS_DISABLED" | "CORE_EXIT_UNAVAILABLE" | "COLLATERAL_REDUCTION_UNAVAILABLE" | "SPONSORSHIP_UNAVAILABLE" | "CONTRACT_SIGNATURE_OVERLOADED" | "QUOTE_EXPOSURE_STALE" | "COMBO_AUTOMATIC_DISABLED" | "GAS_PRICE_ABOVE_CEILING" | "EXECUTION_BACKLOG_FULL" | "EMBEDDED_WALLET_UNAVAILABLE" | "GOLDEN_PROMO_FUNDS_LOW" | "X_VERIFICATION_UNAVAILABLE" | "CONNECTION_DRAIN";
|
|
4236
4258
|
readonly FieldViolation: {
|
|
4237
4259
|
/**
|
|
4238
4260
|
* @description REQUIRED: the input is missing. INVALID: it is present but malformed or out of range. UNEXPECTED: the input is not accepted here.
|
|
@@ -4266,6 +4288,13 @@ export type components = {
|
|
|
4266
4288
|
/** @description The one error this request failed with. */
|
|
4267
4289
|
readonly error: components["schemas"]["ErrorDetail"];
|
|
4268
4290
|
};
|
|
4291
|
+
/** @description The outcome of cancelling all of your open quotes. */
|
|
4292
|
+
readonly CancelledQuotes: {
|
|
4293
|
+
/** @description How many of your open quotes this call cancelled. */
|
|
4294
|
+
readonly cancelled: number;
|
|
4295
|
+
/** @description How many it left up because a taker's acceptance awaits your answer: confirm or decline each, or let it time out. */
|
|
4296
|
+
readonly pending: number;
|
|
4297
|
+
};
|
|
4269
4298
|
/** Format: date-time */
|
|
4270
4299
|
readonly Timestamp: string;
|
|
4271
4300
|
/** @description Freshness of the read. Pages of one list share the snapshot bound into their cursor. */
|
|
@@ -4276,7 +4305,7 @@ export type components = {
|
|
|
4276
4305
|
* @description Freshness of the whole read. CURRENT: every source is fresh and reconciled. STALE: a source lags or has not reconciled, such as a catching-up projection, a pending reorg rescan or a period not fully covered; amounts may be displayed with their age but never authorize an action. UNAVAILABLE: a required source could not be read, so the amounts it backs are null.
|
|
4277
4306
|
* @enum {string}
|
|
4278
4307
|
*/
|
|
4279
|
-
readonly
|
|
4308
|
+
readonly freshness: "CURRENT" | "STALE" | "UNAVAILABLE";
|
|
4280
4309
|
};
|
|
4281
4310
|
readonly Amount: string;
|
|
4282
4311
|
/** @description Non-negative amount in atomic USDC (6 decimals, "1000000" = 1 USDC); null when it could not be established, never zero in its place. */
|
|
@@ -4299,16 +4328,16 @@ export type components = {
|
|
|
4299
4328
|
readonly reason: string | null;
|
|
4300
4329
|
};
|
|
4301
4330
|
readonly Telemetry: {
|
|
4302
|
-
/** @description Freshness of this read: the oldest source observation and one
|
|
4331
|
+
/** @description Freshness of this read: the oldest source observation and one freshness for every amount in the response. */
|
|
4303
4332
|
readonly context: components["schemas"]["ReadContext"];
|
|
4304
4333
|
readonly telemetry: ({
|
|
4305
4334
|
/** @enum {string} */
|
|
4306
|
-
readonly
|
|
4335
|
+
readonly freshness: "CURRENT" | "STALE";
|
|
4307
4336
|
readonly data: components["schemas"]["TelemetryData"];
|
|
4308
4337
|
readonly reason: string | null;
|
|
4309
4338
|
} & unknown) | {
|
|
4310
4339
|
/** @constant */
|
|
4311
|
-
readonly
|
|
4340
|
+
readonly freshness: "UNAVAILABLE";
|
|
4312
4341
|
readonly data: null;
|
|
4313
4342
|
readonly reason: string;
|
|
4314
4343
|
};
|
|
@@ -4352,8 +4381,6 @@ export type components = {
|
|
|
4352
4381
|
readonly PageCursor: string;
|
|
4353
4382
|
readonly UInt32String: string;
|
|
4354
4383
|
readonly LowercaseNonZeroAddress: string;
|
|
4355
|
-
/** @description 3 to 20 lowercase letters, digits or underscores. Unique across accounts. */
|
|
4356
|
-
readonly Username: string;
|
|
4357
4384
|
readonly Leg: {
|
|
4358
4385
|
/** @description HIP-4 outcome ID of the leg, as a decimal string. */
|
|
4359
4386
|
readonly outcome_id: components["schemas"]["UInt32String"];
|
|
@@ -4392,11 +4419,9 @@ export type components = {
|
|
|
4392
4419
|
/** @description Null until the leg has a known result. */
|
|
4393
4420
|
readonly result_denominator: null;
|
|
4394
4421
|
};
|
|
4395
|
-
|
|
4396
|
-
|
|
4397
|
-
|
|
4398
|
-
readonly Position: {
|
|
4399
|
-
/** @description Position ID: the contract's ticketId (bytes32 hex). A ticketId is the EIP-712 digest of its quote under its vault's domain, so it names one position across every vault. */
|
|
4422
|
+
/** @description What every read of a position carries: Position on an account's reads, and MakerPosition, which adds the maker's view, on the maker's. */
|
|
4423
|
+
readonly PositionFields: {
|
|
4424
|
+
/** @description Position ID: the contract's ticketId (bytes32 hex), which is the `quote_id` of the quote accepted to open it: the EIP-712 digest of that quote under its vault's domain, so it names one position across every vault. */
|
|
4400
4425
|
readonly position_id: string;
|
|
4401
4426
|
/** @description Lowercase vault contract address the position is on. An account's positions span every vault the deployment has served: the active one, one running off and closed ones. */
|
|
4402
4427
|
readonly vault_address: components["schemas"]["LowercaseNonZeroAddress"];
|
|
@@ -4408,10 +4433,6 @@ export type components = {
|
|
|
4408
4433
|
readonly maker_id: components["schemas"]["NonZeroUInt64String"];
|
|
4409
4434
|
/** @description Current position owner wallet (lowercase). */
|
|
4410
4435
|
readonly owner: components["schemas"]["LowercaseNonZeroAddress"];
|
|
4411
|
-
/** @description On a maker's read, the owner's username when the owner wallet is the account wallet of a participant whose public trader profile is on, the pair GET /v1/traders/{username} shows; otherwise null, as for a participant's other linked wallets, and always null on a personal read. */
|
|
4412
|
-
readonly owner_username: components["schemas"]["Username"] | null;
|
|
4413
|
-
/** @description On a maker's read, the display name of the partner whose builder code opened the position; null when it was opened without one, and always null on a personal read. */
|
|
4414
|
-
readonly opened_via: string | null;
|
|
4415
4436
|
/**
|
|
4416
4437
|
* @description OPEN: not yet known eligible for settlement; AWAITING_SETTLEMENT: every leg resolved, or the payout with every unresolved leg counted as a win already rounds down to zero, but no settlement observed; SETTLED_UNCLAIMED: settled with profit still unclaimed; CLOSED: closed by zero-profit settlement, final claim or sell-back.
|
|
4417
4438
|
* @enum {string}
|
|
@@ -4423,7 +4444,7 @@ export type components = {
|
|
|
4423
4444
|
* @description How a CLOSED position closed: CLAIM (final claim of winnings) or SELL_BACK (bought back by the maker). Null otherwise, including direct zero-profit settlement closes and closes without retained evidence.
|
|
4424
4445
|
* @enum {string|null}
|
|
4425
4446
|
*/
|
|
4426
|
-
readonly
|
|
4447
|
+
readonly reason: "CLAIM" | "SELL_BACK" | null;
|
|
4427
4448
|
/** @description Stake after the taker entry fee. */
|
|
4428
4449
|
readonly net_stake: components["schemas"]["UnsignedMetric"];
|
|
4429
4450
|
/** @description What the current owner paid for the whole position: the price of the latest transfer to them, or the gross stake with the entry fee if they have held it since opening. Settlement, claims and sell-back don't change it. Null when retained chain history has a gap that could hide a transfer. P&L compares it with what the owner gets back, settlement_payout or cashout_price, less the profit fee of fee_bps on the amount above net_stake, whatever the owner paid. */
|
|
@@ -4434,7 +4455,7 @@ export type components = {
|
|
|
4434
4455
|
readonly settlement_payout: components["schemas"]["UnsignedMetric"];
|
|
4435
4456
|
/** @description Gross profit still claimable; "0" unless SETTLED_UNCLAIMED. The holder receives unclaimed_profit minus unclaimed_profit * fee_bps / 10000. */
|
|
4436
4457
|
readonly unclaimed_profit: components["schemas"]["UnsignedMetric"];
|
|
4437
|
-
/** @description Cash-out price paid when the position was sold back; null unless
|
|
4458
|
+
/** @description Cash-out price paid when the position was sold back; null unless reason is SELL_BACK. */
|
|
4438
4459
|
readonly cashout_price: components["schemas"]["UnsignedMetric"];
|
|
4439
4460
|
/** @description Position legs in ascending outcome_id order, with each leg's resolution. */
|
|
4440
4461
|
readonly legs: readonly components["schemas"]["Leg"][];
|
|
@@ -4453,6 +4474,20 @@ export type components = {
|
|
|
4453
4474
|
* @enum {string|null}
|
|
4454
4475
|
*/
|
|
4455
4476
|
readonly settlement_kind: "LOSS" | "PARTIAL" | "WIN" | "EARLY_LOST" | null;
|
|
4477
|
+
/** @description Fees the vault took on this position so far, all paid by its owners and none by the maker: the taker entry fee at opening plus the profit fee withheld from each claim and from a sell-back. Null when retained history has a gap that could hide one. */
|
|
4478
|
+
readonly protocol_fees: components["schemas"]["UnsignedMetric"];
|
|
4479
|
+
} & (unknown & unknown & unknown & unknown & unknown & unknown & unknown);
|
|
4480
|
+
/** @description 3 to 20 lowercase letters, digits or underscores. Unique across accounts. */
|
|
4481
|
+
readonly Username: string;
|
|
4482
|
+
readonly SignedAmount: string;
|
|
4483
|
+
/** @description Signed amount in atomic USDC (6 decimals, "1000000" = 1 USDC); null when it could not be established, never zero in its place. */
|
|
4484
|
+
readonly Metric: components["schemas"]["SignedAmount"] | null;
|
|
4485
|
+
/** @description A position as the maker that wrote it reads it (GET /v1/makers/{maker_id}/positions[/{position_id}]): every Position field, plus who holds it and how it closed for the maker. */
|
|
4486
|
+
readonly MakerPosition: {
|
|
4487
|
+
/** @description The owner's username when the owner wallet is the account wallet of a participant whose public trader profile is on, the pair GET /v1/traders/{username} shows; otherwise null, as for a participant's other linked wallets. */
|
|
4488
|
+
readonly owner_username: components["schemas"]["Username"] | null;
|
|
4489
|
+
/** @description The display name of the partner whose builder code opened the position; null when it was opened without one. */
|
|
4490
|
+
readonly opened_via: string | null;
|
|
4456
4491
|
/** @description The maker's signed P&L on this position once it closed economically: net_stake minus settlement_payout, or minus cashout_price for a sell-back; positive when the maker won. The same amount performance recognizes, so fees the owner paid never enter it. Null while OPEN or AWAITING_SETTLEMENT and when the close amount is unavailable. */
|
|
4457
4492
|
readonly maker_pnl: components["schemas"]["Metric"];
|
|
4458
4493
|
/**
|
|
@@ -4460,16 +4495,14 @@ export type components = {
|
|
|
4460
4495
|
* @enum {string|null}
|
|
4461
4496
|
*/
|
|
4462
4497
|
readonly maker_result: "WON" | "LOST" | "EVEN" | null;
|
|
4463
|
-
|
|
4464
|
-
readonly protocol_fees: components["schemas"]["UnsignedMetric"];
|
|
4465
|
-
} & (unknown & unknown & unknown & unknown & unknown & unknown & unknown & unknown);
|
|
4498
|
+
} & (components["schemas"]["PositionFields"] & unknown & unknown);
|
|
4466
4499
|
/** @description Opaque cursor for the next page, or null when has_more is false. */
|
|
4467
4500
|
readonly NextCursor: string | null;
|
|
4468
|
-
readonly
|
|
4469
|
-
/** @description Freshness of this read: the oldest source observation and one
|
|
4501
|
+
readonly MakerPositionList: {
|
|
4502
|
+
/** @description Freshness of this read: the oldest source observation and one freshness for every amount in the response. */
|
|
4470
4503
|
readonly context: components["schemas"]["ReadContext"];
|
|
4471
4504
|
/** @description Positions on this page, newest created_at first, then position_id descending. */
|
|
4472
|
-
readonly items: readonly components["schemas"]["
|
|
4505
|
+
readonly items: readonly components["schemas"]["MakerPosition"][];
|
|
4473
4506
|
/** @description Opaque cursor for the next page, bound to this response's snapshot; null on the last page. Send it back unchanged as cursor. */
|
|
4474
4507
|
readonly next_cursor: components["schemas"]["NextCursor"];
|
|
4475
4508
|
/** @description True when another page exists; true exactly when next_cursor is non-null. */
|
|
@@ -4477,11 +4510,11 @@ export type components = {
|
|
|
4477
4510
|
/** @description Exact number of positions in the whole filtered snapshot (not just this page), as a decimal string. */
|
|
4478
4511
|
readonly total_count: string;
|
|
4479
4512
|
};
|
|
4480
|
-
readonly
|
|
4481
|
-
/** @description Freshness of this read: the oldest source observation and one
|
|
4513
|
+
readonly MakerPositionDetail: {
|
|
4514
|
+
/** @description Freshness of this read: the oldest source observation and one freshness for every amount in the response. */
|
|
4482
4515
|
readonly context: components["schemas"]["ReadContext"];
|
|
4483
4516
|
/** @description The requested position. */
|
|
4484
|
-
readonly position: components["schemas"]["
|
|
4517
|
+
readonly position: components["schemas"]["MakerPosition"];
|
|
4485
4518
|
};
|
|
4486
4519
|
readonly ActionAvailability: {
|
|
4487
4520
|
/**
|
|
@@ -4503,28 +4536,28 @@ export type components = {
|
|
|
4503
4536
|
/** @description Operations holding this reservation. */
|
|
4504
4537
|
readonly operation_ids: readonly string[];
|
|
4505
4538
|
/** @description Reserved amount in atomic USDC (6 decimals, "1000000" = 1 USDC). */
|
|
4506
|
-
readonly
|
|
4539
|
+
readonly amount: components["schemas"]["Amount"];
|
|
4507
4540
|
/**
|
|
4508
4541
|
* @description ACTIVE: held and not yet reflected on-chain; UNKNOWN: outcome unknown, still counted as held.
|
|
4509
4542
|
* @enum {string}
|
|
4510
4543
|
*/
|
|
4511
4544
|
readonly status: "ACTIVE" | "UNKNOWN";
|
|
4512
4545
|
};
|
|
4513
|
-
/** @description Maker capital lanes and derived collateral, in atomic USDC (6 decimals, "1000000" = 1 USDC). Amounts are null when unavailable; context.
|
|
4546
|
+
/** @description Maker capital lanes and derived collateral, in atomic USDC (6 decimals, "1000000" = 1 USDC). Amounts are null when unavailable; context.freshness says how fresh they are. */
|
|
4514
4547
|
readonly MakerCapital: {
|
|
4515
|
-
/** @description Freshness of this read: the oldest source observation and one
|
|
4548
|
+
/** @description Freshness of this read: the oldest source observation and one freshness for every amount in the response. */
|
|
4516
4549
|
readonly context: components["schemas"]["ReadContext"];
|
|
4517
|
-
/** @description Maker
|
|
4518
|
-
readonly
|
|
4550
|
+
/** @description Maker controller, from the same indexed vault row as the lanes. */
|
|
4551
|
+
readonly controller: components["schemas"]["LowercaseNonZeroAddress"];
|
|
4519
4552
|
/** @description Maker signer (its quote signer) from the same indexed vault row as the lanes. The zero address means the maker was opened without one and cannot quote. */
|
|
4520
4553
|
readonly signer: string;
|
|
4521
4554
|
/** @description Maker vault lane V from the vault contract, including escrow and payables. */
|
|
4522
4555
|
readonly vault_gross: components["schemas"]["UnsignedMetric"];
|
|
4523
|
-
/** @description Bettor net stakes escrowed in this maker's open
|
|
4556
|
+
/** @description Bettor net stakes escrowed in this maker's open positions (E). */
|
|
4524
4557
|
readonly stake_escrow: components["schemas"]["UnsignedMetric"];
|
|
4525
|
-
/** @description Settled winnings owed to
|
|
4558
|
+
/** @description Settled winnings owed to position holders and not yet claimed (P). */
|
|
4526
4559
|
readonly payable_owed: components["schemas"]["UnsignedMetric"];
|
|
4527
|
-
/** @description Original open maker exposure G: payout minus net stake summed over open
|
|
4560
|
+
/** @description Original open maker exposure G: payout minus net stake summed over open positions. */
|
|
4528
4561
|
readonly gross_open: components["schemas"]["UnsignedMetric"];
|
|
4529
4562
|
/** @description Maker discount lane D from the vault contract, which offsets gross_open in the requirement. */
|
|
4530
4563
|
readonly discount: components["schemas"]["UnsignedMetric"];
|
|
@@ -4532,7 +4565,7 @@ export type components = {
|
|
|
4532
4565
|
readonly requirement: components["schemas"]["UnsignedMetric"];
|
|
4533
4566
|
/** @description Collateral headroom F = max(V - E - P - R, 0). Not a guarantee of quote acceptance. */
|
|
4534
4567
|
readonly free_collateral: components["schemas"]["UnsignedMetric"];
|
|
4535
|
-
/** @description Signed C = V - E - P. Excludes open-
|
|
4568
|
+
/** @description Signed C = V - E - P. Excludes open-position valuation; not equity or NAV. */
|
|
4536
4569
|
readonly capital_net_of_senior_liabilities: components["schemas"]["Metric"];
|
|
4537
4570
|
/** @description Admission reservations H the venue holds for this maker that are not yet reflected on-chain; the sum of reservations. */
|
|
4538
4571
|
readonly pending_commitments: components["schemas"]["UnsignedMetric"];
|
|
@@ -4547,6 +4580,26 @@ export type components = {
|
|
|
4547
4580
|
/** @description Venue reservations on MAKER_VAULT that make up pending_commitments. */
|
|
4548
4581
|
readonly reservations: readonly components["schemas"]["Reservation"][];
|
|
4549
4582
|
} & unknown;
|
|
4583
|
+
/** @description A position as an account reads it: GET /v1/me/positions and GET /v1/me/positions/{position_id}, a maker key's included. */
|
|
4584
|
+
readonly Position: components["schemas"]["PositionFields"];
|
|
4585
|
+
readonly PositionList: {
|
|
4586
|
+
/** @description Freshness of this read: the oldest source observation and one freshness for every amount in the response. */
|
|
4587
|
+
readonly context: components["schemas"]["ReadContext"];
|
|
4588
|
+
/** @description Positions on this page, newest created_at first, then position_id descending. */
|
|
4589
|
+
readonly items: readonly components["schemas"]["Position"][];
|
|
4590
|
+
/** @description Opaque cursor for the next page, bound to this response's snapshot; null on the last page. Send it back unchanged as cursor. */
|
|
4591
|
+
readonly next_cursor: components["schemas"]["NextCursor"];
|
|
4592
|
+
/** @description True when another page exists; true exactly when next_cursor is non-null. */
|
|
4593
|
+
readonly has_more: boolean;
|
|
4594
|
+
/** @description Exact number of positions in the whole filtered snapshot (not just this page), as a decimal string. */
|
|
4595
|
+
readonly total_count: string;
|
|
4596
|
+
};
|
|
4597
|
+
readonly PositionDetail: {
|
|
4598
|
+
/** @description Freshness of this read: the oldest source observation and one freshness for every amount in the response. */
|
|
4599
|
+
readonly context: components["schemas"]["ReadContext"];
|
|
4600
|
+
/** @description The requested position. */
|
|
4601
|
+
readonly position: components["schemas"]["Position"];
|
|
4602
|
+
};
|
|
4550
4603
|
/** @description Cumulative trading P&L of the account Portfolio shows, computed on read: Core trading plus Combos closed in the deployment's vault. Points are cumulative since tracked_since, not rebased: a window's change is its last point minus its first. Deposits, withdrawals and moves between Core and the vault never move it. */
|
|
4551
4604
|
readonly PnL: {
|
|
4552
4605
|
/**
|
|
@@ -4655,7 +4708,7 @@ export type components = {
|
|
|
4655
4708
|
readonly description_code: string;
|
|
4656
4709
|
} & (unknown & unknown & unknown & unknown & unknown);
|
|
4657
4710
|
readonly ActivityList: {
|
|
4658
|
-
/** @description Freshness of this read: the oldest source observation and one
|
|
4711
|
+
/** @description Freshness of this read: the oldest source observation and one freshness for every amount in the response. */
|
|
4659
4712
|
readonly context: components["schemas"]["ReadContext"];
|
|
4660
4713
|
/** @description Activities on this page, ordered by sequence, then activity_id, descending, within each vault; several vaults' activities are merged, most recently recorded first. */
|
|
4661
4714
|
readonly items: readonly components["schemas"]["Activity"][];
|
|
@@ -4665,7 +4718,7 @@ export type components = {
|
|
|
4665
4718
|
readonly has_more: boolean;
|
|
4666
4719
|
};
|
|
4667
4720
|
readonly ActivityDetail: {
|
|
4668
|
-
/** @description Freshness of this read: the oldest source observation and one
|
|
4721
|
+
/** @description Freshness of this read: the oldest source observation and one freshness for every amount in the response. */
|
|
4669
4722
|
readonly context: components["schemas"]["ReadContext"];
|
|
4670
4723
|
/** @description The requested activity. */
|
|
4671
4724
|
readonly activity: components["schemas"]["Activity"];
|
|
@@ -4675,11 +4728,11 @@ export type components = {
|
|
|
4675
4728
|
readonly MakerAccess: {
|
|
4676
4729
|
/** @description On-chain maker ID this access applies to, as a decimal string. */
|
|
4677
4730
|
readonly maker_id: components["schemas"]["NonZeroUInt64String"];
|
|
4678
|
-
/** @description Maker controller
|
|
4679
|
-
readonly
|
|
4731
|
+
/** @description Maker controller address the access was verified against. */
|
|
4732
|
+
readonly controller: components["schemas"]["LowercaseNonZeroAddress"];
|
|
4680
4733
|
/** @description Maker controller epoch at verification, as a decimal string; a controller change invalidates access derived from an earlier epoch. */
|
|
4681
|
-
readonly
|
|
4682
|
-
/** @description Revision of the
|
|
4734
|
+
readonly controller_version: string;
|
|
4735
|
+
/** @description Revision of the controller's wallet link, as a decimal string. It changes when the wallet is unlinked and relinked, which expires cursors bound to the old revision. */
|
|
4683
4736
|
readonly access_revision: string;
|
|
4684
4737
|
/** @description Read permissions held. They never authorize signing or spending. */
|
|
4685
4738
|
readonly permissions: readonly components["schemas"]["Permission"][];
|
|
@@ -4699,16 +4752,16 @@ export type components = {
|
|
|
4699
4752
|
* @description RFC3339 UTC time the server built this response.
|
|
4700
4753
|
*/
|
|
4701
4754
|
readonly generated_at: string;
|
|
4702
|
-
/** @description Maker ownership
|
|
4755
|
+
/** @description Maker ownership status of the caller's account, derived from its linked wallet and indexed on-chain controller evidence. */
|
|
4703
4756
|
readonly ownership: {
|
|
4704
4757
|
/**
|
|
4705
4758
|
* @description NOT_CREATED: the account's wallet controls no maker; WALLET_REQUIRED: the account has no single qualifying linked wallet; OWNERSHIP_CONFLICT: several candidate wallets, or the maker's current controller no longer matches; READY: the maker is admitted and current; PENDING: the maker profile awaits admission; RESTRICTED: the maker profile is restricted or closed; SETUP_REQUIRED: a maker controlled by the wallet exists on-chain but has no admitted profile yet.
|
|
4706
4759
|
* @enum {string}
|
|
4707
4760
|
*/
|
|
4708
|
-
readonly
|
|
4761
|
+
readonly status: "NOT_CREATED" | "WALLET_REQUIRED" | "OWNERSHIP_CONFLICT" | "READY" | "PENDING" | "RESTRICTED" | "SETUP_REQUIRED";
|
|
4709
4762
|
/** @description Linked wallet that controls (owns) the maker; absent when the account has no single qualifying linked wallet. */
|
|
4710
|
-
readonly
|
|
4711
|
-
/** @description The admitted maker and the caller's
|
|
4763
|
+
readonly controller?: components["schemas"]["LowercaseNonZeroAddress"];
|
|
4764
|
+
/** @description The admitted maker and the caller's controller access to it; null unless status is READY, PENDING or RESTRICTED. */
|
|
4712
4765
|
readonly maker: components["schemas"]["MakerAccess"] | null;
|
|
4713
4766
|
};
|
|
4714
4767
|
};
|
|
@@ -4728,8 +4781,8 @@ export type components = {
|
|
|
4728
4781
|
readonly items: readonly {
|
|
4729
4782
|
/** @description On-chain maker ID in the vault, as a decimal string. */
|
|
4730
4783
|
readonly maker_id: components["schemas"]["NonZeroUInt64String"];
|
|
4731
|
-
/** @description Maker controller
|
|
4732
|
-
readonly
|
|
4784
|
+
/** @description Maker controller address; one of the caller's linked wallets. */
|
|
4785
|
+
readonly controller: components["schemas"]["LowercaseNonZeroAddress"];
|
|
4733
4786
|
/** @description Address currently authorized to sign the maker's quotes. */
|
|
4734
4787
|
readonly signer: components["schemas"]["Address"];
|
|
4735
4788
|
}[];
|
|
@@ -4754,7 +4807,7 @@ export type components = {
|
|
|
4754
4807
|
readonly account_mode: "STANDARD" | "UNIFIED" | "PORTFOLIO_MARGIN" | "UNKNOWN";
|
|
4755
4808
|
/** @description Spot USDC not held by open orders (spot_usdc_total minus spot_usdc_hold), as a decimal string; null in PORTFOLIO_MARGIN. */
|
|
4756
4809
|
readonly spot_usdc: string | null;
|
|
4757
|
-
/** @description Withdrawable perp USDC as a decimal string; "0" when account_mode is UNIFIED
|
|
4810
|
+
/** @description Withdrawable perp USDC as a decimal string; "0" when account_mode is UNIFIED; null in PORTFOLIO_MARGIN, in UNKNOWN, and for a STANDARD account whose perps state Hyperliquid answered unreadably. */
|
|
4758
4811
|
readonly perp_usdc: string | null;
|
|
4759
4812
|
/** @description Total spot USDC, held or not, as a decimal string; "0" when the account holds no USDC, null in PORTFOLIO_MARGIN. */
|
|
4760
4813
|
readonly spot_usdc_total: string | null;
|
|
@@ -4815,7 +4868,7 @@ export type components = {
|
|
|
4815
4868
|
* @description Always OPEN; the portfolio lists resting orders only.
|
|
4816
4869
|
* @constant
|
|
4817
4870
|
*/
|
|
4818
|
-
readonly
|
|
4871
|
+
readonly status: "OPEN";
|
|
4819
4872
|
/** @description RFC3339 UTC time Hyperliquid reports the order was placed. */
|
|
4820
4873
|
readonly created_at: components["schemas"]["$defs-Timestamp"];
|
|
4821
4874
|
};
|
|
@@ -4901,6 +4954,93 @@ export type components = {
|
|
|
4901
4954
|
/** @description At most 200 USDC Settlement credits from the account index, newest settlement first. */
|
|
4902
4955
|
readonly settlement_credits: readonly components["schemas"]["HypercoreSettlementCredit"][];
|
|
4903
4956
|
};
|
|
4957
|
+
/** @description The account's spot rates exactly as Hyperliquid's userFees states them, decimal fractions with its volume tier and staking discount already in: taker is userSpotCrossRate, maker userSpotAddRate (negative is a rebate), referral_discount activeReferralDiscount, which comes off on top. An outcome's fee is the rate, less the discount, times the outcome's fee scales from GET /v1/outcome-metadata. */
|
|
4958
|
+
readonly HypercoreFeeRates: {
|
|
4959
|
+
readonly taker: string;
|
|
4960
|
+
readonly maker: string;
|
|
4961
|
+
readonly referral_discount: string;
|
|
4962
|
+
};
|
|
4963
|
+
readonly HypercoreOrders: {
|
|
4964
|
+
/** @description Hyperliquid main account read: the linked wallet of the calling session. */
|
|
4965
|
+
readonly account: components["schemas"]["Address"];
|
|
4966
|
+
/** @description RFC3339 UTC time Hyperliquid served the open orders read. */
|
|
4967
|
+
readonly observed_at: components["schemas"]["$defs-Timestamp"];
|
|
4968
|
+
/** @description Open HIP-4 orders, newest first, at most 200. */
|
|
4969
|
+
readonly orders: readonly components["schemas"]["HypercorePortfolioOrder"][];
|
|
4970
|
+
/** @description The account's spot fee rates, read after the orders; null when that read failed, took over two seconds or answered malformed. */
|
|
4971
|
+
readonly fee_rates: components["schemas"]["HypercoreFeeRates"] | null;
|
|
4972
|
+
};
|
|
4973
|
+
/** @description A price per share in the quote asset, a decimal string with no trailing zeros. */
|
|
4974
|
+
readonly Price: string;
|
|
4975
|
+
/** @description Shares, an exact decimal string with no trailing zeros. */
|
|
4976
|
+
readonly Shares: string;
|
|
4977
|
+
/** @description Shares of each side the account can sell now, from the same Hyperliquid read as to_win: held less what open orders reserve. It can briefly differ from shares, which is the ledger's cut. */
|
|
4978
|
+
readonly HypercoreOwnedAvailable: {
|
|
4979
|
+
readonly yes: components["schemas"]["Shares"];
|
|
4980
|
+
readonly no: components["schemas"]["Shares"];
|
|
4981
|
+
};
|
|
4982
|
+
/** Format: uint128-decimal */
|
|
4983
|
+
readonly "$defs-Amount": string;
|
|
4984
|
+
/** @description An amount in 10^-8 of the asset named beside it, as a signed integer string. */
|
|
4985
|
+
readonly SignedUnits: string;
|
|
4986
|
+
/** @description One episode of the account's own position on one HyperCore outcome, both sides netted, from its first share to none left, by the holdings ledger's rules (docs/data/holdings-ledger.md): average cost with each Yes and No pair worth 1, P&L including partial sales and every fee. Money is 10^-8 of asset, rounded half away from zero; null is unknown, never 0. */
|
|
4987
|
+
readonly HypercoreOwnedPosition: {
|
|
4988
|
+
/** @description Hyperliquid outcome ID; mainnet's first outcome is 0. */
|
|
4989
|
+
readonly outcome_id: components["schemas"]["UInt32String"];
|
|
4990
|
+
/** @description The episode, named by the HyperCore height and event index of the row that opened it; the episode query of GET /v1/social/people/{username}/positions/{position}. */
|
|
4991
|
+
readonly episode: string;
|
|
4992
|
+
/** @description The outcome's quote asset (USDC; USDH for mainnet outcomes 0 to 83); every amount is in it. Null when unknown. */
|
|
4993
|
+
readonly asset: string | null;
|
|
4994
|
+
/**
|
|
4995
|
+
* @description OPEN and PARTLY_SOLD hold shares (PARTLY_SOLD: some of the net side was sold); SOLD left by sales or conversions, SETTLED by a settlement.
|
|
4996
|
+
* @enum {unknown}
|
|
4997
|
+
*/
|
|
4998
|
+
readonly state: "OPEN" | "PARTLY_SOLD" | "SOLD" | "SETTLED";
|
|
4999
|
+
/** @description Where the market stands now; null when unknown. */
|
|
5000
|
+
readonly phase: ("TRADING" | "AWAITING_RESULT" | "TRADING_CLOSED" | "SETTLED") | null;
|
|
5001
|
+
/** @description Once SETTLED, what the settlement paid the net side: all, nothing, or a part. Null otherwise or when unknown. Not the sign of pnl. */
|
|
5002
|
+
readonly result: ("WON" | "LOST" | "SPLIT") | null;
|
|
5003
|
+
/** @description What one Yes share settled at (No is 1 minus it), once the market settled. */
|
|
5004
|
+
readonly settle_fraction: components["schemas"]["Price"] | null;
|
|
5005
|
+
/** @description The net side, the side with more shares; null when both are equal or unproven. Once SOLD, the side of its last sale; once SETTLED, the side held net as it settled. */
|
|
5006
|
+
readonly side: components["schemas"]["Side"] | null;
|
|
5007
|
+
/** @description Net shares held now; as it settled once SETTLED; 0 once SOLD. Null while the ledger cannot prove the open episode's shares. */
|
|
5008
|
+
readonly shares: components["schemas"]["Shares"] | null;
|
|
5009
|
+
/** @description Shares held on both sides, each pair worth exactly 1 whatever the result; as it settled once SETTLED; 0 once SOLD. Null like shares. */
|
|
5010
|
+
readonly pairs: components["schemas"]["Shares"] | null;
|
|
5011
|
+
/** @description Open episodes only, when Hyperliquid answered. */
|
|
5012
|
+
readonly available: components["schemas"]["HypercoreOwnedAvailable"] | null;
|
|
5013
|
+
/** @description What each net share cost, fees included, rounded half away from zero to 8 decimals; as it settled once SETTLED. Null with no net shares, once SOLD, or when unknown. */
|
|
5014
|
+
readonly entry: components["schemas"]["Price"] | null;
|
|
5015
|
+
/** @description What the shares held cost: the net shares at entry and each pair at 1. Open episodes only. */
|
|
5016
|
+
readonly cost: components["schemas"]["$defs-Amount"] | null;
|
|
5017
|
+
/** @description Everything the episode paid: buys and splits, with their fees. */
|
|
5018
|
+
readonly paid: components["schemas"]["$defs-Amount"] | null;
|
|
5019
|
+
/** @description Everything the episode received: sales, merges and settlement credits, each less its fee, as the account's own fills record them. */
|
|
5020
|
+
readonly received: components["schemas"]["$defs-Amount"] | null;
|
|
5021
|
+
/** @description Value of one net share now, market data's published mark (docs/data/market-data.md 3.3.1); null when unknown or when no share is net. */
|
|
5022
|
+
readonly mark: components["schemas"]["Price"] | null;
|
|
5023
|
+
/** @description What the shares held are worth now: shares x mark + pairs; 0 once closed. Null when the mark is unknown. */
|
|
5024
|
+
readonly value: components["schemas"]["$defs-Amount"] | null;
|
|
5025
|
+
/** @description received - paid + value: the whole episode's profit, partial sales and fees included. */
|
|
5026
|
+
readonly pnl: components["schemas"]["SignedUnits"] | null;
|
|
5027
|
+
/** @description What the net shares land if their side wins: 1 a share less the settlement fee at the account's own rates and the market's fee scales, the fee rounded up. Open episodes with a net side only; null when Hyperliquid did not answer or the market is no longer listed. Pairs land 1 each besides, less their own fees. */
|
|
5028
|
+
readonly to_win: components["schemas"]["$defs-Amount"] | null;
|
|
5029
|
+
/** @description Block time of the row that opened the episode. */
|
|
5030
|
+
readonly opened_at: components["schemas"]["$defs-Timestamp"];
|
|
5031
|
+
/** @description Block time of the row that closed it; null while open. */
|
|
5032
|
+
readonly closed_at: components["schemas"]["$defs-Timestamp"] | null;
|
|
5033
|
+
};
|
|
5034
|
+
readonly HypercoreOwnedPositions: {
|
|
5035
|
+
/** @description The account's episodes, newest opened first (by the opening row's place on chain). An episode keeps its place when it closes, so a later page of an unfiltered walk never repeats or skips one; with status, an episode that closes during a walk moves between the filters, so restart at the first page on a HOLDINGS invalidation. A cursor from another ledger version is refused as INVALID_QUERY: restart. */
|
|
5036
|
+
readonly items: readonly components["schemas"]["HypercoreOwnedPosition"][];
|
|
5037
|
+
/** @description Block time through which the holdings ledger applied every row for this page. */
|
|
5038
|
+
readonly as_of: components["schemas"]["$defs-Timestamp"];
|
|
5039
|
+
/** @description HyperCore height through which the ledger applied every row for this page. */
|
|
5040
|
+
readonly through_height: components["schemas"]["UInt64String"];
|
|
5041
|
+
readonly next_cursor: components["schemas"]["NextCursor"];
|
|
5042
|
+
readonly has_more: boolean;
|
|
5043
|
+
};
|
|
4904
5044
|
/** Format: uuid */
|
|
4905
5045
|
readonly Uuid: string;
|
|
4906
5046
|
/** @description A random (version 4) UUID, lowercase. */
|
|
@@ -5013,8 +5153,6 @@ export type components = {
|
|
|
5013
5153
|
/** @description When the partner first admitted the wallet; the same on every retry. */
|
|
5014
5154
|
readonly admitted_at: components["schemas"]["$defs-Timestamp"];
|
|
5015
5155
|
};
|
|
5016
|
-
/** Format: uint128-decimal */
|
|
5017
|
-
readonly "$defs-Amount": string;
|
|
5018
5156
|
/** @description All time, on every vault Totalis has run in this environment. Each fee is priced at the terms in force on its UTC day. */
|
|
5019
5157
|
readonly PartnerBalance: {
|
|
5020
5158
|
/** @description Your current share of total fees in basis points, or null before your first terms. */
|
|
@@ -5038,7 +5176,7 @@ export type components = {
|
|
|
5038
5176
|
};
|
|
5039
5177
|
readonly PartnerFeeFields: {
|
|
5040
5178
|
/** @description Positions opened through your codes. */
|
|
5041
|
-
readonly
|
|
5179
|
+
readonly positions: number;
|
|
5042
5180
|
/** @description Their stake, atomic USDC. */
|
|
5043
5181
|
readonly stake_volume: components["schemas"]["$defs-Amount"];
|
|
5044
5182
|
/** @description Fees charged on opening them, atomic USDC. */
|
|
@@ -5101,7 +5239,7 @@ export type components = {
|
|
|
5101
5239
|
* @description OPEN until its transfer is checked on-chain; SETTLED once it is; CANCELLED if dropped before anything moved.
|
|
5102
5240
|
* @enum {string}
|
|
5103
5241
|
*/
|
|
5104
|
-
readonly
|
|
5242
|
+
readonly status: "OPEN" | "SETTLED" | "CANCELLED";
|
|
5105
5243
|
/** @description When Totalis queued it. */
|
|
5106
5244
|
readonly queued_at: components["schemas"]["$defs-Timestamp"];
|
|
5107
5245
|
/** @description When it settled or was cancelled. */
|
|
@@ -5125,9 +5263,9 @@ export type components = {
|
|
|
5125
5263
|
readonly accounts: number;
|
|
5126
5264
|
};
|
|
5127
5265
|
/** @description Positions opened through your codes that are open now and still held by the account that opened them. */
|
|
5128
|
-
readonly
|
|
5266
|
+
readonly open_positions: {
|
|
5129
5267
|
/** @description How many. */
|
|
5130
|
-
readonly
|
|
5268
|
+
readonly positions: number;
|
|
5131
5269
|
/** @description Their stake after the taker fee, atomic USDC. */
|
|
5132
5270
|
readonly stake: components["schemas"]["$defs-Amount"];
|
|
5133
5271
|
};
|
|
@@ -5196,8 +5334,8 @@ export type components = {
|
|
|
5196
5334
|
readonly event: {
|
|
5197
5335
|
/** @description The event's id, as the webhook-id header carried it; dedupe on it. */
|
|
5198
5336
|
readonly id: string;
|
|
5199
|
-
/** @description The event
|
|
5200
|
-
readonly
|
|
5337
|
+
/** @description The event kind, such as position.opened or balance.updated. */
|
|
5338
|
+
readonly kind: string;
|
|
5201
5339
|
/** @description When the event happened. */
|
|
5202
5340
|
readonly created_at: string;
|
|
5203
5341
|
/** @description The event's data, as posted. */
|
|
@@ -5233,7 +5371,7 @@ export type components = {
|
|
|
5233
5371
|
* @description CURRENT when the projection is within 32 blocks of a chain head observed in the last two minutes; STALE when it lags, so figures may be behind.
|
|
5234
5372
|
* @enum {unknown}
|
|
5235
5373
|
*/
|
|
5236
|
-
readonly
|
|
5374
|
+
readonly freshness: "CURRENT" | "STALE";
|
|
5237
5375
|
};
|
|
5238
5376
|
/** @description What the account holds at Totalis at one HyperEVM block, in atomic USDC (6 decimals, "1000000" = 1 USDC): wallet USDC, its cash in the vault and in vaults running off, what it paid for its open positions, and the profit it can still claim, net of the fee. Every amount is read from the chain at block_number. HyperCore balances are not included; read them from Hyperliquid. */
|
|
5239
5377
|
readonly AccountValue: {
|
|
@@ -5243,24 +5381,24 @@ export type components = {
|
|
|
5243
5381
|
* @description CURRENT when every amount was read at block_number; UNKNOWN when the chain could not be read, or the projection did not reach that block in time, and every amount is null. Read again later.
|
|
5244
5382
|
* @enum {unknown}
|
|
5245
5383
|
*/
|
|
5246
|
-
readonly
|
|
5247
|
-
/** @description The account's value: wallet_usdc + vault_cash + run_off_cash + open_cost + claimable_profit. Null unless
|
|
5384
|
+
readonly freshness: "CURRENT" | "UNKNOWN";
|
|
5385
|
+
/** @description The account's value: wallet_usdc + vault_cash + run_off_cash + open_cost + claimable_profit. Null unless freshness is CURRENT. */
|
|
5248
5386
|
readonly amount: components["schemas"]["$defs-Amount"] | null;
|
|
5249
|
-
/** @description The HyperEVM block every amount was read at. Null unless
|
|
5387
|
+
/** @description The HyperEVM block every amount was read at. Null unless freshness is CURRENT. */
|
|
5250
5388
|
readonly block_number: components["schemas"]["UInt64String"] | null;
|
|
5251
|
-
/** @description USDC in the account's wallet on HyperEVM, including any already committed to a Totalis withdrawal or stake that has not landed. Null unless
|
|
5389
|
+
/** @description USDC in the account's wallet on HyperEVM, including any already committed to a Totalis withdrawal or stake that has not landed. Null unless freshness is CURRENT. */
|
|
5252
5390
|
readonly wallet_usdc: components["schemas"]["$defs-Amount"] | null;
|
|
5253
|
-
/** @description All the account's cash in the vault, including any held for an operation that has not landed, so it can exceed GET /v1/me/balances' free vault cash. Null unless
|
|
5391
|
+
/** @description All the account's cash in the vault, including any held for an operation that has not landed, so it can exceed GET /v1/me/balances' free vault cash. Null unless freshness is CURRENT. */
|
|
5254
5392
|
readonly vault_cash: components["schemas"]["$defs-Amount"] | null;
|
|
5255
|
-
/** @description The account's cash in vaults running off, all together; GET /v1/me/balances lists it per vault. Null unless
|
|
5393
|
+
/** @description The account's cash in vaults running off, all together; GET /v1/me/balances lists it per vault. Null unless freshness is CURRENT. */
|
|
5256
5394
|
readonly run_off_cash: components["schemas"]["$defs-Amount"] | null;
|
|
5257
|
-
/** @description How many positions the account holds that have not settled: OPEN and AWAITING_SETTLEMENT in GET /v1/me/positions. Null unless
|
|
5395
|
+
/** @description How many positions the account holds that have not settled: OPEN and AWAITING_SETTLEMENT in GET /v1/me/positions. Null unless freshness is CURRENT. */
|
|
5258
5396
|
readonly open_positions: number | null;
|
|
5259
|
-
/** @description What the account paid for those positions: the sum of their acquisition_cost. Null unless
|
|
5397
|
+
/** @description What the account paid for those positions: the sum of their acquisition_cost. Null unless freshness is CURRENT. */
|
|
5260
5398
|
readonly open_cost: components["schemas"]["$defs-Amount"] | null;
|
|
5261
|
-
/** @description What claiming every SETTLED_UNCLAIMED position would pay the account: each one's unclaimed_profit minus floor(unclaimed_profit * fee_bps / 10000). Null unless
|
|
5399
|
+
/** @description What claiming every SETTLED_UNCLAIMED position would pay the account: each one's unclaimed_profit minus floor(unclaimed_profit * fee_bps / 10000). Null unless freshness is CURRENT. */
|
|
5262
5400
|
readonly claimable_profit: components["schemas"]["$defs-Amount"] | null;
|
|
5263
|
-
/** @description The vault projection the read used to find the account's positions. When
|
|
5401
|
+
/** @description The vault projection the read used to find the account's positions. When freshness is CURRENT it has reached block_number. */
|
|
5264
5402
|
readonly checkpoint: components["schemas"]["Checkpoint"];
|
|
5265
5403
|
};
|
|
5266
5404
|
/** @description One tagged landing on the app. Values come from utm_source, utm_medium, utm_campaign and ref; the path carries no query string. */
|
|
@@ -5368,7 +5506,7 @@ export type components = {
|
|
|
5368
5506
|
/** @description Display title of the question, standalone market or price series. */
|
|
5369
5507
|
readonly title: string;
|
|
5370
5508
|
/** @description Lifecycle of the item: ACTIVE, CLOSED or UNSUPPORTED; for a question or price series, ACTIVE when any of its markets is active. */
|
|
5371
|
-
readonly
|
|
5509
|
+
readonly status: components["schemas"]["MarketState"];
|
|
5372
5510
|
/** @description Display category, or null when the item is not mapped to one. */
|
|
5373
5511
|
readonly category: components["schemas"]["Category"];
|
|
5374
5512
|
/** @description Display subcategory slug within the category; null when unmapped or not subdivided. */
|
|
@@ -5453,14 +5591,14 @@ export type components = {
|
|
|
5453
5591
|
* @description ENABLED: Totalis currently accepts new positions on this market.
|
|
5454
5592
|
* @constant
|
|
5455
5593
|
*/
|
|
5456
|
-
readonly
|
|
5594
|
+
readonly status: "ENABLED";
|
|
5457
5595
|
};
|
|
5458
5596
|
readonly EligibilityDisabled: {
|
|
5459
5597
|
/**
|
|
5460
5598
|
* @description DISABLED: Totalis does not currently accept new positions on this market; reason says why.
|
|
5461
5599
|
* @constant
|
|
5462
5600
|
*/
|
|
5463
|
-
readonly
|
|
5601
|
+
readonly status: "DISABLED";
|
|
5464
5602
|
/**
|
|
5465
5603
|
* @description Why new positions are refused. UNSUPPORTED_PROTOCOL_VERSION, UNSUPPORTED_QUOTE_ASSET and IDENTITY_CONFLICT are permanent support failures; MARKET_NOT_ACTIVE means the native market is no longer live; NATIVE_STATE_UNAVAILABLE, NATIVE_STATE_STALE, REFERENCE_UNAVAILABLE, REFERENCE_STALE and SOURCE_GENERATION_MISMATCH are temporary data outages; FINANCIAL_PROFILE_DISABLED means trading is switched off in this environment; SOURCE_UNQUALIFIED marks cached catalog copies that carry no live eligibility.
|
|
5466
5604
|
* @enum {string}
|
|
@@ -5473,18 +5611,18 @@ export type components = {
|
|
|
5473
5611
|
* @description OPEN: an RFQ may include this market as a leg.
|
|
5474
5612
|
* @constant
|
|
5475
5613
|
*/
|
|
5476
|
-
readonly
|
|
5614
|
+
readonly status: "OPEN";
|
|
5477
5615
|
} | {
|
|
5478
5616
|
/**
|
|
5479
5617
|
* @description CLOSED: an RFQ that includes this market is refused; reason says why.
|
|
5480
5618
|
* @constant
|
|
5481
5619
|
*/
|
|
5482
|
-
readonly
|
|
5620
|
+
readonly status: "CLOSED";
|
|
5483
5621
|
/**
|
|
5484
|
-
* @description EXCLUDED: Totalis keeps this market out of Combos. UNLISTED_DEPLOYER: its deployer is not one Totalis lists. OUTSIDE_WINDOW: its event is unknown or more than 7 days away, or the time its result can be known is unknown
|
|
5622
|
+
* @description EXCLUDED: Totalis keeps this market out of Combos. UNLISTED_DEPLOYER: its deployer is not one Totalis lists. OUTSIDE_WINDOW: its event is unknown or more than 7 days away, or the time its event starts or its result can be known is unknown. EVENT_PASSED: its event has started or its result can be known: the earliest of its observation time (a price market), its scheduled event (a game's start, a policy rate's decision) and its resolution backstop has passed, so makers refuse it.
|
|
5485
5623
|
* @enum {string}
|
|
5486
5624
|
*/
|
|
5487
|
-
readonly reason: "EXCLUDED" | "UNLISTED_DEPLOYER" | "OUTSIDE_WINDOW";
|
|
5625
|
+
readonly reason: "EXCLUDED" | "UNLISTED_DEPLOYER" | "OUTSIDE_WINDOW" | "EVENT_PASSED";
|
|
5488
5626
|
/** @description When the market enters the 7-day window, in Unix seconds: its best-known event time minus 7 days. Set only for OUTSIDE_WINDOW with a known event time before the window opens; approximate. */
|
|
5489
5627
|
readonly opens_at: components["schemas"]["PositiveInt64"] | null;
|
|
5490
5628
|
};
|
|
@@ -5602,7 +5740,7 @@ export type components = {
|
|
|
5602
5740
|
/** @description Display title derived from the market definition. */
|
|
5603
5741
|
readonly title: string;
|
|
5604
5742
|
/** @description Native lifecycle: ACTIVE while the market is live on Hyperliquid, CLOSED once it is no longer live, UNSUPPORTED when Totalis does not support it. */
|
|
5605
|
-
readonly
|
|
5743
|
+
readonly status: components["schemas"]["MarketState"];
|
|
5606
5744
|
/** @description Native result as last read from HyperEVM. */
|
|
5607
5745
|
readonly result: components["schemas"]["Result"];
|
|
5608
5746
|
/** @description Revision of this market's catalog metadata; it increases when the metadata changes. */
|
|
@@ -5773,7 +5911,7 @@ export type components = {
|
|
|
5773
5911
|
* @description SUBJECT: a subject described once in the answer's `subjects`.
|
|
5774
5912
|
* @constant
|
|
5775
5913
|
*/
|
|
5776
|
-
readonly
|
|
5914
|
+
readonly kind: "SUBJECT";
|
|
5777
5915
|
/** @description The subject's key in `subjects`. */
|
|
5778
5916
|
readonly key: components["schemas"]["SubjectKey"];
|
|
5779
5917
|
};
|
|
@@ -5782,7 +5920,7 @@ export type components = {
|
|
|
5782
5920
|
* @description GLYPH: a mark of the client's own, never artwork.
|
|
5783
5921
|
* @constant
|
|
5784
5922
|
*/
|
|
5785
|
-
readonly
|
|
5923
|
+
readonly kind: "GLYPH";
|
|
5786
5924
|
/**
|
|
5787
5925
|
* @description DRAW: a contest's draw outcome. TOTAL: an over/under line, drawn as Over for Yes and Under for No where the side is known.
|
|
5788
5926
|
* @enum {string}
|
|
@@ -5901,15 +6039,15 @@ export type components = {
|
|
|
5901
6039
|
readonly "schemas-SellBackTerms": {
|
|
5902
6040
|
/** @description Position the quote is for; the signed SellBack names it ticketId. */
|
|
5903
6041
|
readonly position_id: components["schemas"]["Hash32"];
|
|
5904
|
-
/** @description Buyback price the original maker pays the owner to close the
|
|
6042
|
+
/** @description Buyback price the original maker pays the owner to close the position, in atomic USDC (6 decimals). */
|
|
5905
6043
|
readonly price: components["schemas"]["$defs-Amount"];
|
|
5906
|
-
/** @description Current position owner, who sells the
|
|
6044
|
+
/** @description Current position owner, who sells the position back. */
|
|
5907
6045
|
readonly owner: components["schemas"]["LowercaseNonZeroAddress"];
|
|
5908
6046
|
/** @description Unix seconds after which the quote can no longer be executed. */
|
|
5909
6047
|
readonly expiry: components["schemas"]["UInt64String"];
|
|
5910
6048
|
/** @description Random uint256, as a decimal string, that makes each signed quote unique. */
|
|
5911
6049
|
readonly salt: components["schemas"]["Uint256"];
|
|
5912
|
-
/** @description Position leg state the quote was priced against
|
|
6050
|
+
/** @description Position leg state, legStateOf(legs, 500000), the quote was priced against. */
|
|
5913
6051
|
readonly leg_state: components["schemas"]["Hash32"];
|
|
5914
6052
|
};
|
|
5915
6053
|
readonly ContractSignature: string;
|
|
@@ -5936,7 +6074,7 @@ export type components = {
|
|
|
5936
6074
|
readonly following?: boolean;
|
|
5937
6075
|
/** @description How many trades others placed by copying them into a position: each one copied from their profile and credited with POST /v1/me/copied-trades, and each entry automatic copying filled for a follower. Copied exits are not counted. Servers before contract 259 omit it. */
|
|
5938
6076
|
readonly trades_copied: number;
|
|
5939
|
-
/** @description All-time volume in 10^-8 USDC: every dollar their account wallet moved in or out of a trade, before fees. On HIP-4 outcomes quoted in USDC, price times size of every buy and sell and of its side of every result (a loss adds nothing, a refund half; converting shares adds nothing); on Combos, the stake of every
|
|
6077
|
+
/** @description All-time volume in 10^-8 USDC: every dollar their account wallet moved in or out of a trade, before fees. On HIP-4 outcomes quoted in USDC, price times size of every buy and sell and of its side of every result (a loss adds nothing, a refund half; converting shares adds nothing); on Combos, the stake of every position it opened and what that position paid it back when sold back or settled. What GET /v1/social/leaderboard ranks; an outcome quoted in another asset (USDH, mainnet outcomes 0 to 83) adds nothing. Null, unknown, while the holdings ledger does not yet write their account wallet's trades, or while a Combo log it counts has no block time read yet. */
|
|
5940
6078
|
readonly volume: components["schemas"]["$defs-Amount"] | null;
|
|
5941
6079
|
/** @description What everything they hold is worth now in 10^-8 USDC, the sum of the values GET /v1/social/people/{username}/positions lists, as Portfolio values its own. Null when any one is unknown, never short. */
|
|
5942
6080
|
readonly positions_value: components["schemas"]["$defs-Amount"] | null;
|
|
@@ -5945,10 +6083,6 @@ export type components = {
|
|
|
5945
6083
|
readonly EpisodeId: string;
|
|
5946
6084
|
/** @description A HyperCore outcome's quote asset: USDC, or USDH on mainnet outcomes 0 to 83. Its amounts are never summed with another asset's. */
|
|
5947
6085
|
readonly "$defs-Asset": string;
|
|
5948
|
-
/** @description Shares, an exact decimal string with no trailing zeros. */
|
|
5949
|
-
readonly Shares: string;
|
|
5950
|
-
/** @description A price per share in the quote asset, a decimal string with no trailing zeros. */
|
|
5951
|
-
readonly Price: string;
|
|
5952
6086
|
/** @description A HyperCore position held now, as a row draws it. side, shares, entry and value are all null when the ledger cannot prove its shares, as SinglePosition.holding says. */
|
|
5953
6087
|
readonly SingleSummary: {
|
|
5954
6088
|
/**
|
|
@@ -5970,21 +6104,21 @@ export type components = {
|
|
|
5970
6104
|
/** @description As Holding.value. */
|
|
5971
6105
|
readonly value: components["schemas"]["$defs-Amount"] | null;
|
|
5972
6106
|
};
|
|
5973
|
-
/** @description One leg of a Combo
|
|
6107
|
+
/** @description One leg of a Combo position. */
|
|
5974
6108
|
readonly "social.schema_$defs-Leg": {
|
|
5975
6109
|
/** @description HIP-4 outcome ID of the leg. */
|
|
5976
6110
|
readonly outcome_id: components["schemas"]["UInt32String"];
|
|
5977
6111
|
/** @description The side the leg holds. */
|
|
5978
6112
|
readonly side: components["schemas"]["Side"];
|
|
5979
6113
|
};
|
|
5980
|
-
/** @description A Combo
|
|
6114
|
+
/** @description A Combo position held now, or settled with a residual still to claim, as a row draws it. */
|
|
5981
6115
|
readonly ComboSummary: {
|
|
5982
6116
|
/**
|
|
5983
|
-
* @description A Combo
|
|
6117
|
+
* @description A Combo position.
|
|
5984
6118
|
* @constant
|
|
5985
6119
|
*/
|
|
5986
6120
|
readonly kind: "COMBO";
|
|
5987
|
-
/** @description The
|
|
6121
|
+
/** @description The position. */
|
|
5988
6122
|
readonly position_id: components["schemas"]["Bytes32"];
|
|
5989
6123
|
/** @description A free Combo. */
|
|
5990
6124
|
readonly golden: boolean;
|
|
@@ -6028,8 +6162,6 @@ export type components = {
|
|
|
6028
6162
|
/** @description Their Genesis Account badge; absent when not earned. */
|
|
6029
6163
|
readonly genesis?: components["schemas"]["$defs-Timestamp"];
|
|
6030
6164
|
};
|
|
6031
|
-
/** @description An amount in 10^-8 of the asset named beside it, as a signed integer string. */
|
|
6032
|
-
readonly SignedUnits: string;
|
|
6033
6165
|
/** @description A HyperCore position's money in its quote asset, by the holdings ledger's rules. Quantities are always exact: a position whose shares the ledger cannot prove has no Holding at all; cost, entry and P&L are null when the ledger cannot price them (an outcome token moved by transfer, a question-wide conversion, a fee in another token, an unknown quote asset). value = shares x mark + pairs; a reader holding a newer mark for the same side recomputes value that way and pnl as pnl + shares x (newer mark - mark). */
|
|
6034
6166
|
readonly Holding: {
|
|
6035
6167
|
/** @description The net side, the side with more shares; null when both sides are equal. Once SOLD, the side of its last sale; once SETTLED, the side held net as it settled. */
|
|
@@ -6093,7 +6225,7 @@ export type components = {
|
|
|
6093
6225
|
* @description OPEN; PARTLY_SOLD, open after selling some of the side it holds net; SOLD, closed by sales or a merge; SETTLED, held as its market settled. Where the market stands is in markets.
|
|
6094
6226
|
* @enum {string|null}
|
|
6095
6227
|
*/
|
|
6096
|
-
readonly
|
|
6228
|
+
readonly status: "OPEN" | "PARTLY_SOLD" | "SOLD" | "SETTLED" | null;
|
|
6097
6229
|
/**
|
|
6098
6230
|
* @description For SETTLED, what the side held net got per share: all (WON), nothing (LOST) or part (SPLIT). Null otherwise, and when no side was held net.
|
|
6099
6231
|
* @enum {string|null}
|
|
@@ -6113,17 +6245,17 @@ export type components = {
|
|
|
6113
6245
|
readonly latest_comment: components["schemas"]["LatestComment"] | null;
|
|
6114
6246
|
readonly markets: components["schemas"]["Markets"];
|
|
6115
6247
|
};
|
|
6116
|
-
/** @description The newest run of a Combo
|
|
6248
|
+
/** @description The newest run of a Combo position in a person's account wallet. One leg is a single-market RFQ buy. */
|
|
6117
6249
|
readonly ComboPosition: {
|
|
6118
6250
|
/**
|
|
6119
|
-
* @description A Combo
|
|
6251
|
+
* @description A Combo position.
|
|
6120
6252
|
* @constant
|
|
6121
6253
|
*/
|
|
6122
6254
|
readonly kind: "COMBO";
|
|
6123
6255
|
readonly person: components["schemas"]["Person"];
|
|
6124
6256
|
/** @description Whether the reading account follows them. Absent without a participant session. */
|
|
6125
6257
|
readonly following?: boolean;
|
|
6126
|
-
/** @description The
|
|
6258
|
+
/** @description The position. */
|
|
6127
6259
|
readonly position_id: components["schemas"]["Bytes32"];
|
|
6128
6260
|
/** @description A free Combo, whose stake a promotion paid. */
|
|
6129
6261
|
readonly golden: boolean;
|
|
@@ -6136,7 +6268,7 @@ export type components = {
|
|
|
6136
6268
|
* @description OPEN; CASHED_OUT, sold back to its maker; SETTLED; PASSED_ON, moved to another wallet.
|
|
6137
6269
|
* @enum {string}
|
|
6138
6270
|
*/
|
|
6139
|
-
readonly
|
|
6271
|
+
readonly status: "OPEN" | "CASHED_OUT" | "SETTLED" | "PASSED_ON";
|
|
6140
6272
|
/**
|
|
6141
6273
|
* @description LOST once any leg's side settled at nothing, open or not; WON or SPLIT once every leg settled; null before.
|
|
6142
6274
|
* @enum {string|null}
|
|
@@ -6148,7 +6280,7 @@ export type components = {
|
|
|
6148
6280
|
readonly legs: readonly components["schemas"]["social.schema_$defs-Leg"][];
|
|
6149
6281
|
/** @description What they paid in 10^-8 USDC, the entry fee included; null when they paid nothing of their own (received free). */
|
|
6150
6282
|
readonly cost: components["schemas"]["$defs-Amount"] | null;
|
|
6151
|
-
/** @description What it is worth to them now in 10^-8 USDC, as Portfolio values a
|
|
6283
|
+
/** @description What it is worth to them now in 10^-8 USDC, as Portfolio values a position: its net stake while open, nothing once a leg lost, what settlement credits after the profit fee once every leg settled, the claimable residual once settled, 0 once closed; a free Combo is worth nothing until it has won. Null when a leg's market is neither listed nor settled. */
|
|
6152
6284
|
readonly value: components["schemas"]["$defs-Amount"] | null;
|
|
6153
6285
|
/** @description Once CASHED_OUT or SETTLED, what they received after the profit fee less cost, in 10^-8 USDC. Null while open, after PASSED_ON, or when cost is null. */
|
|
6154
6286
|
readonly pnl: components["schemas"]["SignedUnits"] | null;
|
|
@@ -6191,17 +6323,17 @@ export type components = {
|
|
|
6191
6323
|
/** @description How many orders the burst took, told apart by transaction: one order filling against several makers is one. */
|
|
6192
6324
|
readonly orders: number;
|
|
6193
6325
|
};
|
|
6194
|
-
/** @description What GET /v1/social/people/{username}/positions/{position} takes to open a Combo
|
|
6326
|
+
/** @description What GET /v1/social/people/{username}/positions/{position} takes to open a Combo position. */
|
|
6195
6327
|
readonly ComboKey: {
|
|
6196
6328
|
/**
|
|
6197
|
-
* @description A Combo
|
|
6329
|
+
* @description A Combo position.
|
|
6198
6330
|
* @constant
|
|
6199
6331
|
*/
|
|
6200
6332
|
readonly kind: "COMBO";
|
|
6201
6333
|
/** @description The position path segment. */
|
|
6202
6334
|
readonly position_id: components["schemas"]["Bytes32"];
|
|
6203
6335
|
};
|
|
6204
|
-
/** @description A Combo
|
|
6336
|
+
/** @description A Combo position a person opened, received or cashed out. */
|
|
6205
6337
|
readonly ComboItem: {
|
|
6206
6338
|
/** @description Stable, opaque ID. */
|
|
6207
6339
|
readonly id: string;
|
|
@@ -6210,7 +6342,7 @@ export type components = {
|
|
|
6210
6342
|
readonly person: components["schemas"]["Person"];
|
|
6211
6343
|
readonly position: components["schemas"]["ComboKey"];
|
|
6212
6344
|
/**
|
|
6213
|
-
* @description What they did with the
|
|
6345
|
+
* @description What they did with the position.
|
|
6214
6346
|
* @enum {string}
|
|
6215
6347
|
*/
|
|
6216
6348
|
readonly action: "OPENED" | "RECEIVED" | "CASHED_OUT";
|
|
@@ -6373,79 +6505,16 @@ export type components = {
|
|
|
6373
6505
|
readonly EditCommentRequest: {
|
|
6374
6506
|
readonly body: components["schemas"]["CommentBody"];
|
|
6375
6507
|
};
|
|
6376
|
-
/**
|
|
6377
|
-
|
|
6378
|
-
|
|
6379
|
-
|
|
6380
|
-
|
|
6381
|
-
/**
|
|
6382
|
-
|
|
6383
|
-
|
|
6384
|
-
|
|
6385
|
-
|
|
6386
|
-
readonly expires_at: components["schemas"]["$defs-Timestamp"];
|
|
6387
|
-
};
|
|
6388
|
-
/** @description The outcome of releasing your quote lease. */
|
|
6389
|
-
readonly QuoteLeaseRelease: {
|
|
6390
|
-
/** @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. */
|
|
6391
|
-
readonly released: boolean;
|
|
6392
|
-
};
|
|
6393
|
-
/** @description A USDC EIP-3009 ReceiveWithAuthorization moving value from the caller's account wallet into the vault. The venue fills `from` and `account` with that wallet; sign the message with both set to it. */
|
|
6394
|
-
readonly WalletFunding: {
|
|
6395
|
-
/**
|
|
6396
|
-
* @description Funding source: WALLET pays the shortfall from the caller's account wallet with a signed authorization.
|
|
6397
|
-
* @constant
|
|
6398
|
-
*/
|
|
6399
|
-
readonly kind: "WALLET";
|
|
6400
|
-
/** @description Atomic USDC (6 decimals) drawn from the wallet into the vault. It must equal the exact stake shortfall over free vault cash at admission. */
|
|
6401
|
-
readonly value: components["schemas"]["$defs-Amount"];
|
|
6402
|
-
/** @description EIP-3009 validAfter in Unix seconds; must not be in the future. */
|
|
6403
|
-
readonly valid_after: components["schemas"]["UInt64String"];
|
|
6404
|
-
/** @description EIP-3009 validBefore in Unix seconds; must be at or after the quote's `entry.expiry`, as the accept can execute until then, and at most 900 seconds after `valid_after`. */
|
|
6405
|
-
readonly valid_before: components["schemas"]["UInt64String"];
|
|
6406
|
-
/** @description Random 32 bytes; the EIP-3009 nonce is `keccak256(abi.encode(vault, chainId, from, salt, account))`, with `from` and `account` the account wallet. */
|
|
6407
|
-
readonly salt: components["schemas"]["Bytes32"];
|
|
6408
|
-
/** @description 65-byte ECDSA signature by the account wallet over the USDC ReceiveWithAuthorization message, with the vault as payee. */
|
|
6409
|
-
readonly authorization_signature: components["schemas"]["Signature65"];
|
|
6410
|
-
};
|
|
6411
|
-
/** @description Pays the part of the stake your vault balance is short at execution from your account wallet's USDC approval to WalletAccept (GET /v1/me/wallet-approval), with no signature. It routes the accept through WalletAccept; it is not consent the chain checks: once the approval exists, anyone can relay any live acceptance named to your account through WalletAccept. */
|
|
6412
|
-
readonly WalletApprovalFunding: {
|
|
6413
|
-
/**
|
|
6414
|
-
* @description Funding source: WALLET_APPROVAL pays the shortfall from the account wallet's approval to WalletAccept.
|
|
6415
|
-
* @constant
|
|
6416
|
-
*/
|
|
6417
|
-
readonly kind: "WALLET_APPROVAL";
|
|
6418
|
-
};
|
|
6419
|
-
readonly AcceptanceFields: {
|
|
6420
|
-
/** @description The `Idempotency-Key` the taker sent with the accept, which names this acceptance. Never sent to the maker. */
|
|
6421
|
-
readonly acceptance_id?: components["schemas"]["Uuid"];
|
|
6422
|
-
/** @description The accepted quote. A quote has at most one acceptance. */
|
|
6423
|
-
readonly quote_id: components["schemas"]["Bytes32"];
|
|
6424
|
-
/** @description RFQ the quote answers. */
|
|
6425
|
-
readonly rfq_id: components["schemas"]["Uuid"];
|
|
6426
|
-
/**
|
|
6427
|
-
* @description `PENDING_CONFIRM`: waiting for the maker. `ACCEPTED`: the maker confirmed and the trade is queued as `operation_id`. `FILLED`: the trade committed on chain. `FAILED`: it reverted or expired unexecuted; read `GET /v1/me/operations/{operation_id}`, whose `failure_reason` is INSUFFICIENT_CASH when the taker's Cash fell short. `DECLINED`: the maker declined. `TIMED_OUT`: the maker did not answer by `deadline`. `CANCELLED`: the quote or RFQ went away first.
|
|
6428
|
-
* @enum {unknown}
|
|
6429
|
-
*/
|
|
6430
|
-
readonly status: "PENDING_CONFIRM" | "ACCEPTED" | "FILLED" | "FAILED" | "DECLINED" | "TIMED_OUT" | "CANCELLED";
|
|
6431
|
-
/** @description When the maker's time to confirm ends, two seconds after the accept, as an RFC3339 UTC timestamp. */
|
|
6432
|
-
readonly deadline: components["schemas"]["$defs-Timestamp"];
|
|
6433
|
-
/** @description The on-chain operation that executes the trade; present once status is `ACCEPTED`, `FILLED` or `FAILED`. */
|
|
6434
|
-
readonly operation_id?: components["schemas"]["Bytes32"];
|
|
6435
|
-
/** @description For an acceptance with `funding`, once the maker confirmed: send any HyperCore to wallet transfer that funds it before this time, two seconds after the confirm, as an RFC3339 UTC timestamp. Send the transfer only after the accept answers `ACCEPTED`, never before it: an accept answered any other way trades nothing. Save the signed transfer before its first send and resend the same bytes while Hyperliquid has not answered, until `fund_by`. After it, discard an unsent transfer. A transfer sent in time has two more seconds to land; if the wallet still lacks the funding then, the operation ends EXPIRED_UNEXECUTED with `failure_reason` INSUFFICIENT_CASH, or SIMULATION_REVERTED at once if the funding authorization was already used or canceled. Judge `fund_by` by the bound `server_time` describes, never the local clock. Never sent to the maker. */
|
|
6436
|
-
readonly fund_by?: components["schemas"]["$defs-Timestamp"];
|
|
6437
|
-
};
|
|
6438
|
-
/** @description Positive signed 64-bit decimal integer, at most 9223372036854775807. */
|
|
6439
|
-
readonly PositiveInt64String: string;
|
|
6440
|
-
readonly IntentIdentityPair: {
|
|
6441
|
-
/** @description Automatic-RFQ intent (UUIDv7) the RFQ belongs to. */
|
|
6442
|
-
readonly intent_id: components["schemas"]["Uuid"];
|
|
6443
|
-
/** @description Generation of that intent, as a decimal string; a higher generation supersedes the intent's earlier RFQs. */
|
|
6444
|
-
readonly intent_generation: components["schemas"]["PositiveInt64String"];
|
|
6445
|
-
} | {
|
|
6446
|
-
readonly intent_id?: never;
|
|
6447
|
-
readonly intent_generation?: never;
|
|
6448
|
-
};
|
|
6508
|
+
/**
|
|
6509
|
+
* @description Why a `FAILED` acceptance funded from the wallet failed, when the venue can tell: the wallet's approval (`INSUFFICIENT_APPROVAL`) or USDC (`INSUFFICIENT_WALLET_USDC`) fell short.
|
|
6510
|
+
* @enum {unknown}
|
|
6511
|
+
*/
|
|
6512
|
+
readonly reason: "INSUFFICIENT_APPROVAL" | "INSUFFICIENT_WALLET_USDC";
|
|
6513
|
+
/**
|
|
6514
|
+
* @description `PENDING_CONFIRM`: waiting for the maker. `ACCEPTED`: the maker confirmed and the trade is queued as `operation_id`. `FILLED`: the trade committed on chain. `FAILED`: it reverted or expired unexecuted (see `reason`). `DECLINED`: the maker declined. `TIMED_OUT`: the maker did not answer in its two seconds. `CANCELLED`: the quote or RFQ went away first.
|
|
6515
|
+
* @enum {unknown}
|
|
6516
|
+
*/
|
|
6517
|
+
readonly status: "PENDING_CONFIRM" | "ACCEPTED" | "FILLED" | "FAILED" | "DECLINED" | "TIMED_OUT" | "CANCELLED";
|
|
6449
6518
|
/** @enum {string} */
|
|
6450
6519
|
readonly RfqTerminalReason: "REVERTED" | "EXPIRED_UNEXECUTED" | "INSUFFICIENT_CASH";
|
|
6451
6520
|
/** @enum {string} */
|
|
@@ -6539,7 +6608,7 @@ export type components = {
|
|
|
6539
6608
|
/** @description Outcome IDs of the question's markets in the current catalog. */
|
|
6540
6609
|
readonly outcome_ids: readonly components["schemas"]["UInt32String"][];
|
|
6541
6610
|
/** @description ACTIVE when any market is active, CLOSED when none is active and at least one is closed, UNSUPPORTED otherwise. */
|
|
6542
|
-
readonly
|
|
6611
|
+
readonly status: components["schemas"]["MarketState"];
|
|
6543
6612
|
/** @description Display category, or null when the question is not mapped to one. */
|
|
6544
6613
|
readonly category: components["schemas"]["Category"];
|
|
6545
6614
|
/** @description Display subcategory slug within the category; null when unmapped or not subdivided. */
|
|
@@ -6600,7 +6669,7 @@ export type components = {
|
|
|
6600
6669
|
/** @description Length in seconds of the settlement TWAP ending at the round's expiry; null when the network's template has no such field. */
|
|
6601
6670
|
readonly seconds: number | null;
|
|
6602
6671
|
};
|
|
6603
|
-
/** @description Hyperliquid guarantees at most one native recurring series per network,
|
|
6672
|
+
/** @description Hyperliquid guarantees at most one native recurring series per network, kind, underlying and period. A template stream is identified by its stream, so several can share an underlying and period. */
|
|
6604
6673
|
readonly RecurringSeries: {
|
|
6605
6674
|
/**
|
|
6606
6675
|
* @description Hyperliquid network the series runs on.
|
|
@@ -6608,7 +6677,7 @@ export type components = {
|
|
|
6608
6677
|
*/
|
|
6609
6678
|
readonly network: "HYPEREVM_TESTNET" | "HYPEREVM_MAINNET";
|
|
6610
6679
|
/** @description PRICE_BINARY for a single above-or-below round, PRICE_BUCKET for a three-bucket price range question. A template stream is always PRICE_BINARY. */
|
|
6611
|
-
readonly
|
|
6680
|
+
readonly kind: components["schemas"]["RecurringClass"];
|
|
6612
6681
|
/** @description Deployer instrument name, optionally prefixed with a provider namespace; the template's perp for a stream. */
|
|
6613
6682
|
readonly underlying: string;
|
|
6614
6683
|
/** @description Round length as a number followed by m (minutes), h (hours) or d (days), for example 1d. A stream's period is 5m, 15m or 1h. */
|
|
@@ -6697,140 +6766,6 @@ export type components = {
|
|
|
6697
6766
|
/** @description Latest change to the market's catalog record, native result or reference prices, RFC 3339 UTC. */
|
|
6698
6767
|
readonly updated_at: components["schemas"]["$defs-Timestamp"];
|
|
6699
6768
|
};
|
|
6700
|
-
readonly HistoryBar: {
|
|
6701
|
-
/** @description Inclusive UTC start of the one-minute bucket, RFC 3339; the clock is given by the response's bucket_time. */
|
|
6702
|
-
readonly minute: components["schemas"]["$defs-Timestamp"];
|
|
6703
|
-
/** @description First price in the bucket, at the response's scale. */
|
|
6704
|
-
readonly open: components["schemas"]["IntegerValue"];
|
|
6705
|
-
/** @description Highest price in the bucket, at the response's scale. */
|
|
6706
|
-
readonly high: components["schemas"]["IntegerValue"];
|
|
6707
|
-
/** @description Lowest price in the bucket, at the response's scale. */
|
|
6708
|
-
readonly low: components["schemas"]["IntegerValue"];
|
|
6709
|
-
/** @description Last price in the bucket, at the response's scale. */
|
|
6710
|
-
readonly close: components["schemas"]["IntegerValue"];
|
|
6711
|
-
/** @description Executed base size in the bucket, divided by the response's volume_scale for contracts; null for reference-price bars. */
|
|
6712
|
-
readonly volume: components["schemas"]["IntegerValue"] | null;
|
|
6713
|
-
/** @description Number of trades in the bucket; null for reference-price bars. */
|
|
6714
|
-
readonly trade_count: number | null;
|
|
6715
|
-
};
|
|
6716
|
-
/** @enum {string} */
|
|
6717
|
-
readonly Source: "HYPERLIQUID_FAST_ASSET_CTXS" | "HYPERLIQUID_ALL_MIDS" | "HYPERLIQUID_L2_BOOK" | "HYPERLIQUID_BBO" | "HYPERLIQUID_TRADES";
|
|
6718
|
-
readonly HistoryGap: {
|
|
6719
|
-
/** @description Hyperliquid outcome ID of the market. */
|
|
6720
|
-
readonly outcome_id: components["schemas"]["UInt32String"];
|
|
6721
|
-
/** @description Hyperliquid feed whose data is missing. */
|
|
6722
|
-
readonly source: components["schemas"]["Source"];
|
|
6723
|
-
/** @description Catalog generation in effect when the gap was recorded. */
|
|
6724
|
-
readonly catalog_generation: components["schemas"]["PositiveInt64"];
|
|
6725
|
-
/** @description Price feed generation that recorded the gap. */
|
|
6726
|
-
readonly feed_generation: components["schemas"]["PositiveInt64"];
|
|
6727
|
-
/** @description Inclusive start of the missing interval, RFC 3339 UTC, clipped to the requested window. */
|
|
6728
|
-
readonly from: components["schemas"]["$defs-Timestamp"];
|
|
6729
|
-
/** @description Exclusive end of the missing interval, RFC 3339 UTC, clipped to the requested window. */
|
|
6730
|
-
readonly to: components["schemas"]["$defs-Timestamp"];
|
|
6731
|
-
/**
|
|
6732
|
-
* @description Why data is missing: SOURCE_UNAVAILABLE when the feed was down, SPOOL_FULL when local buffering overflowed, NO_OBSERVATION, CORRUPT_SEGMENT or UPLOAD_FAILED for other recording losses.
|
|
6733
|
-
* @enum {string}
|
|
6734
|
-
*/
|
|
6735
|
-
readonly reason: "NO_OBSERVATION" | "SOURCE_UNAVAILABLE" | "SPOOL_FULL" | "CORRUPT_SEGMENT" | "UPLOAD_FAILED";
|
|
6736
|
-
};
|
|
6737
|
-
readonly MarketHistory: {
|
|
6738
|
-
/** @description Hyperliquid outcome ID of the market. */
|
|
6739
|
-
readonly outcome_id: components["schemas"]["UInt32String"];
|
|
6740
|
-
/** @description Market side every bar describes, YES or NO. */
|
|
6741
|
-
readonly side: components["schemas"]["Side"];
|
|
6742
|
-
/**
|
|
6743
|
-
* @description TRADE_OHLCV: bars are one-minute OHLCV of executed trade prices, with base-size volume. REFERENCE_PRICE_OHLC: bars are one-minute OHLC of indicative mid prices, falling back to the last trade, without volume. Minutes without observations have no bar and are never filled in.
|
|
6744
|
-
* @enum {string}
|
|
6745
|
-
*/
|
|
6746
|
-
readonly series_type: "TRADE_OHLCV" | "REFERENCE_PRICE_OHLC";
|
|
6747
|
-
/** @description Hyperliquid feed every bar in the response was built from. */
|
|
6748
|
-
readonly source: components["schemas"]["Source"];
|
|
6749
|
-
/** @description Price quality every bar in the response carries. */
|
|
6750
|
-
readonly quality: components["schemas"]["Quality"];
|
|
6751
|
-
/** @description Divisor for open, high, low and close of every bar and the anchor; null when there are neither. Currently 1000000000000000000 (18 decimals); a scale change starts a new page. */
|
|
6752
|
-
readonly scale: components["schemas"]["Scale"] | null;
|
|
6753
|
-
/** @description Divisor for volume of every bar and the anchor; null for reference-price history or when there are no bars. */
|
|
6754
|
-
readonly volume_scale: components["schemas"]["Scale"] | null;
|
|
6755
|
-
/** @description Authoritative window start. It repeats the request, or the rolling 24-hour default when from and to are both omitted. Reuse these bounds for later pages. */
|
|
6756
|
-
readonly from: components["schemas"]["$defs-Timestamp"];
|
|
6757
|
-
/** @description Authoritative exclusive window end. It repeats the request, or the request time when from and to are both omitted. Reuse these bounds for later pages. */
|
|
6758
|
-
readonly to: components["schemas"]["$defs-Timestamp"];
|
|
6759
|
-
/**
|
|
6760
|
-
* @description minute is the inclusive UTC bucket start on this clock; bucket end is exclusive one minute later. Only full closed buckets contained in [from,to) appear in bars.
|
|
6761
|
-
* @enum {string}
|
|
6762
|
-
*/
|
|
6763
|
-
readonly bucket_time: "TOTALIS_RECEIVED_AT" | "HYPERLIQUID_SOURCE_TIME";
|
|
6764
|
-
/** @description Exclusive bucket boundary, the earlier of to or server time rounded down to a minute. This is not a persistence or coverage watermark. Closed buckets can still be repaired. */
|
|
6765
|
-
readonly closed_before: components["schemas"]["$defs-Timestamp"];
|
|
6766
|
-
/** @description Latest retained earlier full bucket within the 90-day online window for the selected source and side, last received before from. Its close is an observed price, not proof that the value held through from. Null when there is none or its scale differs from the bars. */
|
|
6767
|
-
readonly anchor: components["schemas"]["HistoryBar"] | null;
|
|
6768
|
-
/** @description Closed one-minute bars in the window, ascending by minute. */
|
|
6769
|
-
readonly bars: readonly components["schemas"]["HistoryBar"][];
|
|
6770
|
-
/** @description Recorded data gaps overlapping the window; empty unless gaps were requested. */
|
|
6771
|
-
readonly gaps: readonly components["schemas"]["HistoryGap"][];
|
|
6772
|
-
/** @description Pass as cursor with the same from and to to read the next page; null when there are no more bars. */
|
|
6773
|
-
readonly next_cursor: components["schemas"]["NextCursor"];
|
|
6774
|
-
/** @description True when more bars follow in the window. */
|
|
6775
|
-
readonly has_more: boolean;
|
|
6776
|
-
} & ({
|
|
6777
|
-
/** @constant */
|
|
6778
|
-
readonly series_type?: "TRADE_OHLCV";
|
|
6779
|
-
readonly bars?: unknown;
|
|
6780
|
-
readonly gaps?: unknown;
|
|
6781
|
-
/** @description Divisor for volume; null only when there are no bars. */
|
|
6782
|
-
readonly volume_scale?: components["schemas"]["Scale"] | null;
|
|
6783
|
-
/**
|
|
6784
|
-
* @description Always HYPERLIQUID_TRADES for trade history.
|
|
6785
|
-
* @constant
|
|
6786
|
-
*/
|
|
6787
|
-
readonly source?: "HYPERLIQUID_TRADES";
|
|
6788
|
-
/**
|
|
6789
|
-
* @description Always TRADE for trade history.
|
|
6790
|
-
* @constant
|
|
6791
|
-
*/
|
|
6792
|
-
readonly quality?: "TRADE";
|
|
6793
|
-
} | ({
|
|
6794
|
-
/** @constant */
|
|
6795
|
-
readonly series_type?: "REFERENCE_PRICE_OHLC";
|
|
6796
|
-
readonly bars?: unknown;
|
|
6797
|
-
readonly gaps?: unknown;
|
|
6798
|
-
/** @description Always null; reference-price bars carry no volume. */
|
|
6799
|
-
readonly volume_scale?: null;
|
|
6800
|
-
} & ({
|
|
6801
|
-
/**
|
|
6802
|
-
* @description Reference feed; HYPERLIQUID_L2_BOOK in this branch.
|
|
6803
|
-
* @constant
|
|
6804
|
-
*/
|
|
6805
|
-
readonly source?: "HYPERLIQUID_L2_BOOK";
|
|
6806
|
-
/**
|
|
6807
|
-
* @description BOOK_MID for order book bars.
|
|
6808
|
-
* @constant
|
|
6809
|
-
*/
|
|
6810
|
-
readonly quality?: "BOOK_MID";
|
|
6811
|
-
} | {
|
|
6812
|
-
/**
|
|
6813
|
-
* @description Reference feed; HYPERLIQUID_BBO in this branch.
|
|
6814
|
-
* @constant
|
|
6815
|
-
*/
|
|
6816
|
-
readonly source?: "HYPERLIQUID_BBO";
|
|
6817
|
-
/**
|
|
6818
|
-
* @description BOOK_MID for order book bars.
|
|
6819
|
-
* @constant
|
|
6820
|
-
*/
|
|
6821
|
-
readonly quality?: "BOOK_MID";
|
|
6822
|
-
} | {
|
|
6823
|
-
/**
|
|
6824
|
-
* @description Reference feed; HYPERLIQUID_ALL_MIDS in this branch.
|
|
6825
|
-
* @constant
|
|
6826
|
-
*/
|
|
6827
|
-
readonly source?: "HYPERLIQUID_ALL_MIDS";
|
|
6828
|
-
/**
|
|
6829
|
-
* @description ALL_MIDS_FALLBACK for all-mids bars.
|
|
6830
|
-
* @constant
|
|
6831
|
-
*/
|
|
6832
|
-
readonly quality?: "ALL_MIDS_FALLBACK";
|
|
6833
|
-
})));
|
|
6834
6769
|
/** @description Inclusive UTC start of a one-minute bucket, in Unix seconds. */
|
|
6835
6770
|
readonly UnixMinute: number;
|
|
6836
6771
|
readonly ReferenceClose: {
|
|
@@ -6940,14 +6875,14 @@ export type components = {
|
|
|
6940
6875
|
* @description RECORDED: Totalis recorded the round; only it carries a definition and markets. NOT_RECORDED: an expiry on the series' cadence with no recorded round of the series, for a stream also one whose round qualified no period (several markets sharing an expiry included); it never claims Hyperliquid published none. CONFLICTED: a native round was observed at the expiry but is withheld because its recorded definition conflicts.
|
|
6941
6876
|
* @enum {string}
|
|
6942
6877
|
*/
|
|
6943
|
-
readonly
|
|
6944
|
-
/** @description As in RecurringRound; null unless
|
|
6878
|
+
readonly status: "RECORDED" | "NOT_RECORDED" | "CONFLICTED";
|
|
6879
|
+
/** @description As in RecurringRound; null unless status is RECORDED. */
|
|
6945
6880
|
readonly target_price: components["schemas"]["RecurringPrice"] | null;
|
|
6946
|
-
/** @description As in RecurringRound; null unless
|
|
6881
|
+
/** @description As in RecurringRound; null unless status is RECORDED. */
|
|
6947
6882
|
readonly price_thresholds: readonly components["schemas"]["RecurringPrice"][] | null;
|
|
6948
6883
|
/** @description Parent question of a recorded bucket round; null otherwise. */
|
|
6949
6884
|
readonly native_question_id: components["schemas"]["RealQuestionId"] | null;
|
|
6950
|
-
/** @description Markets of a RECORDED round with their results, in RecurringRound order; empty for any other
|
|
6885
|
+
/** @description Markets of a RECORDED round with their results, in RecurringRound order; empty for any other status. */
|
|
6951
6886
|
readonly markets: readonly components["schemas"]["PastRoundMarket"][];
|
|
6952
6887
|
};
|
|
6953
6888
|
readonly RecurringRoundHistory: {
|
|
@@ -7139,6 +7074,30 @@ export type components = {
|
|
|
7139
7074
|
/** @description The entries of Hyperliquid's info `outcomeTemplates` answer, unchanged, that these outcomes and their questions are instances of, from the current catalog generation's template list, ascending by `id`. A template Hyperliquid no longer lists is left out: name that outcome by `title`. */
|
|
7140
7075
|
readonly templates: readonly unknown[];
|
|
7141
7076
|
};
|
|
7077
|
+
readonly MarketResult: {
|
|
7078
|
+
/** @description Hyperliquid outcome ID. */
|
|
7079
|
+
readonly outcome_id: components["schemas"]["UInt32String"];
|
|
7080
|
+
/**
|
|
7081
|
+
* @description SETTLED: a YES fraction is known. NONNUMERIC: the lens recorded a recognized nonnumeric result and no numeric result is held. PENDING: listed in the current catalog, with no result. UNKNOWN: not listed now and no result is held.
|
|
7082
|
+
* @enum {string}
|
|
7083
|
+
*/
|
|
7084
|
+
readonly state: "SETTLED" | "NONNUMERIC" | "PENDING" | "UNKNOWN";
|
|
7085
|
+
/** @description Exact payout per YES share in [0, 1], or null unless SETTLED. NO pays one minus this value. A numeric lens result takes precedence over the stored Hyperliquid answer. */
|
|
7086
|
+
readonly yes_fraction: string | null;
|
|
7087
|
+
/** @description Settlement price exactly as written in a stored `price:<decimal>` detail for a recurring price round; otherwise null. */
|
|
7088
|
+
readonly settlement_price: string | null;
|
|
7089
|
+
/**
|
|
7090
|
+
* @description Where the YES fraction came from: the native lens, Totalis's Hyperliquid node, or Hyperliquid's public API. Null when no fraction is held.
|
|
7091
|
+
* @enum {unknown}
|
|
7092
|
+
*/
|
|
7093
|
+
readonly source: "LENS" | "HYPERLIQUID_NODE" | "HYPERLIQUID_API" | null;
|
|
7094
|
+
/** @description True when no further settlement evidence is expected for this item: SETTLED with the lens result and the stored Hyperliquid answer agreeing, or SETTLED or NONNUMERIC for an outcome whose catalog replaced it more than 15 days ago (or that no catalog listed): market-data records results only for outcomes that left within 14 days, and a day covers any write already started. Only a correction of the catalog's outcome identity can still change a final item. Read again an item that is not final; stop once it is. */
|
|
7095
|
+
readonly final: boolean;
|
|
7096
|
+
};
|
|
7097
|
+
readonly MarketResults: {
|
|
7098
|
+
/** @description One result per requested outcome in request order. */
|
|
7099
|
+
readonly items: readonly components["schemas"]["MarketResult"][];
|
|
7100
|
+
};
|
|
7142
7101
|
readonly OutcomeMetadata: {
|
|
7143
7102
|
/** @description Catalog generation built from this metadata. */
|
|
7144
7103
|
readonly catalog_generation: components["schemas"]["PositiveInt64"];
|
|
@@ -7253,22 +7212,34 @@ export type components = {
|
|
|
7253
7212
|
/** @description True once end can no longer move: the market's settlement recorded it. False while end is null, comes from the expiry alone, or belongs to a settlement recorded before Totalis kept its end (read from the catalog's expiry now, cached as a live line). */
|
|
7254
7213
|
readonly final: boolean;
|
|
7255
7214
|
};
|
|
7215
|
+
readonly LiveMark: {
|
|
7216
|
+
/** @description The perp, as Hyperliquid names it: BTC, or a builder-deployed perp with its dex, xyz:SP500. */
|
|
7217
|
+
readonly coin: string;
|
|
7218
|
+
/** @description The perp's mark from Totalis's newest read of its own node, as the node gave it; null when that read did not answer it or Totalis has had no read for 3 seconds (the market stream's unavailable_after_ms): unknown, never an earlier mark. */
|
|
7219
|
+
readonly px: string | null;
|
|
7220
|
+
/** @description Node time at the start of the read that proved px, null exactly when px is: the mark held at some node instant of that read, which starts here and usually ends milliseconds later. The same instant as that read's from on the market stream's mark frame. Judge its age from here, never from when the answer arrived. */
|
|
7221
|
+
readonly observed_at: components["schemas"]["$defs-Timestamp"] | null;
|
|
7222
|
+
};
|
|
7223
|
+
readonly LiveMarks: {
|
|
7224
|
+
/** @description Every perp a listed price market charts, by coin. A perp not listed is not read at all. Empty before the first read. */
|
|
7225
|
+
readonly marks: readonly components["schemas"]["LiveMark"][];
|
|
7226
|
+
};
|
|
7256
7227
|
readonly BalanceComponent: {
|
|
7257
7228
|
/**
|
|
7258
7229
|
* @description WALLET_USDC: embedded wallet USDC on HyperEVM; VAULT_FREE: unreserved cash held for the account in the Totalis vault.
|
|
7259
7230
|
* @enum {unknown}
|
|
7260
7231
|
*/
|
|
7261
7232
|
readonly kind: "WALLET_USDC" | "VAULT_FREE";
|
|
7262
|
-
/** @description Component amount in atomic USDC (6 decimals); null when the component could not be read (
|
|
7233
|
+
/** @description Component amount in atomic USDC (6 decimals); null when the component could not be read (freshness UNKNOWN). */
|
|
7263
7234
|
readonly amount: components["schemas"]["$defs-Amount"] | null;
|
|
7264
7235
|
/**
|
|
7265
7236
|
* @description CURRENT when the chain read that gives wallet and vault at one block answered; UNKNOWN when it did not. STALE is no longer returned.
|
|
7266
7237
|
* @enum {unknown}
|
|
7267
7238
|
*/
|
|
7268
|
-
readonly
|
|
7239
|
+
readonly freshness: "CURRENT" | "UNKNOWN" | "STALE";
|
|
7269
7240
|
};
|
|
7270
7241
|
/**
|
|
7271
|
-
* @description Why an operation ended EXPIRED_UNEXECUTED; nothing it would have done happened. INSUFFICIENT_CASH: an ACCEPT whose taker's money (free vault Cash, or the wallet USDC its
|
|
7242
|
+
* @description Why an operation ended EXPIRED_UNEXECUTED; nothing it would have done happened. INSUFFICIENT_CASH: an ACCEPT whose taker's money (free vault Cash, or the wallet USDC its approval draws) did not cover the stake when it was to execute; one drawing the wallet waits at least six seconds after the accept arrived for a HyperCore transfer to land; the RFQ fails with the same `reason`. DEADLINE_BEFORE_CLAIM: the venue reached it too late, with too little of its signed deadline left to sign and send it. AUTHORIZATION_TOO_CLOSE: when the venue took it, the chain's clock left too little of its signed deadline to send it. SIGNER_QUOTE_LIFE: its signed deadline could not cover the wait for its place in the sender's queue. SIMULATION_REVERTED: simulated before sending, the vault would have rejected it, for a reason other than INSUFFICIENT_CASH. QUARANTINE_EXPIRED: it was held for review after the signer refused it or its retries ran out, and its signed deadline passed meanwhile. ATTESTATION_EXPIRED: a maker's self-funded attestation expired before its signed transaction arrived. For an ACCEPT every reason but INSUFFICIENT_CASH fails the RFQ as EXPIRED_UNEXECUTED.
|
|
7272
7243
|
* @enum {string}
|
|
7273
7244
|
*/
|
|
7274
7245
|
readonly OperationFailureReason: "INSUFFICIENT_CASH" | "DEADLINE_BEFORE_CLAIM" | "AUTHORIZATION_TOO_CLOSE" | "SIGNER_QUOTE_LIFE" | "SIMULATION_REVERTED" | "QUARANTINE_EXPIRED" | "ATTESTATION_EXPIRED";
|
|
@@ -7283,8 +7254,8 @@ export type components = {
|
|
|
7283
7254
|
readonly status: components["schemas"]["OperationState"];
|
|
7284
7255
|
/** @description HyperEVM hash of the transaction carrying the operation; null before it is broadcast. */
|
|
7285
7256
|
readonly transaction_hash: components["schemas"]["Bytes32"] | null;
|
|
7286
|
-
/** @description Why the operation ended EXPIRED_UNEXECUTED (OperationFailureReason). Absent on any other
|
|
7287
|
-
readonly
|
|
7257
|
+
/** @description Why the operation ended EXPIRED_UNEXECUTED (OperationFailureReason). Absent on any other status, including REVERTED, and on an operation that expired before reasons were recorded. */
|
|
7258
|
+
readonly reason?: components["schemas"]["OperationFailureReason"];
|
|
7288
7259
|
/** @description RFC 3339 UTC time the operation was admitted. */
|
|
7289
7260
|
readonly created_at: components["schemas"]["$defs-Timestamp"];
|
|
7290
7261
|
/** @description RFC 3339 UTC time the operation last changed. */
|
|
@@ -7301,19 +7272,19 @@ export type components = {
|
|
|
7301
7272
|
* @description CURRENT when that vault's projection is current; STALE when it lags, so the amounts may be behind and never authorize a claim.
|
|
7302
7273
|
* @enum {unknown}
|
|
7303
7274
|
*/
|
|
7304
|
-
readonly
|
|
7275
|
+
readonly freshness: "CURRENT" | "STALE";
|
|
7305
7276
|
/** @description The account's claim from that vault still in flight, to resume after a reload; follow it with Get operation. Null when none is. */
|
|
7306
7277
|
readonly claim: components["schemas"]["Operation"] | null;
|
|
7307
7278
|
};
|
|
7308
7279
|
/** @description The account's spendable Totalis balance in atomic USDC (6 decimals, "1000000" = 1 USDC): embedded wallet USDC plus free vault cash. HyperCore balances are read from Hyperliquid directly or through GET /v1/hypercore/portfolio. */
|
|
7309
7280
|
readonly Balance: {
|
|
7310
|
-
/** @description Spendable total in atomic USDC; null unless
|
|
7281
|
+
/** @description Spendable total in atomic USDC; null unless freshness is CURRENT. It is wallet USDC plus free vault cash minus the withdrawals and stake fundings in pending.wallet_reserved, floored at zero. A wallet deposit that has not committed stays in it. */
|
|
7311
7282
|
readonly amount: components["schemas"]["$defs-Amount"] | null;
|
|
7312
7283
|
/**
|
|
7313
|
-
* @description The components'
|
|
7284
|
+
* @description The components' freshness: both come from one chain read, so both are CURRENT or both UNKNOWN. STALE is no longer returned.
|
|
7314
7285
|
* @enum {unknown}
|
|
7315
7286
|
*/
|
|
7316
|
-
readonly
|
|
7287
|
+
readonly freshness: "CURRENT" | "UNKNOWN" | "STALE";
|
|
7317
7288
|
/** @description The two parts of the balance: WALLET_USDC then VAULT_FREE. */
|
|
7318
7289
|
readonly components: readonly components["schemas"]["BalanceComponent"][];
|
|
7319
7290
|
/** @description In-flight amounts behind the balance, in atomic USDC (6 decimals). */
|
|
@@ -7326,12 +7297,12 @@ export type components = {
|
|
|
7326
7297
|
readonly vault_withdrawals: components["schemas"]["$defs-Amount"];
|
|
7327
7298
|
/** @description Route 2 exits leaving the vault or awaiting their HyperCore credit, each counted once. */
|
|
7328
7299
|
readonly core_exits: components["schemas"]["$defs-Amount"];
|
|
7329
|
-
/** @description True when one of the account's operations
|
|
7300
|
+
/** @description True when one of the account's operations has status UNKNOWN, so balances may still change when it resolves. */
|
|
7330
7301
|
readonly has_unknown_operations: boolean;
|
|
7331
7302
|
};
|
|
7332
|
-
/** @description The chain projection the pending operations come from. Wallet and vault amounts come from a latest read at or after this block, independent of
|
|
7303
|
+
/** @description The chain projection the pending operations come from. Wallet and vault amounts come from a latest read at or after this block, independent of the checkpoint's freshness. */
|
|
7333
7304
|
readonly checkpoint: components["schemas"]["Checkpoint"];
|
|
7334
|
-
/** @description The account's cash in vaults running off, one item per vault holding any or with a claim in flight, outside amount: it is owned but never spendable here. A Totalis embedded wallet's moves to its HyperCore spot balance automatically. Any other wallet claims it to its own wallet, part of Cash, with one Exit signed for that vault and sent with Create run-off claim; a sponsored claim must move at least 1 USDC (1000000), so offer it only when
|
|
7305
|
+
/** @description The account's cash in vaults running off, one item per vault holding any or with a claim in flight, outside amount: it is owned but never spendable here. A Totalis embedded wallet's moves to its HyperCore spot balance automatically. Any other wallet claims it to its own wallet, part of Cash, with one Exit signed for that vault and sent with Create run-off claim; a sponsored claim must move at least 1 USDC (1000000), so offer it only when freshness is CURRENT, vault_free is at least that and claim is null. Smaller amounts stay in the vault. Empty when no vault is running off. */
|
|
7335
7306
|
readonly run_off: readonly components["schemas"]["RunOffCash"][];
|
|
7336
7307
|
};
|
|
7337
7308
|
readonly OperationList: {
|
|
@@ -7393,7 +7364,7 @@ export type components = {
|
|
|
7393
7364
|
* @description CURRENT when the projection is caught up with the chain; STALE when it lags, so a recent request, execute or cancel may not show yet.
|
|
7394
7365
|
* @enum {unknown}
|
|
7395
7366
|
*/
|
|
7396
|
-
readonly
|
|
7367
|
+
readonly freshness: "CURRENT" | "STALE";
|
|
7397
7368
|
};
|
|
7398
7369
|
readonly CollateralReductionAccepted: {
|
|
7399
7370
|
/** @description ID of the collateral-reduction job. */
|
|
@@ -7457,7 +7428,7 @@ export type components = {
|
|
|
7457
7428
|
/** @description Exact zero-value call for the maker to sign with its own gas account and submit through the self-funded transaction endpoint; null unless the operation is DURABLE and the certificate unexpired. */
|
|
7458
7429
|
readonly transaction: components["schemas"]["TransactionCall"] | null;
|
|
7459
7430
|
/** @description Machine-readable reason the job failed, e.g. COOLDOWN_CHANGED; null otherwise. */
|
|
7460
|
-
readonly
|
|
7431
|
+
readonly reason: string | null;
|
|
7461
7432
|
/** @description Earliest RFC 3339 UTC time the maker's next reduction can land on chain; the job stays QUEUED until then. */
|
|
7462
7433
|
readonly next_eligible_at: components["schemas"]["$defs-Timestamp"];
|
|
7463
7434
|
/** @description RFC 3339 UTC time the job was created. */
|
|
@@ -7465,38 +7436,23 @@ export type components = {
|
|
|
7465
7436
|
/** @description RFC 3339 UTC time the job last changed. */
|
|
7466
7437
|
readonly updated_at: components["schemas"]["$defs-Timestamp"];
|
|
7467
7438
|
};
|
|
7468
|
-
|
|
7439
|
+
/** @description The account wallet's signed EIP-712 vault Exit that moves free vault cash to the account's HyperCore spot balance through the CoreExit router; Totalis relays it and pays the gas. The credential names the account: the Exit's account is the credential's account wallet, the vault account the cash leaves and the HyperCore account it reaches, and its to is deployment.router_address, so the body carries only the signed terms and the purpose. */
|
|
7440
|
+
readonly CoreExitCommand: {
|
|
7441
|
+
/** @description Atomic USDC (6 decimals) to move; at most the account's free vault cash. An account whose wallet is not a Totalis embedded wallet moves at least 1 USDC (1000000). */
|
|
7442
|
+
readonly amount: components["schemas"]["$defs-Amount"];
|
|
7443
|
+
/** @description Exit expiry in Unix seconds, in the future and at most deployment.maximum_life_seconds ahead. */
|
|
7444
|
+
readonly expiry: components["schemas"]["UInt64String"];
|
|
7445
|
+
/** @description Caller-chosen uint256 as a decimal string that makes the signed Exit unique. */
|
|
7446
|
+
readonly salt: components["schemas"]["Uint"];
|
|
7447
|
+
/** @description Signature by the account wallet over the EIP-712 Exit(account,to,amount,expiry,salt) digest, with account the credential's account wallet and to deployment.router_address; ECDSA or ERC-1271 contract signature bytes. */
|
|
7448
|
+
readonly signature: components["schemas"]["ContractSignature"];
|
|
7469
7449
|
/**
|
|
7470
|
-
* @description
|
|
7471
|
-
* @
|
|
7450
|
+
* @description Why the cash moves: ORDER before a HyperCore order, WITHDRAW before a HyperCore withdrawal, SWEEP for a background move. A label only, except that SWEEP never accepts the activation fee.
|
|
7451
|
+
* @enum {unknown}
|
|
7472
7452
|
*/
|
|
7473
|
-
readonly
|
|
7474
|
-
/** @description
|
|
7475
|
-
readonly
|
|
7476
|
-
/** @description RFC 3339 UTC time the client sent the request, ending in Z. */
|
|
7477
|
-
readonly sent_at: components["schemas"]["$defs-Timestamp"];
|
|
7478
|
-
/** @description The owner-signed EIP-712 vault Exit that moves free vault cash to the account's HyperCore spot balance through the CoreExit router; Totalis relays it and pays the gas. */
|
|
7479
|
-
readonly command: {
|
|
7480
|
-
/** @description The account wallet, lowercase: the vault account the cash leaves and the HyperCore account it reaches. */
|
|
7481
|
-
readonly account: components["schemas"]["LowercaseNonZeroAddress"];
|
|
7482
|
-
/** @description Must equal deployment.router_address. */
|
|
7483
|
-
readonly to: components["schemas"]["LowercaseNonZeroAddress"];
|
|
7484
|
-
/** @description Atomic USDC (6 decimals) to move; at most the account's free vault cash. An account whose wallet is not a Totalis embedded wallet moves at least 1 USDC (1000000). */
|
|
7485
|
-
readonly amount: components["schemas"]["$defs-Amount"];
|
|
7486
|
-
/** @description Exit expiry in Unix seconds, in the future and at most deployment.maximum_life_seconds ahead. */
|
|
7487
|
-
readonly expiry: components["schemas"]["UInt64String"];
|
|
7488
|
-
/** @description Caller-chosen uint256 as a decimal string that makes the signed Exit unique. */
|
|
7489
|
-
readonly salt: components["schemas"]["Uint"];
|
|
7490
|
-
/** @description Signature by the account wallet over the EIP-712 Exit(account,to,amount,expiry,salt) digest; ECDSA or ERC-1271 contract signature bytes. */
|
|
7491
|
-
readonly signature: components["schemas"]["ContractSignature"];
|
|
7492
|
-
/**
|
|
7493
|
-
* @description Why the cash moves: ORDER before a HyperCore order, WITHDRAW before a HyperCore withdrawal, SWEEP for a background move. A label only, except that SWEEP never accepts the activation fee.
|
|
7494
|
-
* @enum {unknown}
|
|
7495
|
-
*/
|
|
7496
|
-
readonly purpose: "ORDER" | "WITHDRAW" | "SWEEP";
|
|
7497
|
-
/** @description Omitted means false. The user accepted that this exit creates their HyperCore account and that Hyperliquid takes a one-time 1 USDC activation fee from it. Required when the account does not exist yet; ignored when it does. Never accepted for SWEEP, and the exit must then move at least 2 USDC (2000000). */
|
|
7498
|
-
readonly activation_fee_accepted?: boolean;
|
|
7499
|
-
};
|
|
7453
|
+
readonly purpose: "ORDER" | "WITHDRAW" | "SWEEP";
|
|
7454
|
+
/** @description Omitted means false. The user accepted that this exit creates their HyperCore account and that Hyperliquid takes a one-time 1 USDC activation fee from it. Required when the account does not exist yet; ignored when it does. Never accepted for SWEEP, and the exit must then move at least 2 USDC (2000000). */
|
|
7455
|
+
readonly activation_fee_accepted?: boolean;
|
|
7500
7456
|
};
|
|
7501
7457
|
/**
|
|
7502
7458
|
* @description ATTEMPT_FAILED is not terminal: the signed Exit can still execute until expiry, and a consumed digest is completed by a recovery relay. SENT is final on HyperEVM and waits for the Core credit without a timeout. RECOVERED means the account's signed router recover() returned the cash to an EVM recipient.
|
|
@@ -7506,44 +7462,14 @@ export type components = {
|
|
|
7506
7462
|
readonly CoreExit: {
|
|
7507
7463
|
/** @description The exit ID: the Idempotency-Key it was created with. */
|
|
7508
7464
|
readonly exit_id: components["schemas"]["Uuid"];
|
|
7509
|
-
/** @description The vault the cash leaves: the active one, or one running off. */
|
|
7510
|
-
readonly vault_address: components["schemas"]["LowercaseNonZeroAddress"];
|
|
7511
7465
|
/** @description Where the exit is; see the state values. */
|
|
7512
7466
|
readonly status: components["schemas"]["CoreExitState"];
|
|
7513
7467
|
/** @description The purpose the exit was sent with; null for an ABANDONED tombstone. */
|
|
7514
7468
|
readonly purpose: ("ORDER" | "WITHDRAW" | "SWEEP") | null;
|
|
7515
|
-
/** @description The signed Exit's account wallet; null for an ABANDONED tombstone. */
|
|
7516
|
-
readonly account: components["schemas"]["LowercaseNonZeroAddress"] | null;
|
|
7517
7469
|
/** @description Atomic USDC (6 decimals) the Exit moves; null for an ABANDONED tombstone. */
|
|
7518
7470
|
readonly amount: components["schemas"]["$defs-Amount"] | null;
|
|
7519
|
-
/** @description The CoreExit router the Exit names as to; null for an ABANDONED tombstone. */
|
|
7520
|
-
readonly router_address: components["schemas"]["LowercaseNonZeroAddress"] | null;
|
|
7521
|
-
/** @description The signed Exit's expiry in Unix seconds; null for an ABANDONED tombstone. */
|
|
7522
|
-
readonly expiry: components["schemas"]["UInt64String"] | null;
|
|
7523
|
-
/** @description EIP-712 digest of the signed Exit, which the vault marks consumed when it runs; null for an ABANDONED tombstone. */
|
|
7524
|
-
readonly exit_digest: components["schemas"]["Bytes32"] | null;
|
|
7525
7471
|
/** @description True only for an exit admitted to create a missing HyperCore account. Its Core credit is the full amount less a 1 USDC activation fee, or the full amount if the account was created first by someone else. */
|
|
7526
7472
|
readonly activation_fee_accepted: boolean;
|
|
7527
|
-
/** @description The Totalis relay of the signed Exit, or null when there is none, as for a tombstone. */
|
|
7528
|
-
readonly operation: {
|
|
7529
|
-
/** @description ID of the Totalis relay operation that submits the Exit. */
|
|
7530
|
-
readonly operation_id: components["schemas"]["Bytes32"];
|
|
7531
|
-
/** @description The relay operation's status. */
|
|
7532
|
-
readonly status: components["schemas"]["OperationState"];
|
|
7533
|
-
/** @description The relay's latest HyperEVM transaction, or null before one is broadcast. */
|
|
7534
|
-
readonly transaction_hash: components["schemas"]["Bytes32"] | null;
|
|
7535
|
-
} | null;
|
|
7536
|
-
/** @description The qualified HyperEVM receipt. For RECOVERED, sent_log_index is the CoreExitRecovered log and deposit_log_index is null. */
|
|
7537
|
-
readonly sent: {
|
|
7538
|
-
/** @description HyperEVM transaction that ran the Exit. */
|
|
7539
|
-
readonly transaction_hash: components["schemas"]["Bytes32"];
|
|
7540
|
-
/** @description HyperEVM block of that transaction, as a decimal string. */
|
|
7541
|
-
readonly block_number: components["schemas"]["UInt64String"];
|
|
7542
|
-
/** @description Log index of the router's CoreExitSent event in the block. */
|
|
7543
|
-
readonly sent_log_index: number;
|
|
7544
|
-
/** @description Log index of the USDC transfer to the HyperCore system address that credits the account; null for RECOVERED. */
|
|
7545
|
-
readonly deposit_log_index: number | null;
|
|
7546
|
-
} | null;
|
|
7547
7473
|
/** @description The HyperCore spot credit the exit produced, or null until it is linked (status CREDITED). */
|
|
7548
7474
|
readonly credit: {
|
|
7549
7475
|
/** @description Identifier of the HyperCore ledger credit linked to this exit. */
|
|
@@ -7569,7 +7495,7 @@ export type components = {
|
|
|
7569
7495
|
readonly chain_id: "998" | "999";
|
|
7570
7496
|
/** @description The vault that verifies the Exit; its EIP-712 verifying contract. */
|
|
7571
7497
|
readonly vault_address: components["schemas"]["Address"];
|
|
7572
|
-
/** @description The
|
|
7498
|
+
/** @description The Exit's to: sign the Exit to this address. The body does not send it. */
|
|
7573
7499
|
readonly router_address: components["schemas"]["Address"];
|
|
7574
7500
|
/** @description The furthest ahead, in seconds from now, an Exit expiry may be. */
|
|
7575
7501
|
readonly maximum_life_seconds: number;
|
|
@@ -7580,33 +7506,18 @@ export type components = {
|
|
|
7580
7506
|
/** @description The account's unresolved exits from the active vault, to resume after a reload. */
|
|
7581
7507
|
readonly exits: readonly components["schemas"]["CoreExit"][];
|
|
7582
7508
|
};
|
|
7583
|
-
|
|
7584
|
-
|
|
7585
|
-
|
|
7586
|
-
|
|
7587
|
-
|
|
7588
|
-
readonly
|
|
7589
|
-
/** @description
|
|
7590
|
-
readonly
|
|
7591
|
-
/** @description
|
|
7592
|
-
readonly
|
|
7593
|
-
/** @description
|
|
7594
|
-
readonly
|
|
7595
|
-
/** @description Vault account the deposit credits; the caller's account wallet, equal to `from`. */
|
|
7596
|
-
readonly account: components["schemas"]["LowercaseNonZeroAddress"];
|
|
7597
|
-
/** @description USDC payer that signed the authorization; must be the caller's account wallet. */
|
|
7598
|
-
readonly from: components["schemas"]["LowercaseNonZeroAddress"];
|
|
7599
|
-
/** @description Deposit amount in atomic USDC (6 decimals); at least "100000" (0.10 USDC) from a Totalis embedded wallet and "1000000" (1 USDC) from any other, and no more than the wallet's USDC not already committed to other pending work. */
|
|
7600
|
-
readonly value: components["schemas"]["$defs-Amount"];
|
|
7601
|
-
/** @description EIP-3009 validAfter in Unix seconds; must not be in the future. */
|
|
7602
|
-
readonly valid_after: components["schemas"]["UInt64String"];
|
|
7603
|
-
/** @description EIP-3009 validBefore in Unix seconds; must be at least 5 seconds ahead and at most 900 seconds after `valid_after`. */
|
|
7604
|
-
readonly valid_before: components["schemas"]["UInt64String"];
|
|
7605
|
-
/** @description Random 32 bytes; the EIP-3009 nonce is `keccak256(abi.encode(vault, chainId, from, salt, account))`. */
|
|
7606
|
-
readonly salt: components["schemas"]["Bytes32"];
|
|
7607
|
-
/** @description 65-byte ECDSA signature by `from` over the USDC ReceiveWithAuthorization message, with the vault as payee. */
|
|
7608
|
-
readonly authorization_signature: components["schemas"]["Signature65"];
|
|
7609
|
-
};
|
|
7509
|
+
/** @description The account wallet's signed EIP-3009 ReceiveWithAuthorization moving USDC into the vault; Totalis relays it and pays gas. The credential names the account: its account wallet both pays and is credited, so the body carries only the signed terms. */
|
|
7510
|
+
readonly DepositCommand: {
|
|
7511
|
+
/** @description Deposit amount in atomic USDC (6 decimals); at least "100000" (0.10 USDC) from a Privy login wallet, embedded or external, and "1000000" (1 USDC) from any other, and no more than the wallet's USDC not already committed to other pending work. */
|
|
7512
|
+
readonly amount: components["schemas"]["$defs-Amount"];
|
|
7513
|
+
/** @description EIP-3009 validAfter in Unix seconds; must not be in the future. */
|
|
7514
|
+
readonly valid_after: components["schemas"]["UInt64String"];
|
|
7515
|
+
/** @description EIP-3009 validBefore in Unix seconds; must be at least 5 seconds ahead and at most 900 seconds after `valid_after`. */
|
|
7516
|
+
readonly valid_before: components["schemas"]["UInt64String"];
|
|
7517
|
+
/** @description Random 32 bytes; the EIP-3009 nonce is `keccak256(abi.encode(vault, chainId, wallet, salt, wallet))`, where wallet is the caller's account wallet. */
|
|
7518
|
+
readonly salt: components["schemas"]["Bytes32"];
|
|
7519
|
+
/** @description 65-byte ECDSA signature by the account wallet over the USDC ReceiveWithAuthorization message, with the vault as payee. */
|
|
7520
|
+
readonly authorization_signature: components["schemas"]["Signature65"];
|
|
7610
7521
|
};
|
|
7611
7522
|
readonly DepositAccepted: {
|
|
7612
7523
|
/** @description ID of the queued deposit operation; follow it with GET /v1/me/operations/{operation_id}. */
|
|
@@ -7615,8 +7526,8 @@ export type components = {
|
|
|
7615
7526
|
* @description Always DURABLE: the deposit is recorded and queued, not yet executed on chain.
|
|
7616
7527
|
* @constant
|
|
7617
7528
|
*/
|
|
7618
|
-
readonly
|
|
7619
|
-
/** @description Deposit amount in atomic USDC (6 decimals), the authorization value
|
|
7529
|
+
readonly status: "DURABLE";
|
|
7530
|
+
/** @description Deposit amount in atomic USDC (6 decimals), the signed authorization `value`. */
|
|
7620
7531
|
readonly amount: components["schemas"]["$defs-Amount"];
|
|
7621
7532
|
};
|
|
7622
7533
|
/** @description Owner-signed EIP-712 Exit that moves the withdrawal's shortfall from the vault to the embedded wallet; Totalis relays it and pays gas. The signed Exit's `account` and `to` are both the caller's embedded wallet, which the venue fills in. */
|
|
@@ -7673,33 +7584,18 @@ export type components = {
|
|
|
7673
7584
|
/** @description When the withdrawal last changed, RFC3339 UTC. */
|
|
7674
7585
|
readonly updated_at: components["schemas"]["$defs-Timestamp"];
|
|
7675
7586
|
};
|
|
7676
|
-
|
|
7677
|
-
|
|
7678
|
-
|
|
7679
|
-
|
|
7680
|
-
|
|
7681
|
-
readonly
|
|
7682
|
-
/** @description
|
|
7683
|
-
readonly
|
|
7684
|
-
/** @description
|
|
7685
|
-
readonly
|
|
7686
|
-
/** @description
|
|
7687
|
-
readonly
|
|
7688
|
-
/** @description The vault running off, from run_off in Get balances: the Exit's EIP-712 verifying contract. Any other address is INVALID_REQUEST. */
|
|
7689
|
-
readonly vault_address: components["schemas"]["LowercaseNonZeroAddress"];
|
|
7690
|
-
/** @description The account wallet, lowercase. */
|
|
7691
|
-
readonly account: components["schemas"]["LowercaseNonZeroAddress"];
|
|
7692
|
-
/** @description Must equal account: the cash lands in the account's own wallet. */
|
|
7693
|
-
readonly to: components["schemas"]["LowercaseNonZeroAddress"];
|
|
7694
|
-
/** @description Atomic USDC (6 decimals) to move; at most vault_free. An account whose wallet is not a Totalis embedded wallet moves at least 1 USDC (1000000). */
|
|
7695
|
-
readonly amount: components["schemas"]["$defs-Amount"];
|
|
7696
|
-
/** @description Exit expiry in Unix seconds; at least 5 seconds ahead and at most 3600 seconds ahead, less a 5-second clock-skew margin. */
|
|
7697
|
-
readonly expiry: components["schemas"]["UInt64String"];
|
|
7698
|
-
/** @description Caller-chosen uint256 as a decimal string that makes the signed Exit unique. */
|
|
7699
|
-
readonly salt: components["schemas"]["Uint"];
|
|
7700
|
-
/** @description Signature by the account wallet over the EIP-712 Exit(account,to,amount,expiry,salt) digest for that vault's domain; ECDSA or ERC-1271 contract signature bytes. */
|
|
7701
|
-
readonly signature: components["schemas"]["ContractSignature"];
|
|
7702
|
-
};
|
|
7587
|
+
/** @description The account wallet's signed EIP-712 Exit of the account's cash in a vault running off, to the account's own wallet; Totalis relays it and pays the gas. The credential names the account: the Exit's account and to are both the credential's account wallet, so the body carries only the vault and the signed terms. */
|
|
7588
|
+
readonly RunOffClaimCommand: {
|
|
7589
|
+
/** @description The vault running off, from run_off in Get balances: the Exit's EIP-712 verifying contract. Any other address is INVALID_REQUEST. */
|
|
7590
|
+
readonly vault_address: components["schemas"]["LowercaseNonZeroAddress"];
|
|
7591
|
+
/** @description Atomic USDC (6 decimals) to move; at most vault_free. An account whose wallet is not a Totalis embedded wallet moves at least 1 USDC (1000000). */
|
|
7592
|
+
readonly amount: components["schemas"]["$defs-Amount"];
|
|
7593
|
+
/** @description Exit expiry in Unix seconds; at least 5 seconds ahead and at most 3600 seconds ahead, less a 5-second clock-skew margin. */
|
|
7594
|
+
readonly expiry: components["schemas"]["UInt64String"];
|
|
7595
|
+
/** @description Caller-chosen uint256 as a decimal string that makes the signed Exit unique. */
|
|
7596
|
+
readonly salt: components["schemas"]["Uint"];
|
|
7597
|
+
/** @description Signature by the account wallet over the EIP-712 Exit(account,to,amount,expiry,salt) digest for that vault's domain, with account and to both the credential's account wallet; ECDSA or ERC-1271 contract signature bytes. */
|
|
7598
|
+
readonly signature: components["schemas"]["ContractSignature"];
|
|
7703
7599
|
};
|
|
7704
7600
|
readonly RunOffClaim: {
|
|
7705
7601
|
/** @description The vault running off the cash leaves. */
|
|
@@ -7801,7 +7697,7 @@ export type components = {
|
|
|
7801
7697
|
} & (unknown & unknown & unknown & unknown);
|
|
7802
7698
|
/** @description Every quote the maker published in a period, not only live ones, with the period's fill rate. */
|
|
7803
7699
|
readonly QuoteHistory: {
|
|
7804
|
-
/** @description Freshness of this read. Quotes are venue rows read now; FILLED and FAILED follow the vault projection, so as_of is its checkpoint and
|
|
7700
|
+
/** @description Freshness of this read. Quotes are venue rows read now; FILLED and FAILED follow the vault projection, so as_of is its checkpoint and freshness is STALE while it lags. */
|
|
7805
7701
|
readonly context: components["schemas"]["ReadContext"];
|
|
7806
7702
|
/**
|
|
7807
7703
|
* Format: date-time
|
|
@@ -7822,26 +7718,26 @@ export type components = {
|
|
|
7822
7718
|
/** @description True exactly when next_cursor is non-null. A status-filtered page reads at most 1,000 quotes, so it may hold fewer items than limit, even none, while has_more is true. */
|
|
7823
7719
|
readonly has_more: boolean;
|
|
7824
7720
|
};
|
|
7825
|
-
/** @description The maker's exposure on one outcome. A multi-leg
|
|
7721
|
+
/** @description The maker's exposure on one outcome. A multi-leg position counts under every outcome it touches, so outcome amounts do not add up to the book's. */
|
|
7826
7722
|
readonly OutcomeExposure: {
|
|
7827
7723
|
/** @description HIP-4 outcome ID. */
|
|
7828
7724
|
readonly outcome_id: components["schemas"]["UInt32String"];
|
|
7829
|
-
/** @description Open
|
|
7830
|
-
readonly
|
|
7831
|
-
/** @description Sum of the worst-case maker cost of open
|
|
7725
|
+
/** @description Open positions with an unresolved leg on this outcome. */
|
|
7726
|
+
readonly open_position_count: string;
|
|
7727
|
+
/** @description Sum of the worst-case maker cost of open positions whose unresolved leg on this outcome is YES. */
|
|
7832
7728
|
readonly yes_exposure: components["schemas"]["Amount"];
|
|
7833
|
-
/** @description The same for
|
|
7729
|
+
/** @description The same for positions whose leg on this outcome is NO. */
|
|
7834
7730
|
readonly no_exposure: components["schemas"]["Amount"];
|
|
7835
7731
|
/** @description yes_exposure + no_exposure: the outcome's exposure with no offsetting. */
|
|
7836
7732
|
readonly gross_exposure: components["schemas"]["Amount"];
|
|
7837
7733
|
/** @description yes_exposure - no_exposure: positive when the maker is exposed to YES. */
|
|
7838
7734
|
readonly net_exposure: components["schemas"]["SignedAmount"];
|
|
7839
|
-
/** @description max(yes_exposure, no_exposure): the most the outcome's
|
|
7735
|
+
/** @description max(yes_exposure, no_exposure): the most the outcome's positions can cost the maker, whatever its result, since a result of v pays at most v x YES + (1 - v) x NO. */
|
|
7840
7736
|
readonly worst_case: components["schemas"]["Amount"];
|
|
7841
7737
|
/** @description min(yes_exposure, no_exposure) = gross_exposure - worst_case: what offsetting sides save on this outcome. */
|
|
7842
7738
|
readonly netting_savings: components["schemas"]["Amount"];
|
|
7843
|
-
/** @description
|
|
7844
|
-
readonly
|
|
7739
|
+
/** @description Positions on this outcome eligible for settlement but not yet settled. */
|
|
7740
|
+
readonly awaiting_position_count: string;
|
|
7845
7741
|
/** @description Their exact maker cost, max(floor(payout x factors) - net stake, 0) each. */
|
|
7846
7742
|
readonly awaiting_settlement: components["schemas"]["Amount"];
|
|
7847
7743
|
};
|
|
@@ -7849,20 +7745,20 @@ export type components = {
|
|
|
7849
7745
|
readonly Exposure: {
|
|
7850
7746
|
/** @description Freshness of this read: the projection checkpoint and the live outcome read. STALE while either lags, while a live outcome read failed (its legs count as unresolved), or when the open book does not add up to the maker's gross lane. */
|
|
7851
7747
|
readonly context: components["schemas"]["ReadContext"];
|
|
7852
|
-
/** @description Open
|
|
7853
|
-
readonly
|
|
7854
|
-
/** @description Sum of each such
|
|
7748
|
+
/** @description Open positions not yet eligible for settlement. */
|
|
7749
|
+
readonly open_position_count: string;
|
|
7750
|
+
/** @description Sum of each such position's worst-case maker cost, W = ceil(max(payout x resolved factors - net stake, 0)), each position once, with no offsetting. Netting across outcomes and Combos is the vault discount on the capital read. */
|
|
7855
7751
|
readonly gross_exposure: components["schemas"]["Amount"];
|
|
7856
|
-
/** @description Open
|
|
7857
|
-
readonly
|
|
7858
|
-
/** @description What those
|
|
7752
|
+
/** @description Open positions whose every leg has resolved, or whose payout already floors to zero, but which have not settled. */
|
|
7753
|
+
readonly awaiting_position_count: string;
|
|
7754
|
+
/** @description What those positions will cost the maker when they settle, each once. */
|
|
7859
7755
|
readonly awaiting_settlement: components["schemas"]["Amount"];
|
|
7860
|
-
/** @description Every outcome with an unresolved leg of an open
|
|
7756
|
+
/** @description Every outcome with an unresolved leg of an open position or a leg of a position awaiting settlement, ascending outcome_id. */
|
|
7861
7757
|
readonly outcomes: readonly components["schemas"]["OutcomeExposure"][];
|
|
7862
7758
|
};
|
|
7863
7759
|
/** @description Maker realized performance for a period. Every period aggregate is null unless the whole period is covered by reconciled history. */
|
|
7864
7760
|
readonly Performance: {
|
|
7865
|
-
/** @description Freshness of this read: the oldest source observation and one
|
|
7761
|
+
/** @description Freshness of this read: the oldest source observation and one freshness for every amount in the response. */
|
|
7866
7762
|
readonly context: components["schemas"]["ReadContext"];
|
|
7867
7763
|
/**
|
|
7868
7764
|
* Format: date-time
|
|
@@ -7884,14 +7780,14 @@ export type components = {
|
|
|
7884
7780
|
* @description Earliest from this maker's periods can start at and still be complete: the later of where retained vault history and venue workflows begin, or the maker's opening block if later still. Request from=history_from for an all-time period. Null while vault history is unavailable.
|
|
7885
7781
|
*/
|
|
7886
7782
|
readonly history_from: string | null;
|
|
7887
|
-
/** @description
|
|
7888
|
-
readonly
|
|
7889
|
-
/** @description Closes in the period the maker won (positive maker P&L), as a decimal string; null exactly when
|
|
7890
|
-
readonly
|
|
7891
|
-
/** @description Closes in the period the maker lost (negative maker P&L), as a decimal string; null exactly when
|
|
7892
|
-
readonly
|
|
7893
|
-
/** @description Closes in the period with zero maker P&L, as a decimal string; null exactly when
|
|
7894
|
-
readonly
|
|
7783
|
+
/** @description Positions economically closed in the period, as a decimal string; null when settled_net_stake is null. */
|
|
7784
|
+
readonly closed_position_count: string | null;
|
|
7785
|
+
/** @description Closes in the period the maker won (positive maker P&L), as a decimal string; null exactly when closed_position_count is null. */
|
|
7786
|
+
readonly won_position_count: string | null;
|
|
7787
|
+
/** @description Closes in the period the maker lost (negative maker P&L), as a decimal string; null exactly when closed_position_count is null. */
|
|
7788
|
+
readonly lost_position_count: string | null;
|
|
7789
|
+
/** @description Closes in the period with zero maker P&L, as a decimal string; null exactly when closed_position_count is null. Won, lost and even add up to closed_position_count. */
|
|
7790
|
+
readonly even_position_count: string | null;
|
|
7895
7791
|
/** @description Net stake released by economic closes in the period. */
|
|
7896
7792
|
readonly settled_net_stake: components["schemas"]["UnsignedMetric"];
|
|
7897
7793
|
/** @description Signed maker trading P&L from closes in the period (net stake minus effective payout). */
|
|
@@ -7918,7 +7814,7 @@ export type components = {
|
|
|
7918
7814
|
/** @description Cumulative signed net trading P&L from from up to at, in atomic USDC (6 decimals, "1000000" = 1 USDC). */
|
|
7919
7815
|
readonly net_trading_pnl: string;
|
|
7920
7816
|
/** @description Closes since the previous point, as a decimal string: the day's closes for a day point ("0" only on a day whose maker-paid fees moved P&L); "0" for the opening point and for a through point added after the last such day. */
|
|
7921
|
-
readonly
|
|
7817
|
+
readonly closed_position_count: string;
|
|
7922
7818
|
/** @description Net trading P&L of those closes: net_trading_pnl minus the previous point's. A day point with closes is a real close day even when this is "0". */
|
|
7923
7819
|
readonly net_trading_pnl_change: string;
|
|
7924
7820
|
}[];
|
|
@@ -8051,16 +7947,6 @@ export type components = {
|
|
|
8051
7947
|
* @example YES
|
|
8052
7948
|
*/
|
|
8053
7949
|
readonly Side: "YES" | "NO";
|
|
8054
|
-
/**
|
|
8055
|
-
* @description Use `REFERENCE_PRICE_OHLC` for a line chart and `TRADE_OHLCV` for candles; `AUTO` uses trades when there are any. AUTO selects retained closed trade buckets in the window, otherwise reference history. REFERENCE_PRICE_OHLC prefers L2, then BBO, then allMids among sources with a closed bucket in the window; with none it carries the most recent earlier source inside the 90-day online window, breaking ties in that order. With no evidence the empty reference response is labelled L2/BOOK_MID. Explicit series avoids AUTO switching when trades arrive.
|
|
8056
|
-
* @example AUTO
|
|
8057
|
-
*/
|
|
8058
|
-
readonly HistorySeries: "AUTO" | "REFERENCE_PRICE_OHLC" | "TRADE_OHLCV";
|
|
8059
|
-
/**
|
|
8060
|
-
* @description Include at most 1440 retained diagnostic gap records; gaps is empty unless this is true.
|
|
8061
|
-
* @example false
|
|
8062
|
-
*/
|
|
8063
|
-
readonly HistoryIncludeGaps: boolean;
|
|
8064
7950
|
/**
|
|
8065
7951
|
* @description Inclusive RFC3339 window start. Omit from and to together for the exact rolling 24 hours ending at server time; supplying only one is rejected. The response repeats the resolved bounds, which later pages must reuse.
|
|
8066
7952
|
* @example 2026-09-25T12:00:00Z
|
|
@@ -8116,11 +8002,6 @@ export type components = {
|
|
|
8116
8002
|
* @example 1440
|
|
8117
8003
|
*/
|
|
8118
8004
|
readonly ClosesLimit: number;
|
|
8119
|
-
/**
|
|
8120
|
-
* @description The shared page limit with one exception: the maximum is 1,440, a full 24-hour window of one-minute bars, so a chart loads in one request.
|
|
8121
|
-
* @example 1440
|
|
8122
|
-
*/
|
|
8123
|
-
readonly HistoryLimit: number;
|
|
8124
8005
|
/**
|
|
8125
8006
|
* @description Lowercase UUIDv7 that names this acceptance: it becomes the `acceptance_id`. Choose it before the first send and reuse it on every retry. The same key, quote and body returns the stored acceptance without restarting its deadline; the same key with another quote or body returns `409 IDEMPOTENCY_KEY_REUSED`. Keys are unique per taker account, across all quotes. A quote can be accepted once: a new key on an RFQ that already has a live acceptance returns `409 STATE_CONFLICT`, or `409 ACCEPTANCE_IN_FLIGHT` while an entry acceptance awaits its maker or its trade; the same answer refuses any other entry quote the account accepts meanwhile. Lost the response? Read `GET /v1/quotes/{quote_id}/acceptance` instead of accepting again.
|
|
8126
8007
|
* @example 01994f3d-3c4d-7e5f-8a61-7b8c9d0e1f2a
|
|
@@ -8192,7 +8073,7 @@ export type components = {
|
|
|
8192
8073
|
*/
|
|
8193
8074
|
readonly ActivityVenueQueryOptional: "HYPEREVM" | "HYPERCORE" | "VENUE";
|
|
8194
8075
|
/**
|
|
8195
|
-
* @description PUBLISHED (default): newest published first, so a backfilled activity appears on a fresh first page. OCCURRED: newest occurrence first, an activity of unknown occurrence at its recording time, then by activity ID. What reads as one lists together at its latest occurrence (an order's fills, one outcome side's settlement credits, one
|
|
8076
|
+
* @description PUBLISHED (default): newest published first, so a backfilled activity appears on a fresh first page. OCCURRED: newest occurrence first, an activity of unknown occurrence at its recording time, then by activity ID. What reads as one lists together at its latest occurrence (an order's fills, one outcome side's settlement credits, one position's settlement and claims), one group after another within a moment.
|
|
8196
8077
|
* @example OCCURRED
|
|
8197
8078
|
*/
|
|
8198
8079
|
readonly ActivityOrderQueryOptional: "PUBLISHED" | "OCCURRED";
|
|
@@ -8293,6 +8174,38 @@ export interface operations {
|
|
|
8293
8174
|
readonly 503: components["responses"]["Unavailable"];
|
|
8294
8175
|
};
|
|
8295
8176
|
};
|
|
8177
|
+
readonly cancelAllQuotes: {
|
|
8178
|
+
readonly parameters: {
|
|
8179
|
+
readonly query?: never;
|
|
8180
|
+
readonly header?: never;
|
|
8181
|
+
readonly path: {
|
|
8182
|
+
/**
|
|
8183
|
+
* @description On-chain maker ID, as a decimal string. An API key may only name the maker it is bound to; other makers return 404.
|
|
8184
|
+
* @example 7
|
|
8185
|
+
*/
|
|
8186
|
+
readonly maker_id: components["parameters"]["MakerIdPathRequired"];
|
|
8187
|
+
};
|
|
8188
|
+
readonly cookie?: never;
|
|
8189
|
+
};
|
|
8190
|
+
readonly requestBody?: never;
|
|
8191
|
+
readonly responses: {
|
|
8192
|
+
/** @description How many quotes this call cancelled, and how many it left under a pending acceptance: confirm or decline those, or let them time out. Takers see each cancelled quote leave as `QUOTE_REMOVED` with status `CANCELLED`; publish again to come back. Send no `Idempotency-Key`: a repeat cancels whatever is open then. */
|
|
8193
|
+
readonly 200: {
|
|
8194
|
+
headers: {
|
|
8195
|
+
readonly [name: string]: unknown;
|
|
8196
|
+
};
|
|
8197
|
+
content: {
|
|
8198
|
+
readonly "application/json": components["schemas"]["CancelledQuotes"];
|
|
8199
|
+
};
|
|
8200
|
+
};
|
|
8201
|
+
readonly 401: components["responses"]["Error"];
|
|
8202
|
+
readonly 403: components["responses"]["Error"];
|
|
8203
|
+
readonly 404: components["responses"]["Error"];
|
|
8204
|
+
readonly 429: components["responses"]["RateLimited"];
|
|
8205
|
+
readonly 500: components["responses"]["InternalError"];
|
|
8206
|
+
readonly 503: components["responses"]["Unavailable"];
|
|
8207
|
+
};
|
|
8208
|
+
};
|
|
8296
8209
|
readonly getMakerTelemetry: {
|
|
8297
8210
|
readonly parameters: {
|
|
8298
8211
|
readonly query?: never;
|
|
@@ -8457,7 +8370,7 @@ export interface operations {
|
|
|
8457
8370
|
readonly [name: string]: unknown;
|
|
8458
8371
|
};
|
|
8459
8372
|
content: {
|
|
8460
|
-
readonly "application/json": components["schemas"]["
|
|
8373
|
+
readonly "application/json": components["schemas"]["MakerPositionList"];
|
|
8461
8374
|
};
|
|
8462
8375
|
};
|
|
8463
8376
|
readonly 400: components["responses"]["Error"];
|
|
@@ -8504,7 +8417,7 @@ export interface operations {
|
|
|
8504
8417
|
readonly [name: string]: unknown;
|
|
8505
8418
|
};
|
|
8506
8419
|
content: {
|
|
8507
|
-
readonly "application/json": components["schemas"]["
|
|
8420
|
+
readonly "application/json": components["schemas"]["MakerPositionDetail"];
|
|
8508
8421
|
};
|
|
8509
8422
|
};
|
|
8510
8423
|
readonly 400: components["responses"]["Error"];
|
|
@@ -8598,7 +8511,7 @@ export interface operations {
|
|
|
8598
8511
|
};
|
|
8599
8512
|
readonly requestBody?: never;
|
|
8600
8513
|
readonly responses: {
|
|
8601
|
-
/** @description Your positions, reconciled against the vault contract. A key for your account lists the positions you hold; a key for a maker lists the positions the maker backs. The key's permissions are checked on every request. One freshness status covers the read; amounts are atomic USDC strings or null. No shared caching. */
|
|
8514
|
+
/** @description Your positions, reconciled against the vault contract. A key for your account lists the positions you hold; a key for a maker lists the positions the maker backs, in the same account view: who holds them and the maker's result are on List maker positions. The key's permissions are checked on every request. One freshness status covers the read; amounts are atomic USDC strings or null. No shared caching. */
|
|
8602
8515
|
readonly 200: {
|
|
8603
8516
|
headers: {
|
|
8604
8517
|
readonly "Cache-Control": components["headers"]["CacheControl"];
|
|
@@ -8640,7 +8553,7 @@ export interface operations {
|
|
|
8640
8553
|
};
|
|
8641
8554
|
readonly requestBody?: never;
|
|
8642
8555
|
readonly responses: {
|
|
8643
|
-
/** @description The position, reconciled against the vault contract. A key for your account reads the positions you hold; a key for a maker reads the positions the maker backs. The key's permissions are checked on every request. One freshness status covers the read; amounts are atomic USDC strings or null. No shared caching. */
|
|
8556
|
+
/** @description The position, reconciled against the vault contract. A key for your account reads the positions you hold; a key for a maker reads the positions the maker backs, in the same account view: who holds it and the maker's result are on Get maker position. The key's permissions are checked on every request. One freshness status covers the read; amounts are atomic USDC strings or null. No shared caching. */
|
|
8644
8557
|
readonly 200: {
|
|
8645
8558
|
headers: {
|
|
8646
8559
|
readonly "Cache-Control": components["headers"]["CacheControl"];
|
|
@@ -8746,7 +8659,7 @@ export interface operations {
|
|
|
8746
8659
|
*/
|
|
8747
8660
|
readonly venue?: components["parameters"]["ActivityVenueQueryOptional"];
|
|
8748
8661
|
/**
|
|
8749
|
-
* @description PUBLISHED (default): newest published first, so a backfilled activity appears on a fresh first page. OCCURRED: newest occurrence first, an activity of unknown occurrence at its recording time, then by activity ID. What reads as one lists together at its latest occurrence (an order's fills, one outcome side's settlement credits, one
|
|
8662
|
+
* @description PUBLISHED (default): newest published first, so a backfilled activity appears on a fresh first page. OCCURRED: newest occurrence first, an activity of unknown occurrence at its recording time, then by activity ID. What reads as one lists together at its latest occurrence (an order's fills, one outcome side's settlement credits, one position's settlement and claims), one group after another within a moment.
|
|
8750
8663
|
* @example OCCURRED
|
|
8751
8664
|
*/
|
|
8752
8665
|
readonly order?: components["parameters"]["ActivityOrderQueryOptional"];
|
|
@@ -8870,7 +8783,7 @@ export interface operations {
|
|
|
8870
8783
|
*/
|
|
8871
8784
|
readonly venue?: components["parameters"]["ActivityVenueQueryOptional"];
|
|
8872
8785
|
/**
|
|
8873
|
-
* @description PUBLISHED (default): newest published first, so a backfilled activity appears on a fresh first page. OCCURRED: newest occurrence first, an activity of unknown occurrence at its recording time, then by activity ID. What reads as one lists together at its latest occurrence (an order's fills, one outcome side's settlement credits, one
|
|
8786
|
+
* @description PUBLISHED (default): newest published first, so a backfilled activity appears on a fresh first page. OCCURRED: newest occurrence first, an activity of unknown occurrence at its recording time, then by activity ID. What reads as one lists together at its latest occurrence (an order's fills, one outcome side's settlement credits, one position's settlement and claims), one group after another within a moment.
|
|
8874
8787
|
* @example OCCURRED
|
|
8875
8788
|
*/
|
|
8876
8789
|
readonly order?: components["parameters"]["ActivityOrderQueryOptional"];
|
|
@@ -9053,15 +8966,75 @@ export interface operations {
|
|
|
9053
8966
|
};
|
|
9054
8967
|
readonly requestBody?: never;
|
|
9055
8968
|
readonly responses: {
|
|
9056
|
-
/** @description Scoped read with one freshness status; amounts are atomic USDC strings or null. No shared caching. */
|
|
8969
|
+
/** @description Scoped read with one freshness status; amounts are atomic USDC strings or null. No shared caching. */
|
|
8970
|
+
readonly 200: {
|
|
8971
|
+
headers: {
|
|
8972
|
+
readonly "Cache-Control": components["headers"]["CacheControl"];
|
|
8973
|
+
readonly Vary: components["headers"]["Vary"];
|
|
8974
|
+
readonly [name: string]: unknown;
|
|
8975
|
+
};
|
|
8976
|
+
content: {
|
|
8977
|
+
readonly "application/json": components["schemas"]["ControlledMakerList"];
|
|
8978
|
+
};
|
|
8979
|
+
};
|
|
8980
|
+
readonly 400: components["responses"]["Error"];
|
|
8981
|
+
readonly 401: components["responses"]["Error"];
|
|
8982
|
+
readonly 403: components["responses"]["Error"];
|
|
8983
|
+
readonly 404: components["responses"]["Error"];
|
|
8984
|
+
readonly 429: components["responses"]["RateLimited"];
|
|
8985
|
+
readonly 500: components["responses"]["InternalError"];
|
|
8986
|
+
readonly 503: components["responses"]["Unavailable"];
|
|
8987
|
+
};
|
|
8988
|
+
};
|
|
8989
|
+
readonly getHypercoreBalance: {
|
|
8990
|
+
readonly parameters: {
|
|
8991
|
+
readonly query?: never;
|
|
8992
|
+
readonly header?: {
|
|
8993
|
+
/**
|
|
8994
|
+
* @description Required for browser sessions; API keys do not require an Origin.
|
|
8995
|
+
* @example https://totalis.trade
|
|
8996
|
+
*/
|
|
8997
|
+
readonly Origin?: string;
|
|
8998
|
+
};
|
|
8999
|
+
readonly path?: never;
|
|
9000
|
+
readonly cookie?: never;
|
|
9001
|
+
};
|
|
9002
|
+
readonly requestBody?: never;
|
|
9003
|
+
readonly responses: {
|
|
9004
|
+
/** @description Current direct HyperCore balances. No caching. */
|
|
9005
|
+
readonly 200: {
|
|
9006
|
+
headers: {
|
|
9007
|
+
readonly [name: string]: unknown;
|
|
9008
|
+
};
|
|
9009
|
+
content: {
|
|
9010
|
+
readonly "application/json": components["schemas"]["HypercoreBalance"];
|
|
9011
|
+
};
|
|
9012
|
+
};
|
|
9013
|
+
readonly 400: components["responses"]["Error"];
|
|
9014
|
+
readonly 401: components["responses"]["Error"];
|
|
9015
|
+
readonly 403: components["responses"]["Error"];
|
|
9016
|
+
readonly 404: components["responses"]["Error"];
|
|
9017
|
+
readonly 429: components["responses"]["RateLimited"];
|
|
9018
|
+
readonly 500: components["responses"]["InternalError"];
|
|
9019
|
+
readonly 503: components["responses"]["Unavailable"];
|
|
9020
|
+
};
|
|
9021
|
+
};
|
|
9022
|
+
readonly getHypercorePortfolio: {
|
|
9023
|
+
readonly parameters: {
|
|
9024
|
+
readonly query?: never;
|
|
9025
|
+
readonly header?: never;
|
|
9026
|
+
readonly path?: never;
|
|
9027
|
+
readonly cookie?: never;
|
|
9028
|
+
};
|
|
9029
|
+
readonly requestBody?: never;
|
|
9030
|
+
readonly responses: {
|
|
9031
|
+
/** @description Current direct HyperCore portfolio and balances */
|
|
9057
9032
|
readonly 200: {
|
|
9058
9033
|
headers: {
|
|
9059
|
-
readonly "Cache-Control": components["headers"]["CacheControl"];
|
|
9060
|
-
readonly Vary: components["headers"]["Vary"];
|
|
9061
9034
|
readonly [name: string]: unknown;
|
|
9062
9035
|
};
|
|
9063
9036
|
content: {
|
|
9064
|
-
readonly "application/json": components["schemas"]["
|
|
9037
|
+
readonly "application/json": components["schemas"]["HypercorePortfolio"];
|
|
9065
9038
|
};
|
|
9066
9039
|
};
|
|
9067
9040
|
readonly 400: components["responses"]["Error"];
|
|
@@ -9073,28 +9046,22 @@ export interface operations {
|
|
|
9073
9046
|
readonly 503: components["responses"]["Unavailable"];
|
|
9074
9047
|
};
|
|
9075
9048
|
};
|
|
9076
|
-
readonly
|
|
9049
|
+
readonly getHypercoreSettlementCredits: {
|
|
9077
9050
|
readonly parameters: {
|
|
9078
9051
|
readonly query?: never;
|
|
9079
|
-
readonly header?:
|
|
9080
|
-
/**
|
|
9081
|
-
* @description Required for browser sessions; API keys do not require an Origin.
|
|
9082
|
-
* @example https://totalis.trade
|
|
9083
|
-
*/
|
|
9084
|
-
readonly Origin?: string;
|
|
9085
|
-
};
|
|
9052
|
+
readonly header?: never;
|
|
9086
9053
|
readonly path?: never;
|
|
9087
9054
|
readonly cookie?: never;
|
|
9088
9055
|
};
|
|
9089
9056
|
readonly requestBody?: never;
|
|
9090
9057
|
readonly responses: {
|
|
9091
|
-
/** @description
|
|
9058
|
+
/** @description Retained settlement credits */
|
|
9092
9059
|
readonly 200: {
|
|
9093
9060
|
headers: {
|
|
9094
9061
|
readonly [name: string]: unknown;
|
|
9095
9062
|
};
|
|
9096
9063
|
content: {
|
|
9097
|
-
readonly "application/json": components["schemas"]["
|
|
9064
|
+
readonly "application/json": components["schemas"]["HypercoreSettlementCredits"];
|
|
9098
9065
|
};
|
|
9099
9066
|
};
|
|
9100
9067
|
readonly 400: components["responses"]["Error"];
|
|
@@ -9106,22 +9073,28 @@ export interface operations {
|
|
|
9106
9073
|
readonly 503: components["responses"]["Unavailable"];
|
|
9107
9074
|
};
|
|
9108
9075
|
};
|
|
9109
|
-
readonly
|
|
9076
|
+
readonly getHypercoreOrders: {
|
|
9110
9077
|
readonly parameters: {
|
|
9111
9078
|
readonly query?: never;
|
|
9112
|
-
readonly header?:
|
|
9079
|
+
readonly header?: {
|
|
9080
|
+
/**
|
|
9081
|
+
* @description Required for browser sessions; API keys do not require an Origin.
|
|
9082
|
+
* @example https://totalis.trade
|
|
9083
|
+
*/
|
|
9084
|
+
readonly Origin?: string;
|
|
9085
|
+
};
|
|
9113
9086
|
readonly path?: never;
|
|
9114
9087
|
readonly cookie?: never;
|
|
9115
9088
|
};
|
|
9116
9089
|
readonly requestBody?: never;
|
|
9117
9090
|
readonly responses: {
|
|
9118
|
-
/** @description Current
|
|
9091
|
+
/** @description Current open orders. No caching. */
|
|
9119
9092
|
readonly 200: {
|
|
9120
9093
|
headers: {
|
|
9121
9094
|
readonly [name: string]: unknown;
|
|
9122
9095
|
};
|
|
9123
9096
|
content: {
|
|
9124
|
-
readonly "application/json": components["schemas"]["
|
|
9097
|
+
readonly "application/json": components["schemas"]["HypercoreOrders"];
|
|
9125
9098
|
};
|
|
9126
9099
|
};
|
|
9127
9100
|
readonly 400: components["responses"]["Error"];
|
|
@@ -9133,22 +9106,43 @@ export interface operations {
|
|
|
9133
9106
|
readonly 503: components["responses"]["Unavailable"];
|
|
9134
9107
|
};
|
|
9135
9108
|
};
|
|
9136
|
-
readonly
|
|
9109
|
+
readonly listHypercorePositions: {
|
|
9137
9110
|
readonly parameters: {
|
|
9138
|
-
readonly query?:
|
|
9139
|
-
|
|
9111
|
+
readonly query?: {
|
|
9112
|
+
/** @description OPEN lists episodes still holding shares, CLOSED those sold out or settled; absent, both. */
|
|
9113
|
+
readonly status?: "OPEN" | "CLOSED";
|
|
9114
|
+
/**
|
|
9115
|
+
* @description Maximum items per page, 1 to 200, default 50. A page may hold fewer, even none, while has_more is true.
|
|
9116
|
+
* @example 50
|
|
9117
|
+
*/
|
|
9118
|
+
readonly limit?: components["parameters"]["Limit"];
|
|
9119
|
+
/**
|
|
9120
|
+
* @description Omit for the first page; then send the previous response's next_cursor unchanged.
|
|
9121
|
+
* @example eyJ2IjoxLCJzIjoiMTIzNDUifQ
|
|
9122
|
+
*/
|
|
9123
|
+
readonly cursor?: components["parameters"]["Cursor"];
|
|
9124
|
+
};
|
|
9125
|
+
readonly header?: {
|
|
9126
|
+
/**
|
|
9127
|
+
* @description Required for browser sessions; API keys do not require an Origin.
|
|
9128
|
+
* @example https://totalis.trade
|
|
9129
|
+
*/
|
|
9130
|
+
readonly Origin?: string;
|
|
9131
|
+
};
|
|
9140
9132
|
readonly path?: never;
|
|
9141
9133
|
readonly cookie?: never;
|
|
9142
9134
|
};
|
|
9143
9135
|
readonly requestBody?: never;
|
|
9144
9136
|
readonly responses: {
|
|
9145
|
-
/** @description
|
|
9137
|
+
/** @description One page of the account's positions. No shared caching. */
|
|
9146
9138
|
readonly 200: {
|
|
9147
9139
|
headers: {
|
|
9140
|
+
readonly "Cache-Control": components["headers"]["CacheControl"];
|
|
9141
|
+
readonly Vary: components["headers"]["Vary"];
|
|
9148
9142
|
readonly [name: string]: unknown;
|
|
9149
9143
|
};
|
|
9150
9144
|
content: {
|
|
9151
|
-
readonly "application/json": components["schemas"]["
|
|
9145
|
+
readonly "application/json": components["schemas"]["HypercoreOwnedPositions"];
|
|
9152
9146
|
};
|
|
9153
9147
|
};
|
|
9154
9148
|
readonly 400: components["responses"]["Error"];
|
|
@@ -9157,6 +9151,7 @@ export interface operations {
|
|
|
9157
9151
|
readonly 404: components["responses"]["Error"];
|
|
9158
9152
|
readonly 429: components["responses"]["RateLimited"];
|
|
9159
9153
|
readonly 500: components["responses"]["InternalError"];
|
|
9154
|
+
/** @description The holdings ledger is behind; resend after `Retry-After`. */
|
|
9160
9155
|
readonly 503: components["responses"]["Unavailable"];
|
|
9161
9156
|
};
|
|
9162
9157
|
};
|
|
@@ -10280,7 +10275,7 @@ export interface operations {
|
|
|
10280
10275
|
readonly "application/json": {
|
|
10281
10276
|
readonly placement_id: components["schemas"]["Uuid"];
|
|
10282
10277
|
/** @description PLACING until the promo account's accept lands, BOUGHT until the gift lands, then DELIVERED, or LAPSED if the position ended first; FAILED, only before the purchase, leaves the golden ticket available again. Read GET /v1/me/golden for its progress and the gift to sign. */
|
|
10283
|
-
readonly
|
|
10278
|
+
readonly status: components["schemas"]["GoldenPlacementState"];
|
|
10284
10279
|
/** @description The quote's digest: the position the gift delivers. */
|
|
10285
10280
|
readonly position_id: components["schemas"]["Bytes32"];
|
|
10286
10281
|
readonly failure: null | components["schemas"]["GoldenPlacementFailure"];
|
|
@@ -10734,11 +10729,11 @@ export interface operations {
|
|
|
10734
10729
|
/** @description Stable, opaque ID of the trade: the same trade has the same ID on every read, so a client polling the first page drops what it has seen. */
|
|
10735
10730
|
readonly id: string;
|
|
10736
10731
|
/**
|
|
10737
|
-
* @description CORE_FILL: a HyperCore fill, in fill. COMBO_ENTRY: a Combo
|
|
10732
|
+
* @description CORE_FILL: a HyperCore fill, in fill. COMBO_ENTRY: a Combo position the trader opened, in combo. COMBO_RECEIVED: a Combo position someone else passed to the trader, such as a free Combo, in combo; any price it passed at is not shown, and it adds nothing to volume. Servers before contract 226 leave it out. COMBO_CASHOUT: a Combo position the trader sold back, in combo; the sale price is not shown.
|
|
10738
10733
|
* @enum {string}
|
|
10739
10734
|
*/
|
|
10740
10735
|
readonly kind: "CORE_FILL" | "COMBO_ENTRY" | "COMBO_RECEIVED" | "COMBO_CASHOUT";
|
|
10741
|
-
/** @description When it happened: the fill's HyperCore block time, or the HyperEVM block time of the
|
|
10736
|
+
/** @description When it happened: the fill's HyperCore block time, or the HyperEVM block time of the position's opening, passing or sale. */
|
|
10742
10737
|
readonly at: components["schemas"]["$defs-Timestamp"];
|
|
10743
10738
|
/** TraderFill */
|
|
10744
10739
|
readonly fill?: {
|
|
@@ -10808,7 +10803,7 @@ export interface operations {
|
|
|
10808
10803
|
readonly "application/json": {
|
|
10809
10804
|
/** @description Open Combos, newest first. */
|
|
10810
10805
|
readonly items: readonly ({
|
|
10811
|
-
/** @description HyperEVM block time of the
|
|
10806
|
+
/** @description HyperEVM block time of the position's opening. */
|
|
10812
10807
|
readonly opened_at: components["schemas"]["$defs-Timestamp"];
|
|
10813
10808
|
} & components["schemas"]["TraderComboFields"])[];
|
|
10814
10809
|
readonly next_cursor: components["schemas"]["NextCursor"];
|
|
@@ -10984,14 +10979,14 @@ export interface operations {
|
|
|
10984
10979
|
readonly getSocialPosition: {
|
|
10985
10980
|
readonly parameters: {
|
|
10986
10981
|
readonly query?: {
|
|
10987
|
-
/** @description The episode of a HyperCore position, as a feed item or an earlier read named it. Refused with 400 INVALID_QUERY on a
|
|
10982
|
+
/** @description The episode of a HyperCore position, as a feed item or an earlier read named it. Refused with 400 INVALID_QUERY on a position. */
|
|
10988
10983
|
readonly episode?: components["schemas"]["EpisodeId"];
|
|
10989
10984
|
};
|
|
10990
10985
|
readonly header?: never;
|
|
10991
10986
|
readonly path: {
|
|
10992
10987
|
/** @description The person's username. */
|
|
10993
10988
|
readonly username: components["schemas"]["Username"];
|
|
10994
|
-
/** @description A HIP-4 outcome ID as a decimal string, or a Combo
|
|
10989
|
+
/** @description A HIP-4 outcome ID as a decimal string, or a Combo position ID as lowercase bytes32 hex. */
|
|
10995
10990
|
readonly position: components["schemas"]["UInt32String"] | components["schemas"]["Bytes32"];
|
|
10996
10991
|
};
|
|
10997
10992
|
readonly cookie?: never;
|
|
@@ -11372,7 +11367,7 @@ export interface operations {
|
|
|
11372
11367
|
readonly "application/json": {
|
|
11373
11368
|
/** @description The trader the trade was copied from. */
|
|
11374
11369
|
readonly username: components["schemas"]["Username"];
|
|
11375
|
-
/** @description A single's client order ID (cloid, 16 bytes) or a Combo's
|
|
11370
|
+
/** @description A single's client order ID (cloid, 16 bytes) or a Combo's position ID (32 bytes), 0x-prefixed lowercase hex. */
|
|
11376
11371
|
readonly trade_id: string;
|
|
11377
11372
|
};
|
|
11378
11373
|
};
|
|
@@ -11605,7 +11600,7 @@ export interface operations {
|
|
|
11605
11600
|
* @description What became of the copy.
|
|
11606
11601
|
* @enum {string}
|
|
11607
11602
|
*/
|
|
11608
|
-
readonly
|
|
11603
|
+
readonly status: "PENDING" | "COPIED" | "PARTIAL" | "SKIPPED" | "FAILED";
|
|
11609
11604
|
/**
|
|
11610
11605
|
* @description Why a SKIPPED copy was not placed; present only then.
|
|
11611
11606
|
* @enum {string}
|
|
@@ -11689,11 +11684,11 @@ export interface operations {
|
|
|
11689
11684
|
* @description The trader's Combo.
|
|
11690
11685
|
*/
|
|
11691
11686
|
readonly leader_trade: {
|
|
11692
|
-
/** @description The trader's Combo
|
|
11687
|
+
/** @description The trader's Combo position. */
|
|
11693
11688
|
readonly position_id: components["schemas"]["Bytes32"];
|
|
11694
|
-
/** @description What the trader's
|
|
11689
|
+
/** @description What the trader's position staked, net of the taker fee. */
|
|
11695
11690
|
readonly stake: components["schemas"]["$defs-Amount"];
|
|
11696
|
-
/** @description What the trader's
|
|
11691
|
+
/** @description What the trader's position pays if every leg wins. */
|
|
11697
11692
|
readonly payout: components["schemas"]["$defs-Amount"];
|
|
11698
11693
|
/** @description The price the trader's cash-out was quoted at; present on an EXIT. A sell-back above the stake pays this less the vault's profit fee. */
|
|
11699
11694
|
readonly price?: components["schemas"]["$defs-Amount"];
|
|
@@ -11702,17 +11697,17 @@ export interface operations {
|
|
|
11702
11697
|
* @description What became of the copy.
|
|
11703
11698
|
* @enum {string}
|
|
11704
11699
|
*/
|
|
11705
|
-
readonly
|
|
11700
|
+
readonly status: "PENDING" | "COPIED" | "SKIPPED" | "FAILED";
|
|
11706
11701
|
/**
|
|
11707
11702
|
* @description Why a SKIPPED copy was not placed; present only then.
|
|
11708
11703
|
* @enum {string}
|
|
11709
11704
|
*/
|
|
11710
11705
|
readonly reason?: "SLIPPAGE" | "NO_QUOTE" | "MAKER_DECLINED" | "CAP_REACHED" | "INSUFFICIENT_BALANCE" | "BELOW_MINIMUM" | "AGENT_EXPIRED" | "CAPACITY" | "PAUSED" | "LEADER_PRIVATE" | "HALTED";
|
|
11711
|
-
/** @description The account's copied Combo
|
|
11706
|
+
/** @description The account's copied Combo position, as GET /v1/me/positions names it: on an ENTRY once COPIED, on every EXIT. */
|
|
11712
11707
|
readonly position_id?: components["schemas"]["Bytes32"];
|
|
11713
11708
|
/** @description What an ENTRY copy stakes from the account's copy budget, taker fee included; absent when it was skipped before it was sized, and on an EXIT. */
|
|
11714
11709
|
readonly stake?: components["schemas"]["$defs-Amount"];
|
|
11715
|
-
/** @description What the copied
|
|
11710
|
+
/** @description What the copied position pays if every leg wins; present on a COPIED ENTRY. */
|
|
11716
11711
|
readonly payout?: components["schemas"]["$defs-Amount"];
|
|
11717
11712
|
/** @description The price the copy's cash-out was quoted at; present on a COPIED EXIT. A sell-back above the stake pays this less the vault's profit fee; the copied position shows what was received. */
|
|
11718
11713
|
readonly price?: components["schemas"]["$defs-Amount"];
|
|
@@ -11926,7 +11921,7 @@ export interface operations {
|
|
|
11926
11921
|
* @description ENABLED: the account earns the referral bonus for its referrals.
|
|
11927
11922
|
* @constant
|
|
11928
11923
|
*/
|
|
11929
|
-
readonly
|
|
11924
|
+
readonly status: "ENABLED";
|
|
11930
11925
|
/** @description A referral qualifies once their own Combo stake since signing up with the account's code reaches this, in HyperEVM USDC base units (10^-6). */
|
|
11931
11926
|
readonly qualifying_stake: components["schemas"]["$defs-Amount"];
|
|
11932
11927
|
/** @description What each qualified referral earns, in HyperEVM USDC base units (10^-6). */
|
|
@@ -11974,7 +11969,7 @@ export interface operations {
|
|
|
11974
11969
|
* @description DISABLED: the account does not earn the referral bonus; reason says why.
|
|
11975
11970
|
* @constant
|
|
11976
11971
|
*/
|
|
11977
|
-
readonly
|
|
11972
|
+
readonly status: "DISABLED";
|
|
11978
11973
|
/**
|
|
11979
11974
|
* @description Why the account does not earn it. NOT_ENROLLED: the account owns no invite code that earns the bonus, as for an account signed up with a wallet alone, which owns no code.
|
|
11980
11975
|
* @enum {string}
|
|
@@ -13092,7 +13087,7 @@ export interface operations {
|
|
|
13092
13087
|
};
|
|
13093
13088
|
};
|
|
13094
13089
|
readonly responses: {
|
|
13095
|
-
/** @description The quote is live on the RFQ, or an exact retry returned it. It is unsigned and nothing is on chain: the taker receives it as `QUOTE_CREATED
|
|
13090
|
+
/** @description The quote is live on the RFQ, or an exact retry returned it. It is unsigned and nothing is on chain: the taker receives it as `QUOTE_CREATED`, the venue keeps it acceptable by renewing it until you cancel it or the RFQ ends, and you sign only when you confirm an acceptance. */
|
|
13096
13091
|
readonly 201: {
|
|
13097
13092
|
headers: {
|
|
13098
13093
|
readonly [name: string]: unknown;
|
|
@@ -13101,7 +13096,7 @@ export interface operations {
|
|
|
13101
13096
|
readonly "application/json": components["schemas"]["QuoteCreated"];
|
|
13102
13097
|
};
|
|
13103
13098
|
};
|
|
13104
|
-
/** @description
|
|
13099
|
+
/** @description `INVALID_REQUEST`: a body that is not `{payout}` or `{price}`, the kind the RFQ does not take, or a `payout` not above the RFQ's stake or over the maximum payout, named in `field_violations`. */
|
|
13105
13100
|
readonly 400: components["responses"]["Error"];
|
|
13106
13101
|
readonly 401: components["responses"]["Error"];
|
|
13107
13102
|
readonly 403: components["responses"]["Error"];
|
|
@@ -13155,76 +13150,6 @@ export interface operations {
|
|
|
13155
13150
|
readonly 503: components["responses"]["Unavailable"];
|
|
13156
13151
|
};
|
|
13157
13152
|
};
|
|
13158
|
-
readonly renewQuoteLease: {
|
|
13159
|
-
readonly parameters: {
|
|
13160
|
-
readonly query?: never;
|
|
13161
|
-
readonly header?: never;
|
|
13162
|
-
readonly path: {
|
|
13163
|
-
/**
|
|
13164
|
-
* @description On-chain maker ID, as a decimal string. An API key may only name the maker it is bound to; other makers return 404.
|
|
13165
|
-
* @example 7
|
|
13166
|
-
*/
|
|
13167
|
-
readonly maker_id: components["parameters"]["MakerIdPathRequired"];
|
|
13168
|
-
};
|
|
13169
|
-
readonly cookie?: never;
|
|
13170
|
-
};
|
|
13171
|
-
readonly requestBody: {
|
|
13172
|
-
readonly content: {
|
|
13173
|
-
readonly "application/json": components["schemas"]["QuoteLeaseCommand"];
|
|
13174
|
-
};
|
|
13175
|
-
};
|
|
13176
|
-
readonly responses: {
|
|
13177
|
-
/** @description The armed lease and when it lapses. */
|
|
13178
|
-
readonly 200: {
|
|
13179
|
-
headers: {
|
|
13180
|
-
readonly [name: string]: unknown;
|
|
13181
|
-
};
|
|
13182
|
-
content: {
|
|
13183
|
-
readonly "application/json": components["schemas"]["QuoteLease"];
|
|
13184
|
-
};
|
|
13185
|
-
};
|
|
13186
|
-
readonly 400: components["responses"]["Error"];
|
|
13187
|
-
readonly 401: components["responses"]["Error"];
|
|
13188
|
-
readonly 403: components["responses"]["Error"];
|
|
13189
|
-
readonly 404: components["responses"]["Error"];
|
|
13190
|
-
readonly 429: components["responses"]["RateLimited"];
|
|
13191
|
-
readonly 500: components["responses"]["InternalError"];
|
|
13192
|
-
readonly 503: components["responses"]["Unavailable"];
|
|
13193
|
-
};
|
|
13194
|
-
};
|
|
13195
|
-
readonly releaseQuoteLease: {
|
|
13196
|
-
readonly parameters: {
|
|
13197
|
-
readonly query?: never;
|
|
13198
|
-
readonly header?: never;
|
|
13199
|
-
readonly path: {
|
|
13200
|
-
/**
|
|
13201
|
-
* @description On-chain maker ID, as a decimal string. An API key may only name the maker it is bound to; other makers return 404.
|
|
13202
|
-
* @example 7
|
|
13203
|
-
*/
|
|
13204
|
-
readonly maker_id: components["parameters"]["MakerIdPathRequired"];
|
|
13205
|
-
};
|
|
13206
|
-
readonly cookie?: never;
|
|
13207
|
-
};
|
|
13208
|
-
readonly requestBody?: never;
|
|
13209
|
-
readonly responses: {
|
|
13210
|
-
/** @description Whether a lease was armed. */
|
|
13211
|
-
readonly 200: {
|
|
13212
|
-
headers: {
|
|
13213
|
-
readonly [name: string]: unknown;
|
|
13214
|
-
};
|
|
13215
|
-
content: {
|
|
13216
|
-
readonly "application/json": components["schemas"]["QuoteLeaseRelease"];
|
|
13217
|
-
};
|
|
13218
|
-
};
|
|
13219
|
-
readonly 400: components["responses"]["Error"];
|
|
13220
|
-
readonly 401: components["responses"]["Error"];
|
|
13221
|
-
readonly 403: components["responses"]["Error"];
|
|
13222
|
-
readonly 404: components["responses"]["Error"];
|
|
13223
|
-
readonly 429: components["responses"]["RateLimited"];
|
|
13224
|
-
readonly 500: components["responses"]["InternalError"];
|
|
13225
|
-
readonly 503: components["responses"]["Unavailable"];
|
|
13226
|
-
};
|
|
13227
|
-
};
|
|
13228
13153
|
readonly acceptQuote: {
|
|
13229
13154
|
readonly parameters: {
|
|
13230
13155
|
readonly query?: never;
|
|
@@ -13250,7 +13175,7 @@ export interface operations {
|
|
|
13250
13175
|
};
|
|
13251
13176
|
};
|
|
13252
13177
|
readonly responses: {
|
|
13253
|
-
/** @description The acceptance after the maker answered or the two-second confirm window closed, returned within three seconds. Its status is `ACCEPTED`, `DECLINED`, `TIMED_OUT` or `CANCELLED`, never `PENDING_CONFIRM`. `ACCEPTED` means the trade is queued, not yet on chain: follow `OPERATION_UPDATED` on the account stream until it ends. Only `COMMITTED` opened the position; an operation that ends `EXPIRED_UNEXECUTED` or `REVERTED` traded nothing, and its `
|
|
13178
|
+
/** @description The acceptance after the maker answered or the two-second confirm window closed, returned within three seconds. Its status is `ACCEPTED`, `DECLINED`, `TIMED_OUT` or `CANCELLED`, never `PENDING_CONFIRM`. `ACCEPTED` means the trade is queued, not yet on chain: follow `OPERATION_UPDATED` on the account stream until it ends. Only `COMMITTED` opened the position; an operation that ends `EXPIRED_UNEXECUTED` or `REVERTED` traded nothing, and its `reason` says why when known. For an entry, the position's `position_id` is the accepted `quote_id`. */
|
|
13254
13179
|
readonly 200: {
|
|
13255
13180
|
headers: {
|
|
13256
13181
|
readonly [name: string]: unknown;
|
|
@@ -13268,7 +13193,7 @@ export interface operations {
|
|
|
13268
13193
|
readonly 422: components["responses"]["Error"];
|
|
13269
13194
|
readonly 429: components["responses"]["RateLimited"];
|
|
13270
13195
|
readonly 500: components["responses"]["InternalError"];
|
|
13271
|
-
/** @description `EXECUTION_BACKLOG_FULL`: the venue's on-chain queue could not send this trade before the quote expires, so nothing was created and the maker was not asked. Wait `Retry-After` seconds and accept a fresh quote. `CONTRACT_UNAVAILABLE`:
|
|
13196
|
+
/** @description `EXECUTION_BACKLOG_FULL`: the venue's on-chain queue could not send this trade before the quote expires, so nothing was created and the maker was not asked. Wait `Retry-After` seconds and accept a fresh quote. `CONTRACT_UNAVAILABLE`: the stake needs your wallet's approval and this deployment has no WalletAccept. */
|
|
13272
13197
|
readonly 503: components["responses"]["Unavailable"];
|
|
13273
13198
|
};
|
|
13274
13199
|
};
|
|
@@ -13287,7 +13212,7 @@ export interface operations {
|
|
|
13287
13212
|
};
|
|
13288
13213
|
readonly requestBody?: never;
|
|
13289
13214
|
readonly responses: {
|
|
13290
|
-
/** @description The acceptance as it stands now, whichever key or session made it. Reading it writes nothing and moves no funds. */
|
|
13215
|
+
/** @description The acceptance as it stands now, whichever key or session made it. Reading it writes nothing and moves no funds. For an entry, the position's `position_id` is the accepted `quote_id`. */
|
|
13291
13216
|
readonly 200: {
|
|
13292
13217
|
headers: {
|
|
13293
13218
|
readonly [name: string]: unknown;
|
|
@@ -13438,13 +13363,9 @@ export interface operations {
|
|
|
13438
13363
|
};
|
|
13439
13364
|
readonly cookie?: never;
|
|
13440
13365
|
};
|
|
13441
|
-
readonly requestBody
|
|
13442
|
-
readonly content: {
|
|
13443
|
-
readonly "application/json": components["schemas"]["CreateCashoutCommand"];
|
|
13444
|
-
};
|
|
13445
|
-
};
|
|
13366
|
+
readonly requestBody?: never;
|
|
13446
13367
|
readonly responses: {
|
|
13447
|
-
/** @description The cash-out RFQ was created, or an exact retry returned it.
|
|
13368
|
+
/** @description The cash-out RFQ was created, or an exact retry returned it. The maker that backs the position answers with a bid; you accept one like an entry quote, and the maker confirms it. */
|
|
13448
13369
|
readonly 201: {
|
|
13449
13370
|
headers: {
|
|
13450
13371
|
readonly [name: string]: unknown;
|
|
@@ -13568,10 +13489,15 @@ export interface operations {
|
|
|
13568
13489
|
*/
|
|
13569
13490
|
readonly subcategory?: components["parameters"]["Subcategory"];
|
|
13570
13491
|
/**
|
|
13571
|
-
* @description Keep only markets whose current eligibility.
|
|
13492
|
+
* @description Keep only markets whose current eligibility.status is this value: ENABLED for markets that accept new positions now, DISABLED for the rest. Eligibility is live, so a market can change status between pages. The filter applies after paging, so a page can be short or empty while has_more is true; next_cursor being null is the only terminal signal. The cursor is bound to this filter.
|
|
13572
13493
|
* @example ENABLED
|
|
13573
13494
|
*/
|
|
13574
13495
|
readonly eligibility?: "ENABLED" | "DISABLED";
|
|
13496
|
+
/**
|
|
13497
|
+
* @description Keep only markets whose current combo.status is this value: OPEN for markets a Combo may take as a leg now, CLOSED for the rest. Combo status is live: a market opens when it enters its 7-day window and closes when its event starts, so it can change status between pages. The filter applies after paging, so a page can be short or empty while has_more is true; next_cursor being null is the only terminal signal. The cursor is bound to this filter. Combine with eligibility=ENABLED for markets a Combo can include now.
|
|
13498
|
+
* @example OPEN
|
|
13499
|
+
*/
|
|
13500
|
+
readonly combo?: "OPEN" | "CLOSED";
|
|
13575
13501
|
/**
|
|
13576
13502
|
* @description Maximum items per page, 1 to 200, default 50. A page may hold fewer, even none, while has_more is true.
|
|
13577
13503
|
* @example 50
|
|
@@ -13584,7 +13510,7 @@ export interface operations {
|
|
|
13584
13510
|
};
|
|
13585
13511
|
readonly requestBody?: never;
|
|
13586
13512
|
readonly responses: {
|
|
13587
|
-
/** @description One page of active markets in one flat list, not grouped by question. Each market is one HIP-4 outcome with its YES and NO sides, its own `title` and its `native_question_id`, but not the question's title; fallback and settled outcomes are left out. A listed market is not a promise that an RFQ on it will be quoted or accepted. */
|
|
13513
|
+
/** @description One page of active markets in one flat list, not grouped by question. Each market is one HIP-4 outcome with its YES and NO sides, its own `title` and its `native_question_id`, but not the question's title; fallback and settled outcomes are left out. Rows leave out metadata_revision and the result's recorded_at_block and evidence_digest; read GET /v1/markets/{outcome_id} for them. A listed market is not a promise that an RFQ on it will be quoted or accepted. */
|
|
13588
13514
|
readonly 200: {
|
|
13589
13515
|
headers: {
|
|
13590
13516
|
readonly [name: string]: unknown;
|
|
@@ -13664,72 +13590,6 @@ export interface operations {
|
|
|
13664
13590
|
readonly 503: components["responses"]["Unavailable"];
|
|
13665
13591
|
};
|
|
13666
13592
|
};
|
|
13667
|
-
readonly getMarketHistory: {
|
|
13668
|
-
readonly parameters: {
|
|
13669
|
-
readonly query: {
|
|
13670
|
-
/**
|
|
13671
|
-
* @description Outcome side whose price history is returned.
|
|
13672
|
-
* @example YES
|
|
13673
|
-
*/
|
|
13674
|
-
readonly side: components["parameters"]["Side"];
|
|
13675
|
-
/**
|
|
13676
|
-
* @description Use `REFERENCE_PRICE_OHLC` for a line chart and `TRADE_OHLCV` for candles; `AUTO` uses trades when there are any. AUTO selects retained closed trade buckets in the window, otherwise reference history. REFERENCE_PRICE_OHLC prefers L2, then BBO, then allMids among sources with a closed bucket in the window; with none it carries the most recent earlier source inside the 90-day online window, breaking ties in that order. With no evidence the empty reference response is labelled L2/BOOK_MID. Explicit series avoids AUTO switching when trades arrive.
|
|
13677
|
-
* @example AUTO
|
|
13678
|
-
*/
|
|
13679
|
-
readonly series?: components["parameters"]["HistorySeries"];
|
|
13680
|
-
/**
|
|
13681
|
-
* @description Inclusive RFC3339 window start. Omit from and to together for the exact rolling 24 hours ending at server time; supplying only one is rejected. The response repeats the resolved bounds, which later pages must reuse.
|
|
13682
|
-
* @example 2026-09-25T12:00:00Z
|
|
13683
|
-
*/
|
|
13684
|
-
readonly from?: components["parameters"]["From"];
|
|
13685
|
-
/**
|
|
13686
|
-
* @description Exclusive RFC3339 window end, at most 24 hours after from. Omit from and to together for the server default.
|
|
13687
|
-
* @example 2026-09-26T12:00:00Z
|
|
13688
|
-
*/
|
|
13689
|
-
readonly to?: components["parameters"]["To"];
|
|
13690
|
-
/**
|
|
13691
|
-
* @description Omit for the first page; then send the previous response's next_cursor unchanged.
|
|
13692
|
-
* @example eyJ2IjoxLCJzIjoiMTIzNDUifQ
|
|
13693
|
-
*/
|
|
13694
|
-
readonly cursor?: components["parameters"]["Cursor"];
|
|
13695
|
-
/**
|
|
13696
|
-
* @description The shared page limit with one exception: the maximum is 1,440, a full 24-hour window of one-minute bars, so a chart loads in one request.
|
|
13697
|
-
* @example 1440
|
|
13698
|
-
*/
|
|
13699
|
-
readonly limit?: components["parameters"]["HistoryLimit"];
|
|
13700
|
-
/**
|
|
13701
|
-
* @description Include at most 1440 retained diagnostic gap records; gaps is empty unless this is true.
|
|
13702
|
-
* @example false
|
|
13703
|
-
*/
|
|
13704
|
-
readonly include_gaps?: components["parameters"]["HistoryIncludeGaps"];
|
|
13705
|
-
};
|
|
13706
|
-
readonly header?: never;
|
|
13707
|
-
readonly path: {
|
|
13708
|
-
/**
|
|
13709
|
-
* @description HIP-4 outcome ID of the market, as a decimal string.
|
|
13710
|
-
* @example 1209
|
|
13711
|
-
*/
|
|
13712
|
-
readonly outcome_id: components["parameters"]["OutcomeId"];
|
|
13713
|
-
};
|
|
13714
|
-
readonly cookie?: never;
|
|
13715
|
-
};
|
|
13716
|
-
readonly requestBody?: never;
|
|
13717
|
-
readonly responses: {
|
|
13718
|
-
/** @description Exactly one labelled, sparse series: reference prices or trades. Only minutes that closed before `closed_before` are returned; take the current minute from the live market stream. Later pages reuse the window this first response returns. */
|
|
13719
|
-
readonly 200: {
|
|
13720
|
-
headers: {
|
|
13721
|
-
readonly [name: string]: unknown;
|
|
13722
|
-
};
|
|
13723
|
-
content: {
|
|
13724
|
-
readonly "application/json": components["schemas"]["MarketHistory"];
|
|
13725
|
-
};
|
|
13726
|
-
};
|
|
13727
|
-
readonly 400: components["responses"]["Error"];
|
|
13728
|
-
readonly 404: components["responses"]["Error"];
|
|
13729
|
-
readonly 500: components["responses"]["InternalError"];
|
|
13730
|
-
readonly 503: components["responses"]["Unavailable"];
|
|
13731
|
-
};
|
|
13732
|
-
};
|
|
13733
13593
|
readonly getMarketReferenceCloses: {
|
|
13734
13594
|
readonly parameters: {
|
|
13735
13595
|
readonly query: {
|
|
@@ -14224,6 +14084,46 @@ export interface operations {
|
|
|
14224
14084
|
readonly 503: components["responses"]["Unavailable"];
|
|
14225
14085
|
};
|
|
14226
14086
|
};
|
|
14087
|
+
readonly getMarketResults: {
|
|
14088
|
+
readonly parameters: {
|
|
14089
|
+
readonly query: {
|
|
14090
|
+
/**
|
|
14091
|
+
* @description 1 to 100 HIP-4 outcome IDs as decimal strings, comma-separated, strictly ascending, so one set of outcomes is always one URL. Any other order, a repeat or an ID above 4294967295 is 400 INVALID_QUERY.
|
|
14092
|
+
* @example 35280,36412
|
|
14093
|
+
*/
|
|
14094
|
+
readonly outcome_ids: components["parameters"]["OutcomeIds"];
|
|
14095
|
+
};
|
|
14096
|
+
readonly header?: never;
|
|
14097
|
+
readonly path?: never;
|
|
14098
|
+
readonly cookie?: never;
|
|
14099
|
+
};
|
|
14100
|
+
readonly requestBody?: never;
|
|
14101
|
+
readonly responses: {
|
|
14102
|
+
/** @description Exactly one item per requested outcome, in request order, including outcomes with no known result. */
|
|
14103
|
+
readonly 200: {
|
|
14104
|
+
headers: {
|
|
14105
|
+
/** @description A day only when every item is final; otherwise five seconds. Errors are never stored. */
|
|
14106
|
+
readonly "Cache-Control"?: "public, max-age=86400" | "public, max-age=5";
|
|
14107
|
+
/** @description Strong validator of the whole answer; send it as `If-None-Match` to get 304 when unchanged. */
|
|
14108
|
+
readonly ETag?: string;
|
|
14109
|
+
readonly [name: string]: unknown;
|
|
14110
|
+
};
|
|
14111
|
+
content: {
|
|
14112
|
+
readonly "application/json": components["schemas"]["MarketResults"];
|
|
14113
|
+
};
|
|
14114
|
+
};
|
|
14115
|
+
/** @description The answer matches the `If-None-Match` ETag. */
|
|
14116
|
+
readonly 304: {
|
|
14117
|
+
headers: {
|
|
14118
|
+
readonly [name: string]: unknown;
|
|
14119
|
+
};
|
|
14120
|
+
content?: never;
|
|
14121
|
+
};
|
|
14122
|
+
readonly 400: components["responses"]["Error"];
|
|
14123
|
+
readonly 500: components["responses"]["InternalError"];
|
|
14124
|
+
readonly 503: components["responses"]["Unavailable"];
|
|
14125
|
+
};
|
|
14126
|
+
};
|
|
14227
14127
|
readonly getOutcomeMetadata: {
|
|
14228
14128
|
readonly parameters: {
|
|
14229
14129
|
readonly query?: {
|
|
@@ -14417,6 +14317,52 @@ export interface operations {
|
|
|
14417
14317
|
readonly 503: components["responses"]["Unavailable"];
|
|
14418
14318
|
};
|
|
14419
14319
|
};
|
|
14320
|
+
readonly getLiveMarks: {
|
|
14321
|
+
readonly parameters: {
|
|
14322
|
+
readonly query?: never;
|
|
14323
|
+
readonly header?: never;
|
|
14324
|
+
readonly path?: never;
|
|
14325
|
+
readonly cookie?: never;
|
|
14326
|
+
};
|
|
14327
|
+
readonly requestBody?: never;
|
|
14328
|
+
readonly responses: {
|
|
14329
|
+
/** @description Each charted perp's mark from Totalis's newest read of its own Hyperliquid node (about one a second), or null when unknown, never an earlier mark. Display only: it never prices or admits a trade; the market stream's `mark_ticks` or `marks` take over from it. */
|
|
14330
|
+
readonly 200: {
|
|
14331
|
+
headers: {
|
|
14332
|
+
/** @description Never stored: a kept answer could outlive the 3-second cutoff. */
|
|
14333
|
+
readonly "Cache-Control"?: "no-store";
|
|
14334
|
+
readonly [name: string]: unknown;
|
|
14335
|
+
};
|
|
14336
|
+
content: {
|
|
14337
|
+
/**
|
|
14338
|
+
* @example {
|
|
14339
|
+
* "marks": [
|
|
14340
|
+
* {
|
|
14341
|
+
* "coin": "BTC",
|
|
14342
|
+
* "px": "97124.5",
|
|
14343
|
+
* "observed_at": "2026-11-24T13:01:47.312Z"
|
|
14344
|
+
* },
|
|
14345
|
+
* {
|
|
14346
|
+
* "coin": "ETH",
|
|
14347
|
+
* "px": "3412.6",
|
|
14348
|
+
* "observed_at": "2026-11-24T13:01:47.312Z"
|
|
14349
|
+
* },
|
|
14350
|
+
* {
|
|
14351
|
+
* "coin": "xyz:SP500",
|
|
14352
|
+
* "px": null,
|
|
14353
|
+
* "observed_at": null
|
|
14354
|
+
* }
|
|
14355
|
+
* ]
|
|
14356
|
+
* }
|
|
14357
|
+
*/
|
|
14358
|
+
readonly "application/json": components["schemas"]["LiveMarks"];
|
|
14359
|
+
};
|
|
14360
|
+
};
|
|
14361
|
+
readonly 400: components["responses"]["Error"];
|
|
14362
|
+
readonly 500: components["responses"]["InternalError"];
|
|
14363
|
+
readonly 503: components["responses"]["Unavailable"];
|
|
14364
|
+
};
|
|
14365
|
+
};
|
|
14420
14366
|
readonly getRfq: {
|
|
14421
14367
|
readonly parameters: {
|
|
14422
14368
|
readonly query?: never;
|
|
@@ -14453,13 +14399,7 @@ export interface operations {
|
|
|
14453
14399
|
readonly cancelRfq: {
|
|
14454
14400
|
readonly parameters: {
|
|
14455
14401
|
readonly query?: never;
|
|
14456
|
-
readonly header
|
|
14457
|
-
/**
|
|
14458
|
-
* @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`.
|
|
14459
|
-
* @example 0198a6f6-82a5-7abc-9f2a-4f0fb437493e
|
|
14460
|
-
*/
|
|
14461
|
-
readonly "Idempotency-Key": components["parameters"]["IdempotencyKey"];
|
|
14462
|
-
};
|
|
14402
|
+
readonly header?: never;
|
|
14463
14403
|
readonly path: {
|
|
14464
14404
|
/**
|
|
14465
14405
|
* @description The RFQ's `rfq_id`, from Create RFQ or `RFQ_CREATED`.
|
|
@@ -14471,7 +14411,7 @@ export interface operations {
|
|
|
14471
14411
|
};
|
|
14472
14412
|
readonly requestBody?: never;
|
|
14473
14413
|
readonly responses: {
|
|
14474
|
-
/** @description The RFQ is cancelled, or
|
|
14414
|
+
/** @description The RFQ is cancelled, or was already cancelled. Makers stop seeing it and no new accept can start; the cancel also blocks any accept still on its way, so an acceptance read after it is final. It does not revoke a signature a maker already gave. */
|
|
14475
14415
|
readonly 204: {
|
|
14476
14416
|
headers: {
|
|
14477
14417
|
readonly [name: string]: unknown;
|
|
@@ -14482,7 +14422,7 @@ export interface operations {
|
|
|
14482
14422
|
readonly 401: components["responses"]["Error"];
|
|
14483
14423
|
readonly 403: components["responses"]["Error"];
|
|
14484
14424
|
readonly 404: components["responses"]["Error"];
|
|
14485
|
-
/** @description `RFQ_NOT_CANCELLABLE`: a quote on the RFQ was already accepted, or the RFQ expired. `STATE_CONFLICT`: an acceptance on the RFQ
|
|
14425
|
+
/** @description `RFQ_NOT_CANCELLABLE`: a quote on the RFQ was already accepted, or the RFQ expired. `STATE_CONFLICT`: an acceptance of a quote on the RFQ awaits the maker's answer, so the RFQ stays open for it; nothing was cancelled, and a repeat decides afresh once the maker answers or the acceptance lapses. */
|
|
14486
14426
|
readonly 409: components["responses"]["Error"];
|
|
14487
14427
|
readonly 429: components["responses"]["RateLimited"];
|
|
14488
14428
|
readonly 500: components["responses"]["InternalError"];
|
|
@@ -14524,7 +14464,7 @@ export interface operations {
|
|
|
14524
14464
|
};
|
|
14525
14465
|
readonly requestBody?: never;
|
|
14526
14466
|
readonly responses: {
|
|
14527
|
-
/** @description Your account's value and its parts. When
|
|
14467
|
+
/** @description Your account's value and its parts. When freshness is UNKNOWN every amount is null; read again later. No caching. */
|
|
14528
14468
|
readonly 200: {
|
|
14529
14469
|
headers: {
|
|
14530
14470
|
readonly [name: string]: unknown;
|
|
@@ -14778,7 +14718,7 @@ export interface operations {
|
|
|
14778
14718
|
};
|
|
14779
14719
|
readonly requestBody: {
|
|
14780
14720
|
readonly content: {
|
|
14781
|
-
readonly "application/json": components["schemas"]["
|
|
14721
|
+
readonly "application/json": components["schemas"]["CoreExitCommand"];
|
|
14782
14722
|
};
|
|
14783
14723
|
};
|
|
14784
14724
|
readonly responses: {
|
|
@@ -14791,7 +14731,7 @@ export interface operations {
|
|
|
14791
14731
|
readonly "application/json": components["schemas"]["CoreExit"];
|
|
14792
14732
|
};
|
|
14793
14733
|
};
|
|
14794
|
-
/** @description The `Idempotency-Key` is a UUIDv7 and becomes the exit ID. Exit `
|
|
14734
|
+
/** @description The `Idempotency-Key` is a UUIDv7 and becomes the exit ID. Sign the Exit with `account` the credential's account wallet and `to` `deployment.router_address` from `GET /v1/me/core-exits`, and expiry at most `maximum_life_seconds` ahead; a signature over other terms is `INVALID_REQUEST`. A wallet-only account under the minimum, or an activating exit under 2 USDC, names `/amount`. */
|
|
14795
14735
|
readonly 400: components["responses"]["Error"];
|
|
14796
14736
|
readonly 401: components["responses"]["Error"];
|
|
14797
14737
|
readonly 403: components["responses"]["Error"];
|
|
@@ -14918,7 +14858,7 @@ export interface operations {
|
|
|
14918
14858
|
};
|
|
14919
14859
|
readonly requestBody: {
|
|
14920
14860
|
readonly content: {
|
|
14921
|
-
readonly "application/json": components["schemas"]["
|
|
14861
|
+
readonly "application/json": components["schemas"]["DepositCommand"];
|
|
14922
14862
|
};
|
|
14923
14863
|
};
|
|
14924
14864
|
readonly responses: {
|
|
@@ -14931,13 +14871,13 @@ export interface operations {
|
|
|
14931
14871
|
readonly "application/json": components["schemas"]["DepositAccepted"];
|
|
14932
14872
|
};
|
|
14933
14873
|
};
|
|
14934
|
-
/** @description A deposit moves at least 0.10 USDC from a Privy login wallet, embedded or external, and 1 USDC from any other
|
|
14874
|
+
/** @description A deposit moves at least 0.10 USDC from a Privy login wallet, embedded or external, and 1 USDC from any other; below it `INVALID_REQUEST` names `/amount` and the message names this wallet's minimum. An account without exactly one account wallet, or whose wallet controls a maker, cannot deposit (`INVALID_REQUEST`). */
|
|
14935
14875
|
readonly 400: components["responses"]["Error"];
|
|
14936
14876
|
readonly 401: components["responses"]["Error"];
|
|
14937
|
-
/** @description
|
|
14877
|
+
/** @description The credential is a partner server key or a maker key, or a participant key without `funding:deposit` and `sponsorship:use`. */
|
|
14938
14878
|
readonly 403: components["responses"]["Error"];
|
|
14939
14879
|
readonly 404: components["responses"]["Error"];
|
|
14940
|
-
/** @description
|
|
14880
|
+
/** @description `INSUFFICIENT_WALLET_BALANCE`: the wallet's USDC, less what its other pending work draws, does not cover `amount`. `STATE_CONFLICT`: the authorization was already used or is queued, or the vault release is in run-off. */
|
|
14941
14881
|
readonly 409: components["responses"]["Error"];
|
|
14942
14882
|
readonly 422: components["responses"]["Error"];
|
|
14943
14883
|
readonly 429: components["responses"]["RateLimited"];
|
|
@@ -14999,7 +14939,7 @@ export interface operations {
|
|
|
14999
14939
|
};
|
|
15000
14940
|
readonly requestBody: {
|
|
15001
14941
|
readonly content: {
|
|
15002
|
-
readonly "application/json": components["schemas"]["
|
|
14942
|
+
readonly "application/json": components["schemas"]["RunOffClaimCommand"];
|
|
15003
14943
|
};
|
|
15004
14944
|
};
|
|
15005
14945
|
readonly responses: {
|
|
@@ -15012,7 +14952,7 @@ export interface operations {
|
|
|
15012
14952
|
readonly "application/json": components["schemas"]["RunOffClaim"];
|
|
15013
14953
|
};
|
|
15014
14954
|
};
|
|
15015
|
-
/** @description The `Idempotency-Key` is a UUIDv7. `vault_address` must name a vault running off, the Exit must be signed for its domain with `
|
|
14955
|
+
/** @description The `Idempotency-Key` is a UUIDv7. `vault_address` must name a vault running off, the Exit must be signed for its domain with `account` and `to` both the credential's account wallet, and a wallet-only account moves at least 1 USDC (else `/amount`). */
|
|
15016
14956
|
readonly 400: components["responses"]["Error"];
|
|
15017
14957
|
readonly 401: components["responses"]["Error"];
|
|
15018
14958
|
readonly 403: components["responses"]["Error"];
|
|
@@ -15366,7 +15306,3 @@ export interface operations {
|
|
|
15366
15306
|
};
|
|
15367
15307
|
};
|
|
15368
15308
|
}
|
|
15369
|
-
type WithRequired<T, K extends keyof T> = T & {
|
|
15370
|
-
[P in K]-?: T[P];
|
|
15371
|
-
};
|
|
15372
|
-
export {};
|