@totalis/hip4-client 0.124.0 → 0.125.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +380 -0
- package/README.md +9 -5
- package/dist/api-keys.d.ts +21 -2
- package/dist/api-keys.js +12 -10
- package/dist/audience-contract.d.ts +1 -2
- package/dist/client.d.ts +1 -1
- package/dist/client.js +1 -1
- package/dist/flow-errors.d.ts +1 -1
- package/dist/flow-errors.js +1 -1
- package/dist/generated/account-read.d.ts +150 -126
- package/dist/generated/api-keys.d.ts +19 -10
- package/dist/generated/browse.d.ts +12 -12
- package/dist/generated/client.d.ts +5 -2
- package/dist/generated/errors.d.ts +15 -8
- package/dist/generated/errors.js +47 -35
- package/dist/generated/maker.d.ts +3 -4
- package/dist/generated/openapi.d.ts +828 -892
- package/dist/generated/realtime.d.ts +66 -93
- package/dist/generated/vault-abi.d.ts +57 -0
- package/dist/generated/vault-abi.js +77 -0
- package/dist/generated/version.d.ts +16 -16
- package/dist/generated/version.js +20 -18
- package/dist/maker.d.ts +134 -54
- package/dist/maker.js +257 -147
- package/dist/money.d.ts +8 -6
- package/dist/money.js +7 -7
- package/dist/partner.d.ts +2 -0
- package/dist/partner.js +2 -1
- package/dist/request.d.ts +11 -2
- package/dist/request.js +7 -2
- package/dist/totalis.d.ts +147 -232
- package/dist/totalis.js +290 -269
- package/dist/typed-data.d.ts +6 -0
- package/dist/typed-data.js +8 -0
- package/dist/ui.d.ts +6 -10
- package/dist/ui.js +15 -13
- package/dist/vault-reads.d.ts +46 -0
- package/dist/vault-reads.js +72 -0
- package/examples/browser-wallet.mjs +1 -1
- package/examples/node-bot.mjs +15 -12
- package/package.json +1 -1
|
@@ -176,7 +176,7 @@ export type paths = {
|
|
|
176
176
|
readonly path?: never;
|
|
177
177
|
readonly cookie?: never;
|
|
178
178
|
};
|
|
179
|
-
/** @description Positions of the credential's account, reconciled against committed vault state: the positions a personal credential holds, or the positions a maker key's maker wrote. The credential selects the account and deployment. Access is checked against the credential's current permissions on every request. */
|
|
179
|
+
/** @description Positions of the credential's account, reconciled against committed vault state: the positions a personal credential holds, or the positions a maker key's maker wrote, in the account view (Position); the maker's view (MakerPosition) is listMakerPositions. The credential selects the account and deployment. Access is checked against the credential's current permissions on every request. */
|
|
180
180
|
readonly get: operations["listAccountPositions"];
|
|
181
181
|
readonly put?: never;
|
|
182
182
|
readonly post?: never;
|
|
@@ -193,7 +193,7 @@ export type paths = {
|
|
|
193
193
|
readonly path?: never;
|
|
194
194
|
readonly cookie?: never;
|
|
195
195
|
};
|
|
196
|
-
/** @description One position of the credential's account (held, or written by a maker key's maker) by position ID, reconciled against committed vault state. The credential selects the account and deployment. Access is checked against the credential's current permissions on every request. */
|
|
196
|
+
/** @description One position of the credential's account (held, or written by a maker key's maker) by position ID, in the account view (Position), reconciled against committed vault state. The credential selects the account and deployment. Access is checked against the credential's current permissions on every request. */
|
|
197
197
|
readonly get: operations["getAccountPosition"];
|
|
198
198
|
readonly put?: never;
|
|
199
199
|
readonly post?: never;
|
|
@@ -261,7 +261,7 @@ export type paths = {
|
|
|
261
261
|
readonly path?: never;
|
|
262
262
|
readonly cookie?: never;
|
|
263
263
|
};
|
|
264
|
-
/** @description This maker's open book by outcome at the vault projection checkpoint: per outcome its YES and NO exposure, gross and net, worst case and what offsetting saves, and what awaits settlement; book totals count each
|
|
264
|
+
/** @description This maker's open book by outcome at the vault projection checkpoint: per outcome its YES and NO exposure, gross and net, worst case and what offsetting saves, and what awaits settlement; book totals count each position once. Legs resolve as a position's do. A maker key reads only its own maker. */
|
|
265
265
|
readonly get: operations["getMakerExposure"];
|
|
266
266
|
readonly put?: never;
|
|
267
267
|
readonly post?: never;
|
|
@@ -332,7 +332,7 @@ export type components = {
|
|
|
332
332
|
* @description Freshness of the whole read. CURRENT: every source is fresh and reconciled. STALE: a source lags or has not reconciled, such as a catching-up projection, a pending reorg rescan or a period not fully covered; amounts may be displayed with their age but never authorize an action. UNAVAILABLE: a required source could not be read, so the amounts it backs are null.
|
|
333
333
|
* @enum {string}
|
|
334
334
|
*/
|
|
335
|
-
readonly
|
|
335
|
+
readonly freshness: "CURRENT" | "STALE" | "UNAVAILABLE";
|
|
336
336
|
};
|
|
337
337
|
/** @description Signed amount in atomic USDC (6 decimals, "1000000" = 1 USDC); null when it could not be established, never zero in its place. */
|
|
338
338
|
readonly Metric: components["schemas"]["SignedAmount"] | null;
|
|
@@ -393,7 +393,7 @@ export type components = {
|
|
|
393
393
|
readonly description_code: string;
|
|
394
394
|
} & (unknown & unknown & unknown & unknown & unknown);
|
|
395
395
|
readonly ActivityList: {
|
|
396
|
-
/** @description Freshness of this read: the oldest source observation and one
|
|
396
|
+
/** @description Freshness of this read: the oldest source observation and one freshness for every amount in the response. */
|
|
397
397
|
readonly context: components["schemas"]["ReadContext"];
|
|
398
398
|
/** @description Activities on this page, ordered by sequence, then activity_id, descending, within each vault; several vaults' activities are merged, most recently recorded first. */
|
|
399
399
|
readonly items: readonly components["schemas"]["Activity"][];
|
|
@@ -403,7 +403,7 @@ export type components = {
|
|
|
403
403
|
readonly has_more: boolean;
|
|
404
404
|
};
|
|
405
405
|
readonly ActivityDetail: {
|
|
406
|
-
/** @description Freshness of this read: the oldest source observation and one
|
|
406
|
+
/** @description Freshness of this read: the oldest source observation and one freshness for every amount in the response. */
|
|
407
407
|
readonly context: components["schemas"]["ReadContext"];
|
|
408
408
|
/** @description The requested activity. */
|
|
409
409
|
readonly activity: components["schemas"]["Activity"];
|
|
@@ -413,11 +413,11 @@ export type components = {
|
|
|
413
413
|
readonly MakerAccess: {
|
|
414
414
|
/** @description On-chain maker ID this access applies to, as a decimal string. */
|
|
415
415
|
readonly maker_id: components["schemas"]["NonZeroUInt64String"];
|
|
416
|
-
/** @description Maker controller
|
|
417
|
-
readonly
|
|
416
|
+
/** @description Maker controller address the access was verified against. */
|
|
417
|
+
readonly controller: components["schemas"]["LowercaseNonZeroAddress"];
|
|
418
418
|
/** @description Maker controller epoch at verification, as a decimal string; a controller change invalidates access derived from an earlier epoch. */
|
|
419
|
-
readonly
|
|
420
|
-
/** @description Revision of the
|
|
419
|
+
readonly controller_version: string;
|
|
420
|
+
/** @description Revision of the controller's wallet link, as a decimal string. It changes when the wallet is unlinked and relinked, which expires cursors bound to the old revision. */
|
|
421
421
|
readonly access_revision: string;
|
|
422
422
|
/** @description Read permissions held. They never authorize signing or spending. */
|
|
423
423
|
readonly permissions: readonly components["schemas"]["Permission"][];
|
|
@@ -429,7 +429,7 @@ export type components = {
|
|
|
429
429
|
/** @description Operations holding this reservation. */
|
|
430
430
|
readonly operation_ids: readonly string[];
|
|
431
431
|
/** @description Reserved amount in atomic USDC (6 decimals, "1000000" = 1 USDC). */
|
|
432
|
-
readonly
|
|
432
|
+
readonly amount: components["schemas"]["Amount"];
|
|
433
433
|
/**
|
|
434
434
|
* @description ACTIVE: held and not yet reflected on-chain; UNKNOWN: outcome unknown, still counted as held.
|
|
435
435
|
* @enum {string}
|
|
@@ -449,21 +449,21 @@ export type components = {
|
|
|
449
449
|
/** @description Machine-readable codes blocking the action, e.g. MAKER_WITHDRAW_PENDING or RECONCILIATION_MISMATCH; at least one when available is null. */
|
|
450
450
|
readonly blockers: readonly string[];
|
|
451
451
|
};
|
|
452
|
-
/** @description Maker capital lanes and derived collateral, in atomic USDC (6 decimals, "1000000" = 1 USDC). Amounts are null when unavailable; context.
|
|
452
|
+
/** @description Maker capital lanes and derived collateral, in atomic USDC (6 decimals, "1000000" = 1 USDC). Amounts are null when unavailable; context.freshness says how fresh they are. */
|
|
453
453
|
readonly MakerCapital: {
|
|
454
|
-
/** @description Freshness of this read: the oldest source observation and one
|
|
454
|
+
/** @description Freshness of this read: the oldest source observation and one freshness for every amount in the response. */
|
|
455
455
|
readonly context: components["schemas"]["ReadContext"];
|
|
456
|
-
/** @description Maker
|
|
457
|
-
readonly
|
|
456
|
+
/** @description Maker controller, from the same indexed vault row as the lanes. */
|
|
457
|
+
readonly controller: components["schemas"]["LowercaseNonZeroAddress"];
|
|
458
458
|
/** @description Maker signer (its quote signer) from the same indexed vault row as the lanes. The zero address means the maker was opened without one and cannot quote. */
|
|
459
459
|
readonly signer: string;
|
|
460
460
|
/** @description Maker vault lane V from the vault contract, including escrow and payables. */
|
|
461
461
|
readonly vault_gross: components["schemas"]["UnsignedMetric"];
|
|
462
|
-
/** @description Bettor net stakes escrowed in this maker's open
|
|
462
|
+
/** @description Bettor net stakes escrowed in this maker's open positions (E). */
|
|
463
463
|
readonly stake_escrow: components["schemas"]["UnsignedMetric"];
|
|
464
|
-
/** @description Settled winnings owed to
|
|
464
|
+
/** @description Settled winnings owed to position holders and not yet claimed (P). */
|
|
465
465
|
readonly payable_owed: components["schemas"]["UnsignedMetric"];
|
|
466
|
-
/** @description Original open maker exposure G: payout minus net stake summed over open
|
|
466
|
+
/** @description Original open maker exposure G: payout minus net stake summed over open positions. */
|
|
467
467
|
readonly gross_open: components["schemas"]["UnsignedMetric"];
|
|
468
468
|
/** @description Maker discount lane D from the vault contract, which offsets gross_open in the requirement. */
|
|
469
469
|
readonly discount: components["schemas"]["UnsignedMetric"];
|
|
@@ -471,7 +471,7 @@ export type components = {
|
|
|
471
471
|
readonly requirement: components["schemas"]["UnsignedMetric"];
|
|
472
472
|
/** @description Collateral headroom F = max(V - E - P - R, 0). Not a guarantee of quote acceptance. */
|
|
473
473
|
readonly free_collateral: components["schemas"]["UnsignedMetric"];
|
|
474
|
-
/** @description Signed C = V - E - P. Excludes open-
|
|
474
|
+
/** @description Signed C = V - E - P. Excludes open-position valuation; not equity or NAV. */
|
|
475
475
|
readonly capital_net_of_senior_liabilities: components["schemas"]["Metric"];
|
|
476
476
|
/** @description Admission reservations H the venue holds for this maker that are not yet reflected on-chain; the sum of reservations. */
|
|
477
477
|
readonly pending_commitments: components["schemas"]["UnsignedMetric"];
|
|
@@ -524,64 +524,32 @@ export type components = {
|
|
|
524
524
|
/** @description Null until the leg has a known result. */
|
|
525
525
|
readonly result_denominator: null;
|
|
526
526
|
};
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
/** @description
|
|
531
|
-
readonly
|
|
532
|
-
/** @description
|
|
533
|
-
readonly
|
|
534
|
-
/** @description
|
|
535
|
-
readonly
|
|
536
|
-
/** @description
|
|
537
|
-
readonly
|
|
538
|
-
/** @description
|
|
539
|
-
readonly
|
|
540
|
-
|
|
527
|
+
/** @description A position as an account reads it: GET /v1/me/positions and GET /v1/me/positions/{position_id}, a maker key's included. */
|
|
528
|
+
readonly Position: components["schemas"]["PositionFields"];
|
|
529
|
+
readonly PositionList: {
|
|
530
|
+
/** @description Freshness of this read: the oldest source observation and one freshness for every amount in the response. */
|
|
531
|
+
readonly context: components["schemas"]["ReadContext"];
|
|
532
|
+
/** @description Positions on this page, newest created_at first, then position_id descending. */
|
|
533
|
+
readonly items: readonly components["schemas"]["Position"][];
|
|
534
|
+
/** @description Opaque cursor for the next page, bound to this response's snapshot; null on the last page. Send it back unchanged as cursor. */
|
|
535
|
+
readonly next_cursor: components["schemas"]["NextCursor"];
|
|
536
|
+
/** @description True when another page exists; true exactly when next_cursor is non-null. */
|
|
537
|
+
readonly has_more: boolean;
|
|
538
|
+
/** @description Exact number of positions in the whole filtered snapshot (not just this page), as a decimal string. */
|
|
539
|
+
readonly total_count: string;
|
|
540
|
+
};
|
|
541
|
+
readonly PositionDetail: {
|
|
542
|
+
/** @description Freshness of this read: the oldest source observation and one freshness for every amount in the response. */
|
|
543
|
+
readonly context: components["schemas"]["ReadContext"];
|
|
544
|
+
/** @description The requested position. */
|
|
545
|
+
readonly position: components["schemas"]["Position"];
|
|
546
|
+
};
|
|
547
|
+
/** @description A position as the maker that wrote it reads it (GET /v1/makers/{maker_id}/positions[/{position_id}]): every Position field, plus who holds it and how it closed for the maker. */
|
|
548
|
+
readonly MakerPosition: {
|
|
549
|
+
/** @description The owner's username when the owner wallet is the account wallet of a participant whose public trader profile is on, the pair GET /v1/traders/{username} shows; otherwise null, as for a participant's other linked wallets. */
|
|
541
550
|
readonly owner_username: components["schemas"]["Username"] | null;
|
|
542
|
-
/** @description
|
|
551
|
+
/** @description The display name of the partner whose builder code opened the position; null when it was opened without one. */
|
|
543
552
|
readonly opened_via: string | null;
|
|
544
|
-
/**
|
|
545
|
-
* @description OPEN: not yet known eligible for settlement; AWAITING_SETTLEMENT: every leg resolved, or the payout with every unresolved leg counted as a win already rounds down to zero, but no settlement observed; SETTLED_UNCLAIMED: settled with profit still unclaimed; CLOSED: closed by zero-profit settlement, final claim or sell-back.
|
|
546
|
-
* @enum {string}
|
|
547
|
-
*/
|
|
548
|
-
readonly status: "OPEN" | "AWAITING_SETTLEMENT" | "SETTLED_UNCLAIMED" | "CLOSED";
|
|
549
|
-
/** @description Profit fee in basis points, fixed when the position opened. The holder claims unclaimed_profit minus unclaimed_profit * fee_bps / 10000. */
|
|
550
|
-
readonly fee_bps: number;
|
|
551
|
-
/**
|
|
552
|
-
* @description How a CLOSED position closed: CLAIM (final claim of winnings) or SELL_BACK (bought back by the maker). Null otherwise, including direct zero-profit settlement closes and closes without retained evidence.
|
|
553
|
-
* @enum {string|null}
|
|
554
|
-
*/
|
|
555
|
-
readonly close_reason: "CLAIM" | "SELL_BACK" | null;
|
|
556
|
-
/** @description Stake after the taker entry fee. */
|
|
557
|
-
readonly net_stake: components["schemas"]["UnsignedMetric"];
|
|
558
|
-
/** @description What the current owner paid for the whole position: the price of the latest transfer to them, or the gross stake with the entry fee if they have held it since opening. Settlement, claims and sell-back don't change it. Null when retained chain history has a gap that could hide a transfer. P&L compares it with what the owner gets back, settlement_payout or cashout_price, less the profit fee of fee_bps on the amount above net_stake, whatever the owner paid. */
|
|
559
|
-
readonly acquisition_cost: components["schemas"]["UnsignedMetric"];
|
|
560
|
-
/** @description Payout if every leg wins, as the maker signed it in the quote; the maker's initial exposure is payout minus net_stake. */
|
|
561
|
-
readonly payout: components["schemas"]["UnsignedMetric"];
|
|
562
|
-
/** @description Settlement payout observed on-chain; null before settlement and for sold-back positions. */
|
|
563
|
-
readonly settlement_payout: components["schemas"]["UnsignedMetric"];
|
|
564
|
-
/** @description Gross profit still claimable; "0" unless SETTLED_UNCLAIMED. The holder receives unclaimed_profit minus unclaimed_profit * fee_bps / 10000. */
|
|
565
|
-
readonly unclaimed_profit: components["schemas"]["UnsignedMetric"];
|
|
566
|
-
/** @description Cash-out price paid when the position was sold back; null unless close_reason is SELL_BACK. */
|
|
567
|
-
readonly cashout_price: components["schemas"]["UnsignedMetric"];
|
|
568
|
-
/** @description Position legs in ascending outcome_id order, with each leg's resolution. */
|
|
569
|
-
readonly legs: readonly components["schemas"]["Leg"][];
|
|
570
|
-
/**
|
|
571
|
-
* Format: date-time
|
|
572
|
-
* @description RFC3339 time of the position's opening event; lists order by it, newest first.
|
|
573
|
-
*/
|
|
574
|
-
readonly created_at: string;
|
|
575
|
-
/**
|
|
576
|
-
* Format: date-time
|
|
577
|
-
* @description RFC3339 time of the position's latest lifecycle event.
|
|
578
|
-
*/
|
|
579
|
-
readonly updated_at: string;
|
|
580
|
-
/**
|
|
581
|
-
* @description Settlement result: LOSS (zero payout), PARTIAL (payout below net stake), WIN (payout at or above net stake) or EARLY_LOST (lost before every leg resolved). Null before settlement, for sell-backs, or when historical evidence is missing.
|
|
582
|
-
* @enum {string|null}
|
|
583
|
-
*/
|
|
584
|
-
readonly settlement_kind: "LOSS" | "PARTIAL" | "WIN" | "EARLY_LOST" | null;
|
|
585
553
|
/** @description The maker's signed P&L on this position once it closed economically: net_stake minus settlement_payout, or minus cashout_price for a sell-back; positive when the maker won. The same amount performance recognizes, so fees the owner paid never enter it. Null while OPEN or AWAITING_SETTLEMENT and when the close amount is unavailable. */
|
|
586
554
|
readonly maker_pnl: components["schemas"]["Metric"];
|
|
587
555
|
/**
|
|
@@ -589,14 +557,12 @@ export type components = {
|
|
|
589
557
|
* @enum {string|null}
|
|
590
558
|
*/
|
|
591
559
|
readonly maker_result: "WON" | "LOST" | "EVEN" | null;
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
readonly PositionList: {
|
|
596
|
-
/** @description Freshness of this read: the oldest source observation and one status for every amount in the response. */
|
|
560
|
+
} & (components["schemas"]["PositionFields"] & unknown & unknown);
|
|
561
|
+
readonly MakerPositionList: {
|
|
562
|
+
/** @description Freshness of this read: the oldest source observation and one freshness for every amount in the response. */
|
|
597
563
|
readonly context: components["schemas"]["ReadContext"];
|
|
598
564
|
/** @description Positions on this page, newest created_at first, then position_id descending. */
|
|
599
|
-
readonly items: readonly components["schemas"]["
|
|
565
|
+
readonly items: readonly components["schemas"]["MakerPosition"][];
|
|
600
566
|
/** @description Opaque cursor for the next page, bound to this response's snapshot; null on the last page. Send it back unchanged as cursor. */
|
|
601
567
|
readonly next_cursor: components["schemas"]["NextCursor"];
|
|
602
568
|
/** @description True when another page exists; true exactly when next_cursor is non-null. */
|
|
@@ -604,15 +570,15 @@ export type components = {
|
|
|
604
570
|
/** @description Exact number of positions in the whole filtered snapshot (not just this page), as a decimal string. */
|
|
605
571
|
readonly total_count: string;
|
|
606
572
|
};
|
|
607
|
-
readonly
|
|
608
|
-
/** @description Freshness of this read: the oldest source observation and one
|
|
573
|
+
readonly MakerPositionDetail: {
|
|
574
|
+
/** @description Freshness of this read: the oldest source observation and one freshness for every amount in the response. */
|
|
609
575
|
readonly context: components["schemas"]["ReadContext"];
|
|
610
576
|
/** @description The requested position. */
|
|
611
|
-
readonly position: components["schemas"]["
|
|
577
|
+
readonly position: components["schemas"]["MakerPosition"];
|
|
612
578
|
};
|
|
613
579
|
/** @description Maker realized performance for a period. Every period aggregate is null unless the whole period is covered by reconciled history. */
|
|
614
580
|
readonly Performance: {
|
|
615
|
-
/** @description Freshness of this read: the oldest source observation and one
|
|
581
|
+
/** @description Freshness of this read: the oldest source observation and one freshness for every amount in the response. */
|
|
616
582
|
readonly context: components["schemas"]["ReadContext"];
|
|
617
583
|
/**
|
|
618
584
|
* Format: date-time
|
|
@@ -634,14 +600,14 @@ export type components = {
|
|
|
634
600
|
* @description Earliest from this maker's periods can start at and still be complete: the later of where retained vault history and venue workflows begin, or the maker's opening block if later still. Request from=history_from for an all-time period. Null while vault history is unavailable.
|
|
635
601
|
*/
|
|
636
602
|
readonly history_from: string | null;
|
|
637
|
-
/** @description
|
|
638
|
-
readonly
|
|
639
|
-
/** @description Closes in the period the maker won (positive maker P&L), as a decimal string; null exactly when
|
|
640
|
-
readonly
|
|
641
|
-
/** @description Closes in the period the maker lost (negative maker P&L), as a decimal string; null exactly when
|
|
642
|
-
readonly
|
|
643
|
-
/** @description Closes in the period with zero maker P&L, as a decimal string; null exactly when
|
|
644
|
-
readonly
|
|
603
|
+
/** @description Positions economically closed in the period, as a decimal string; null when settled_net_stake is null. */
|
|
604
|
+
readonly closed_position_count: string | null;
|
|
605
|
+
/** @description Closes in the period the maker won (positive maker P&L), as a decimal string; null exactly when closed_position_count is null. */
|
|
606
|
+
readonly won_position_count: string | null;
|
|
607
|
+
/** @description Closes in the period the maker lost (negative maker P&L), as a decimal string; null exactly when closed_position_count is null. */
|
|
608
|
+
readonly lost_position_count: string | null;
|
|
609
|
+
/** @description Closes in the period with zero maker P&L, as a decimal string; null exactly when closed_position_count is null. Won, lost and even add up to closed_position_count. */
|
|
610
|
+
readonly even_position_count: string | null;
|
|
645
611
|
/** @description Net stake released by economic closes in the period. */
|
|
646
612
|
readonly settled_net_stake: components["schemas"]["UnsignedMetric"];
|
|
647
613
|
/** @description Signed maker trading P&L from closes in the period (net stake minus effective payout). */
|
|
@@ -668,7 +634,7 @@ export type components = {
|
|
|
668
634
|
/** @description Cumulative signed net trading P&L from from up to at, in atomic USDC (6 decimals, "1000000" = 1 USDC). */
|
|
669
635
|
readonly net_trading_pnl: string;
|
|
670
636
|
/** @description Closes since the previous point, as a decimal string: the day's closes for a day point ("0" only on a day whose maker-paid fees moved P&L); "0" for the opening point and for a through point added after the last such day. */
|
|
671
|
-
readonly
|
|
637
|
+
readonly closed_position_count: string;
|
|
672
638
|
/** @description Net trading P&L of those closes: net_trading_pnl minus the previous point's. A day point with closes is a real close day even when this is "0". */
|
|
673
639
|
readonly net_trading_pnl_change: string;
|
|
674
640
|
}[];
|
|
@@ -691,16 +657,16 @@ export type components = {
|
|
|
691
657
|
readonly reason: string | null;
|
|
692
658
|
};
|
|
693
659
|
readonly Telemetry: {
|
|
694
|
-
/** @description Freshness of this read: the oldest source observation and one
|
|
660
|
+
/** @description Freshness of this read: the oldest source observation and one freshness for every amount in the response. */
|
|
695
661
|
readonly context: components["schemas"]["ReadContext"];
|
|
696
662
|
readonly telemetry: ({
|
|
697
663
|
/** @enum {string} */
|
|
698
|
-
readonly
|
|
664
|
+
readonly freshness: "CURRENT" | "STALE";
|
|
699
665
|
readonly data: components["schemas"]["TelemetryData"];
|
|
700
666
|
readonly reason: string | null;
|
|
701
667
|
} & unknown) | {
|
|
702
668
|
/** @constant */
|
|
703
|
-
readonly
|
|
669
|
+
readonly freshness: "UNAVAILABLE";
|
|
704
670
|
readonly data: null;
|
|
705
671
|
readonly reason: string;
|
|
706
672
|
};
|
|
@@ -717,7 +683,7 @@ export type components = {
|
|
|
717
683
|
/** @description Revision of the changed reads, as a decimal string; a higher revision supersedes a lower one. */
|
|
718
684
|
readonly revision: string;
|
|
719
685
|
/** @description Account reads to refetch. */
|
|
720
|
-
readonly resources: readonly ("BALANCES" | "CAPITAL" | "ACTIVITY" | "POSITIONS" | "PERFORMANCE" | "TELEMETRY" | "QUOTES" | "ACCESS")[];
|
|
686
|
+
readonly resources: readonly ("BALANCES" | "CAPITAL" | "ACTIVITY" | "POSITIONS" | "HOLDINGS" | "PERFORMANCE" | "TELEMETRY" | "QUOTES" | "ACCESS")[];
|
|
721
687
|
/** @description Stream cursor of the change; persist it like an event cursor. */
|
|
722
688
|
readonly cursor: components["schemas"]["Cursor"];
|
|
723
689
|
};
|
|
@@ -758,7 +724,7 @@ export type components = {
|
|
|
758
724
|
* @description Stable HTTP error code. Each code has one HTTP status and one retry value.
|
|
759
725
|
* @enum {string}
|
|
760
726
|
*/
|
|
761
|
-
readonly ErrorCode: "INVALID_REQUEST" | "INVALID_QUERY" | "INVALID_CURSOR" | "INVALID_IDEMPOTENCY_KEY" | "ORIGIN_REQUIRED" | "SUBPROTOCOL_REQUIRED" | "UNSUPPORTED_BROWSE_CONTRACT" | "UNAUTHENTICATED" | "FORBIDDEN" | "ORIGIN_NOT_ALLOWED" | "ACCESS_REQUIRED" | "PICTURE_UPLOADS_BLOCKED" | "SIGN_IN_REQUIRED" | "NOT_FOUND" | "IDENTITY_NOT_FOUND" | "QUOTE_NOT_FOUND" | "INVITE_CODE_NOT_FOUND" | "IDEMPOTENCY_KEY_REUSED" | "STATE_CONFLICT" | "INVITE_CODE_EXHAUSTED" | "STALE_CURSOR" | "CURSOR_EXPIRED" | "CURSOR_RESET" | "RECURRING_DEFINITION_CONFLICT" | "EMBEDDED_WALLET_CONFLICT" | "SECRET_UNAVAILABLE" | "ROTATION_IN_PROGRESS" | "TELEMETRY_CONFLICT" | "RFQ_NOT_CANCELLABLE" | "RFQ_NOT_OPEN" | "RFQ_GENERATION_STALE" | "RFQ_GENERATION_IN_FLIGHT" | "QUOTE_EXPIRED" | "QUOTE_CANCELLED" | "QUOTE_REPLACED" | "QUOTE_SIGNER_CHANGED" | "QUOTE_CAPACITY_EXCEEDED" | "CORE_ACCOUNT_NOT_READY" | "CORE_ACCOUNT_ACTIVATION_REQUIRED" | "CORE_EXIT_ABANDONED" | "CORE_MOVE_IN_FLIGHT" | "ACCEPTANCE_IN_FLIGHT" | "USERNAME_TAKEN" | "USERNAME_ALREADY_SET" | "PICTURE_REMOVED" | "USERNAME_REQUIRED" | "GOLDEN_TICKET_NONE" | "GOLDEN_TICKET_USED" | "GOLDEN_TICKET_EXPIRED" | "GOLDEN_PLACEMENT_IN_FLIGHT" | "GOLDEN_PROMO_BUSY" | "GOLDEN_CASHOUT_REFUSED" | "GOLDEN_OFFER_BELOW_FLOOR" | "GOLDEN_GIFT_TERMS_EXPIRED" | "GOLDEN_UNLOCK_REQUIRED" | "GOLDEN_GIVEN_OUT" | "GOLDEN_CODE_DISABLED" | "GOLDEN_TICKET_HELD" | "GOLDEN_LINK_SIGN_UP_ONLY" | "GOLDEN_LINK_CLAIMED" | "X_REQUIRED" | "X_ALREADY_CLAIMED" | "X_TOO_NEW" | "GOLDEN_NOT_ELIGIBLE" | "INVALID_SIGNATURE" | "WALLET_CONTRACT_UNSUPPORTED" | "WRONG_AUTHORITY" | "KEY_LIMIT_REACHED" | "USERNAME_NOT_ALLOWED" | "PICTURE_TOO_LARGE" | "PICTURE_UNREADABLE" | "PICTURE_TOO_MANY_PIXELS" | "FOLLOW_SELF" | "FOLLOW_LIMIT_REACHED" | "COPY_SELF" | "COPY_NOT_MATCHED" | "GOLDEN_LEG_COUNT" | "GOLDEN_LEG_NOT_ELIGIBLE" | "GOLDEN_QUOTE_NOT_HOUSE" | "RATE_LIMITED" | "CONNECTION_LIMIT" | "RFQ_INTENT_LIMIT" | "QUOTE_EXPOSURE_LIMIT" | "INTERNAL_ERROR" | "DEPENDENCY_STALE" | "AUTHORIZATION_UNAVAILABLE" | "SOURCE_UNAVAILABLE" | "CONTRACT_UNAVAILABLE" | "MARKET_DATA_UNAVAILABLE" | "BROWSE_UNAVAILABLE" | "FINANCIAL_ACTIONS_DISABLED" | "CORE_EXIT_UNAVAILABLE" | "COLLATERAL_REDUCTION_UNAVAILABLE" | "SPONSORSHIP_UNAVAILABLE" | "CONTRACT_SIGNATURE_OVERLOADED" | "QUOTE_EXPOSURE_STALE" | "COMBO_AUTOMATIC_DISABLED" | "GAS_PRICE_ABOVE_CEILING" | "EXECUTION_BACKLOG_FULL" | "EMBEDDED_WALLET_UNAVAILABLE" | "GOLDEN_PROMO_FUNDS_LOW" | "X_VERIFICATION_UNAVAILABLE" | "CONNECTION_DRAIN";
|
|
727
|
+
readonly ErrorCode: "INVALID_REQUEST" | "INVALID_QUERY" | "INVALID_CURSOR" | "INVALID_IDEMPOTENCY_KEY" | "ORIGIN_REQUIRED" | "SUBPROTOCOL_REQUIRED" | "UNSUPPORTED_BROWSE_CONTRACT" | "UNAUTHENTICATED" | "FORBIDDEN" | "ORIGIN_NOT_ALLOWED" | "ACCESS_REQUIRED" | "PICTURE_UPLOADS_BLOCKED" | "SIGN_IN_REQUIRED" | "NOT_FOUND" | "IDENTITY_NOT_FOUND" | "QUOTE_NOT_FOUND" | "INVITE_CODE_NOT_FOUND" | "IDEMPOTENCY_KEY_REUSED" | "STATE_CONFLICT" | "INVITE_CODE_EXHAUSTED" | "STALE_CURSOR" | "CURSOR_EXPIRED" | "CURSOR_RESET" | "RECURRING_DEFINITION_CONFLICT" | "EMBEDDED_WALLET_CONFLICT" | "SECRET_UNAVAILABLE" | "ROTATION_IN_PROGRESS" | "TELEMETRY_CONFLICT" | "RFQ_NOT_CANCELLABLE" | "RFQ_NOT_OPEN" | "RFQ_GENERATION_STALE" | "RFQ_GENERATION_IN_FLIGHT" | "QUOTE_EXPIRED" | "QUOTE_CANCELLED" | "QUOTE_REPLACED" | "QUOTE_SIGNER_CHANGED" | "QUOTE_CAPACITY_EXCEEDED" | "CORE_ACCOUNT_NOT_READY" | "CORE_ACCOUNT_ACTIVATION_REQUIRED" | "CORE_EXIT_ABANDONED" | "INSUFFICIENT_WALLET_BALANCE" | "CORE_MOVE_IN_FLIGHT" | "ACCEPTANCE_IN_FLIGHT" | "USERNAME_TAKEN" | "USERNAME_ALREADY_SET" | "PICTURE_REMOVED" | "USERNAME_REQUIRED" | "GOLDEN_TICKET_NONE" | "GOLDEN_TICKET_USED" | "GOLDEN_TICKET_EXPIRED" | "GOLDEN_PLACEMENT_IN_FLIGHT" | "GOLDEN_PROMO_BUSY" | "GOLDEN_CASHOUT_REFUSED" | "GOLDEN_OFFER_BELOW_FLOOR" | "GOLDEN_GIFT_TERMS_EXPIRED" | "GOLDEN_UNLOCK_REQUIRED" | "GOLDEN_GIVEN_OUT" | "GOLDEN_CODE_DISABLED" | "GOLDEN_TICKET_HELD" | "GOLDEN_LINK_SIGN_UP_ONLY" | "GOLDEN_LINK_CLAIMED" | "X_REQUIRED" | "X_ALREADY_CLAIMED" | "X_TOO_NEW" | "GOLDEN_NOT_ELIGIBLE" | "INVALID_SIGNATURE" | "WALLET_CONTRACT_UNSUPPORTED" | "WRONG_AUTHORITY" | "KEY_LIMIT_REACHED" | "USERNAME_NOT_ALLOWED" | "PICTURE_TOO_LARGE" | "PICTURE_UNREADABLE" | "PICTURE_TOO_MANY_PIXELS" | "FOLLOW_SELF" | "FOLLOW_LIMIT_REACHED" | "COPY_SELF" | "COPY_NOT_MATCHED" | "GOLDEN_LEG_COUNT" | "GOLDEN_LEG_NOT_ELIGIBLE" | "GOLDEN_QUOTE_NOT_HOUSE" | "RATE_LIMITED" | "CONNECTION_LIMIT" | "RFQ_INTENT_LIMIT" | "QUOTE_EXPOSURE_LIMIT" | "INTERNAL_ERROR" | "DEPENDENCY_STALE" | "AUTHORIZATION_UNAVAILABLE" | "SOURCE_UNAVAILABLE" | "CONTRACT_UNAVAILABLE" | "MARKET_DATA_UNAVAILABLE" | "BROWSE_UNAVAILABLE" | "FINANCIAL_ACTIONS_DISABLED" | "CORE_EXIT_UNAVAILABLE" | "COLLATERAL_REDUCTION_UNAVAILABLE" | "SPONSORSHIP_UNAVAILABLE" | "CONTRACT_SIGNATURE_OVERLOADED" | "QUOTE_EXPOSURE_STALE" | "COMBO_AUTOMATIC_DISABLED" | "GAS_PRICE_ABOVE_CEILING" | "EXECUTION_BACKLOG_FULL" | "EMBEDDED_WALLET_UNAVAILABLE" | "GOLDEN_PROMO_FUNDS_LOW" | "X_VERIFICATION_UNAVAILABLE" | "CONNECTION_DRAIN";
|
|
762
728
|
readonly FieldViolation: {
|
|
763
729
|
/**
|
|
764
730
|
* @description REQUIRED: the input is missing. INVALID: it is present but malformed or out of range. UNEXPECTED: the input is not accepted here.
|
|
@@ -808,16 +774,16 @@ export type components = {
|
|
|
808
774
|
* @description RFC3339 UTC time the server built this response.
|
|
809
775
|
*/
|
|
810
776
|
readonly generated_at: string;
|
|
811
|
-
/** @description Maker ownership
|
|
777
|
+
/** @description Maker ownership status of the caller's account, derived from its linked wallet and indexed on-chain controller evidence. */
|
|
812
778
|
readonly ownership: {
|
|
813
779
|
/**
|
|
814
780
|
* @description NOT_CREATED: the account's wallet controls no maker; WALLET_REQUIRED: the account has no single qualifying linked wallet; OWNERSHIP_CONFLICT: several candidate wallets, or the maker's current controller no longer matches; READY: the maker is admitted and current; PENDING: the maker profile awaits admission; RESTRICTED: the maker profile is restricted or closed; SETUP_REQUIRED: a maker controlled by the wallet exists on-chain but has no admitted profile yet.
|
|
815
781
|
* @enum {string}
|
|
816
782
|
*/
|
|
817
|
-
readonly
|
|
783
|
+
readonly status: "NOT_CREATED" | "WALLET_REQUIRED" | "OWNERSHIP_CONFLICT" | "READY" | "PENDING" | "RESTRICTED" | "SETUP_REQUIRED";
|
|
818
784
|
/** @description Linked wallet that controls (owns) the maker; absent when the account has no single qualifying linked wallet. */
|
|
819
|
-
readonly
|
|
820
|
-
/** @description The admitted maker and the caller's
|
|
785
|
+
readonly controller?: components["schemas"]["LowercaseNonZeroAddress"];
|
|
786
|
+
/** @description The admitted maker and the caller's controller access to it; null unless status is READY, PENDING or RESTRICTED. */
|
|
821
787
|
readonly maker: components["schemas"]["MakerAccess"] | null;
|
|
822
788
|
};
|
|
823
789
|
};
|
|
@@ -846,8 +812,8 @@ export type components = {
|
|
|
846
812
|
readonly items: readonly {
|
|
847
813
|
/** @description On-chain maker ID in the vault, as a decimal string. */
|
|
848
814
|
readonly maker_id: components["schemas"]["NonZeroUInt64String"];
|
|
849
|
-
/** @description Maker controller
|
|
850
|
-
readonly
|
|
815
|
+
/** @description Maker controller address; one of the caller's linked wallets. */
|
|
816
|
+
readonly controller: components["schemas"]["LowercaseNonZeroAddress"];
|
|
851
817
|
/** @description Address currently authorized to sign the maker's quotes. */
|
|
852
818
|
readonly signer: components["schemas"]["$defs-Address"];
|
|
853
819
|
}[];
|
|
@@ -912,6 +878,64 @@ export type components = {
|
|
|
912
878
|
/** @description Hyperliquid trade ID, as a decimal string. */
|
|
913
879
|
readonly tid: components["schemas"]["NonZeroUInt64String"];
|
|
914
880
|
};
|
|
881
|
+
/** @description What every read of a position carries: Position on an account's reads, and MakerPosition, which adds the maker's view, on the maker's. */
|
|
882
|
+
readonly PositionFields: {
|
|
883
|
+
/** @description Position ID: the contract's ticketId (bytes32 hex), which is the `quote_id` of the quote accepted to open it: the EIP-712 digest of that quote under its vault's domain, so it names one position across every vault. */
|
|
884
|
+
readonly position_id: string;
|
|
885
|
+
/** @description Lowercase vault contract address the position is on. An account's positions span every vault the deployment has served: the active one, one running off and closed ones. */
|
|
886
|
+
readonly vault_address: components["schemas"]["LowercaseNonZeroAddress"];
|
|
887
|
+
/** @description Whether this position takes a cash-out. It is false on a vault running off, which refuses one (`STATE_CONFLICT`) and pays out automatically when the position settles, and on a free Combo (`golden`), which is never cashed out (`GOLDEN_CASHOUT_REFUSED`). Whether this position can be cashed out now also depends on its status. */
|
|
888
|
+
readonly cashout_available: boolean;
|
|
889
|
+
/** @description Whether this position is a free Combo: a promotion paid its stake and gave it away, and it stays one whoever holds it now. Its `net_stake` is what the promotion paid, never its holder's money; what it pays at settlement is the holder's. It is never cashed out. */
|
|
890
|
+
readonly golden: boolean;
|
|
891
|
+
/** @description Maker that wrote the position, as a decimal string. */
|
|
892
|
+
readonly maker_id: components["schemas"]["NonZeroUInt64String"];
|
|
893
|
+
/** @description Current position owner wallet (lowercase). */
|
|
894
|
+
readonly owner: components["schemas"]["LowercaseNonZeroAddress"];
|
|
895
|
+
/**
|
|
896
|
+
* @description OPEN: not yet known eligible for settlement; AWAITING_SETTLEMENT: every leg resolved, or the payout with every unresolved leg counted as a win already rounds down to zero, but no settlement observed; SETTLED_UNCLAIMED: settled with profit still unclaimed; CLOSED: closed by zero-profit settlement, final claim or sell-back.
|
|
897
|
+
* @enum {string}
|
|
898
|
+
*/
|
|
899
|
+
readonly status: "OPEN" | "AWAITING_SETTLEMENT" | "SETTLED_UNCLAIMED" | "CLOSED";
|
|
900
|
+
/** @description Profit fee in basis points, fixed when the position opened. The holder claims unclaimed_profit minus unclaimed_profit * fee_bps / 10000. */
|
|
901
|
+
readonly fee_bps: number;
|
|
902
|
+
/**
|
|
903
|
+
* @description How a CLOSED position closed: CLAIM (final claim of winnings) or SELL_BACK (bought back by the maker). Null otherwise, including direct zero-profit settlement closes and closes without retained evidence.
|
|
904
|
+
* @enum {string|null}
|
|
905
|
+
*/
|
|
906
|
+
readonly reason: "CLAIM" | "SELL_BACK" | null;
|
|
907
|
+
/** @description Stake after the taker entry fee. */
|
|
908
|
+
readonly net_stake: components["schemas"]["UnsignedMetric"];
|
|
909
|
+
/** @description What the current owner paid for the whole position: the price of the latest transfer to them, or the gross stake with the entry fee if they have held it since opening. Settlement, claims and sell-back don't change it. Null when retained chain history has a gap that could hide a transfer. P&L compares it with what the owner gets back, settlement_payout or cashout_price, less the profit fee of fee_bps on the amount above net_stake, whatever the owner paid. */
|
|
910
|
+
readonly acquisition_cost: components["schemas"]["UnsignedMetric"];
|
|
911
|
+
/** @description Payout if every leg wins, as the maker signed it in the quote; the maker's initial exposure is payout minus net_stake. */
|
|
912
|
+
readonly payout: components["schemas"]["UnsignedMetric"];
|
|
913
|
+
/** @description Settlement payout observed on-chain; null before settlement and for sold-back positions. */
|
|
914
|
+
readonly settlement_payout: components["schemas"]["UnsignedMetric"];
|
|
915
|
+
/** @description Gross profit still claimable; "0" unless SETTLED_UNCLAIMED. The holder receives unclaimed_profit minus unclaimed_profit * fee_bps / 10000. */
|
|
916
|
+
readonly unclaimed_profit: components["schemas"]["UnsignedMetric"];
|
|
917
|
+
/** @description Cash-out price paid when the position was sold back; null unless reason is SELL_BACK. */
|
|
918
|
+
readonly cashout_price: components["schemas"]["UnsignedMetric"];
|
|
919
|
+
/** @description Position legs in ascending outcome_id order, with each leg's resolution. */
|
|
920
|
+
readonly legs: readonly components["schemas"]["Leg"][];
|
|
921
|
+
/**
|
|
922
|
+
* Format: date-time
|
|
923
|
+
* @description RFC3339 time of the position's opening event; lists order by it, newest first.
|
|
924
|
+
*/
|
|
925
|
+
readonly created_at: string;
|
|
926
|
+
/**
|
|
927
|
+
* Format: date-time
|
|
928
|
+
* @description RFC3339 time of the position's latest lifecycle event.
|
|
929
|
+
*/
|
|
930
|
+
readonly updated_at: string;
|
|
931
|
+
/**
|
|
932
|
+
* @description Settlement result: LOSS (zero payout), PARTIAL (payout below net stake), WIN (payout at or above net stake) or EARLY_LOST (lost before every leg resolved). Null before settlement, for sell-backs, or when historical evidence is missing.
|
|
933
|
+
* @enum {string|null}
|
|
934
|
+
*/
|
|
935
|
+
readonly settlement_kind: "LOSS" | "PARTIAL" | "WIN" | "EARLY_LOST" | null;
|
|
936
|
+
/** @description Fees the vault took on this position so far, all paid by its owners and none by the maker: the taker entry fee at opening plus the profit fee withheld from each claim and from a sell-back. Null when retained history has a gap that could hide one. */
|
|
937
|
+
readonly protocol_fees: components["schemas"]["UnsignedMetric"];
|
|
938
|
+
} & (unknown & unknown & unknown & unknown & unknown & unknown & unknown);
|
|
915
939
|
/** @description 3 to 20 lowercase letters, digits or underscores. Unique across accounts. */
|
|
916
940
|
readonly Username: string;
|
|
917
941
|
/**
|
|
@@ -996,7 +1020,7 @@ export type components = {
|
|
|
996
1020
|
} & (unknown & unknown & unknown & unknown);
|
|
997
1021
|
/** @description Every quote the maker published in a period, not only live ones, with the period's fill rate. */
|
|
998
1022
|
readonly QuoteHistory: {
|
|
999
|
-
/** @description Freshness of this read. Quotes are venue rows read now; FILLED and FAILED follow the vault projection, so as_of is its checkpoint and
|
|
1023
|
+
/** @description Freshness of this read. Quotes are venue rows read now; FILLED and FAILED follow the vault projection, so as_of is its checkpoint and freshness is STALE while it lags. */
|
|
1000
1024
|
readonly context: components["schemas"]["ReadContext"];
|
|
1001
1025
|
/**
|
|
1002
1026
|
* Format: date-time
|
|
@@ -1017,26 +1041,26 @@ export type components = {
|
|
|
1017
1041
|
/** @description True exactly when next_cursor is non-null. A status-filtered page reads at most 1,000 quotes, so it may hold fewer items than limit, even none, while has_more is true. */
|
|
1018
1042
|
readonly has_more: boolean;
|
|
1019
1043
|
};
|
|
1020
|
-
/** @description The maker's exposure on one outcome. A multi-leg
|
|
1044
|
+
/** @description The maker's exposure on one outcome. A multi-leg position counts under every outcome it touches, so outcome amounts do not add up to the book's. */
|
|
1021
1045
|
readonly OutcomeExposure: {
|
|
1022
1046
|
/** @description HIP-4 outcome ID. */
|
|
1023
1047
|
readonly outcome_id: components["schemas"]["UInt32String"];
|
|
1024
|
-
/** @description Open
|
|
1025
|
-
readonly
|
|
1026
|
-
/** @description Sum of the worst-case maker cost of open
|
|
1048
|
+
/** @description Open positions with an unresolved leg on this outcome. */
|
|
1049
|
+
readonly open_position_count: string;
|
|
1050
|
+
/** @description Sum of the worst-case maker cost of open positions whose unresolved leg on this outcome is YES. */
|
|
1027
1051
|
readonly yes_exposure: components["schemas"]["Amount"];
|
|
1028
|
-
/** @description The same for
|
|
1052
|
+
/** @description The same for positions whose leg on this outcome is NO. */
|
|
1029
1053
|
readonly no_exposure: components["schemas"]["Amount"];
|
|
1030
1054
|
/** @description yes_exposure + no_exposure: the outcome's exposure with no offsetting. */
|
|
1031
1055
|
readonly gross_exposure: components["schemas"]["Amount"];
|
|
1032
1056
|
/** @description yes_exposure - no_exposure: positive when the maker is exposed to YES. */
|
|
1033
1057
|
readonly net_exposure: components["schemas"]["SignedAmount"];
|
|
1034
|
-
/** @description max(yes_exposure, no_exposure): the most the outcome's
|
|
1058
|
+
/** @description max(yes_exposure, no_exposure): the most the outcome's positions can cost the maker, whatever its result, since a result of v pays at most v x YES + (1 - v) x NO. */
|
|
1035
1059
|
readonly worst_case: components["schemas"]["Amount"];
|
|
1036
1060
|
/** @description min(yes_exposure, no_exposure) = gross_exposure - worst_case: what offsetting sides save on this outcome. */
|
|
1037
1061
|
readonly netting_savings: components["schemas"]["Amount"];
|
|
1038
|
-
/** @description
|
|
1039
|
-
readonly
|
|
1062
|
+
/** @description Positions on this outcome eligible for settlement but not yet settled. */
|
|
1063
|
+
readonly awaiting_position_count: string;
|
|
1040
1064
|
/** @description Their exact maker cost, max(floor(payout x factors) - net stake, 0) each. */
|
|
1041
1065
|
readonly awaiting_settlement: components["schemas"]["Amount"];
|
|
1042
1066
|
};
|
|
@@ -1044,15 +1068,15 @@ export type components = {
|
|
|
1044
1068
|
readonly Exposure: {
|
|
1045
1069
|
/** @description Freshness of this read: the projection checkpoint and the live outcome read. STALE while either lags, while a live outcome read failed (its legs count as unresolved), or when the open book does not add up to the maker's gross lane. */
|
|
1046
1070
|
readonly context: components["schemas"]["ReadContext"];
|
|
1047
|
-
/** @description Open
|
|
1048
|
-
readonly
|
|
1049
|
-
/** @description Sum of each such
|
|
1071
|
+
/** @description Open positions not yet eligible for settlement. */
|
|
1072
|
+
readonly open_position_count: string;
|
|
1073
|
+
/** @description Sum of each such position's worst-case maker cost, W = ceil(max(payout x resolved factors - net stake, 0)), each position once, with no offsetting. Netting across outcomes and Combos is the vault discount on the capital read. */
|
|
1050
1074
|
readonly gross_exposure: components["schemas"]["Amount"];
|
|
1051
|
-
/** @description Open
|
|
1052
|
-
readonly
|
|
1053
|
-
/** @description What those
|
|
1075
|
+
/** @description Open positions whose every leg has resolved, or whose payout already floors to zero, but which have not settled. */
|
|
1076
|
+
readonly awaiting_position_count: string;
|
|
1077
|
+
/** @description What those positions will cost the maker when they settle, each once. */
|
|
1054
1078
|
readonly awaiting_settlement: components["schemas"]["Amount"];
|
|
1055
|
-
/** @description Every outcome with an unresolved leg of an open
|
|
1079
|
+
/** @description Every outcome with an unresolved leg of an open position or a leg of a position awaiting settlement, ascending outcome_id. */
|
|
1056
1080
|
readonly outcomes: readonly components["schemas"]["OutcomeExposure"][];
|
|
1057
1081
|
};
|
|
1058
1082
|
readonly Cursor: {
|
|
@@ -1118,7 +1142,7 @@ export type components = {
|
|
|
1118
1142
|
*/
|
|
1119
1143
|
readonly ActivityKindQueryOptional: components["schemas"]["ActivityKind"];
|
|
1120
1144
|
/**
|
|
1121
|
-
* @description PUBLISHED (default): newest published first, so a backfilled activity appears on a fresh first page. OCCURRED: newest occurrence first, an activity of unknown occurrence at its recording time, then by activity ID. What reads as one lists together at its latest occurrence (an order's fills, one outcome side's settlement credits, one
|
|
1145
|
+
* @description PUBLISHED (default): newest published first, so a backfilled activity appears on a fresh first page. OCCURRED: newest occurrence first, an activity of unknown occurrence at its recording time, then by activity ID. What reads as one lists together at its latest occurrence (an order's fills, one outcome side's settlement credits, one position's settlement and claims), one group after another within a moment.
|
|
1122
1146
|
* @example OCCURRED
|
|
1123
1147
|
*/
|
|
1124
1148
|
readonly ActivityOrderQueryOptional: "PUBLISHED" | "OCCURRED";
|
|
@@ -1418,7 +1442,7 @@ export interface operations {
|
|
|
1418
1442
|
*/
|
|
1419
1443
|
readonly venue?: components["parameters"]["ActivityVenueQueryOptional"];
|
|
1420
1444
|
/**
|
|
1421
|
-
* @description PUBLISHED (default): newest published first, so a backfilled activity appears on a fresh first page. OCCURRED: newest occurrence first, an activity of unknown occurrence at its recording time, then by activity ID. What reads as one lists together at its latest occurrence (an order's fills, one outcome side's settlement credits, one
|
|
1445
|
+
* @description PUBLISHED (default): newest published first, so a backfilled activity appears on a fresh first page. OCCURRED: newest occurrence first, an activity of unknown occurrence at its recording time, then by activity ID. What reads as one lists together at its latest occurrence (an order's fills, one outcome side's settlement credits, one position's settlement and claims), one group after another within a moment.
|
|
1422
1446
|
* @example OCCURRED
|
|
1423
1447
|
*/
|
|
1424
1448
|
readonly order?: components["parameters"]["ActivityOrderQueryOptional"];
|
|
@@ -1572,7 +1596,7 @@ export interface operations {
|
|
|
1572
1596
|
*/
|
|
1573
1597
|
readonly venue?: components["parameters"]["ActivityVenueQueryOptional"];
|
|
1574
1598
|
/**
|
|
1575
|
-
* @description PUBLISHED (default): newest published first, so a backfilled activity appears on a fresh first page. OCCURRED: newest occurrence first, an activity of unknown occurrence at its recording time, then by activity ID. What reads as one lists together at its latest occurrence (an order's fills, one outcome side's settlement credits, one
|
|
1599
|
+
* @description PUBLISHED (default): newest published first, so a backfilled activity appears on a fresh first page. OCCURRED: newest occurrence first, an activity of unknown occurrence at its recording time, then by activity ID. What reads as one lists together at its latest occurrence (an order's fills, one outcome side's settlement credits, one position's settlement and claims), one group after another within a moment.
|
|
1576
1600
|
* @example OCCURRED
|
|
1577
1601
|
*/
|
|
1578
1602
|
readonly order?: components["parameters"]["ActivityOrderQueryOptional"];
|
|
@@ -1707,7 +1731,7 @@ export interface operations {
|
|
|
1707
1731
|
readonly [name: string]: unknown;
|
|
1708
1732
|
};
|
|
1709
1733
|
content: {
|
|
1710
|
-
readonly "application/json": components["schemas"]["
|
|
1734
|
+
readonly "application/json": components["schemas"]["MakerPositionList"];
|
|
1711
1735
|
};
|
|
1712
1736
|
};
|
|
1713
1737
|
readonly 400: components["responses"]["Error"];
|
|
@@ -1846,7 +1870,7 @@ export interface operations {
|
|
|
1846
1870
|
readonly [name: string]: unknown;
|
|
1847
1871
|
};
|
|
1848
1872
|
content: {
|
|
1849
|
-
readonly "application/json": components["schemas"]["
|
|
1873
|
+
readonly "application/json": components["schemas"]["MakerPositionDetail"];
|
|
1850
1874
|
};
|
|
1851
1875
|
};
|
|
1852
1876
|
readonly 400: components["responses"]["Error"];
|