@0xmonaco/types 1.0.66 → 1.0.69
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/dist/buildercodes/index.d.ts +4 -4
- package/dist/buildercodes/index.js +1 -1
- package/dist/buildercodes/responses.d.ts +45 -1
- package/dist/buildercodes/responses.js +25 -1
- package/dist/faucet/index.d.ts +3 -2
- package/dist/market/index.d.ts +8 -0
- package/dist/positions/index.d.ts +15 -12
- package/dist/profile/index.d.ts +14 -1
- package/dist/sdk/index.d.ts +1 -1
- package/dist/trading/index.d.ts +2 -0
- package/dist/trading/orders.d.ts +6 -0
- package/dist/trading/responses.d.ts +89 -22
- package/dist/validation/trading.d.ts +2 -0
- package/dist/validation/trading.js +34 -4
- package/dist/websocket/base.d.ts +5 -3
- package/dist/websocket/events/conditional-order-events.d.ts +41 -14
- package/dist/websocket/events/orders-events.d.ts +74 -18
- package/dist/websocket/snapshots.d.ts +8 -1
- package/dist/whitelist/index.d.ts +5 -16
- package/dist/whitelist/index.js +2 -8
- package/dist/wire/schema.d.ts +200 -60
- package/package.json +2 -2
package/dist/wire/schema.d.ts
CHANGED
|
@@ -998,9 +998,9 @@ export interface paths {
|
|
|
998
998
|
*
|
|
999
999
|
* Returns the authenticated wallet's remaining faucet requests in the
|
|
1000
1000
|
* rolling 24h window, when the next request becomes available, and the
|
|
1001
|
-
* 5 most recent faucet requests. Quota is wallet
|
|
1002
|
-
*
|
|
1003
|
-
* enforcement.
|
|
1001
|
+
* 5 most recent faucet requests. Quota is per wallet and app: the same
|
|
1002
|
+
* wallet has its own quota on each app, and only the calling app's
|
|
1003
|
+
* requests are counted and listed, matching mint enforcement.
|
|
1004
1004
|
*/
|
|
1005
1005
|
get: operations["get_faucet_info"];
|
|
1006
1006
|
put?: never;
|
|
@@ -1025,7 +1025,8 @@ export interface paths {
|
|
|
1025
1025
|
* @description Mint all testnet tokens.
|
|
1026
1026
|
*
|
|
1027
1027
|
* Mint all available testnet tokens to the authenticated user's address.
|
|
1028
|
-
* Rate limited per 24 hours
|
|
1028
|
+
* Rate limited per 24 hours, per wallet and app: the same wallet has its
|
|
1029
|
+
* own quota on each app. The request is synchronous: it returns 200
|
|
1029
1030
|
* only once every faucet transaction is confirmed on-chain.
|
|
1030
1031
|
*/
|
|
1031
1032
|
post: operations["mint_tokens"];
|
|
@@ -2576,11 +2577,13 @@ export interface paths {
|
|
|
2576
2577
|
get?: never;
|
|
2577
2578
|
put?: never;
|
|
2578
2579
|
/**
|
|
2579
|
-
*
|
|
2580
|
-
* @
|
|
2580
|
+
* Whitelist applications closed
|
|
2581
|
+
* @deprecated
|
|
2582
|
+
* @description Public whitelist applications are closed.
|
|
2581
2583
|
*
|
|
2582
|
-
*
|
|
2583
|
-
*
|
|
2584
|
+
* Retained for client compatibility. Every decoded submission is rejected with
|
|
2585
|
+
* HTTP 403 Forbidden / gRPC PERMISSION_DENIED and no applicant data is changed.
|
|
2586
|
+
* Existing applications and administrative approvals remain available.
|
|
2584
2587
|
*/
|
|
2585
2588
|
post: operations["submit_whitelist"];
|
|
2586
2589
|
delete?: never;
|
|
@@ -3197,7 +3200,7 @@ export interface components {
|
|
|
3197
3200
|
*/
|
|
3198
3201
|
riskBucketId?: string | null;
|
|
3199
3202
|
/**
|
|
3200
|
-
* @description Decimal collateral
|
|
3203
|
+
* @description Decimal collateral allocated as an order budget in a new isolated risk bucket. Fills commit their required margin and paid-fee funding to position backing; unfilled or unused order funds do not protect the position from liquidation. Use position margin adjustment to add liquidation protection. The API creates the bucket ID and the matching engine persists it through the durable log.
|
|
3201
3204
|
* @example 1000
|
|
3202
3205
|
*/
|
|
3203
3206
|
riskBucketCollateral?: string | null;
|
|
@@ -3406,6 +3409,40 @@ export interface components {
|
|
|
3406
3409
|
* @description RFC 3339 credit timestamp.
|
|
3407
3410
|
*/
|
|
3408
3411
|
createdAt?: string | null;
|
|
3412
|
+
/**
|
|
3413
|
+
* @description Payout stream this credit belongs to: `REVENUE_SHARE` (the frontend's share of Monaco's fee) or `BUILDER_FEE` (the frontend's own builder fee, paid by the taker). Both land in the same claimable balance.
|
|
3414
|
+
* @example REVENUE_SHARE
|
|
3415
|
+
* @enum {string|null}
|
|
3416
|
+
*/
|
|
3417
|
+
kind?: "REVENUE_SHARE" | "BUILDER_FEE" | null;
|
|
3418
|
+
};
|
|
3419
|
+
BuildercodePayoutTokenKindTotal: {
|
|
3420
|
+
/**
|
|
3421
|
+
* @description Credit token contract address.
|
|
3422
|
+
* @example 0x0000000000000000000000000000000000000002
|
|
3423
|
+
*/
|
|
3424
|
+
token?: string | null;
|
|
3425
|
+
/**
|
|
3426
|
+
* @description Payout stream these totals cover: `REVENUE_SHARE` or `BUILDER_FEE`.
|
|
3427
|
+
* @example REVENUE_SHARE
|
|
3428
|
+
* @enum {string|null}
|
|
3429
|
+
*/
|
|
3430
|
+
kind?: "REVENUE_SHARE" | "BUILDER_FEE" | null;
|
|
3431
|
+
/**
|
|
3432
|
+
* @description Summed credits of this kind in RAW atomic units of this token.
|
|
3433
|
+
* @example 5000000
|
|
3434
|
+
*/
|
|
3435
|
+
totalAmount?: string | null;
|
|
3436
|
+
/**
|
|
3437
|
+
* Format: int64
|
|
3438
|
+
* @description Number of credits of this kind included in this total.
|
|
3439
|
+
*/
|
|
3440
|
+
payoutCount?: number | null;
|
|
3441
|
+
/**
|
|
3442
|
+
* Format: date-time
|
|
3443
|
+
* @description RFC 3339 timestamp of the newest credit of this kind in this token.
|
|
3444
|
+
*/
|
|
3445
|
+
lastCreditedAt?: string | null;
|
|
3409
3446
|
};
|
|
3410
3447
|
BuildercodePayoutTokenTotal: {
|
|
3411
3448
|
/**
|
|
@@ -3691,7 +3728,7 @@ export interface components {
|
|
|
3691
3728
|
activatedAt?: string | null;
|
|
3692
3729
|
/**
|
|
3693
3730
|
* Format: int64
|
|
3694
|
-
* @description Opaque, compare-only revision counter for this conditional order's state: the sequencer step that wrote it. A strictly higher value is strictly newer state for that conditional order. The SAME counter is carried on
|
|
3731
|
+
* @description Opaque, compare-only revision counter for this conditional order's state: the sequencer step that wrote it. A strictly higher value is strictly newer state for that conditional order. The SAME counter is carried on every live `conditional_orders` WebSocket event and on the subscribe-time snapshot frame, always the version of the row the frame describes. Reconcile all three on `(conditionalOrderId, version)`: take the incoming row when `incoming.version >= local.version`, else keep local state. Note `>=`, not `>`: equal versions mean the SAME STEP rather than identical state, because one step can write several conditional rows (a trigger writes the triggered row and cancels its OCO sibling under one step). A REST row is that step's FINAL state, so it wins a tie. One consequence to plan for: the snapshot is read from the database, which lags the matching engine, so a transition that fires during the read is in neither the snapshot nor the delivered stream and cannot be ranked — re-read the affected rows if a conditional order's state matters at reconnect. Do not read anything else into the number: it is drawn from the same global sequence plain orders use, so values are sparse, gaps are normal, and it is not comparable across different conditional orders — nor against a plain order's version. Absent means unknown: a row last written before this field existed. Fall back to a full field comparison for those rather than treating absent as version zero.
|
|
3695
3732
|
* @example 918342
|
|
3696
3733
|
*/
|
|
3697
3734
|
version?: number | null;
|
|
@@ -3831,7 +3868,7 @@ export interface components {
|
|
|
3831
3868
|
*/
|
|
3832
3869
|
riskBucketId?: string | null;
|
|
3833
3870
|
/**
|
|
3834
|
-
* @description Decimal collateral
|
|
3871
|
+
* @description Decimal collateral allocated as an order budget in a new isolated risk bucket. Fills commit their required margin and paid-fee funding to position backing; unfilled or unused order funds do not protect the position from liquidation. Use position margin adjustment to add liquidation protection. The API creates the bucket ID and the matching engine persists it through the durable log.
|
|
3835
3872
|
* @example 1000
|
|
3836
3873
|
*/
|
|
3837
3874
|
riskBucketCollateral?: string | null;
|
|
@@ -4521,8 +4558,10 @@ export interface components {
|
|
|
4521
4558
|
* @description RFC 3339 timestamp of the newest credit, or null when none exists.
|
|
4522
4559
|
*/
|
|
4523
4560
|
lastCreditedAt?: string | null;
|
|
4524
|
-
/** @description Per-token earnings totals. Empty when this application has no payouts. */
|
|
4561
|
+
/** @description Per-token earnings totals, summed across every payout kind. Empty when this application has no payouts. */
|
|
4525
4562
|
byToken?: components["schemas"]["BuildercodePayoutTokenTotal"][] | null;
|
|
4563
|
+
/** @description The same totals split by token AND payout kind. One row per (token, kind) pair with at least one credit; a token's rows sum to its `byToken` total. Empty when this application has no payouts. */
|
|
4564
|
+
byTokenAndKind?: components["schemas"]["BuildercodePayoutTokenKindTotal"][] | null;
|
|
4526
4565
|
};
|
|
4527
4566
|
GetBuildercodeRewardsBalanceResponse: {
|
|
4528
4567
|
/** @description One entry per reward token with a non-zero available balance. */
|
|
@@ -5477,22 +5516,16 @@ export interface components {
|
|
|
5477
5516
|
unrealizedPnl?: string | null;
|
|
5478
5517
|
realizedPnl?: string | null;
|
|
5479
5518
|
/**
|
|
5480
|
-
* @description Open ISOLATED rows:
|
|
5481
|
-
*
|
|
5482
|
-
*
|
|
5483
|
-
*
|
|
5484
|
-
*
|
|
5485
|
-
*
|
|
5486
|
-
*
|
|
5487
|
-
*
|
|
5488
|
-
*
|
|
5489
|
-
*
|
|
5490
|
-
* liquidation; a fully drained bucket serves "0". Served from the live risk
|
|
5491
|
-
* engine; when only persisted state is reachable the value is gross of
|
|
5492
|
-
* order reserves. Open CROSS rows fall back to the position's posted
|
|
5493
|
-
* margin. Terminal rows: total initial margin allocated across the
|
|
5494
|
-
* position's reducing executions when available — the margin basis for
|
|
5495
|
-
* lifetime realized return.
|
|
5519
|
+
* @description Open ISOLATED rows: principal committed to the filled position, adjusted
|
|
5520
|
+
* by settled realized PnL, fees and funding, clamped at zero. Collateral
|
|
5521
|
+
* allocated to unfilled orders is excluded. This is the unrealized-return
|
|
5522
|
+
* denominator and the same backing used by isolated liquidation. Placing,
|
|
5523
|
+
* cancelling or resizing an unfilled order does not add position backing.
|
|
5524
|
+
* A price gap can pass the backing before asynchronous liquidation occurs.
|
|
5525
|
+
* Live and persisted reads use the same position-principal basis.
|
|
5526
|
+
* Open CROSS rows: the position's posted margin. Terminal rows: total
|
|
5527
|
+
* initial margin allocated across the position's reducing executions when
|
|
5528
|
+
* available, used as the basis for lifetime realized return.
|
|
5496
5529
|
*/
|
|
5497
5530
|
isolatedMargin?: string | null;
|
|
5498
5531
|
leverage?: string | null;
|
|
@@ -5547,6 +5580,11 @@ export interface components {
|
|
|
5547
5580
|
/**
|
|
5548
5581
|
* @description Lifetime realized PnL net of trading fees and funding. Terminal rows
|
|
5549
5582
|
* only; absent when the position's reducing executions are unavailable.
|
|
5583
|
+
* Deducts whole-life `cum_fees` once. Also absent after close until the
|
|
5584
|
+
* final close is recorded in the PnL sample and the fee history is complete.
|
|
5585
|
+
* A position with no PnL sample stays absent for 28 days after close while
|
|
5586
|
+
* its sample may be pending. Beyond that it serves the closing-execution
|
|
5587
|
+
* net, without opening fees that are no longer available.
|
|
5550
5588
|
*/
|
|
5551
5589
|
netRealizedPnl?: string | null;
|
|
5552
5590
|
/**
|
|
@@ -5556,7 +5594,8 @@ export interface components {
|
|
|
5556
5594
|
* costs rather than posted collateral, and funding is signed, so folding it
|
|
5557
5595
|
* into the denominator could drive it to zero or negative. Terminal rows
|
|
5558
5596
|
* only; absent when unavailable, including when the position's reducing
|
|
5559
|
-
* executions do not account for its whole lifetime
|
|
5597
|
+
* executions do not account for its whole lifetime, and under the same
|
|
5598
|
+
* conditions as `net_realized_pnl`.
|
|
5560
5599
|
*/
|
|
5561
5600
|
realizedRoe?: string | null;
|
|
5562
5601
|
/**
|
|
@@ -5589,7 +5628,8 @@ export interface components {
|
|
|
5589
5628
|
* Null when the opening-fill fees are unavailable — before the position's
|
|
5590
5629
|
* first PnL sample flushes, after its samples age out of PnL retention, or
|
|
5591
5630
|
* for positions predating the PnL service — rather than an understated
|
|
5592
|
-
* partial.
|
|
5631
|
+
* partial. On a terminal row it is also null until the final close is
|
|
5632
|
+
* recorded in the position's PnL sample, or while fee data is incomplete.
|
|
5593
5633
|
*/
|
|
5594
5634
|
cumFees?: string | null;
|
|
5595
5635
|
/**
|
|
@@ -6243,14 +6283,29 @@ export interface components {
|
|
|
6243
6283
|
orders?: components["schemas"]["ConditionalOrder"][] | null;
|
|
6244
6284
|
/**
|
|
6245
6285
|
* Format: uint32
|
|
6246
|
-
* @description Matching conditional orders
|
|
6286
|
+
* @description Matching conditional orders in page-number (offset) mode: exact up to 10,000 pages of the requested page size (page_size x 10,000 rows) and saturates there, so a caller with more matching conditional orders than the listing can page through reads the cap, not its lifetime total. 0 in cursor (pageToken) mode, which runs no COUNT (AIP-158).
|
|
6247
6287
|
* @example 3
|
|
6248
6288
|
*/
|
|
6249
6289
|
total?: number | null;
|
|
6250
|
-
/**
|
|
6290
|
+
/**
|
|
6291
|
+
* Format: uint32
|
|
6292
|
+
* @deprecated
|
|
6293
|
+
* @description Deprecated: current page number (legacy offset mode only; 0 in cursor mode)
|
|
6294
|
+
*/
|
|
6251
6295
|
page?: number | null;
|
|
6252
6296
|
/** Format: uint32 */
|
|
6253
6297
|
pageSize?: number | null;
|
|
6298
|
+
/**
|
|
6299
|
+
* @description Cursor for the next page, minted only when a further page exists — the
|
|
6300
|
+
* read over-fetches one row to decide, so there is no "maybe more" state.
|
|
6301
|
+
* Empty on every page-number (legacy) response, and empty on the final
|
|
6302
|
+
* cursor page (including a full final page, since nothing follows it).
|
|
6303
|
+
* Follow it until it comes back empty; that empty token is the definitive
|
|
6304
|
+
* end of the walk, so no extra zero-row request is needed. Do not feed the
|
|
6305
|
+
* empty token back as `page_token` — an empty input `page_token` restarts
|
|
6306
|
+
* the walk from the newest row.
|
|
6307
|
+
*/
|
|
6308
|
+
nextPageToken?: string | null;
|
|
6254
6309
|
};
|
|
6255
6310
|
ListDelegatedAgentOwnersResponse: {
|
|
6256
6311
|
/** @description Owners that have an active delegation to the calling agent */
|
|
@@ -6459,13 +6514,14 @@ export interface components {
|
|
|
6459
6514
|
orders?: components["schemas"]["TwapOrder"][] | null;
|
|
6460
6515
|
/**
|
|
6461
6516
|
* Format: uint32
|
|
6462
|
-
* @description Matching TWAP orders
|
|
6517
|
+
* @description Matching TWAP orders in page-number (offset) mode: exact up to 10,000 pages of the requested page size (page_size x 10,000 rows) and saturates there, so a caller with more matching TWAP orders than the listing can page through reads the cap, not its lifetime total. 0 in cursor (pageToken) mode, which runs no COUNT (AIP-158).
|
|
6463
6518
|
* @example 3
|
|
6464
6519
|
*/
|
|
6465
6520
|
total?: number | null;
|
|
6466
6521
|
/**
|
|
6467
6522
|
* Format: uint32
|
|
6468
|
-
* @
|
|
6523
|
+
* @deprecated
|
|
6524
|
+
* @description Deprecated: current page number (legacy offset mode only; 0 in cursor mode)
|
|
6469
6525
|
* @example 1
|
|
6470
6526
|
*/
|
|
6471
6527
|
page?: number | null;
|
|
@@ -6475,6 +6531,17 @@ export interface components {
|
|
|
6475
6531
|
* @example 20
|
|
6476
6532
|
*/
|
|
6477
6533
|
pageSize?: number | null;
|
|
6534
|
+
/**
|
|
6535
|
+
* @description Cursor for the next page, minted only when a further page exists — the
|
|
6536
|
+
* read over-fetches one row to decide, so there is no "maybe more" state.
|
|
6537
|
+
* Empty on every page-number (legacy) response, and empty on the final
|
|
6538
|
+
* cursor page (including a full final page, since nothing follows it).
|
|
6539
|
+
* Follow it until it comes back empty; that empty token is the definitive
|
|
6540
|
+
* end of the walk, so no extra zero-row request is needed. Do not feed the
|
|
6541
|
+
* empty token back as `page_token` — an empty input `page_token` restarts
|
|
6542
|
+
* the walk from the newest row.
|
|
6543
|
+
*/
|
|
6544
|
+
nextPageToken?: string | null;
|
|
6478
6545
|
};
|
|
6479
6546
|
ManagedMarketAssignment: {
|
|
6480
6547
|
launchId?: string | null;
|
|
@@ -7134,22 +7201,16 @@ export interface components {
|
|
|
7134
7201
|
unrealizedPnl?: string | null;
|
|
7135
7202
|
realizedPnl?: string | null;
|
|
7136
7203
|
/**
|
|
7137
|
-
* @description Open ISOLATED rows:
|
|
7138
|
-
*
|
|
7139
|
-
*
|
|
7140
|
-
*
|
|
7141
|
-
*
|
|
7142
|
-
*
|
|
7143
|
-
*
|
|
7144
|
-
*
|
|
7145
|
-
*
|
|
7146
|
-
*
|
|
7147
|
-
* liquidation; a fully drained bucket serves "0". Served from the live risk
|
|
7148
|
-
* engine; when only persisted state is reachable the value is gross of
|
|
7149
|
-
* order reserves. Open CROSS rows fall back to the position's posted
|
|
7150
|
-
* margin. Terminal rows: total initial margin allocated across the
|
|
7151
|
-
* position's reducing executions when available — the margin basis for
|
|
7152
|
-
* lifetime realized return.
|
|
7204
|
+
* @description Open ISOLATED rows: principal committed to the filled position, adjusted
|
|
7205
|
+
* by settled realized PnL, fees and funding, clamped at zero. Collateral
|
|
7206
|
+
* allocated to unfilled orders is excluded. This is the unrealized-return
|
|
7207
|
+
* denominator and the same backing used by isolated liquidation. Placing,
|
|
7208
|
+
* cancelling or resizing an unfilled order does not add position backing.
|
|
7209
|
+
* A price gap can pass the backing before asynchronous liquidation occurs.
|
|
7210
|
+
* Live and persisted reads use the same position-principal basis.
|
|
7211
|
+
* Open CROSS rows: the position's posted margin. Terminal rows: total
|
|
7212
|
+
* initial margin allocated across the position's reducing executions when
|
|
7213
|
+
* available, used as the basis for lifetime realized return.
|
|
7153
7214
|
*/
|
|
7154
7215
|
isolatedMargin?: string | null;
|
|
7155
7216
|
leverage?: string | null;
|
|
@@ -7204,6 +7265,11 @@ export interface components {
|
|
|
7204
7265
|
/**
|
|
7205
7266
|
* @description Lifetime realized PnL net of trading fees and funding. Terminal rows
|
|
7206
7267
|
* only; absent when the position's reducing executions are unavailable.
|
|
7268
|
+
* Deducts whole-life `cum_fees` once. Also absent after close until the
|
|
7269
|
+
* final close is recorded in the PnL sample and the fee history is complete.
|
|
7270
|
+
* A position with no PnL sample stays absent for 28 days after close while
|
|
7271
|
+
* its sample may be pending. Beyond that it serves the closing-execution
|
|
7272
|
+
* net, without opening fees that are no longer available.
|
|
7207
7273
|
*/
|
|
7208
7274
|
netRealizedPnl?: string | null;
|
|
7209
7275
|
/**
|
|
@@ -7213,7 +7279,8 @@ export interface components {
|
|
|
7213
7279
|
* costs rather than posted collateral, and funding is signed, so folding it
|
|
7214
7280
|
* into the denominator could drive it to zero or negative. Terminal rows
|
|
7215
7281
|
* only; absent when unavailable, including when the position's reducing
|
|
7216
|
-
* executions do not account for its whole lifetime
|
|
7282
|
+
* executions do not account for its whole lifetime, and under the same
|
|
7283
|
+
* conditions as `net_realized_pnl`.
|
|
7217
7284
|
*/
|
|
7218
7285
|
realizedRoe?: string | null;
|
|
7219
7286
|
/**
|
|
@@ -7246,7 +7313,8 @@ export interface components {
|
|
|
7246
7313
|
* Null when the opening-fill fees are unavailable — before the position's
|
|
7247
7314
|
* first PnL sample flushes, after its samples age out of PnL retention, or
|
|
7248
7315
|
* for positions predating the PnL service — rather than an understated
|
|
7249
|
-
* partial.
|
|
7316
|
+
* partial. On a terminal row it is also null until the final close is
|
|
7317
|
+
* recorded in the position's PnL sample, or while fee data is incomplete.
|
|
7250
7318
|
*/
|
|
7251
7319
|
cumFees?: string | null;
|
|
7252
7320
|
/**
|
|
@@ -7869,6 +7937,21 @@ export interface components {
|
|
|
7869
7937
|
* @example 1172836500.00
|
|
7870
7938
|
*/
|
|
7871
7939
|
openInterestNotional?: string | null;
|
|
7940
|
+
/**
|
|
7941
|
+
* @description Arithmetic mean of the valued gross open-interest notional observations (one per completed UTC minute) over the last 60 completed minutes ending at floor(now to minute); published once at least 95% of those minutes (57) carry a valued sample. Null for spot pairs or below that coverage; a minute without a trade price is unvalued, never zero; known zero is "0". Each sample is gross open position size x latest trade price in quote units. No historical backfill; this window warms after deployment.
|
|
7942
|
+
* @example 1172836500.00
|
|
7943
|
+
*/
|
|
7944
|
+
openInterestNotionalAvg1h?: string | null;
|
|
7945
|
+
/**
|
|
7946
|
+
* @description Arithmetic mean of the valued gross open-interest notional observations (one per completed UTC minute) over the last 1440 completed minutes ending at floor(now to minute); published once at least 95% of those minutes (1368) carry a valued sample. Null for spot pairs or below that coverage; a minute without a trade price is unvalued, never zero; known zero is "0". Each sample is gross open position size x latest trade price in quote units. No historical backfill; this window warms after deployment.
|
|
7947
|
+
* @example 1172836500.00
|
|
7948
|
+
*/
|
|
7949
|
+
openInterestNotionalAvg24h?: string | null;
|
|
7950
|
+
/**
|
|
7951
|
+
* @description Arithmetic mean of the valued gross open-interest notional observations (one per completed UTC minute) over the last 10080 completed minutes ending at floor(now to minute); published once at least 95% of those minutes (9576) carry a valued sample. Null for spot pairs or below that coverage; a minute without a trade price is unvalued, never zero; known zero is "0". Each sample is gross open position size x latest trade price in quote units. No historical backfill; this window warms after deployment.
|
|
7952
|
+
* @example 1172836500.00
|
|
7953
|
+
*/
|
|
7954
|
+
openInterestNotionalAvg7d?: string | null;
|
|
7872
7955
|
};
|
|
7873
7956
|
/** @description One UTC-day bucket in a pair's 7-day snapshot. */
|
|
7874
7957
|
ScreenerSnapshotPoint: {
|
|
@@ -7887,6 +7970,11 @@ export interface components {
|
|
|
7887
7970
|
* @example 0.85
|
|
7888
7971
|
*/
|
|
7889
7972
|
priceChangePercent?: string | null;
|
|
7973
|
+
/**
|
|
7974
|
+
* @description Arithmetic mean of the valued open-interest notional observations (one per completed UTC minute) in this completed UTC day; published once at least 95% of its 1440 minutes (1368) carry a valued sample, null for spot pairs or below that coverage. Samples use gross open position size x latest trade price in quote units; a minute without a trade price is unvalued, never zero; known zero remains "0". No historical backfill.
|
|
7975
|
+
* @example 1172836500.00
|
|
7976
|
+
*/
|
|
7977
|
+
openInterestNotionalAvg?: string | null;
|
|
7890
7978
|
};
|
|
7891
7979
|
SelfTradePreventionDefaultResponse: {
|
|
7892
7980
|
/**
|
|
@@ -8311,13 +8399,13 @@ export interface components {
|
|
|
8311
8399
|
};
|
|
8312
8400
|
SubmitWhitelistResponse: {
|
|
8313
8401
|
/**
|
|
8314
|
-
* @description
|
|
8402
|
+
* @description Legacy success message; submissions now return HTTP 403 / gRPC PERMISSION_DENIED
|
|
8315
8403
|
* @example Your whitelist application has been submitted successfully! We'll review it and get back to you soon.
|
|
8316
8404
|
*/
|
|
8317
8405
|
message?: string | null;
|
|
8318
8406
|
/**
|
|
8319
8407
|
* Format: uuid
|
|
8320
|
-
* @description
|
|
8408
|
+
* @description Legacy created user UUID; retired submissions do not create users
|
|
8321
8409
|
* @example 123e4567-e89b-12d3-a456-426614174000
|
|
8322
8410
|
*/
|
|
8323
8411
|
userId?: string | null;
|
|
@@ -9134,9 +9222,21 @@ export interface components {
|
|
|
9134
9222
|
price?: string | null;
|
|
9135
9223
|
quantity?: string | null;
|
|
9136
9224
|
liquidityRole?: string | null;
|
|
9225
|
+
/**
|
|
9226
|
+
* @description Total fee this user paid on the trade, in raw quote units: for a taker,
|
|
9227
|
+
* Monaco's taker fee plus the frontend's builder fee; for a maker, the maker
|
|
9228
|
+
* fee (negative for a rebate). Equals `monaco_fee + builder_fee`.
|
|
9229
|
+
*/
|
|
9137
9230
|
fee?: string | null;
|
|
9138
9231
|
realizedPnl?: string | null;
|
|
9139
9232
|
timestamp?: string | null;
|
|
9233
|
+
/** @description Monaco's component of `fee`, in raw quote units. */
|
|
9234
|
+
monacoFee?: string | null;
|
|
9235
|
+
/**
|
|
9236
|
+
* @description The frontend's builder fee component of `fee`, in raw quote units. Always
|
|
9237
|
+
* "0" for a maker: builder fees are charged to takers only.
|
|
9238
|
+
*/
|
|
9239
|
+
builderFee?: string | null;
|
|
9140
9240
|
};
|
|
9141
9241
|
VerifyRequest: {
|
|
9142
9242
|
/**
|
|
@@ -10962,6 +11062,8 @@ export interface operations {
|
|
|
10962
11062
|
page?: number;
|
|
10963
11063
|
/** @description Items per page (max 100) */
|
|
10964
11064
|
pageSize?: number;
|
|
11065
|
+
/** @description Only return BuilderCodes payouts of this payout kind: REVENUE_SHARE (the frontend's share of Monaco's fee) or BUILDER_FEE (the frontend's own builder fee). Omit for every kind. */
|
|
11066
|
+
kind?: "REVENUE_SHARE" | "BUILDER_FEE";
|
|
10965
11067
|
};
|
|
10966
11068
|
header?: never;
|
|
10967
11069
|
path?: never;
|
|
@@ -13211,10 +13313,29 @@ export interface operations {
|
|
|
13211
13313
|
/** @description Trading pair identifier (UUID) */
|
|
13212
13314
|
tradingPairId?: string;
|
|
13213
13315
|
state?: string;
|
|
13214
|
-
/**
|
|
13316
|
+
/**
|
|
13317
|
+
* @deprecated
|
|
13318
|
+
* @description Deprecated: page number for legacy offset pagination (1-indexed). Use pageToken cursor pagination instead.
|
|
13319
|
+
*/
|
|
13215
13320
|
page?: number;
|
|
13216
|
-
/** @description Items per page (max 100) */
|
|
13321
|
+
/** @description Items per page (max 100 in page-number mode; up to 1000 when pageToken is present) */
|
|
13217
13322
|
pageSize?: number;
|
|
13323
|
+
/**
|
|
13324
|
+
* @description Pagination cursor with three distinct states:
|
|
13325
|
+
* - Omitted: legacy page-number pagination via `page`.
|
|
13326
|
+
* - Empty string (""): start a cursor walk with no prior position, from
|
|
13327
|
+
* the newest conditional order.
|
|
13328
|
+
* - Non-empty: an opaque cursor from a previous response's
|
|
13329
|
+
* `next_page_token`; results resume immediately after that position.
|
|
13330
|
+
*
|
|
13331
|
+
* In either cursor-walk state (empty or non-empty), `page` is ignored and
|
|
13332
|
+
* `total` is not populated — both come back 0, because cursor mode runs no
|
|
13333
|
+
* COUNT (AIP-158). Cursor pages are keyset seeks on `(createdAt, id)`, so a
|
|
13334
|
+
* page size up to 1000 is allowed. Filters must match the request that
|
|
13335
|
+
* produced the token; a token replayed against different filters is
|
|
13336
|
+
* rejected.
|
|
13337
|
+
*/
|
|
13338
|
+
pageToken?: string;
|
|
13218
13339
|
};
|
|
13219
13340
|
header?: never;
|
|
13220
13341
|
path?: never;
|
|
@@ -13303,13 +13424,32 @@ export interface operations {
|
|
|
13303
13424
|
list_twap_orders: {
|
|
13304
13425
|
parameters: {
|
|
13305
13426
|
query?: {
|
|
13306
|
-
/**
|
|
13427
|
+
/**
|
|
13428
|
+
* @deprecated
|
|
13429
|
+
* @description Deprecated: page number for legacy offset pagination (1-indexed). Use pageToken cursor pagination instead.
|
|
13430
|
+
*/
|
|
13307
13431
|
page?: number;
|
|
13308
|
-
/** @description Items per page (max 100) */
|
|
13432
|
+
/** @description Items per page (max 100 in page-number mode; up to 1000 when pageToken is present) */
|
|
13309
13433
|
pageSize?: number;
|
|
13310
13434
|
state?: string;
|
|
13311
13435
|
/** @description Trading pair identifier (UUID) */
|
|
13312
13436
|
tradingPairId?: string;
|
|
13437
|
+
/**
|
|
13438
|
+
* @description Pagination cursor with three distinct states:
|
|
13439
|
+
* - Omitted: legacy page-number pagination via `page`.
|
|
13440
|
+
* - Empty string (""): start a cursor walk with no prior position, from
|
|
13441
|
+
* the newest TWAP parent.
|
|
13442
|
+
* - Non-empty: an opaque cursor from a previous response's
|
|
13443
|
+
* `next_page_token`; results resume immediately after that position.
|
|
13444
|
+
*
|
|
13445
|
+
* In either cursor-walk state (empty or non-empty), `page` is ignored and
|
|
13446
|
+
* `total` is not populated — both come back 0, because cursor mode runs no
|
|
13447
|
+
* COUNT (AIP-158). Cursor pages are keyset seeks on `(createdAt, id)`, so a
|
|
13448
|
+
* page size up to 1000 is allowed. Filters must match the request that
|
|
13449
|
+
* produced the token; a token replayed against different filters is
|
|
13450
|
+
* rejected.
|
|
13451
|
+
*/
|
|
13452
|
+
pageToken?: string;
|
|
13313
13453
|
};
|
|
13314
13454
|
header?: never;
|
|
13315
13455
|
path?: never;
|
|
@@ -14651,8 +14791,8 @@ export interface operations {
|
|
|
14651
14791
|
};
|
|
14652
14792
|
content?: never;
|
|
14653
14793
|
};
|
|
14654
|
-
/** @description
|
|
14655
|
-
|
|
14794
|
+
/** @description Public whitelist applications are closed. No applicant data is changed. */
|
|
14795
|
+
403: {
|
|
14656
14796
|
headers: {
|
|
14657
14797
|
[name: string]: unknown;
|
|
14658
14798
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@0xmonaco/types",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.69",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"homepage": "https://docs.0xmonaco.com/sdk/typescript",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
"lint": "biome lint ."
|
|
17
17
|
},
|
|
18
18
|
"dependencies": {
|
|
19
|
-
"@0xmonaco/contracts": "1.0.
|
|
19
|
+
"@0xmonaco/contracts": "1.0.69",
|
|
20
20
|
"zod": "^4.1.12"
|
|
21
21
|
},
|
|
22
22
|
"peerDependencies": {
|