@totalis/hip4-client 0.117.0 → 0.119.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 +96 -0
- package/dist/generated/account-read.d.ts +1 -1
- package/dist/generated/api-keys.d.ts +1 -1
- package/dist/generated/browse.d.ts +1 -1
- package/dist/generated/client.d.ts +7 -1
- package/dist/generated/errors.d.ts +23 -2
- package/dist/generated/errors.js +85 -0
- package/dist/generated/maker.d.ts +2 -1
- package/dist/generated/openapi.d.ts +657 -30
- package/dist/generated/realtime.d.ts +67 -6
- package/dist/generated/version.d.ts +8 -8
- package/dist/generated/version.js +13 -6
- package/package.json +3 -2
|
@@ -808,7 +808,7 @@ export type paths = {
|
|
|
808
808
|
};
|
|
809
809
|
/**
|
|
810
810
|
* Get the golden ticket
|
|
811
|
-
* @description The account's golden ticket (TT-2624):
|
|
811
|
+
* @description The account's current golden ticket (TT-2624): its latest free Combo, null for an account that never got one or where golden Combos are off. A free Combo lands with an account created from an invite code's golden link while the code still had free Combos to unlock, with a Free Combo link the account claimed (POST /v1/me/golden/claim), or when Totalis gives the account one. An account holds at most one unused or in-flight free Combo at a time and may get the next once that one is used or expired; this read answers the latest, and one Totalis cancelled before it was used reads as null. A ticket is LOCKED until this account unlocks it (POST /v1/me/golden/unlock); a LOCKED ticket is returned like any other, never null. A ticket not yet unlocked here first takes an unlock this account already made whose answer was lost, so another device or a reload sees it; reading never reads X or takes anything, and answers DEPENDENCY_STALE, not LOCKED, when that cannot be checked.
|
|
812
812
|
*/
|
|
813
813
|
readonly get: operations["getGolden"];
|
|
814
814
|
readonly put?: never;
|
|
@@ -830,7 +830,7 @@ export type paths = {
|
|
|
830
830
|
readonly put?: never;
|
|
831
831
|
/**
|
|
832
832
|
* Unlock the golden ticket
|
|
833
|
-
* @description Unlocks this account's LOCKED golden ticket, which makes it AVAILABLE
|
|
833
|
+
* @description Unlocks this account's LOCKED golden ticket, which makes it AVAILABLE, and takes one free Combo from the invite code or Free Combo link it came from: whoever unlocks first gets the last one. A free Combo Totalis gave takes none. No X account is needed (TT-2867): Totalis records the X account linked to the login, when there is one, and it gates nothing. The body is `{}` or carries the browser's analytics `device_id`, which only feeds the farm check: a browser another account already unlocked with refuses the unlock for good, GOLDEN_NOT_ELIGIBLE, and the account otherwise trades as before. The ticket keys the request: once it is unlocked, the same request answers the ticket as it stands and takes nothing more, so an unlock whose answer was lost is found by unlocking again. An unlocked ticket that expires unused gives nothing back. Refusals take nothing: GOLDEN_GIVEN_OUT (the code or link has none left), GOLDEN_CODE_DISABLED (the code is disabled or the link cancelled), GOLDEN_TICKET_EXPIRED (it expired before it was unlocked), GOLDEN_TICKET_USED or GOLDEN_PLACEMENT_IN_FLIGHT (a ticket used before unlocking existed, which needs no unlock), GOLDEN_NOT_ELIGIBLE (refused as farming). X_REQUIRED, X_ALREADY_CLAIMED and X_VERIFICATION_UNAVAILABLE are never sent since contract 254 and stay listed for this release only. The ticket's 7 days still run from `granted_at`.
|
|
834
834
|
*/
|
|
835
835
|
readonly post: operations["unlockGolden"];
|
|
836
836
|
readonly delete?: never;
|
|
@@ -859,6 +859,26 @@ export type paths = {
|
|
|
859
859
|
readonly patch?: never;
|
|
860
860
|
readonly trace?: never;
|
|
861
861
|
};
|
|
862
|
+
readonly "/v1/me/golden/claim": {
|
|
863
|
+
readonly parameters: {
|
|
864
|
+
readonly query?: never;
|
|
865
|
+
readonly header?: never;
|
|
866
|
+
readonly path?: never;
|
|
867
|
+
readonly cookie?: never;
|
|
868
|
+
};
|
|
869
|
+
readonly get?: never;
|
|
870
|
+
readonly put?: never;
|
|
871
|
+
/**
|
|
872
|
+
* Claim a Free Combo link
|
|
873
|
+
* @description Gives this signed-in account the free Combo of a Free Combo link Totalis made, as a LOCKED ticket that lands now: 7 days from now, at the link's stake, with the link's note. It is then unlocked and placed like any golden ticket; a link's free Combo is taken when an account finishes unlocking it, so with several holders the first to unlock gets the link's last one and the others' unlock answers GOLDEN_GIVEN_OUT. A new sign-up takes the same link with POST /v1/access/redemptions instead. Claiming the link this account already holds answers the ticket as it stands, also once the link is taken, expired or cancelled. Refusals take nothing: NOT_FOUND (no Free Combo link by that name, or a retired one), GOLDEN_LINK_SIGN_UP_ONLY (a person's or campaign's link, which gives free Combos to new sign-ups only), GOLDEN_GIVEN_OUT (every free Combo of the link was unlocked, or it expired 30 days after it was made), GOLDEN_CODE_DISABLED (Totalis cancelled the link), GOLDEN_LINK_CLAIMED (this account already had this link's free Combo), GOLDEN_TICKET_HELD (this account holds an unused free Combo, or one being unlocked: unlock or place it first; one whose unlock answered GOLDEN_GIVEN_OUT or GOLDEN_CODE_DISABLED gives way to the claimed link) and GOLDEN_PLACEMENT_IN_FLIGHT (this account's free Combo is being placed or delivered).
|
|
874
|
+
*/
|
|
875
|
+
readonly post: operations["claimGoldenLink"];
|
|
876
|
+
readonly delete?: never;
|
|
877
|
+
readonly options?: never;
|
|
878
|
+
readonly head?: never;
|
|
879
|
+
readonly patch?: never;
|
|
880
|
+
readonly trace?: never;
|
|
881
|
+
};
|
|
862
882
|
readonly "/v1/me/golden/markets": {
|
|
863
883
|
readonly parameters: {
|
|
864
884
|
readonly query?: never;
|
|
@@ -888,7 +908,7 @@ export type paths = {
|
|
|
888
908
|
};
|
|
889
909
|
/**
|
|
890
910
|
* List golden suggestions
|
|
891
|
-
* @description Up to three ready-made golden Combos from different games, for an account whose golden ticket is
|
|
911
|
+
* @description Up to three ready-made golden Combos from different games, for an account whose golden ticket is AVAILABLE, or LOCKED and not refused (`not_eligible` false): 5 legs from golden markets at this account's ticket's stake, as GET /v1/me/golden shows it (for a LOCKED ticket, what its unlock would take now), one per fair-multiplier band, biggest first. A refused LOCKED ticket answers GOLDEN_UNLOCK_REQUIRED. Each shows the best house-maker offer the promo account holds on it at that stake right now, live while any holder of a ticket at that stake reads golden Combos; a five with no such offer, or one paying under the golden value floor, is left out. Picking one only fills the slip; place it through POST /v1/me/golden/rfqs, which asks afresh, so the slip's own offer is what places.
|
|
892
912
|
*/
|
|
893
913
|
readonly get: operations["getGoldenSuggestions"];
|
|
894
914
|
readonly put?: never;
|
|
@@ -910,7 +930,7 @@ export type paths = {
|
|
|
910
930
|
readonly put?: never;
|
|
911
931
|
/**
|
|
912
932
|
* Open a golden RFQ
|
|
913
|
-
* @description Opens the Totalis promo account's RFQ for this account's golden Combo: exactly 5 legs, each a golden market, at the ticket's stake, which Totalis pays. Makers quote it like any RFQ; read the best Totalis maker quote with GET /v1/me/golden/rfqs/{rfq_id}/offer.
|
|
933
|
+
* @description Opens the Totalis promo account's RFQ for this account's golden Combo: exactly 5 legs, each a golden market, at the ticket's stake, which Totalis pays. Makers quote it like any RFQ; read the best Totalis maker quote with GET /v1/me/golden/rfqs/{rfq_id}/offer. A LOCKED ticket that is not refused (`not_eligible` false) opens one too, at the stake its unlock would take now, so the account sees its Combo's price before it unlocks; placing still needs the unlock (GOLDEN_UNLOCK_REQUIRED), and an unlock that fixes another stake leaves the RFQ unplaceable (QUOTE_EXPIRED on its offer): open a new one. A refused LOCKED ticket answers GOLDEN_UNLOCK_REQUIRED.
|
|
914
934
|
*/
|
|
915
935
|
readonly post: operations["createGoldenRfq"];
|
|
916
936
|
readonly delete?: never;
|
|
@@ -928,7 +948,7 @@ export type paths = {
|
|
|
928
948
|
};
|
|
929
949
|
/**
|
|
930
950
|
* Get the golden offer
|
|
931
|
-
* @description The best live Totalis maker quote on this account's golden RFQ
|
|
951
|
+
* @description The best live Totalis maker quote on this account's golden RFQ and what it pays on a win. `offer` is null until a Totalis maker quotes. `rfq` is where the RFQ stands, as Get RFQ says, so a client polls this alone. QUOTE_EXPIRED when the RFQ is not at the ticket's stake (the one its unlock fixed, or for a LOCKED ticket what its unlock would take now), so nothing on it can place: open a new one; DEPENDENCY_STALE while access-service cannot say a LOCKED ticket's stake; GOLDEN_UNLOCK_REQUIRED for a LOCKED ticket the farm check refused; GOLDEN_TICKET_EXPIRED once the ticket expired unused, unlocked or not.
|
|
932
952
|
*/
|
|
933
953
|
readonly get: operations["getGoldenOffer"];
|
|
934
954
|
readonly put?: never;
|
|
@@ -950,7 +970,7 @@ export type paths = {
|
|
|
950
970
|
readonly put?: never;
|
|
951
971
|
/**
|
|
952
972
|
* Place the golden Combo
|
|
953
|
-
* @description Totalis buys a golden Combo from its promo account and gifts the position to this account. A press (`rfq_id` and `min_win_amount`) needs no signature: Totalis re-runs the golden checks, takes the best live Totalis maker quote paying at least `min_win_amount` on a win at that moment and accepts it as the promo account; once bought, GET /v1/me/golden names the gift Transfer for this account's wallet to sign (signGoldenGift).
|
|
973
|
+
* @description Totalis buys a golden Combo from its promo account and gifts the position to this account. A press (`rfq_id` and `min_win_amount`) needs no signature: Totalis re-runs the golden checks, takes the best live Totalis maker quote paying at least `min_win_amount` on a win at that moment and accepts it as the promo account; once bought, GET /v1/me/golden names the gift Transfer for this account's wallet to sign (signGoldenGift). A retry with the same Idempotency-Key answers the placement that key made as it stands now (its state, failure and position), not the first answer: a first PLACING can replay as BOUGHT, and a refusal answered after the placement was recorded replays as that FAILED placement. The promo account accepts one Combo at a time: a placement waits for the previous one until its quote's accept_before.
|
|
954
974
|
*/
|
|
955
975
|
readonly post: operations["placeGolden"];
|
|
956
976
|
readonly delete?: never;
|
|
@@ -979,6 +999,46 @@ export type paths = {
|
|
|
979
999
|
readonly patch?: never;
|
|
980
1000
|
readonly trace?: never;
|
|
981
1001
|
};
|
|
1002
|
+
readonly "/v1/golden/markets": {
|
|
1003
|
+
readonly parameters: {
|
|
1004
|
+
readonly query?: never;
|
|
1005
|
+
readonly header?: never;
|
|
1006
|
+
readonly path?: never;
|
|
1007
|
+
readonly cookie?: never;
|
|
1008
|
+
};
|
|
1009
|
+
/**
|
|
1010
|
+
* List golden markets, signed out
|
|
1011
|
+
* @description The same golden markets GET /v1/me/golden/markets lists, for anyone: the list depends on no account. A snapshot for building a golden Combo, never a decision: opening a golden RFQ checks its legs again. 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.
|
|
1012
|
+
*/
|
|
1013
|
+
readonly get: operations["getPublicGoldenMarkets"];
|
|
1014
|
+
readonly put?: never;
|
|
1015
|
+
readonly post?: never;
|
|
1016
|
+
readonly delete?: never;
|
|
1017
|
+
readonly options?: never;
|
|
1018
|
+
readonly head?: never;
|
|
1019
|
+
readonly patch?: never;
|
|
1020
|
+
readonly trace?: never;
|
|
1021
|
+
};
|
|
1022
|
+
readonly "/v1/golden/links/{link}/suggestions": {
|
|
1023
|
+
readonly parameters: {
|
|
1024
|
+
readonly query?: never;
|
|
1025
|
+
readonly header?: never;
|
|
1026
|
+
readonly path?: never;
|
|
1027
|
+
readonly cookie?: never;
|
|
1028
|
+
};
|
|
1029
|
+
/**
|
|
1030
|
+
* List a Free Combo link's ready-made golden Combos
|
|
1031
|
+
* @description Up to three ready-made golden Combos for a visitor of a Free Combo link, signed out or not: the fives, and the live house offers on them, that an account with a ticket from this link reads in GET /v1/me/golden/suggestions, at the stake the link's code gives a free Combo now. The answer leaves that stake out because the app never shows it; it is not secret, since the promo account's RFQs at it are open entry RFQs like any other. Each link's answer is a snapshot of at most 30 seconds, like the invite read's. Only a current golden link that gives a free Combo to a new sign-up now, as GET /v1/access/invites/{code} answers AVAILABLE, has them; any other name, a code's own, an old name, a retired, given-out, disabled or unknown link, answers NOT_FOUND alike: on this route it means only that the link gives no free Combo now. Nothing here places: after signing up, open a golden RFQ with the five's legs (POST /v1/me/golden/rfqs), whose own offer is what places. Anyone reads it, from any origin; a supplied credential must still authenticate and changes nothing. Never cached.
|
|
1032
|
+
*/
|
|
1033
|
+
readonly get: operations["getGoldenLinkSuggestions"];
|
|
1034
|
+
readonly put?: never;
|
|
1035
|
+
readonly post?: never;
|
|
1036
|
+
readonly delete?: never;
|
|
1037
|
+
readonly options?: never;
|
|
1038
|
+
readonly head?: never;
|
|
1039
|
+
readonly patch?: never;
|
|
1040
|
+
readonly trace?: never;
|
|
1041
|
+
};
|
|
982
1042
|
readonly "/v1/leaderboard/volume": {
|
|
983
1043
|
readonly parameters: {
|
|
984
1044
|
readonly query?: never;
|
|
@@ -1607,6 +1667,26 @@ export type paths = {
|
|
|
1607
1667
|
readonly patch?: never;
|
|
1608
1668
|
readonly trace?: never;
|
|
1609
1669
|
};
|
|
1670
|
+
readonly "/v1/me/trading-rewards": {
|
|
1671
|
+
readonly parameters: {
|
|
1672
|
+
readonly query?: never;
|
|
1673
|
+
readonly header?: never;
|
|
1674
|
+
readonly path?: never;
|
|
1675
|
+
readonly cookie?: never;
|
|
1676
|
+
};
|
|
1677
|
+
/**
|
|
1678
|
+
* Get my trading rewards
|
|
1679
|
+
* @description The authenticated account's one-time trading rewards. Each tier the account's own Combo stake since starts_at reaches pays its reward once, and every tier pays on its own, to the account wallet, from the program's budget; a tier reached after the budget ran out is CAPPED and pays nothing. A one-leg entry is a single-market buy, not a Combo; a golden Combo is not the account's own stake; and a voided Combo, every leg settled at half, counts for nothing. Answers CONTRACT_UNAVAILABLE where trading rewards are off.
|
|
1680
|
+
*/
|
|
1681
|
+
readonly get: operations["getMyTradingRewards"];
|
|
1682
|
+
readonly put?: never;
|
|
1683
|
+
readonly post?: never;
|
|
1684
|
+
readonly delete?: never;
|
|
1685
|
+
readonly options?: never;
|
|
1686
|
+
readonly head?: never;
|
|
1687
|
+
readonly patch?: never;
|
|
1688
|
+
readonly trace?: never;
|
|
1689
|
+
};
|
|
1610
1690
|
readonly "/v1/me/copy-summary": {
|
|
1611
1691
|
readonly parameters: {
|
|
1612
1692
|
readonly query?: never;
|
|
@@ -2354,7 +2434,7 @@ export type paths = {
|
|
|
2354
2434
|
/**
|
|
2355
2435
|
* Get market history
|
|
2356
2436
|
* @deprecated
|
|
2357
|
-
* @description Get up to 24 hours of one-minute price history for one side of a market; deprecated
|
|
2437
|
+
* @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.
|
|
2358
2438
|
*/
|
|
2359
2439
|
readonly get: operations["getMarketHistory"];
|
|
2360
2440
|
readonly put?: never;
|
|
@@ -2383,7 +2463,7 @@ export type paths = {
|
|
|
2383
2463
|
* @deprecated
|
|
2384
2464
|
* @description Anyone: get the one-minute or one-hour closes of a market side's reference price history, compressed for a line chart.
|
|
2385
2465
|
*
|
|
2386
|
-
* Deprecated: the chart read `GET /v1/charts/{series}`
|
|
2466
|
+
* Deprecated: the chart read `GET /v1/charts/{series}` replaces it. It keeps working until its removal, which gets a dated notice first.
|
|
2387
2467
|
*
|
|
2388
2468
|
* With `bucket=MINUTE`, the default, this is `series=REFERENCE_PRICE_OHLC` history with only each minute's close: the same source, window, anchor, scale, `closed_before`, `limit` and cursor. With `bucket=HOUR` each UTC hour carries the close of its last observed minute over a window of up to 90 days, for charts longer than a day. Each run `[bucket, close, buckets]` covers `buckets` consecutive observed buckets of `bucket_seconds` from `bucket` (Unix seconds) that closed at `close`; a missing bucket or a new close starts a new run. Expanding minute runs gives exactly the minutes and closes of the matching history page. Reference minutes record the chance the market showed, whatever its `chance_basis`, so a minute without a known chance is absent; minutes before TT-2366 hold only midpoint chances. Never fill a bucket between runs.
|
|
2389
2469
|
*/
|
|
@@ -2474,6 +2554,32 @@ export type paths = {
|
|
|
2474
2554
|
readonly patch?: never;
|
|
2475
2555
|
readonly trace?: never;
|
|
2476
2556
|
};
|
|
2557
|
+
readonly "/v1/markets/{outcome_id}/trades": {
|
|
2558
|
+
readonly parameters: {
|
|
2559
|
+
readonly query?: never;
|
|
2560
|
+
readonly header?: never;
|
|
2561
|
+
readonly path: {
|
|
2562
|
+
/**
|
|
2563
|
+
* @description HIP-4 outcome ID of the market, as a decimal string.
|
|
2564
|
+
* @example 1209
|
|
2565
|
+
*/
|
|
2566
|
+
readonly outcome_id: components["parameters"]["OutcomeId"];
|
|
2567
|
+
};
|
|
2568
|
+
readonly cookie?: never;
|
|
2569
|
+
};
|
|
2570
|
+
/**
|
|
2571
|
+
* List a market's trades
|
|
2572
|
+
* @description Anyone: page a market's taker orders from the account index, newest block first in whole HyperCore blocks, the same events with the same ids as the market stream's trades frames, for history below a tradesSnapshot's complete_from_height; a signed-out answer is the same for everyone and cached for 30 seconds.
|
|
2573
|
+
*/
|
|
2574
|
+
readonly get: operations["listMarketTrades"];
|
|
2575
|
+
readonly put?: never;
|
|
2576
|
+
readonly post?: never;
|
|
2577
|
+
readonly delete?: never;
|
|
2578
|
+
readonly options?: never;
|
|
2579
|
+
readonly head?: never;
|
|
2580
|
+
readonly patch?: never;
|
|
2581
|
+
readonly trace?: never;
|
|
2582
|
+
};
|
|
2477
2583
|
readonly "/v1/questions/{question_id}/score-timeline": {
|
|
2478
2584
|
readonly parameters: {
|
|
2479
2585
|
readonly query?: never;
|
|
@@ -2684,7 +2790,7 @@ export type paths = {
|
|
|
2684
2790
|
* @deprecated
|
|
2685
2791
|
* @description Anyone: get a perp's mark price on a fixed step, for a price chart.
|
|
2686
2792
|
*
|
|
2687
|
-
* Deprecated: the chart read `GET /v1/charts/{series}`
|
|
2793
|
+
* Deprecated: the chart read `GET /v1/charts/{series}` replaces it. It keeps working until its removal, which gets a dated notice first.
|
|
2688
2794
|
*
|
|
2689
2795
|
* Totalis records the mark of every perp a listed price market charts from its own Hyperliquid node about once a second and keeps four days of it. Each step closes at the mark at its end; steps group into runs `[step, mark, steps]` of `step_seconds` from `step` (Unix seconds). A step the record cannot prove, because no read of the node came within 2.5 seconds around its end, is absent: never fill it. `through` is the end of the last step the record reaches; everything up to it is final, so a client reads only what came after it next time and takes the newest price from its live feed. A perp no listed market has charted in the last four days is 404 NOT_FOUND.
|
|
2690
2796
|
*/
|
|
@@ -2697,6 +2803,32 @@ export type paths = {
|
|
|
2697
2803
|
readonly patch?: never;
|
|
2698
2804
|
readonly trace?: never;
|
|
2699
2805
|
};
|
|
2806
|
+
readonly "/v1/charts/{series}": {
|
|
2807
|
+
readonly parameters: {
|
|
2808
|
+
readonly query?: never;
|
|
2809
|
+
readonly header?: never;
|
|
2810
|
+
readonly path: {
|
|
2811
|
+
/**
|
|
2812
|
+
* @description The line: `chance:<outcome_id>` for an outcome's YES chance (NO is the scale minus each value; an outcome id no HIP-4 asset can have, above 419496729, is 400), or `mark:<coin>` for a perp's mark as Hyperliquid names it.
|
|
2813
|
+
* @example chance:8573
|
|
2814
|
+
*/
|
|
2815
|
+
readonly series: string;
|
|
2816
|
+
};
|
|
2817
|
+
readonly cookie?: never;
|
|
2818
|
+
};
|
|
2819
|
+
/**
|
|
2820
|
+
* Get chart
|
|
2821
|
+
* @description Anyone: get one chance or perp mark line on a grid the server picks, reduced for drawing, whose recorded part never changes.
|
|
2822
|
+
*/
|
|
2823
|
+
readonly get: operations["getChart"];
|
|
2824
|
+
readonly put?: never;
|
|
2825
|
+
readonly post?: never;
|
|
2826
|
+
readonly delete?: never;
|
|
2827
|
+
readonly options?: never;
|
|
2828
|
+
readonly head?: never;
|
|
2829
|
+
readonly patch?: never;
|
|
2830
|
+
readonly trace?: never;
|
|
2831
|
+
};
|
|
2700
2832
|
readonly "/v1/rfqs/{rfq_id}": {
|
|
2701
2833
|
readonly parameters: {
|
|
2702
2834
|
readonly query?: never;
|
|
@@ -3915,14 +4047,16 @@ export type components = {
|
|
|
3915
4047
|
};
|
|
3916
4048
|
/** GoldenTicket */
|
|
3917
4049
|
readonly GoldenTicket: {
|
|
4050
|
+
/** @description A note from Totalis that came with this free Combo, plain text to show beside it, which may hold line breaks; null when it came with none. */
|
|
4051
|
+
readonly note: null | string;
|
|
3918
4052
|
/** @description True when the free Combo's farm check refused this account for good and no operator waived it: the ticket stays LOCKED until it expires and no X account can unlock it (POST /v1/me/golden/unlock answers GOLDEN_NOT_ELIGIBLE). False otherwise. */
|
|
3919
4053
|
readonly not_eligible: boolean;
|
|
3920
4054
|
/**
|
|
3921
|
-
* @description LOCKED: unused and unexpired, and not unlocked yet: unlock it with POST /v1/me/golden/unlock; it
|
|
4055
|
+
* @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.
|
|
3922
4056
|
* @enum {string}
|
|
3923
4057
|
*/
|
|
3924
4058
|
readonly state: "LOCKED" | "AVAILABLE" | "PLACING" | "BOUGHT" | "PLACED" | "LAPSED" | "EXPIRED";
|
|
3925
|
-
/** @description When the account was created with
|
|
4059
|
+
/** @description When the ticket landed in the account: when the account was created with it, claimed its link or Totalis gave it. */
|
|
3926
4060
|
readonly granted_at: components["schemas"]["$defs-Timestamp"];
|
|
3927
4061
|
/** @description 7 days after `granted_at`, unlocked or not. */
|
|
3928
4062
|
readonly expires_at: components["schemas"]["$defs-Timestamp"];
|
|
@@ -3930,7 +4064,7 @@ export type components = {
|
|
|
3930
4064
|
readonly unlocked_at: null | components["schemas"]["$defs-Timestamp"];
|
|
3931
4065
|
/** @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. */
|
|
3932
4066
|
readonly telegram_clicked_at: null | components["schemas"]["$defs-Timestamp"];
|
|
3933
|
-
/** @description The gross stake Totalis pays, in USDC base units (6 decimals), from 1 to 10 USDC.
|
|
4067
|
+
/** @description The gross stake Totalis pays, in USDC base units (6 decimals), from 1 to 10 USDC. A free Combo Totalis gave, or one from a claimed Free Combo link, has its stake from the moment it lands; any other is fixed for good by the unlock, and until then is what unlocking would take now from the invite code, whose value Totalis may change. */
|
|
3934
4068
|
readonly stake: components["schemas"]["$defs-Amount"];
|
|
3935
4069
|
/** @constant */
|
|
3936
4070
|
readonly stake_asset: "USDC";
|
|
@@ -4010,6 +4144,26 @@ export type components = {
|
|
|
4010
4144
|
*/
|
|
4011
4145
|
readonly band: "HUGE" | "BIG" | "STEADY";
|
|
4012
4146
|
};
|
|
4147
|
+
/**
|
|
4148
|
+
* GoldenLinkSuggestedCombo
|
|
4149
|
+
* @description A ready-made golden Combo as GoldenSuggestedCombo, without the stake.
|
|
4150
|
+
*/
|
|
4151
|
+
readonly GoldenLinkSuggestedCombo: {
|
|
4152
|
+
readonly legs: readonly components["schemas"]["$defs-Leg"][];
|
|
4153
|
+
/** @description Browse contract 4 discovery card each leg was picked from, in leg order, as read when the five was composed. Lets a client draw a leg that is not on its own page; its prices are not current. */
|
|
4154
|
+
readonly cards: readonly components["schemas"]["Card"][];
|
|
4155
|
+
/** @description What the best house-maker offer on this five pays on a win now, after the taker and profit fees, in USDC base units. An indication: after signing up, the slip asks for its own offer. */
|
|
4156
|
+
readonly payout: components["schemas"]["$defs-Amount"];
|
|
4157
|
+
/** @description When the server first saw that offer. */
|
|
4158
|
+
readonly quoted_at: components["schemas"]["$defs-Timestamp"];
|
|
4159
|
+
/** @description When that offer stops being takeable. Drop the number once it passes without a newer read; never show it after. */
|
|
4160
|
+
readonly accept_before: components["schemas"]["$defs-Timestamp"];
|
|
4161
|
+
/**
|
|
4162
|
+
* @description The fair-multiplier band the five was composed for, a stable slot key: a five that drops out and is replaced keeps its band.
|
|
4163
|
+
* @enum {string}
|
|
4164
|
+
*/
|
|
4165
|
+
readonly band: "HUGE" | "BIG" | "STEADY";
|
|
4166
|
+
};
|
|
4013
4167
|
/** SuggestedCombo */
|
|
4014
4168
|
readonly SuggestedCombo: {
|
|
4015
4169
|
/** @description Discovery category every leg was drawn from, Crypto's markets counting as Finance. Absent on the mix, whose legs each come from a different category. */
|
|
@@ -4046,7 +4200,7 @@ export type components = {
|
|
|
4046
4200
|
* @description Stable HTTP error code. Each code has one HTTP status and one retry value.
|
|
4047
4201
|
* @enum {string}
|
|
4048
4202
|
*/
|
|
4049
|
-
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" | "X_REQUIRED" | "X_ALREADY_CLAIMED" | "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" | "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";
|
|
4203
|
+
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" | "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" | "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";
|
|
4050
4204
|
readonly FieldViolation: {
|
|
4051
4205
|
/**
|
|
4052
4206
|
* @description REQUIRED: the input is missing. INVALID: it is present but malformed or out of range. UNEXPECTED: the input is not accepted here.
|
|
@@ -6781,6 +6935,38 @@ export type components = {
|
|
|
6781
6935
|
/** @description The matchup's scoring as the live game feed recorded it. Null when the market or question has no scheduled single contest, the feed does not cover or could not match the game, the game has not started, was postponed or cancelled, or the feed has no timeline it can vouch for: no wall-clock time on a scoring play, plays that do not add up to its score, or a live timeline not read within 75 seconds. */
|
|
6782
6936
|
readonly timeline: components["schemas"]["ScoreTimeline"] | null;
|
|
6783
6937
|
};
|
|
6938
|
+
/** @description HyperCore block height. */
|
|
6939
|
+
readonly MarketHeight: number;
|
|
6940
|
+
/** @description One taker order's execution on one outcome token in one HyperCore block: every fill of the order that crossed the book in that block (dir Buy or Sell, crossed), summed exactly. Makers' sides, settlements, splits, merges and negations are never orders. A Hyperliquid order executes in the block that includes it, so an order is one event; a part that rests and is hit later is a maker fill and not repeated. Two orders of one trader in one block stay two. */
|
|
6941
|
+
readonly MarketTakerOrder: {
|
|
6942
|
+
/** @description Unique per taker order, token and block: height, Hyperliquid order ID, coin number and side letter (B buy, A sell). Merge by it. */
|
|
6943
|
+
readonly id: string;
|
|
6944
|
+
/** @description The outcome traded. */
|
|
6945
|
+
readonly outcome_id: components["schemas"]["UInt32String"];
|
|
6946
|
+
/** @description The outcome token the taker's order traded, YES or NO, also where its fills took liquidity from the other token's book: selling YES into NO bids is a YES sale. */
|
|
6947
|
+
readonly market_side: components["schemas"]["Side"];
|
|
6948
|
+
/**
|
|
6949
|
+
* @description BUY when the taker acquired market_side's token, SELL when it disposed of it. A chart of the YES price reads BUY NO as bearish.
|
|
6950
|
+
* @enum {unknown}
|
|
6951
|
+
*/
|
|
6952
|
+
readonly direction: "BUY" | "SELL";
|
|
6953
|
+
/** @description Exact sum of the order's filled shares on the token in this block. */
|
|
6954
|
+
readonly shares: string;
|
|
6955
|
+
/** @description notional / shares rounded to 8 decimals, halves away from zero; display only, the exact numbers are notional and shares. */
|
|
6956
|
+
readonly avg_price: string;
|
|
6957
|
+
/** @description Gross trade size in quote: exact sum of price × shares over the order's fills, before fees, the same for buys and sells. */
|
|
6958
|
+
readonly notional: string;
|
|
6959
|
+
/** @description The asset notional and avg_price are in: the outcome's quote asset, as Hyperliquid names it on the fills (USDC for every outcome Totalis supports). Null when the fills do not name one. */
|
|
6960
|
+
readonly quote: string | null;
|
|
6961
|
+
/** @description HyperCore block height of the fills: the order executed in this block. */
|
|
6962
|
+
readonly height: components["schemas"]["MarketHeight"];
|
|
6963
|
+
/** @description Block time, to the millisecond. */
|
|
6964
|
+
readonly time: components["schemas"]["$defs-Timestamp"];
|
|
6965
|
+
/** @description Hyperliquid order ID of the taker's order. */
|
|
6966
|
+
readonly oid: number;
|
|
6967
|
+
/** @description The taker's HyperCore address, lowercase, as public on Hyperliquid. Nothing else about the trader is attached. */
|
|
6968
|
+
readonly taker: string;
|
|
6969
|
+
};
|
|
6784
6970
|
readonly SeriesSibling: {
|
|
6785
6971
|
/** @description Key of the sibling series, readable at /v1/series/{series_id}. */
|
|
6786
6972
|
readonly series_id: components["schemas"]["SeriesId"];
|
|
@@ -6945,6 +7131,82 @@ export type components = {
|
|
|
6945
7131
|
/** @description Known steps up to through, ascending, grouped into runs of consecutive steps with equal mark. A step between runs is unknown: never fill it. */
|
|
6946
7132
|
readonly runs: readonly components["schemas"]["PerpMarkRun"][];
|
|
6947
7133
|
};
|
|
7134
|
+
/** @description A chart line: `chance:<outcome_id>` is the outcome's YES chance (any id a HIP-4 asset can have, 0 to 419496729), `mark:<coin>` a perp's mark. */
|
|
7135
|
+
readonly ChartSeries: string;
|
|
7136
|
+
/** @description An instant in Unix microseconds. A line has at most one point per microsecond, so (line, instant) names a point. */
|
|
7137
|
+
readonly ChartMicros: number;
|
|
7138
|
+
/** @description A line's value, or null where it became unknown. */
|
|
7139
|
+
readonly ChartValue: string | null;
|
|
7140
|
+
/** @description Points in time order as two aligned arrays. A value holds until the next point; a null holds unknown until the next known value. */
|
|
7141
|
+
readonly ChartPoints: {
|
|
7142
|
+
/** @description Instants, strictly increasing. */
|
|
7143
|
+
readonly at: readonly components["schemas"]["ChartMicros"][];
|
|
7144
|
+
/** @description The value from each instant on, aligned with at. */
|
|
7145
|
+
readonly value: readonly components["schemas"]["ChartValue"][];
|
|
7146
|
+
};
|
|
7147
|
+
/** @description One recorded value at its real time. */
|
|
7148
|
+
readonly ChartVertex: {
|
|
7149
|
+
/** @description When the value was recorded. */
|
|
7150
|
+
readonly at: components["schemas"]["ChartMicros"];
|
|
7151
|
+
/** @description The value as an integer of the line's scale. */
|
|
7152
|
+
readonly value: string;
|
|
7153
|
+
};
|
|
7154
|
+
/** @description The reducer's state of the bucket's open known stretch: merge later points into it the way the server reduces a bucket. */
|
|
7155
|
+
readonly ChartStretch: {
|
|
7156
|
+
/** @description The stretch's first value in the bucket, at its start or when it became known. */
|
|
7157
|
+
readonly first: components["schemas"]["ChartVertex"];
|
|
7158
|
+
/** @description Its lowest value, the earliest on a tie. */
|
|
7159
|
+
readonly low: components["schemas"]["ChartVertex"];
|
|
7160
|
+
/** @description Its highest value, the earliest on a tie. */
|
|
7161
|
+
readonly high: components["schemas"]["ChartVertex"];
|
|
7162
|
+
/** @description Its latest value so far. */
|
|
7163
|
+
readonly last: components["schemas"]["ChartVertex"];
|
|
7164
|
+
};
|
|
7165
|
+
/** @description One chart line on the server's grid. */
|
|
7166
|
+
readonly Chart: {
|
|
7167
|
+
/** @description The line asked for. */
|
|
7168
|
+
readonly series: components["schemas"]["ChartSeries"];
|
|
7169
|
+
/**
|
|
7170
|
+
* @description What one whole unit is: 10^18 for a chance (NO is scale minus each YES value, its low the YES high), 10^6 for a mark.
|
|
7171
|
+
* @enum {string}
|
|
7172
|
+
*/
|
|
7173
|
+
readonly scale: "1000000000000000000" | "1000000";
|
|
7174
|
+
/**
|
|
7175
|
+
* @description The reduction this body was cut with: per bucket and known stretch, first, lowest, highest and last value at their real times, in time order, a value serving several roles once, the earliest on a tie. A stretch held from before a bucket starts at the bucket's start; a null ends one where it was recorded, and a null at the bucket's start leaves the held value out; a value equal to the one held is no change. A client continuing the partial bucket uses the same one; the backend's shared reducer fixture holds its cases.
|
|
7176
|
+
* @constant
|
|
7177
|
+
*/
|
|
7178
|
+
readonly reducer: 1;
|
|
7179
|
+
/** @description The grid the server picked, about 240 buckets: under a minute from second detail, otherwise from minute closes. */
|
|
7180
|
+
readonly grid: {
|
|
7181
|
+
/** @description The first instant the same request gets another grid: a step from the ladder (an ALL window growing past it), or minute closes where it read second detail or back (a window whose first day of points is dropped, a rolling window reaching where the record's points begin). Read again then; the answer is never cached past it. Null when the grid never changes. */
|
|
7182
|
+
readonly valid_until: components["schemas"]["ChartMicros"] | null;
|
|
7183
|
+
/** @description Start of the first bucket. */
|
|
7184
|
+
readonly from: components["schemas"]["ChartMicros"];
|
|
7185
|
+
/** @description End of the window. */
|
|
7186
|
+
readonly to: components["schemas"]["ChartMicros"];
|
|
7187
|
+
/** @description Bucket length in microseconds: bucket i is [from + i * step, from + (i + 1) * step), half open; the last ends at to, or at end when that comes first. On minute grids a minute's close is its last value in [minute, minute + 1 minute), so it belongs to the bucket holding that minute: the close of a minute ending on a bucket edge belongs to the bucket before the edge. */
|
|
7188
|
+
readonly step: number;
|
|
7189
|
+
};
|
|
7190
|
+
/** @description Everything before it is final: the last recorded minute edge on minute grids (the close of the minute ending at it is final, in the bucket before it), the last recorded bucket edge on finer ones, or end. A point at or after it comes from the live lane. */
|
|
7191
|
+
readonly through: components["schemas"]["ChartMicros"];
|
|
7192
|
+
/** @description The value held at grid.from, null when unknown there. When through precedes grid.from it is the value held at through: the live lane's points from through to grid.from move it without drawing anything. */
|
|
7193
|
+
readonly entering: components["schemas"]["ChartValue"];
|
|
7194
|
+
/** @description Every bucket before the one holding through, reduced: each known stretch's first, lowest, highest and last value, and a null where the line became unknown. */
|
|
7195
|
+
readonly points: components["schemas"]["ChartPoints"];
|
|
7196
|
+
/** @description The bucket holding through, as reduced over [start, through); null when through is past the window. */
|
|
7197
|
+
readonly partial: {
|
|
7198
|
+
/** @description Start of the bucket holding through. */
|
|
7199
|
+
readonly start: components["schemas"]["ChartMicros"];
|
|
7200
|
+
/** @description Its stretches already ended before through, reduced, with their nulls. */
|
|
7201
|
+
readonly points: components["schemas"]["ChartPoints"];
|
|
7202
|
+
/** @description The stretch still open at through, null when the line is unknown there. */
|
|
7203
|
+
readonly open: components["schemas"]["ChartStretch"] | null;
|
|
7204
|
+
} | null;
|
|
7205
|
+
/** @description Where an ended line stops (the market's expiry or recorded settlement, the earlier, once passed; for a mark line, that of the market it was asked for): nothing at or after it is drawn. Between grid edges it cuts the last bucket to [its start, end). Null before. Until the settlement is recorded an end from the expiry may still move or go back to null when the expiry is revised (final false, cached as a live line); from the settlement on it is the earlier of the expiry in effect then and the settlement, and never moves. The chart read is the only source of a line's end: read again when the market stream shows the market expired, postponed or settled. */
|
|
7206
|
+
readonly end: components["schemas"]["ChartMicros"] | null;
|
|
7207
|
+
/** @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). */
|
|
7208
|
+
readonly final: boolean;
|
|
7209
|
+
};
|
|
6948
7210
|
readonly BalanceComponent: {
|
|
6949
7211
|
/**
|
|
6950
7212
|
* @description WALLET_USDC: embedded wallet USDC on HyperEVM; VAULT_FREE: unreserved cash held for the account in the Totalis vault.
|
|
@@ -9755,6 +10017,43 @@ export interface operations {
|
|
|
9755
10017
|
readonly 503: components["responses"]["Unavailable"];
|
|
9756
10018
|
};
|
|
9757
10019
|
};
|
|
10020
|
+
readonly claimGoldenLink: {
|
|
10021
|
+
readonly parameters: {
|
|
10022
|
+
readonly query?: never;
|
|
10023
|
+
readonly header?: never;
|
|
10024
|
+
readonly path?: never;
|
|
10025
|
+
readonly cookie?: never;
|
|
10026
|
+
};
|
|
10027
|
+
readonly requestBody: {
|
|
10028
|
+
readonly content: {
|
|
10029
|
+
readonly "application/json": {
|
|
10030
|
+
/** @description The Free Combo link's name, as in https://totalis.trade/r/<link>. */
|
|
10031
|
+
readonly link: string;
|
|
10032
|
+
};
|
|
10033
|
+
};
|
|
10034
|
+
};
|
|
10035
|
+
readonly responses: {
|
|
10036
|
+
/** @description The ticket, as GET /v1/me/golden reads it */
|
|
10037
|
+
readonly 200: {
|
|
10038
|
+
headers: {
|
|
10039
|
+
readonly [name: string]: unknown;
|
|
10040
|
+
};
|
|
10041
|
+
content: {
|
|
10042
|
+
readonly "application/json": {
|
|
10043
|
+
readonly golden: components["schemas"]["GoldenTicket"];
|
|
10044
|
+
};
|
|
10045
|
+
};
|
|
10046
|
+
};
|
|
10047
|
+
readonly 400: components["responses"]["Error"];
|
|
10048
|
+
readonly 401: components["responses"]["Error"];
|
|
10049
|
+
readonly 403: components["responses"]["Error"];
|
|
10050
|
+
readonly 404: components["responses"]["Error"];
|
|
10051
|
+
readonly 409: components["responses"]["Error"];
|
|
10052
|
+
readonly 429: components["responses"]["RateLimited"];
|
|
10053
|
+
readonly 500: components["responses"]["InternalError"];
|
|
10054
|
+
readonly 503: components["responses"]["Unavailable"];
|
|
10055
|
+
};
|
|
10056
|
+
};
|
|
9758
10057
|
readonly getGoldenMarkets: {
|
|
9759
10058
|
readonly parameters: {
|
|
9760
10059
|
readonly query?: never;
|
|
@@ -9888,8 +10187,6 @@ export interface operations {
|
|
|
9888
10187
|
readonly quote: components["schemas"]["Quote"];
|
|
9889
10188
|
/** @description What the position pays its holder if it wins, after the profit fee, in USDC base units. */
|
|
9890
10189
|
readonly win_amount: components["schemas"]["$defs-Amount"];
|
|
9891
|
-
/** @description The gift of this quote's position, for a placement signed before the purchase. A press (placeGolden with `min_win_amount`) ignores it. */
|
|
9892
|
-
readonly transfer: components["schemas"]["GoldenTransfer"];
|
|
9893
10190
|
};
|
|
9894
10191
|
};
|
|
9895
10192
|
};
|
|
@@ -9924,21 +10221,11 @@ export interface operations {
|
|
|
9924
10221
|
readonly rfq_id: components["schemas"]["Uuid"];
|
|
9925
10222
|
/** @description The least the position may pay on a win after the profit fee, in USDC base units: what the button showed. A best offer paying less is refused with GOLDEN_OFFER_BELOW_FLOOR. */
|
|
9926
10223
|
readonly min_win_amount: components["schemas"]["$defs-Amount"];
|
|
9927
|
-
} | {
|
|
9928
|
-
readonly rfq_id: components["schemas"]["Uuid"];
|
|
9929
|
-
readonly quote_id: components["schemas"]["Bytes32"];
|
|
9930
|
-
/** @description The offer's transfer expiry and salt, as signed. */
|
|
9931
|
-
readonly transfer: {
|
|
9932
|
-
readonly expiry: components["schemas"]["UInt64String"];
|
|
9933
|
-
readonly salt: components["schemas"]["Uint"];
|
|
9934
|
-
};
|
|
9935
|
-
/** @description The account wallet's signature over the offer's Transfer. */
|
|
9936
|
-
readonly buyer_signature: components["schemas"]["ContractSignature"];
|
|
9937
10224
|
};
|
|
9938
10225
|
};
|
|
9939
10226
|
};
|
|
9940
10227
|
readonly responses: {
|
|
9941
|
-
/** @description The placement, or the one a retry with the same Idempotency-Key made */
|
|
10228
|
+
/** @description The placement, or the one a retry with the same Idempotency-Key made, as it stands now */
|
|
9942
10229
|
readonly 200: {
|
|
9943
10230
|
headers: {
|
|
9944
10231
|
readonly [name: string]: unknown;
|
|
@@ -10008,6 +10295,70 @@ export interface operations {
|
|
|
10008
10295
|
readonly 503: components["responses"]["Unavailable"];
|
|
10009
10296
|
};
|
|
10010
10297
|
};
|
|
10298
|
+
readonly getPublicGoldenMarkets: {
|
|
10299
|
+
readonly parameters: {
|
|
10300
|
+
readonly query?: never;
|
|
10301
|
+
readonly header?: never;
|
|
10302
|
+
readonly path?: never;
|
|
10303
|
+
readonly cookie?: never;
|
|
10304
|
+
};
|
|
10305
|
+
readonly requestBody?: never;
|
|
10306
|
+
readonly responses: {
|
|
10307
|
+
/** @description Golden markets in discovery order */
|
|
10308
|
+
readonly 200: {
|
|
10309
|
+
headers: {
|
|
10310
|
+
/** @description public, max-age=30 for a signed-out read, which the edge may share; no-store for one with a credential. */
|
|
10311
|
+
readonly "Cache-Control"?: "public, max-age=30" | "no-store";
|
|
10312
|
+
readonly [name: string]: unknown;
|
|
10313
|
+
};
|
|
10314
|
+
content: {
|
|
10315
|
+
readonly "application/json": {
|
|
10316
|
+
readonly items: readonly components["schemas"]["Card"][];
|
|
10317
|
+
};
|
|
10318
|
+
};
|
|
10319
|
+
};
|
|
10320
|
+
readonly 400: components["responses"]["Error"];
|
|
10321
|
+
readonly 401: components["responses"]["Error"];
|
|
10322
|
+
readonly 403: components["responses"]["Error"];
|
|
10323
|
+
readonly 429: components["responses"]["RateLimited"];
|
|
10324
|
+
readonly 500: components["responses"]["InternalError"];
|
|
10325
|
+
readonly 503: components["responses"]["Unavailable"];
|
|
10326
|
+
};
|
|
10327
|
+
};
|
|
10328
|
+
readonly getGoldenLinkSuggestions: {
|
|
10329
|
+
readonly parameters: {
|
|
10330
|
+
readonly query?: never;
|
|
10331
|
+
readonly header?: never;
|
|
10332
|
+
readonly path: {
|
|
10333
|
+
/** @description The Free Combo link, as in the /r/ link; read case-insensitively. */
|
|
10334
|
+
readonly link: string;
|
|
10335
|
+
};
|
|
10336
|
+
readonly cookie?: never;
|
|
10337
|
+
};
|
|
10338
|
+
readonly requestBody?: never;
|
|
10339
|
+
readonly responses: {
|
|
10340
|
+
/** @description The link's ready-made golden Combos */
|
|
10341
|
+
readonly 200: {
|
|
10342
|
+
headers: {
|
|
10343
|
+
readonly "Cache-Control"?: "no-store";
|
|
10344
|
+
readonly [name: string]: unknown;
|
|
10345
|
+
};
|
|
10346
|
+
content: {
|
|
10347
|
+
readonly "application/json": {
|
|
10348
|
+
/** @description Biggest band first; empty while none has a live offer. */
|
|
10349
|
+
readonly combos: readonly components["schemas"]["GoldenLinkSuggestedCombo"][];
|
|
10350
|
+
};
|
|
10351
|
+
};
|
|
10352
|
+
};
|
|
10353
|
+
readonly 400: components["responses"]["Error"];
|
|
10354
|
+
readonly 401: components["responses"]["Error"];
|
|
10355
|
+
readonly 403: components["responses"]["Error"];
|
|
10356
|
+
readonly 404: components["responses"]["Error"];
|
|
10357
|
+
readonly 429: components["responses"]["RateLimited"];
|
|
10358
|
+
readonly 500: components["responses"]["InternalError"];
|
|
10359
|
+
readonly 503: components["responses"]["Unavailable"];
|
|
10360
|
+
};
|
|
10361
|
+
};
|
|
10011
10362
|
readonly getVolumeLeaderboard: {
|
|
10012
10363
|
readonly parameters: {
|
|
10013
10364
|
readonly query?: {
|
|
@@ -11321,11 +11672,11 @@ export interface operations {
|
|
|
11321
11672
|
*/
|
|
11322
11673
|
readonly id: string;
|
|
11323
11674
|
/**
|
|
11324
|
-
* @description What happened. FEATURE_UNLOCKED: the account unlocked the feature named by subject. ANNOUNCEMENT: Totalis sent a message, in title, body and link. BADGE_EARNED: the account earned the badge named by subject. COMBO_RESULT: a Combo the account held settled. SINGLE_RESULT: a HyperCore position the account held settled. A client shows only kinds it knows.
|
|
11675
|
+
* @description What happened. FEATURE_UNLOCKED: the account unlocked the feature named by subject. ANNOUNCEMENT: Totalis sent a message, in title, body and link. BADGE_EARNED: the account earned the badge named by subject. COMBO_RESULT: a Combo the account held settled. SINGLE_RESULT: a HyperCore position the account held settled. FREE_COMBO: Totalis gave the account a free Combo, now its golden ticket (GET /v1/me/golden), with its note in body when it has one. A client shows only kinds it knows.
|
|
11325
11676
|
* @enum {string}
|
|
11326
11677
|
*/
|
|
11327
|
-
readonly kind: "FEATURE_UNLOCKED" | "ANNOUNCEMENT" | "BADGE_EARNED" | "COMBO_RESULT" | "SINGLE_RESULT";
|
|
11328
|
-
/** @description What the notification is about. For FEATURE_UNLOCKED, the feature: REFERRALS, the account's own invite link, which admits people once the account has traded $5. For ANNOUNCEMENT, an opaque id of the message. For BADGE_EARNED, the badge: GENESIS, the Genesis Account badge (GET /v1/me/genesis). For COMBO_RESULT, the position_id of the Combo, as GET /v1/me/positions names it. For SINGLE_RESULT, the settlement_id of the credit, as GET /v1/hypercore/settlement-credits names it. A client shows only subjects it knows. */
|
|
11678
|
+
readonly kind: "FEATURE_UNLOCKED" | "ANNOUNCEMENT" | "BADGE_EARNED" | "COMBO_RESULT" | "SINGLE_RESULT" | "FREE_COMBO";
|
|
11679
|
+
/** @description What the notification is about. For FEATURE_UNLOCKED, the feature: REFERRALS, the account's own invite link, which admits people once the account has traded $5. For ANNOUNCEMENT, an opaque id of the message. For BADGE_EARNED, the badge: GENESIS, the Genesis Account badge (GET /v1/me/genesis). For COMBO_RESULT, the position_id of the Combo, as GET /v1/me/positions names it. For SINGLE_RESULT, the settlement_id of the credit, as GET /v1/hypercore/settlement-credits names it. For FREE_COMBO, an opaque id of the free Combo. A client shows only subjects it knows. */
|
|
11329
11680
|
readonly subject: string;
|
|
11330
11681
|
/** Format: date-time */
|
|
11331
11682
|
readonly created_at: string;
|
|
@@ -11336,7 +11687,7 @@ export interface operations {
|
|
|
11336
11687
|
readonly read_at?: string;
|
|
11337
11688
|
/** @description An ANNOUNCEMENT's title, one line of plain text. */
|
|
11338
11689
|
readonly title?: string;
|
|
11339
|
-
/** @description An ANNOUNCEMENT's message, plain text that may hold line breaks. */
|
|
11690
|
+
/** @description An ANNOUNCEMENT's message, or the note that came with a FREE_COMBO when it has one: plain text that may hold line breaks. */
|
|
11340
11691
|
readonly body?: string;
|
|
11341
11692
|
/** @description Where an ANNOUNCEMENT points, when it does: an app path starting with / or an https URL. */
|
|
11342
11693
|
readonly link?: string;
|
|
@@ -11558,6 +11909,66 @@ export interface operations {
|
|
|
11558
11909
|
readonly 503: components["responses"]["Unavailable"];
|
|
11559
11910
|
};
|
|
11560
11911
|
};
|
|
11912
|
+
readonly getMyTradingRewards: {
|
|
11913
|
+
readonly parameters: {
|
|
11914
|
+
readonly query?: never;
|
|
11915
|
+
readonly header?: never;
|
|
11916
|
+
readonly path?: never;
|
|
11917
|
+
readonly cookie?: never;
|
|
11918
|
+
};
|
|
11919
|
+
readonly requestBody?: never;
|
|
11920
|
+
readonly responses: {
|
|
11921
|
+
/** @description The account's trading rewards */
|
|
11922
|
+
readonly 200: {
|
|
11923
|
+
headers: {
|
|
11924
|
+
readonly "Cache-Control"?: "no-store";
|
|
11925
|
+
readonly [name: string]: unknown;
|
|
11926
|
+
};
|
|
11927
|
+
content: {
|
|
11928
|
+
readonly "application/json": {
|
|
11929
|
+
/** @description Only Combos committed at or after this count. */
|
|
11930
|
+
readonly starts_at: components["schemas"]["$defs-Timestamp"];
|
|
11931
|
+
/** @description The account's own Combo stake since starts_at, in HyperEVM USDC base units (10^-6). */
|
|
11932
|
+
readonly staked: components["schemas"]["$defs-Amount"];
|
|
11933
|
+
/** @description Whether the program's budget can no longer pay even the smallest reward: a tier reached now is CAPPED. */
|
|
11934
|
+
readonly budget_spent: boolean;
|
|
11935
|
+
/** @description The tiers, lowest first. */
|
|
11936
|
+
readonly tiers: readonly {
|
|
11937
|
+
/** @description Own Combo stake since starts_at that reaches the tier, in HyperEVM USDC base units (10^-6). */
|
|
11938
|
+
readonly threshold: components["schemas"]["$defs-Amount"];
|
|
11939
|
+
/** @description What reaching it pays, in HyperEVM USDC base units (10^-6). */
|
|
11940
|
+
readonly reward: components["schemas"]["$defs-Amount"];
|
|
11941
|
+
}[];
|
|
11942
|
+
/** @description Each tier the account reached, lowest first. */
|
|
11943
|
+
readonly rewards: readonly {
|
|
11944
|
+
/** @description The tier's threshold, in HyperEVM USDC base units (10^-6). */
|
|
11945
|
+
readonly threshold: components["schemas"]["$defs-Amount"];
|
|
11946
|
+
/** @description Its reward, in HyperEVM USDC base units (10^-6). */
|
|
11947
|
+
readonly reward: components["schemas"]["$defs-Amount"];
|
|
11948
|
+
/** @description When the account's stake reached the tier: the commit of the Combo that took it there. */
|
|
11949
|
+
readonly qualified_at: components["schemas"]["$defs-Timestamp"];
|
|
11950
|
+
/**
|
|
11951
|
+
* @description PENDING: earned, its payout not sent yet; PAYING: its payout is on its way; PAID: the reward reached the account wallet; CAPPED: reached after the budget ran out, so it pays nothing.
|
|
11952
|
+
* @enum {unknown}
|
|
11953
|
+
*/
|
|
11954
|
+
readonly status: "PENDING" | "PAYING" | "PAID" | "CAPPED";
|
|
11955
|
+
/** @description The HyperEVM transaction that paid it; null unless PAID. */
|
|
11956
|
+
readonly transaction_hash: components["schemas"]["Bytes32"] | null;
|
|
11957
|
+
/** @description When it was paid; null unless PAID. */
|
|
11958
|
+
readonly paid_at: components["schemas"]["$defs-Timestamp"] | null;
|
|
11959
|
+
}[];
|
|
11960
|
+
};
|
|
11961
|
+
};
|
|
11962
|
+
};
|
|
11963
|
+
readonly 400: components["responses"]["Error"];
|
|
11964
|
+
readonly 401: components["responses"]["Error"];
|
|
11965
|
+
readonly 403: components["responses"]["Error"];
|
|
11966
|
+
readonly 404: components["responses"]["Error"];
|
|
11967
|
+
readonly 429: components["responses"]["RateLimited"];
|
|
11968
|
+
readonly 500: components["responses"]["InternalError"];
|
|
11969
|
+
readonly 503: components["responses"]["Unavailable"];
|
|
11970
|
+
};
|
|
11971
|
+
};
|
|
11561
11972
|
readonly getCopySummary: {
|
|
11562
11973
|
readonly parameters: {
|
|
11563
11974
|
readonly query?: never;
|
|
@@ -13399,6 +13810,113 @@ export interface operations {
|
|
|
13399
13810
|
readonly 503: components["responses"]["Unavailable"];
|
|
13400
13811
|
};
|
|
13401
13812
|
};
|
|
13813
|
+
readonly listMarketTrades: {
|
|
13814
|
+
readonly parameters: {
|
|
13815
|
+
readonly query?: {
|
|
13816
|
+
/**
|
|
13817
|
+
* @description Omit for the first page; then send the previous response's next_cursor unchanged.
|
|
13818
|
+
* @example eyJ2IjoxLCJzIjoiMTIzNDUifQ
|
|
13819
|
+
*/
|
|
13820
|
+
readonly cursor?: components["parameters"]["Cursor"];
|
|
13821
|
+
/**
|
|
13822
|
+
* @description Maximum items per page, 1 to 200, default 50. A page may hold fewer, even none, while has_more is true.
|
|
13823
|
+
* @example 50
|
|
13824
|
+
*/
|
|
13825
|
+
readonly limit?: components["parameters"]["Limit"];
|
|
13826
|
+
/**
|
|
13827
|
+
* @description First page only, instead of cursor: start below this HyperCore height, such as a tradesSnapshot's complete_from_height. Without both, the page starts at the newest order the account index holds, which trails our node by about a second (through_height). A height above the index's through_height + 1 answers 503 DEPENDENCY_STALE, never stored, until the index reaches it: the heights between are in neither the stream nor the index yet, so retry after Retry-After. One at or below the index's floor, below which it holds nothing, answers 400 INVALID_QUERY naming before_height.
|
|
13828
|
+
* @example 1182262238
|
|
13829
|
+
*/
|
|
13830
|
+
readonly before_height?: number;
|
|
13831
|
+
};
|
|
13832
|
+
readonly header?: never;
|
|
13833
|
+
readonly path: {
|
|
13834
|
+
/**
|
|
13835
|
+
* @description HIP-4 outcome ID of the market, as a decimal string.
|
|
13836
|
+
* @example 1209
|
|
13837
|
+
*/
|
|
13838
|
+
readonly outcome_id: components["parameters"]["OutcomeId"];
|
|
13839
|
+
};
|
|
13840
|
+
readonly cookie?: never;
|
|
13841
|
+
};
|
|
13842
|
+
readonly requestBody?: never;
|
|
13843
|
+
readonly responses: {
|
|
13844
|
+
/** @description A page of taker orders in whole blocks, at most limit unless its first block alone holds more */
|
|
13845
|
+
readonly 200: {
|
|
13846
|
+
headers: {
|
|
13847
|
+
/** @description public, max-age=30 for a signed-out read; no-store for one with a credential. */
|
|
13848
|
+
readonly "Cache-Control"?: "public, max-age=30" | "no-store";
|
|
13849
|
+
readonly [name: string]: unknown;
|
|
13850
|
+
};
|
|
13851
|
+
content: {
|
|
13852
|
+
/**
|
|
13853
|
+
* @example {
|
|
13854
|
+
* "items": [
|
|
13855
|
+
* {
|
|
13856
|
+
* "id": "1182266768-573080073600-85730A",
|
|
13857
|
+
* "outcome_id": "8573",
|
|
13858
|
+
* "market_side": "YES",
|
|
13859
|
+
* "direction": "SELL",
|
|
13860
|
+
* "shares": "86",
|
|
13861
|
+
* "avg_price": "0.80788",
|
|
13862
|
+
* "notional": "69.47768",
|
|
13863
|
+
* "quote": "USDC",
|
|
13864
|
+
* "height": 1182266768,
|
|
13865
|
+
* "time": "2026-10-13T12:00:05.740Z",
|
|
13866
|
+
* "oid": 573080073600,
|
|
13867
|
+
* "taker": "0x8a320f9816f56e5bd7d87187a128a76488da35f3"
|
|
13868
|
+
* },
|
|
13869
|
+
* {
|
|
13870
|
+
* "id": "1182266768-573080073601-85730B",
|
|
13871
|
+
* "outcome_id": "8573",
|
|
13872
|
+
* "market_side": "YES",
|
|
13873
|
+
* "direction": "BUY",
|
|
13874
|
+
* "shares": "86",
|
|
13875
|
+
* "avg_price": "0.8079",
|
|
13876
|
+
* "notional": "69.4794",
|
|
13877
|
+
* "quote": "USDC",
|
|
13878
|
+
* "height": 1182266768,
|
|
13879
|
+
* "time": "2026-10-13T12:00:05.740Z",
|
|
13880
|
+
* "oid": 573080073601,
|
|
13881
|
+
* "taker": "0x8a320f9816f56e5bd7d87187a128a76488da35f3"
|
|
13882
|
+
* }
|
|
13883
|
+
* ],
|
|
13884
|
+
* "next_cursor": "YmVmb3JlOjExODIyNjY3Njg",
|
|
13885
|
+
* "has_more": true,
|
|
13886
|
+
* "unknown_through_height": null,
|
|
13887
|
+
* "through_height": 1182279754,
|
|
13888
|
+
* "gaps": []
|
|
13889
|
+
* }
|
|
13890
|
+
*/
|
|
13891
|
+
readonly "application/json": {
|
|
13892
|
+
/** @description Taker orders of both tokens of the outcome, newest block first and each block's orders in execution order, as trades frames carry them. */
|
|
13893
|
+
readonly items: readonly components["schemas"]["MarketTakerOrder"][];
|
|
13894
|
+
/** @description Cursor for the next page, or null when the index holds no older order it can tell. */
|
|
13895
|
+
readonly next_cursor: components["schemas"]["NextCursor"];
|
|
13896
|
+
/** @description Whether older indexed fills follow: the next page then holds at least one order, or names unknown_through_height when the next block cannot be told yet. */
|
|
13897
|
+
readonly has_more: boolean;
|
|
13898
|
+
/** @description Set when the page stopped above fills indexed before the index recorded which side crossed the book: taker orders at and below this height cannot be told until an import fills that in. Null otherwise. */
|
|
13899
|
+
readonly unknown_through_height: components["schemas"]["MarketHeight"] | null;
|
|
13900
|
+
/** @description The account index's height: every taker order at or below it, outside gaps, is indexed. */
|
|
13901
|
+
readonly through_height: components["schemas"]["MarketHeight"];
|
|
13902
|
+
/** @description Heights in the span this page answers for (down to its oldest block while has_more, else to unknown_through_height + 1 or the index's floor) that the account index does not hold yet: orders there may be missing until it is repaired. */
|
|
13903
|
+
readonly gaps: readonly {
|
|
13904
|
+
/** @description First height of the hole. */
|
|
13905
|
+
readonly from_height: components["schemas"]["MarketHeight"];
|
|
13906
|
+
/** @description Last height of the hole. */
|
|
13907
|
+
readonly through_height: components["schemas"]["MarketHeight"];
|
|
13908
|
+
}[];
|
|
13909
|
+
};
|
|
13910
|
+
};
|
|
13911
|
+
};
|
|
13912
|
+
readonly 400: components["responses"]["Error"];
|
|
13913
|
+
readonly 401: components["responses"]["Error"];
|
|
13914
|
+
readonly 403: components["responses"]["Error"];
|
|
13915
|
+
readonly 429: components["responses"]["RateLimited"];
|
|
13916
|
+
readonly 500: components["responses"]["InternalError"];
|
|
13917
|
+
readonly 503: components["responses"]["Unavailable"];
|
|
13918
|
+
};
|
|
13919
|
+
};
|
|
13402
13920
|
readonly getQuestionScoreTimeline: {
|
|
13403
13921
|
readonly parameters: {
|
|
13404
13922
|
readonly query?: never;
|
|
@@ -13707,6 +14225,115 @@ export interface operations {
|
|
|
13707
14225
|
readonly 503: components["responses"]["Unavailable"];
|
|
13708
14226
|
};
|
|
13709
14227
|
};
|
|
14228
|
+
readonly getChart: {
|
|
14229
|
+
readonly parameters: {
|
|
14230
|
+
readonly query?: {
|
|
14231
|
+
/**
|
|
14232
|
+
* @description A window ending now (or at the line's end): Live is the last 60 seconds, 1W 7 days, 1M 30 days, ALL the line's whole record from its first recorded value (with `market`, that market's chance line's), at least 60 seconds.
|
|
14233
|
+
* @example 1D
|
|
14234
|
+
*/
|
|
14235
|
+
readonly range?: "Live" | "5M" | "15M" | "1H" | "6H" | "1D" | "1W" | "1M" | "ALL";
|
|
14236
|
+
/**
|
|
14237
|
+
* @description Only with a `mark:` line: the outcome id of the market it is drawn for. Its `end` is then that market's expiry or recorded settlement, as for the market's own chance line, and `range=ALL` starts at that market's first record instead of the coin's; other windows are unchanged.
|
|
14238
|
+
* @example 8573
|
|
14239
|
+
*/
|
|
14240
|
+
readonly market?: string;
|
|
14241
|
+
/**
|
|
14242
|
+
* @description Start of an explicit window, with to: UTC to the second, as `2026-11-18T19:30:00Z`, on the grid step its span picks (the span at most 366 days), not before 2026-10-18.
|
|
14243
|
+
* @example 2026-11-18T19:30:00Z
|
|
14244
|
+
*/
|
|
14245
|
+
readonly from?: string;
|
|
14246
|
+
/**
|
|
14247
|
+
* @description End of an explicit window, with from, in the same spelling and on the same step, after from and at most a day from now.
|
|
14248
|
+
* @example 2026-11-18T22:00:00Z
|
|
14249
|
+
*/
|
|
14250
|
+
readonly to?: string;
|
|
14251
|
+
};
|
|
14252
|
+
readonly header?: never;
|
|
14253
|
+
readonly path: {
|
|
14254
|
+
/**
|
|
14255
|
+
* @description The line: `chance:<outcome_id>` for an outcome's YES chance (NO is the scale minus each value; an outcome id no HIP-4 asset can have, above 419496729, is 400), or `mark:<coin>` for a perp's mark as Hyperliquid names it.
|
|
14256
|
+
* @example chance:8573
|
|
14257
|
+
*/
|
|
14258
|
+
readonly series: string;
|
|
14259
|
+
};
|
|
14260
|
+
readonly cookie?: never;
|
|
14261
|
+
};
|
|
14262
|
+
readonly requestBody?: never;
|
|
14263
|
+
readonly responses: {
|
|
14264
|
+
/** @description The line on the server's grid. Totalis records every change of a chance or perp mark: second detail for seven days, minute detail from 2026-10-18 18:53 UTC on, forever. The grid's step is the shortest of a fixed ladder (250 ms up to 28 days, aligned to Unix time) that covers the window in at most 240 buckets. A step under a minute draws second detail while the window's first day of it is kept (until eight days after that day's start, and not before Totalis began recording the line's feed); otherwise the window comes on a one-minute grid of minute closes. Each bucket carries the first, lowest, highest and last value it saw at their real times, in time order, and where the line became unknown; a value held into a bucket shows at its start. Everything before `through` is final; continue the bucket that holds it from live points at or after `through`, and the result equals a later read. A line with no record is empty, never a guessed value, and nothing before 2026-10-18 18:53 UTC is drawn. */
|
|
14265
|
+
readonly 200: {
|
|
14266
|
+
headers: {
|
|
14267
|
+
/** @description 60 seconds on minute grids and one bucket (at least a second) on finer ones. A window recorded through its end (a line whose end is final, settled, or a window in the past): an hour while that end is under seven days old, then a day. A chance line's ALL window, any window reaching the first minute Totalis recorded chance live (chance minutes before it may still be backfilled), also for a mark line read for a market, and a line cut at an end from its expiry alone (final false, a postponement can still move it) keep the minute or bucket age. Never past grid.valid_until or the drop of the second detail it was drawn from, even when that leaves max-age=0. Errors are never stored. */
|
|
14268
|
+
readonly "Cache-Control"?: string;
|
|
14269
|
+
readonly [name: string]: unknown;
|
|
14270
|
+
};
|
|
14271
|
+
content: {
|
|
14272
|
+
/**
|
|
14273
|
+
* @example {
|
|
14274
|
+
* "series": "chance:8573",
|
|
14275
|
+
* "scale": "1000000000000000000",
|
|
14276
|
+
* "reducer": 1,
|
|
14277
|
+
* "grid": {
|
|
14278
|
+
* "from": 1795305600000000,
|
|
14279
|
+
* "to": 1795392000000000,
|
|
14280
|
+
* "step": 360000000,
|
|
14281
|
+
* "valid_until": null
|
|
14282
|
+
* },
|
|
14283
|
+
* "through": 1795370520000000,
|
|
14284
|
+
* "entering": "500000000000000000",
|
|
14285
|
+
* "points": {
|
|
14286
|
+
* "at": [
|
|
14287
|
+
* 1795305600000000,
|
|
14288
|
+
* 1795306020000000,
|
|
14289
|
+
* 1795306320000000,
|
|
14290
|
+
* 1795306440000000
|
|
14291
|
+
* ],
|
|
14292
|
+
* "value": [
|
|
14293
|
+
* "500000000000000000",
|
|
14294
|
+
* "520000000000000000",
|
|
14295
|
+
* "470000000000000000",
|
|
14296
|
+
* null
|
|
14297
|
+
* ]
|
|
14298
|
+
* },
|
|
14299
|
+
* "partial": {
|
|
14300
|
+
* "start": 1795370400000000,
|
|
14301
|
+
* "points": {
|
|
14302
|
+
* "at": [],
|
|
14303
|
+
* "value": []
|
|
14304
|
+
* },
|
|
14305
|
+
* "open": {
|
|
14306
|
+
* "first": {
|
|
14307
|
+
* "at": 1795370400000000,
|
|
14308
|
+
* "value": "610000000000000000"
|
|
14309
|
+
* },
|
|
14310
|
+
* "low": {
|
|
14311
|
+
* "at": 1795370400000000,
|
|
14312
|
+
* "value": "610000000000000000"
|
|
14313
|
+
* },
|
|
14314
|
+
* "high": {
|
|
14315
|
+
* "at": 1795370460000000,
|
|
14316
|
+
* "value": "630000000000000000"
|
|
14317
|
+
* },
|
|
14318
|
+
* "last": {
|
|
14319
|
+
* "at": 1795370460000000,
|
|
14320
|
+
* "value": "630000000000000000"
|
|
14321
|
+
* }
|
|
14322
|
+
* }
|
|
14323
|
+
* },
|
|
14324
|
+
* "end": null,
|
|
14325
|
+
* "final": false
|
|
14326
|
+
* }
|
|
14327
|
+
*/
|
|
14328
|
+
readonly "application/json": components["schemas"]["Chart"];
|
|
14329
|
+
};
|
|
14330
|
+
};
|
|
14331
|
+
readonly 400: components["responses"]["Error"];
|
|
14332
|
+
readonly 404: components["responses"]["Error"];
|
|
14333
|
+
readonly 500: components["responses"]["InternalError"];
|
|
14334
|
+
readonly 503: components["responses"]["Unavailable"];
|
|
14335
|
+
};
|
|
14336
|
+
};
|
|
13710
14337
|
readonly getRfq: {
|
|
13711
14338
|
readonly parameters: {
|
|
13712
14339
|
readonly query?: never;
|