@totalis/hip4-client 0.129.0 → 0.131.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.
@@ -1412,7 +1412,7 @@ export type paths = {
1412
1412
  };
1413
1413
  /**
1414
1414
  * List what a person did
1415
- * @description A person's activity, newest first, as feed items (GET /v1/social/feed defines them): every position of theirs, finished markets included, except bursts on positions under $1 of cost. Paging as GET /v1/social/feed. 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) or does not yet write the person's account wallet, rather than an empty page.
1415
+ * @description A person's activity, newest first, as feed items (GET /v1/social/feed defines them): all of their days on events and Combo moments, machine or not. Paging as GET /v1/social/feed. 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) or does not yet write the person's account wallet, rather than an empty page.
1416
1416
  */
1417
1417
  readonly get: operations["listSocialActivity"];
1418
1418
  readonly put?: never;
@@ -1472,7 +1472,7 @@ export type paths = {
1472
1472
  };
1473
1473
  /**
1474
1474
  * List what everyone is trading
1475
- * @description Everyone's feed, newest first: what people with a public profile buy, sell and open, one item per person per position per burst. A burst is one person's buys, or sales, of one side of one position in one episode, each within 30 minutes of the one before, as the holdings ledger stores it; a Combo opened, received or cashed out is an item of its own. A burst still growing keeps its id and moves to the top with its newest trade, so a reader polling the first page replaces an item it holds by id. A person whose account wallet the ledger does not yet write has no bursts here until it does, usually within a minute of the wallet being linked. Left out: the house market maker, makers, API operators and the promotion accounts (the leaderboard's known roles); bursts on a position that never cost $1: its episode has paid under $1 in all, fees included; and positions on markets that no longer trade, read at the time of the read: a HyperCore position whose market is not TRADING, and a Combo no longer open or with a leg lost. Pages are read live: the cursor holds only where the walk stopped in the bursts and in the Combo moments, and each page reads below it as the sources stand then. Later pages never repeat an item; a burst that grows after the walk passed it, listed or not, moves above the cursor and shows on a fresh first page under the same id; poll the first page for new ones. A page reads a bounded number of rows, however long a burst or a history is, and this feed leaves out what no longer trades after reading, so a page may hold fewer than limit, even none, while has_more is true. Combo moments are as the vault index holds them at the read, not bound by the ledger cut. 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. 503 SOURCE_UNAVAILABLE while the holdings ledger is behind (not yet caught up, or stopped for over five minutes) or market data cannot say which markets trade.
1475
+ * @description Everyone's feed, newest activity first: what people with a public profile did, one item per person per UTC day per event (MarketItem: their trades and results there, netted per outcome by the holdings ledger, and their comment on it that day, or the comment alone), and one per Combo bet for its whole life (ComboItem: opened or received, then cashed out or settled, in its latest state; a lost one only from a 50 USDC stake). A top-level comment joins its author's day on its event when they traded it that day; else their Combo opened or received nearest to it within 30 minutes before or after; else it stands alone. A day or a Combo that grows, by a trade, a result, a cash-out, a settlement or a newer comment, keeps its id and moves to the top, so a reader polling the first page replaces an item it holds by id. A day shows on its outcome until the ledger first records the outcome's question, then on the question under a new id. A person's items are not folded together; a client folds consecutive ones of one person as it lists them. A person whose account wallet the ledger does not yet write has no days here until it does, usually within a minute of the wallet being linked. Left out: the house market maker, makers, API operators and the promotion accounts (the leaderboard's known roles), and every account that traded like a machine on any UTC day of the week to the ledger's cut, all of their items: 100 or more distinct orders, or buys and sells in 18 or more distinct hours. Their profile, the feeds of who follows them and their leaderboard rank keep them. Pages are read live: the cursor holds only where the walk stopped in each source (days by their newest trade or result, comments, Combo events), and each page reads below it as the sources stand then. A day or a Combo is listed only at its newest activity; one that grows after the walk passed it, listed or not, moves above the cursor and shows on a fresh first page under the same id; poll the first page for new ones. Later pages repeat an item only when its newest activity is undone between pages (its comment deleted, or a trade netting its newest line away), so keep items by id. A page reads a bounded number of rows however long a history is, and passes over rows of a day listed at a newer one, so a page may hold fewer than limit, even none, while has_more is true. Combo moments are as the vault index holds them at the read, not bound by the ledger cut. 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. 503 SOURCE_UNAVAILABLE while the holdings ledger is behind (not yet caught up, or stopped for over five minutes).
1476
1476
  */
1477
1477
  readonly get: operations["listSocialFeed"];
1478
1478
  readonly put?: never;
@@ -1492,7 +1492,7 @@ export type paths = {
1492
1492
  };
1493
1493
  /**
1494
1494
  * List what the people I follow are trading
1495
- * @description The feed of the people the signed-in account follows (GET /v1/me/follows), items and paging as GET /v1/social/feed, finished markets and makers included: the reader chose them. Bursts on positions under $1 of cost are left out, and so, until the holdings ledger writes them, are the bursts of a person whose account wallet it does not write yet. Only a signed-in participant session reads it; it is never stored by a shared cache.
1495
+ * @description The feed of the people the signed-in account follows (GET /v1/me/follows), items and paging as GET /v1/social/feed, makers and machines included: the reader chose them. Until the holdings ledger writes them, the days of a person whose account wallet it does not write yet are left out. Only a signed-in participant session reads it; it is never stored by a shared cache.
1496
1496
  */
1497
1497
  readonly get: operations["listFollowingFeed"];
1498
1498
  readonly put?: never;
@@ -1532,7 +1532,7 @@ export type paths = {
1532
1532
  };
1533
1533
  /**
1534
1534
  * Get one page of the leaderboard
1535
- * @description One page of 25 ranks of people with a public profile, by volume or P&L over the range, and the reader's own rank wherever it falls. Volume is GET /v1/social/people/{username}'s over the range, from the start of its hour: every dollar their account wallet moved in or out of a trade, before fees, its buys and sells, what its results paid and the Combos it opened, each stake and what it paid back when sold back or settled; only people who traded rank, and a person whose volume is unknown (null on the profile) is left out. P&L is GET /v1/traders/{username}/pnl's change over the range (ALL: since it began), losses included; only people whose P&L over the range is not zero, or who traded in it (a HyperCore fill or Settlement credit, or a Combo paid for, sold, cashed out or settled; a Combo given or received free is not a trade), rank, so nobody ranks at 0 for doing nothing. Left out: the leaderboard's known roles (house market maker, makers, API operators, promotion accounts) and anyone whose profile is not public at the time of the read, even in a ranking read while it was; the ranks below close up. Ties rank by username. A ranking is read every five minutes and kept for an hour; as_of says which one a page comes from. Pass it back as as_of for the later pages, so every page and the reader's rank come from that ranking; without it the answer is the newest. An as_of no longer kept is 409 CURSOR_EXPIRED: read the first page again. Until the first read, once the newest is an hour old, and for VOLUME while the holdings ledger is behind (not yet caught up, or stopped for over five minutes), whatever as_of, the answer is 503 DEPENDENCY_STALE; a deployment with the leaderboard off, or P&L not ranked, answers 503 CONTRACT_UNAVAILABLE. Only a signed-in participant session reads it: anonymous calls and API keys are refused.
1535
+ * @description Read the public volume or P&L leaderboard and the signed-in participant's own rank.
1536
1536
  */
1537
1537
  readonly get: operations["getSocialLeaderboard"];
1538
1538
  readonly put?: never;
@@ -1543,6 +1543,26 @@ export type paths = {
1543
1543
  readonly patch?: never;
1544
1544
  readonly trace?: never;
1545
1545
  };
1546
+ readonly "/v1/social/suggestions": {
1547
+ readonly parameters: {
1548
+ readonly query?: never;
1549
+ readonly header?: never;
1550
+ readonly path?: never;
1551
+ readonly cookie?: never;
1552
+ };
1553
+ /**
1554
+ * List traders to follow
1555
+ * @description Find active public traders with positive weekly P&L whom the signed-in participant does not already follow.
1556
+ */
1557
+ readonly get: operations["listSocialSuggestions"];
1558
+ readonly put?: never;
1559
+ readonly post?: never;
1560
+ readonly delete?: never;
1561
+ readonly options?: never;
1562
+ readonly head?: never;
1563
+ readonly patch?: never;
1564
+ readonly trace?: never;
1565
+ };
1546
1566
  readonly "/v1/me/follows": {
1547
1567
  readonly parameters: {
1548
1568
  readonly query?: never;
@@ -2936,6 +2956,26 @@ export type paths = {
2936
2956
  readonly patch?: never;
2937
2957
  readonly trace?: never;
2938
2958
  };
2959
+ readonly "/v1/polymarket/markets": {
2960
+ readonly parameters: {
2961
+ readonly query?: never;
2962
+ readonly header?: never;
2963
+ readonly path?: never;
2964
+ readonly cookie?: never;
2965
+ };
2966
+ /**
2967
+ * List Polymarket markets
2968
+ * @description Anyone: list the Polymarket markets open for trading: those whose registry entry matches Polymarket's listing, ACTIVE in the registry and before their close time, ascending by outcome id. Each item has the shape of getPolymarketMarket. Polymarket markets are never in listMarkets, discovery or search.
2969
+ */
2970
+ readonly get: operations["listPolymarketMarkets"];
2971
+ readonly put?: never;
2972
+ readonly post?: never;
2973
+ readonly delete?: never;
2974
+ readonly options?: never;
2975
+ readonly head?: never;
2976
+ readonly patch?: never;
2977
+ readonly trace?: never;
2978
+ };
2939
2979
  readonly "/v1/polymarket/markets/{outcome_id}": {
2940
2980
  readonly parameters: {
2941
2981
  readonly query?: never;
@@ -6248,6 +6288,7 @@ export type components = {
6248
6288
  };
6249
6289
  /** @description A person with a public profile, as every social read names them. */
6250
6290
  readonly Person: {
6291
+ /** @description The person's public username. */
6251
6292
  readonly username: components["schemas"]["Username"];
6252
6293
  /** @description The seed clients draw the person's generated avatar from, as for GET /v1/me. */
6253
6294
  readonly avatar_seed: components["schemas"]["AvatarSeed"];
@@ -6382,40 +6423,59 @@ export type components = {
6382
6423
  };
6383
6424
  /** @description A person's position, by kind. */
6384
6425
  readonly "$defs-Position": components["schemas"]["SinglePosition"] | components["schemas"]["ComboPosition"];
6385
- /** @description What GET /v1/social/people/{username}/positions/{position} takes to open a HyperCore position's episode. */
6386
- readonly SingleKey: {
6387
- /**
6388
- * @description A HyperCore position.
6389
- * @constant
6390
- */
6391
- readonly kind: "SINGLE";
6392
- /** @description The position path segment. */
6426
+ /** @description What a day is on: a question, or an outcome in none. Exactly one is set. An outcome shows as itself until the ledger first records its question, so a day's event and id can change once. */
6427
+ readonly FeedEvent: {
6428
+ /** @description The native question, as GET /v1/questions/{question_id} names it. */
6429
+ readonly question_id: components["schemas"]["UInt32String"] | null;
6430
+ /** @description The outcome, when it is in no question. */
6431
+ readonly outcome_id: components["schemas"]["UInt32String"] | null;
6432
+ };
6433
+ /** @description What one outcome's day shows. A trade line nets the day's buys and sells in Yes-equivalent shares (buying Yes or selling No adds one): BOUGHT grew the side bought (amount: what the net shares added cost, fees included), SOLD shrank the side sold (amount: the proceeds of the net shares sold, fees taken off), CLOSED netted to under 1 of its asset but made or lost at least 1 (amount: that). A result line is a Settlement that day on the side held net: WON at 1 a share, LOST at 0, SPLIT between (amount: what it paid). Amounts are 10^-8 of asset; null when unknown. */
6434
+ readonly FeedLine: {
6435
+ /** @enum {string} */
6436
+ readonly kind: "BOUGHT" | "SOLD" | "CLOSED" | "WON" | "LOST" | "SPLIT";
6393
6437
  readonly outcome_id: components["schemas"]["UInt32String"];
6394
- /** @description The episode query parameter; null when the ledger does not name one yet, so the read opens the open episode, else the last. */
6438
+ /** @description BOUGHT: the side bought. SOLD: the side sold. CLOSED: the side traded most. A result: the side held net. */
6439
+ readonly side: components["schemas"]["Side"];
6440
+ /** @description The outcome's quote asset; null when unknown. */
6441
+ readonly asset: components["schemas"]["$defs-Asset"] | null;
6442
+ /** @description As the kind says; negative only for a CLOSED loss. */
6443
+ readonly amount: components["schemas"]["SignedUnits"] | null;
6444
+ /** @description What went in, by the holdings ledger's average cost, positions bought on earlier days included: BOUGHT its amount, SOLD the cost of the shares sold, a result the cost of the shares settled. Null for CLOSED, and when no cost is known (shares that came by transfer or a question conversion, or a fee in a token nothing values). */
6445
+ readonly cost: components["schemas"]["SignedUnits"] | null;
6446
+ /** @description What it made: SOLD and CLOSED what the day's trades realized, a result its amount less its cost. Null for BOUGHT, and when unknown, as cost. */
6447
+ readonly pnl: components["schemas"]["SignedUnits"] | null;
6448
+ /** @description A trade line's net shares moved; null for a result. */
6449
+ readonly shares: components["schemas"]["Shares"] | null;
6450
+ /** @description The episode GET /v1/social/people/{username}/positions/{outcome_id} opens for the line; null for a result on shares the ledger saw no episode of. */
6395
6451
  readonly episode: components["schemas"]["EpisodeId"] | null;
6396
6452
  };
6397
- /** @description A burst of one person's buys, or sales, of one side of a HyperCore position in one episode: each within 30 minutes of the one before. */
6398
- readonly TradeItem: {
6399
- /** @description Stable, opaque ID; a burst keeps it as it grows, and moves to the top of the feed. */
6453
+ readonly FeedComment: {
6454
+ readonly body: string;
6455
+ };
6456
+ /** @description Why a feed item stands out, ranked against its week: the UTC day of its win or bet and the 6 before it. It settles when that day ends; nothing on a later day moves it. The pool is every win and bet of Everyone's people (public, known roles left out) but an account's on a day of its week it traded like a machine; a bet under 1 USDC, its win, and a free Combo never enter it, nor a win under 1 USDC. WIN: a profit of a single's win or of a Combo cashed out or settled, among the week's top wins. BET: a stake on a single that cost 50¢ a share or less, fees included, or a Combo paying 2x or more of its cost, among the week's top such stakes. LONGSHOT: a single that cost 10¢ a share or less or a Combo paying 10x or more that is not a top bet. A week has 3 places, one per 10 entries while it has fewer than 21; equal amounts place the earlier first. A bet's moment lasts while it stands or has won. Null for every item of a page whose Combo pool could not be read. */
6457
+ readonly FeedMoment: {
6458
+ /** @enum {string} */
6459
+ readonly kind: "WIN" | "BET" | "LONGSHOT";
6460
+ /** @description WIN and BET: its place in the week, 1 to 3. Null for LONGSHOT. */
6461
+ readonly rank: number | null;
6462
+ };
6463
+ /** @description One person's UTC day on one event: a question, or an outcome in none. Everything they bought, sold and were settled on that day on its outcomes, netted per outcome by the holdings ledger, as lines, and their newest top-level comment on the event that day. Several buys show as one line of their sum, a buy, sale and buy as their net, a same-day in and out as only what it made, and buying both sides of an outcome nets away; a line under 1 of its asset is left out. A day with no line is a comment alone. */
6464
+ readonly MarketItem: {
6465
+ /** @constant */
6466
+ readonly kind: "MARKET";
6467
+ /** @description Stable, opaque ID of the person's day on the event: the same however the day grows, as it moves to the top. */
6400
6468
  readonly id: string;
6401
- /** @description Its newest trade's HyperCore block time. */
6469
+ /** @description Its newest activity: a trade's or a settlement's HyperCore block time, or the comment's. */
6402
6470
  readonly at: components["schemas"]["$defs-Timestamp"];
6403
6471
  readonly person: components["schemas"]["Person"];
6404
- /** @description The episode the burst belongs to. */
6405
- readonly position: components["schemas"]["SingleKey"];
6406
- /** @description The side bought or sold. */
6407
- readonly side: components["schemas"]["Side"];
6408
- /**
6409
- * @description Whether the burst bought or sold.
6410
- * @enum {string}
6411
- */
6412
- readonly direction: "BUY" | "SELL";
6413
- /** @description Shares bought or sold over the burst. */
6414
- readonly shares: components["schemas"]["Shares"];
6415
- /** @description Average printed price per share over the burst, weighted by size, before fees, rounded half away from zero to 8 decimals. */
6416
- readonly price: components["schemas"]["Price"];
6417
- /** @description How many orders the burst took, told apart by transaction: one order filling against several makers is one. */
6418
- readonly orders: number;
6472
+ readonly event: components["schemas"]["FeedEvent"];
6473
+ /** @description What each outcome's day shows: the line carrying the item's moment first, then by the size of the USDC amount it leads with (BOUGHT its amount, SOLD its pnl when known, else its amount, CLOSED its amount, a result its pnl), lines with no such amount last. The first leads; the rest fold in as more on the event. Empty for a comment alone. */
6474
+ readonly lines: readonly components["schemas"]["FeedLine"][];
6475
+ /** @description Their newest live top-level comment on the event that day, before or after their trades; on a day they did not trade it, one that joins no Combo of theirs (ComboItem.comment). Null when none. */
6476
+ readonly comment: components["schemas"]["FeedComment"] | null;
6477
+ /** @description The best moment of its lines' wins and buys: a win before a bet, a higher place first. A buy's moment goes once its side lost or split. Null when none. */
6478
+ readonly moment: components["schemas"]["FeedMoment"] | null;
6419
6479
  };
6420
6480
  /** @description What GET /v1/social/people/{username}/positions/{position} takes to open a Combo position. */
6421
6481
  readonly ComboKey: {
@@ -6427,29 +6487,50 @@ export type components = {
6427
6487
  /** @description The position path segment. */
6428
6488
  readonly position_id: components["schemas"]["Bytes32"];
6429
6489
  };
6430
- /** @description A Combo position a person opened, received or cashed out. */
6490
+ /** @description One leg of a Combo and where it stands. */
6491
+ readonly FeedLeg: {
6492
+ readonly outcome_id: components["schemas"]["UInt32String"];
6493
+ readonly side: components["schemas"]["Side"];
6494
+ /** @description What the side settled at: WON at 1, LOST at 0, SPLIT between; null while its market has not settled. */
6495
+ readonly result: ("WON" | "LOST" | "SPLIT") | null;
6496
+ };
6497
+ /** @description One Combo bet for its whole life in the person's wallet: from when they opened it or were passed it to when they cashed it out or it settled to them, in its latest state. A lost Combo, by a leg or by its settlement, shows only when they paid at least 50 USDC for it: a smaller one, and a free one, leaves the feed once lost. A cash-out is its own result and stays, whatever its legs do after. Amounts are 10^-8 USDC; null when unknown or none. */
6431
6498
  readonly ComboItem: {
6432
- /** @description Stable, opaque ID. */
6499
+ /** @constant */
6500
+ readonly kind: "COMBO";
6501
+ /** @description Stable, opaque ID of the bet, the same from its start to its end, as it moves to the top. */
6433
6502
  readonly id: string;
6434
- /** @description HyperEVM block time. */
6503
+ /** @description Its newest activity: the HyperEVM block time of its start, cash-out or settlement, or its comment's time. */
6435
6504
  readonly at: components["schemas"]["$defs-Timestamp"];
6436
6505
  readonly person: components["schemas"]["Person"];
6437
6506
  readonly position: components["schemas"]["ComboKey"];
6438
6507
  /**
6439
- * @description What they did with the position.
6508
+ * @description Its latest state: OPENED or RECEIVED (passed to them; a free Combo when golden) while they hold it, then CASHED_OUT or SETTLED.
6440
6509
  * @enum {string}
6441
6510
  */
6442
- readonly action: "OPENED" | "RECEIVED" | "CASHED_OUT";
6511
+ readonly action: "OPENED" | "RECEIVED" | "CASHED_OUT" | "SETTLED";
6443
6512
  /** @description A free Combo. */
6444
6513
  readonly golden: boolean;
6445
6514
  /** @description Its legs, in leg order. */
6446
- readonly legs: readonly components["schemas"]["social.schema_$defs-Leg"][];
6447
- /** @description For OPENED, what they paid in 10^-8 USDC, the entry fee included; null otherwise. */
6448
- readonly cost: components["schemas"]["$defs-Amount"] | null;
6449
- };
6450
- /** @description A feed item: a burst of trades, or a Combo moment. */
6451
- readonly FeedItem: components["schemas"]["TradeItem"] | components["schemas"]["ComboItem"];
6452
- /** @description A page of a feed. Later pages never repeat an item: a burst that grows after it was listed moves to the top of a fresh first page under its id. */
6515
+ readonly legs: readonly components["schemas"]["FeedLeg"][];
6516
+ /** @description The ticket's now: LOST once any leg lost or the vault settled it to its holder for nothing, WON or SPLIT once every leg settled; null while open. A lost ticket never has anything to win. */
6517
+ readonly result: ("WON" | "LOST" | "SPLIT") | null;
6518
+ /** @description What they paid for it, the entry fee included; null when they paid nothing of their own (a free Combo, a gift). */
6519
+ readonly stake: components["schemas"]["$defs-Amount"] | null;
6520
+ /** @description What it pays its holder if every leg wins, net of the profit fee; null once the ticket is lost. */
6521
+ readonly to_win: components["schemas"]["$defs-Amount"] | null;
6522
+ /** @description CASHED_OUT and SETTLED: what the cash-out or settlement paid them, net of the profit fee; null otherwise. */
6523
+ readonly received: components["schemas"]["$defs-Amount"] | null;
6524
+ /** @description received less stake, when both are known. */
6525
+ readonly pnl: components["schemas"]["SignedUnits"] | null;
6526
+ /** @description The person's newest live top-level comment that joins this Combo, null when none. A comment joins, in this order: the person's day on its event when they traded that event that day (MarketItem); else their Combo opened or received nearest to it, at most 30 minutes before or after (at equal distance the later); else it stands alone. A Combo shows the newest comment joining it; another comment that would join it stands alone. */
6527
+ readonly comment: components["schemas"]["FeedComment"] | null;
6528
+ /** @description WIN from its cash-out or settlement, else BET or LONGSHOT from its opening while it is open or has won; a cash-out keeps only a WIN. Null when none. */
6529
+ readonly moment: components["schemas"]["FeedMoment"] | null;
6530
+ };
6531
+ /** @description A feed item, by kind: a person's day on an event, or a Combo moment. */
6532
+ readonly FeedItem: components["schemas"]["MarketItem"] | components["schemas"]["ComboItem"];
6533
+ /** @description A page of a feed, newest activity first. A day that grows after it was listed moves to the top of a fresh first page under its id; a later page repeats an item only when its newest activity was undone between pages, so clients keep items by id. Consecutive items of one person are not folded; a client folds them as it lists them. */
6453
6534
  readonly FeedPage: {
6454
6535
  /** @description Newest first. */
6455
6536
  readonly items: readonly components["schemas"]["FeedItem"][];
@@ -6488,13 +6569,14 @@ export type components = {
6488
6569
  };
6489
6570
  /** @description One person's place on the leaderboard. */
6490
6571
  readonly Rank: {
6491
- /** @description Their rank, from 1. */
6572
+ /** @description Their rank from 1 among the ranking's people who are public now: anyone above them who has since turned private no longer counts. */
6492
6573
  readonly rank: number;
6574
+ /** @description The ranked public trader. */
6493
6575
  readonly person: components["schemas"]["Person"];
6494
- /** @description Volume or P&L over the range in 10^-8 USDC; P&L can be zero or negative. */
6576
+ /** @description Volume or P&L over the range in 10^-8 USDC; P&L gains and losses rank from one cent either way. */
6495
6577
  readonly amount: components["schemas"]["SignedUnits"];
6496
6578
  };
6497
- /** @description One page of 25 ranks and the reader's own rank. */
6579
+ /** @description One page of the ranking as it was read and a signed-in reader's own rank. */
6498
6580
  readonly Leaderboard: {
6499
6581
  /**
6500
6582
  * @description What the ranking counts.
@@ -6510,13 +6592,38 @@ export type components = {
6510
6592
  readonly as_of: components["schemas"]["$defs-Timestamp"];
6511
6593
  /** @description The page answered, as the page query parameter asked. */
6512
6594
  readonly page_number: number;
6513
- /** @description How many pages the ranking fills; 0 when nobody ranks. */
6595
+ /** @description How many pages of 25 the ranking filled when it was read, people since turned private included; 0 when nobody ranked. */
6514
6596
  readonly pages: number;
6515
- /** @description The page's ranks, ascending; empty past the last page. */
6597
+ /** @description The page's ranks, ascending, with no holes. Pages split the ranking as it was read, so a page may hold fewer than 25 rows when someone on it has turned private, and a walk under one as_of repeats and skips nobody. Empty past the last page. */
6516
6598
  readonly rows: readonly components["schemas"]["Rank"][];
6517
- /** @description The reader's own rank, on whichever page; null when they do not rank: a private profile, a known role, nothing counted, no P&L figure, or for P&L a range with a zero change and no trade, never a rank at 0. */
6599
+ /** @description The signed-in participant's own rank, numbered as rows, on whichever page. Null without a participant session or when they do not rank: a private profile, a known role, no counted volume, no P&L figure or P&L under one cent in either direction. */
6518
6600
  readonly you: components["schemas"]["Rank"] | null;
6519
6601
  };
6602
+ /** @description The person's most profitable USDC single-market position that settled with a full win in the window. */
6603
+ readonly SuggestionWin: {
6604
+ /** @description The outcome the position held, as a decimal string. */
6605
+ readonly outcome_id: components["schemas"]["UInt32String"];
6606
+ /** @description The net side held at settlement, which was paid in full. */
6607
+ readonly side: components["schemas"]["Side"];
6608
+ /** @description What the position received minus what it paid, including fees, rounded to 10^-8 USDC. */
6609
+ readonly pnl: components["schemas"]["$defs-Amount"];
6610
+ };
6611
+ /** @description One public trader to follow, with their weekly P&L and biggest single-market win if known. */
6612
+ readonly Suggestion: {
6613
+ /** @description The public trader. */
6614
+ readonly person: components["schemas"]["Person"];
6615
+ /** @description Their positive P&L in 10^-8 USDC from the weekly ranking. */
6616
+ readonly pnl: components["schemas"]["$defs-Amount"];
6617
+ /** @description Their largest profitable single-market position settled in USDC since seven days before the weekly ranking was read, through the holdings ledger's cut, whose net side was paid in full. Null when no such win is known. */
6618
+ readonly win: components["schemas"]["SuggestionWin"] | null;
6619
+ };
6620
+ /** @description A short list of public traders to follow. */
6621
+ readonly Suggestions: {
6622
+ /** @description Active public traders, best weekly P&L first, excluding the signed-in participant and anyone they already follow. */
6623
+ readonly items: readonly components["schemas"]["Suggestion"][];
6624
+ /** @description Market settlement details for every outcome named by a win. */
6625
+ readonly markets: components["schemas"]["Markets"];
6626
+ };
6520
6627
  /** @enum {unknown} */
6521
6628
  readonly OperationState: "QUEUED" | "IN_FLIGHT" | "RETRYABLE" | "UNKNOWN" | "COMMITTED" | "REVERTED" | "EXPIRED_UNEXECUTED";
6522
6629
  /** @description A HIP-4 outcome side of the comment's market the author's account wallet holds on HyperCore now, as GET /v1/traders/{username} lists it without opened_at. */
@@ -6721,7 +6828,7 @@ export type components = {
6721
6828
  readonly Content: {
6722
6829
  /** @description Rendered display title; null when the template is unknown or the description does not fit it. */
6723
6830
  readonly title: string | null;
6724
- /** @description Rendered resolution rules; the native description for a free-form market, null when the template is unknown or the description does not fit it. */
6831
+ /** @description Resolution rules in plain English, with dates such as Oct 16, 2026 08:00 UTC, grouped numbers and native perp identifiers such as xyz:GOLD; a free-form market's own description; null when the template is unknown, the description does not fit it, or the description is placeholder text such as other. */
6725
6832
  readonly rules: string | null;
6726
6833
  };
6727
6834
  readonly Parent: {
@@ -7401,6 +7508,14 @@ export type components = {
7401
7508
  /** @description When Totalis first read the market from the registry. */
7402
7509
  readonly listed_at: components["schemas"]["$defs-Timestamp"];
7403
7510
  };
7511
+ readonly PolymarketMarketList: {
7512
+ /** @description Listed Polymarket markets that match Gamma and are still open, ascending by outcome ID. */
7513
+ readonly items: readonly components["schemas"]["PolymarketMarket"][];
7514
+ /** @description Pass as cursor to read the next page; null when there are no more pages. */
7515
+ readonly next_cursor: components["schemas"]["NextCursor"];
7516
+ /** @description True when another page follows. */
7517
+ readonly has_more: boolean;
7518
+ };
7404
7519
  readonly PolymarketMarketDetails: {
7405
7520
  /** @description The listed Polymarket market. */
7406
7521
  readonly market: components["schemas"]["PolymarketMarket"];
@@ -11614,13 +11729,25 @@ export interface operations {
11614
11729
  readonly getSocialLeaderboard: {
11615
11730
  readonly parameters: {
11616
11731
  readonly query?: {
11617
- /** @description VOLUME (default) or PNL. */
11732
+ /**
11733
+ * @description VOLUME (default) ranks known positive volume, counted as GET /v1/social/people/{username}. PNL ranks the change on GET /v1/traders/{username}/pnl, including gains and losses of at least one cent.
11734
+ * @example PNL
11735
+ */
11618
11736
  readonly metric?: "VOLUME" | "PNL";
11619
- /** @description 1W (default), the last 7 days to the hour, or ALL. For VOLUME, 1W counts from the start of the hour seven days before the ranking was read; for PNL it is GET /v1/traders/{username}/pnl's 1W. */
11737
+ /**
11738
+ * @description 1W (default), the last 7 days to the hour, or ALL. For VOLUME, 1W counts from the start of the hour seven days before the ranking was read; for PNL it is GET /v1/traders/{username}/pnl's 1W.
11739
+ * @example 1W
11740
+ */
11620
11741
  readonly range?: "1W" | "ALL";
11621
- /** @description 1-based page of 25 ranks; 1 by default. A page past the last is empty, with pages and you still set. */
11742
+ /**
11743
+ * @description 1-based page of 25 published ranks; 1 by default. A page past the last is empty, with pages and you still set.
11744
+ * @example 1
11745
+ */
11622
11746
  readonly page?: number;
11623
- /** @description The as_of of an earlier page, to read the ranking it came from; the newest when absent. */
11747
+ /**
11748
+ * @description Pass the as_of of an earlier page to keep its ranking. The newest ranking is used when absent. Rankings are read every five minutes and kept for an hour; once gone, 409 CURSOR_EXPIRED means to read the first page again.
11749
+ * @example 2026-11-25T12:00:00Z
11750
+ */
11624
11751
  readonly as_of?: components["schemas"]["$defs-Timestamp"];
11625
11752
  };
11626
11753
  readonly header?: never;
@@ -11629,10 +11756,11 @@ export interface operations {
11629
11756
  };
11630
11757
  readonly requestBody?: never;
11631
11758
  readonly responses: {
11632
- /** @description One page of the ranking */
11759
+ /** @description One page spanning 25 published ranks, with ties ranked by username. Only public profiles appear; the house market maker, makers, API operators and promotion accounts are left out. Someone who has since turned private is left out and everyone below moves up a place, so ranks have no holes; pages still split the ranking as it was read, so a page may hold fewer than 25 rows and a walk under one as_of never repeats or skips anyone. The reader's own rank is null without a participant session or when unranked. */
11633
11760
  readonly 200: {
11634
11761
  headers: {
11635
- readonly "Cache-Control"?: "no-store";
11762
+ /** @description public, max-age=30 for a signed-out read, which the edge may share; no-store for one with a credential. */
11763
+ readonly "Cache-Control"?: "public, max-age=30" | "no-store";
11636
11764
  readonly [name: string]: unknown;
11637
11765
  };
11638
11766
  content: {
@@ -11642,10 +11770,39 @@ export interface operations {
11642
11770
  readonly 400: components["responses"]["Error"];
11643
11771
  readonly 401: components["responses"]["Error"];
11644
11772
  readonly 403: components["responses"]["Error"];
11645
- readonly 404: components["responses"]["Error"];
11646
11773
  readonly 409: components["responses"]["Error"];
11647
11774
  readonly 429: components["responses"]["RateLimited"];
11648
11775
  readonly 500: components["responses"]["InternalError"];
11776
+ /** @description CONTRACT_UNAVAILABLE when the leaderboard or requested P&L ranking is off. DEPENDENCY_STALE before the first ranking, when the newest is an hour old, or for VOLUME while the holdings ledger is behind, even with as_of. */
11777
+ readonly 503: components["responses"]["Unavailable"];
11778
+ };
11779
+ };
11780
+ readonly listSocialSuggestions: {
11781
+ readonly parameters: {
11782
+ readonly query?: never;
11783
+ readonly header?: never;
11784
+ readonly path?: never;
11785
+ readonly cookie?: never;
11786
+ };
11787
+ readonly requestBody?: never;
11788
+ readonly responses: {
11789
+ /** @description Up to eight public traders from the newest weekly P&L leaderboard, best first. The signed-in participant and traders they already follow are left out. From the first 32 remaining candidates with positive weekly P&L, only traders with known positive volume from the hour seven days before the ranking was read, and a weekly P&L of at least 1% of that volume, are shown; a trader who traded like a machine on any UTC day of the week, as GET /v1/social/feed leaves out, never is. */
11790
+ readonly 200: {
11791
+ headers: {
11792
+ /** @description public, max-age=30 for a signed-out read, which the edge may share; no-store for one with a credential. */
11793
+ readonly "Cache-Control"?: "public, max-age=30" | "no-store";
11794
+ readonly [name: string]: unknown;
11795
+ };
11796
+ content: {
11797
+ readonly "application/json": components["schemas"]["Suggestions"];
11798
+ };
11799
+ };
11800
+ readonly 400: components["responses"]["Error"];
11801
+ readonly 401: components["responses"]["Error"];
11802
+ readonly 403: components["responses"]["Error"];
11803
+ readonly 429: components["responses"]["RateLimited"];
11804
+ readonly 500: components["responses"]["InternalError"];
11805
+ /** @description CONTRACT_UNAVAILABLE when the leaderboard or P&L ranking is off, DEPENDENCY_STALE when the ranking is not ready, and SOURCE_UNAVAILABLE while the holdings ledger is behind. */
11649
11806
  readonly 503: components["responses"]["Unavailable"];
11650
11807
  };
11651
11808
  };
@@ -11763,7 +11920,10 @@ export interface operations {
11763
11920
  };
11764
11921
  readonly followTrader: {
11765
11922
  readonly parameters: {
11766
- readonly query?: never;
11923
+ readonly query?: {
11924
+ /** @description Where Follow was pressed. Used only for analytics when a new follow is created; it does not change the follow or its settings. Unknown values are ignored. */
11925
+ readonly source?: "PROFILE" | "POSITION" | "LEADERBOARD" | "SUGGESTIONS" | "FEED" | "PEOPLE";
11926
+ };
11767
11927
  readonly header: {
11768
11928
  /**
11769
11929
  * @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`.
@@ -14739,6 +14899,45 @@ export interface operations {
14739
14899
  readonly 503: components["responses"]["Unavailable"];
14740
14900
  };
14741
14901
  };
14902
+ readonly listPolymarketMarkets: {
14903
+ readonly parameters: {
14904
+ readonly query?: {
14905
+ /** @description Markets per page, 1 to 200; 50 by default. */
14906
+ readonly limit?: components["schemas"]["PageLimit"];
14907
+ /** @description next_cursor from the previous page; omit for the first page. */
14908
+ readonly cursor?: components["schemas"]["PageCursor"];
14909
+ };
14910
+ readonly header?: never;
14911
+ readonly path?: never;
14912
+ readonly cookie?: never;
14913
+ };
14914
+ readonly requestBody?: never;
14915
+ readonly responses: {
14916
+ /** @description A page of markets. When market-data has not read the registry for a minute, the read is MARKET_DATA_UNAVAILABLE rather than states that may be wrong. */
14917
+ readonly 200: {
14918
+ headers: {
14919
+ /** @description Five seconds: state follows a registry read every 15 seconds. */
14920
+ readonly "Cache-Control"?: "public, max-age=5";
14921
+ /** @description Strong validator of the whole answer; send it as `If-None-Match` to get 304 when unchanged. */
14922
+ readonly ETag?: string;
14923
+ readonly [name: string]: unknown;
14924
+ };
14925
+ content: {
14926
+ readonly "application/json": components["schemas"]["PolymarketMarketList"];
14927
+ };
14928
+ };
14929
+ /** @description The answer matches the `If-None-Match` ETag. */
14930
+ readonly 304: {
14931
+ headers: {
14932
+ readonly [name: string]: unknown;
14933
+ };
14934
+ content?: never;
14935
+ };
14936
+ readonly 400: components["responses"]["Error"];
14937
+ readonly 500: components["responses"]["InternalError"];
14938
+ readonly 503: components["responses"]["Unavailable"];
14939
+ };
14940
+ };
14742
14941
  readonly getPolymarketMarket: {
14743
14942
  readonly parameters: {
14744
14943
  readonly query?: never;
@@ -850,12 +850,6 @@ export type components = {
850
850
  readonly from: components["schemas"]["Timestamp"] | null;
851
851
  /** @description End of the latest read's node-time window. Null with from. */
852
852
  readonly to: components["schemas"]["Timestamp"] | null;
853
- /** @description Deprecated: always null. Totalis no longer records runs on the live lane; read the chart history (`GET /v1/charts/mark:{coin}`). Was how far the perp's recorded history reaches. */
854
- readonly sealed_through: components["schemas"]["Timestamp"] | null;
855
- /** @description Deprecated: always null, with sealed_through. */
856
- readonly runs_from: components["schemas"]["Timestamp"] | null;
857
- /** @description Deprecated: always empty. */
858
- readonly runs: readonly components["schemas"]["MarketMarkRun"][];
859
853
  };
860
854
  };
861
855
  readonly MarketMarkFrame: {
@@ -876,30 +870,6 @@ export type components = {
876
870
  readonly to: components["schemas"]["Timestamp"];
877
871
  };
878
872
  };
879
- readonly MarketMarkSealedFrame: {
880
- /**
881
- * @description Frame discriminator, always markSealed.
882
- * @constant
883
- */
884
- readonly channel: "markSealed";
885
- /** @description Deprecated: no longer sent. Totalis no longer records runs on the live lane; a chart reads its history from `GET /v1/charts/mark:{coin}`. Was: marks just recorded for good. */
886
- readonly data: {
887
- /** @description The perp. */
888
- readonly coin: components["schemas"]["MarketPerpCoin"];
889
- /** @description How far the recorded history reached before these runs: always the previous markSealed through or the markSnapshot sealed_through on this socket (a socket that falls behind gets a markSnapshot instead); null when nothing was recorded. */
890
- readonly from: components["schemas"]["Timestamp"] | null;
891
- /** @description How far the recorded history now reaches; marks up to here are final. */
892
- readonly through: components["schemas"]["Timestamp"];
893
- /** @description Every recorded run that covers an instant in (from, through], by start. The mark at an instant in that span is the px of the run with the latest start at or before it, if that run ends at or after it; otherwise it is unknown for good. A long backlog arrives as several frames that chain by from and through. */
894
- readonly runs: readonly components["schemas"]["MarketMarkRun"][];
895
- };
896
- };
897
- /** @description [start, end, px]: the mark held from start to end, both included. The perp marks read closes step boundary b at the px of the run with the latest start at or before b, when that run ends at or after b; this is the same record. */
898
- readonly MarketMarkRun: readonly [
899
- components["schemas"]["Timestamp"],
900
- components["schemas"]["Timestamp"],
901
- string
902
- ];
903
873
  readonly MarketMarkTicksFrame: {
904
874
  /**
905
875
  * @description Frame discriminator, always markTicks.
@@ -1905,9 +1875,20 @@ export type components = {
1905
1875
  * @constant
1906
1876
  */
1907
1877
  readonly quality: "TRADE";
1878
+ } | {
1879
+ /**
1880
+ * @description A Polymarket market's CLOB book.
1881
+ * @constant
1882
+ */
1883
+ readonly source: "POLYMARKET_CLOB";
1884
+ /**
1885
+ * @description Order book values always carry BOOK_MID quality.
1886
+ * @constant
1887
+ */
1888
+ readonly quality: "BOOK_MID";
1908
1889
  };
1909
1890
  /** @enum {string} */
1910
- readonly Source: "HYPERLIQUID_FAST_ASSET_CTXS" | "HYPERLIQUID_ALL_MIDS" | "HYPERLIQUID_L2_BOOK" | "HYPERLIQUID_BBO" | "HYPERLIQUID_TRADES";
1891
+ readonly Source: "HYPERLIQUID_FAST_ASSET_CTXS" | "HYPERLIQUID_ALL_MIDS" | "HYPERLIQUID_L2_BOOK" | "HYPERLIQUID_BBO" | "HYPERLIQUID_TRADES" | "POLYMARKET_CLOB";
1911
1892
  /** @enum {string} */
1912
1893
  readonly Quality: "BOOK_MID" | "MARK_PRICE" | "ALL_MIDS_FALLBACK" | "TRADE";
1913
1894
  /**