@0xmonaco/core 1.1.0 → 1.1.2-develop.3a25169
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 +7 -1
- package/dist/api/margin-accounts/api.js +2 -2
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -118,7 +118,13 @@ async function marketExample() {
|
|
|
118
118
|
|
|
119
119
|
// Get specific trading pair
|
|
120
120
|
const btcPair = await monaco.market.getTradingPairBySymbol("BTC/USDC");
|
|
121
|
-
console.log("BTC pair:", btcPair?.symbol, btcPair?.
|
|
121
|
+
console.log("BTC pair:", btcPair?.symbol, btcPair?.tickSize);
|
|
122
|
+
|
|
123
|
+
// Fee rates are tiered: read the pair's schedule (public) or your own tier
|
|
124
|
+
if (btcPair) {
|
|
125
|
+
const { feeSchedule } = await monaco.fees.getFeeSchedule(btcPair.id);
|
|
126
|
+
console.log("Tier 1 taker fee (bps):", feeSchedule[0]?.takerFeeBps);
|
|
127
|
+
}
|
|
122
128
|
}
|
|
123
129
|
|
|
124
130
|
// Vault Operations
|
|
@@ -119,7 +119,7 @@ export class MarginAccountsAPIImpl extends BaseAPI {
|
|
|
119
119
|
strategyKey: request.strategyKey,
|
|
120
120
|
marginMode: request.marginMode,
|
|
121
121
|
marginAccountId: request.marginAccountId,
|
|
122
|
-
// No selectedTradingPairIds: cross scope is derived from
|
|
122
|
+
// No selectedTradingPairIds: cross scope is derived from open positions, and
|
|
123
123
|
// the server ignores the deprecated field. Not sending it keeps a
|
|
124
124
|
// pre-upgrade caller's stale list from reaching the wire at all.
|
|
125
125
|
// JSON.stringify drops it when omitted; an explicit false MUST reach
|
|
@@ -206,7 +206,7 @@ export class MarginAccountsAPIImpl extends BaseAPI {
|
|
|
206
206
|
strategyKey: request.strategyKey,
|
|
207
207
|
marginMode: request.marginMode,
|
|
208
208
|
marginAccountId: request.marginAccountId,
|
|
209
|
-
// No selectedTradingPairIds: cross scope is derived from
|
|
209
|
+
// No selectedTradingPairIds: cross scope is derived from open positions, and
|
|
210
210
|
// the server ignores the deprecated field. Not sending it keeps a
|
|
211
211
|
// pre-upgrade caller's stale list from reaching the wire at all.
|
|
212
212
|
side: request.side,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@0xmonaco/core",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.2-develop.3a25169",
|
|
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.1.
|
|
23
|
-
"@0xmonaco/types": "1.1.
|
|
22
|
+
"@0xmonaco/contracts": "1.1.2-develop.3a25169",
|
|
23
|
+
"@0xmonaco/types": "1.1.2-develop.3a25169",
|
|
24
24
|
"@noble/curves": "^2.4.0",
|
|
25
25
|
"@noble/hashes": "^2.4.0",
|
|
26
26
|
"http-status-codes": "^2.3.0"
|