@0xmonaco/core 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.
package/README.md
CHANGED
|
@@ -54,7 +54,7 @@ The SDK supports the following documented preset networks. Configure the network
|
|
|
54
54
|
|
|
55
55
|
**Preset Networks:**
|
|
56
56
|
- `"staging"` - Staging environment (https://staging.apimonaco.xyz)
|
|
57
|
-
- `"mainnet"` - Production environment (https://
|
|
57
|
+
- `"mainnet"` - Production environment (https://apimonaco.xyz)
|
|
58
58
|
|
|
59
59
|
WebSocket URLs are automatically resolved per network.
|
|
60
60
|
|
|
@@ -318,7 +318,8 @@ export declare class TradingAPIImpl extends BaseAPI implements TradingAPI {
|
|
|
318
318
|
* Every row is a BOOK order (`LIMIT` or `MARKET`); filter `status` to
|
|
319
319
|
* `["SUBMITTED", "PARTIALLY_FILLED"]` for the resting working set. TWAP parents and
|
|
320
320
|
* conditional (TP/SL) orders are not rows here — list them with `listTwapOrders`
|
|
321
|
-
* and `listConditionalOrders`.
|
|
321
|
+
* and `listConditionalOrders`. Nor are a TWAP's slices, the child orders that carry
|
|
322
|
+
* `parentOrderId`: read them with `listTwapOrderSlices`.
|
|
322
323
|
* When neither `page` nor `pageToken` is passed, the SDK drives cursor (pageToken)
|
|
323
324
|
* pagination: it starts a cursor walk from the newest (or oldest, for
|
|
324
325
|
* `orderBy: "ASC"`) row and the response's `nextPageToken` resumes it. Both modes
|
package/dist/api/trading/api.js
CHANGED
|
@@ -498,7 +498,8 @@ export class TradingAPIImpl extends BaseAPI {
|
|
|
498
498
|
* Every row is a BOOK order (`LIMIT` or `MARKET`); filter `status` to
|
|
499
499
|
* `["SUBMITTED", "PARTIALLY_FILLED"]` for the resting working set. TWAP parents and
|
|
500
500
|
* conditional (TP/SL) orders are not rows here — list them with `listTwapOrders`
|
|
501
|
-
* and `listConditionalOrders`.
|
|
501
|
+
* and `listConditionalOrders`. Nor are a TWAP's slices, the child orders that carry
|
|
502
|
+
* `parentOrderId`: read them with `listTwapOrderSlices`.
|
|
502
503
|
* When neither `page` nor `pageToken` is passed, the SDK drives cursor (pageToken)
|
|
503
504
|
* pagination: it starts a cursor walk from the newest (or oldest, for
|
|
504
505
|
* `orderBy: "ASC"`) row and the response's `nextPageToken` resumes it. Both modes
|
|
@@ -553,6 +553,8 @@ function parseOHLCVSnapshotCandle(raw, interval) {
|
|
|
553
553
|
v: readString(raw, "volume"),
|
|
554
554
|
i: interval,
|
|
555
555
|
n: readSequence(raw, "trades_count"),
|
|
556
|
+
openInterestBase: readOptionalString(raw, "open_interest_base"),
|
|
557
|
+
openInterestNotional: readOptionalString(raw, "open_interest_notional"),
|
|
556
558
|
};
|
|
557
559
|
}
|
|
558
560
|
function parseInstrumentEventData(raw) {
|
|
@@ -1662,6 +1664,8 @@ export function createMonacoWebSocket(baseUrl, options = {}, serverClock = new S
|
|
|
1662
1664
|
s: data.symbol,
|
|
1663
1665
|
i: data.interval,
|
|
1664
1666
|
n: ohlcvData.trades_count || 0,
|
|
1667
|
+
openInterestBase: readOptionalString(ohlcvData, "open_interest_base"),
|
|
1668
|
+
openInterestNotional: readOptionalString(ohlcvData, "open_interest_notional"),
|
|
1665
1669
|
},
|
|
1666
1670
|
};
|
|
1667
1671
|
handler(event);
|
|
@@ -10,7 +10,9 @@
|
|
|
10
10
|
const LOCAL_URL = "http://localhost:8080";
|
|
11
11
|
const DEVELOPMENT_URL = "https://develop.apimonaco.xyz";
|
|
12
12
|
const STAGING_URL = "https://staging.apimonaco.xyz";
|
|
13
|
-
|
|
13
|
+
// https://api.monaco.xyz never resolved (the monaco.xyz zone has no NS
|
|
14
|
+
// delegation), so this is not a behavior change for any working client.
|
|
15
|
+
const MAINNET_URL = "https://apimonaco.xyz";
|
|
14
16
|
const DEFAULT_API_URLS = {
|
|
15
17
|
local: LOCAL_URL,
|
|
16
18
|
development: DEVELOPMENT_URL,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@0xmonaco/core",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.83",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"homepage": "https://docs.0xmonaco.com/sdk/typescript",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -19,8 +19,8 @@
|
|
|
19
19
|
"viem": "^2.45.2"
|
|
20
20
|
},
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"@0xmonaco/contracts": "1.0.
|
|
23
|
-
"@0xmonaco/types": "1.0.
|
|
22
|
+
"@0xmonaco/contracts": "1.0.83",
|
|
23
|
+
"@0xmonaco/types": "1.0.83",
|
|
24
24
|
"@noble/curves": "^1.9.1",
|
|
25
25
|
"@noble/hashes": "^2.4.0",
|
|
26
26
|
"http-status-codes": "^2.3.0"
|