@0xmonaco/types 1.0.82 → 1.0.83

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.
@@ -99,6 +99,10 @@ export interface Candlestick {
99
99
  i: string;
100
100
  /** Number of trades */
101
101
  n: number;
102
+ /** One-sided LONG open interest in normalized base-asset units, sampled at or before the candle end */
103
+ openInterestBase?: string | null;
104
+ /** One-sided LONG quote-asset notional paired with the same sample price; null when the base quantity or paired price is unavailable */
105
+ openInterestNotional?: string | null;
102
106
  }
103
107
  /**
104
108
  * Supported candlestick intervals
@@ -358,8 +358,11 @@ export interface TpSlLeg {
358
358
  * legs of the same condition type — they are cancelled in the same engine
359
359
  * step that creates this one, so moving a take-profit or stop-loss is a
360
360
  * single call. Fixed-`quantity` legs never participate (laddered partial
361
- * exits stack), a superseded leg's OCO sibling stays active, and legs
362
- * attached to an entry order are excluded on both sides.
361
+ * exits stack), and a superseded leg's OCO sibling stays active. An entry
362
+ * order's full-close legs compete for the same slot once armed, and the leg
363
+ * set most recently wins: this attach retires an armed entry-order leg, and a
364
+ * leg still pending on an unfilled order is cancelled instead of armed when
365
+ * that order fills.
363
366
  */
364
367
  closePosition?: boolean;
365
368
  timeInForce?: Extract<TimeInForce, "GTC" | "IOC">;
@@ -42,7 +42,7 @@ export interface SDKConfig {
42
42
  * - "local": http://localhost:8080
43
43
  * - "development": https://develop.apimonaco.xyz
44
44
  * - "staging": https://staging.apimonaco.xyz
45
- * - "mainnet": https://api.monaco.xyz
45
+ * - "mainnet": https://apimonaco.xyz
46
46
  *
47
47
  * Only "mainnet" uses the Sei mainnet chain. All other networks use Sei testnet.
48
48
  * `network` always selects the chain; supply {@link apiUrl} / {@link wsUrl}
@@ -10,7 +10,7 @@
10
10
  * - "local": http://localhost:8080
11
11
  * - "development": https://develop.apimonaco.xyz
12
12
  * - "staging": https://staging.apimonaco.xyz
13
- * - "mainnet": https://api.monaco.xyz
13
+ * - "mainnet": https://apimonaco.xyz
14
14
  */
15
15
  export type Network = "mainnet" | "development" | "staging" | "local";
16
16
  /**
@@ -2329,7 +2329,8 @@ export interface paths {
2329
2329
  * @description Get user orders.
2330
2330
  *
2331
2331
  * Get orders for the authenticated user with pagination and optional
2332
- * filtering by status and trading pair.
2332
+ * filtering by status and trading pair. A TWAP order's slices are not
2333
+ * listed here; read them from ListTwapOrderSlices.
2333
2334
  */
2334
2335
  get: operations["get_orders"];
2335
2336
  put?: never;
@@ -4641,6 +4642,16 @@ export interface components {
4641
4642
  * @example 1699800059999
4642
4643
  */
4643
4644
  closeTimestampMs?: string | null;
4645
+ /**
4646
+ * @description One-sided LONG open interest in base-asset units, from the latest sample at or before the candle end. Null when no sample is available.
4647
+ * @example 125.5
4648
+ */
4649
+ openInterestBase?: string | null;
4650
+ /**
4651
+ * @description One-sided LONG open-interest notional in quote-asset units, calculated using the price paired with the same sample as open_interest_base. Present only when the paired base quantity and price are available; otherwise null.
4652
+ * @example 4412600.00
4653
+ */
4654
+ openInterestNotional?: string | null;
4644
4655
  };
4645
4656
  ChallengeRequest: {
4646
4657
  /**
@@ -10425,8 +10436,11 @@ export interface components {
10425
10436
  * a take-profit or stop-loss is one call with no window in which the
10426
10437
  * position holds both levels or neither. Fixed-quantity legs never
10427
10438
  * participate — laddered partial exits stack — and a superseded leg's
10428
- * OCO sibling is left active rather than dropped. Legs attached to an entry
10429
- * order are excluded on both sides.
10439
+ * OCO sibling is left active rather than dropped. An entry order's
10440
+ * full-close legs compete for the same slot once armed: the leg set most
10441
+ * recently wins. So an attach retires an armed entry-order leg, leaves one
10442
+ * still pending on an unfilled order alone, and when that order fills its
10443
+ * leg is cancelled instead of armed if this attach came later.
10430
10444
  */
10431
10445
  closePosition?: boolean | null;
10432
10446
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@0xmonaco/types",
3
- "version": "1.0.82",
3
+ "version": "1.0.83",
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.82",
19
+ "@0xmonaco/contracts": "1.0.83",
20
20
  "zod": "^4.1.12"
21
21
  },
22
22
  "peerDependencies": {