@0xmonaco/core 1.1.1 → 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.
Files changed (2) hide show
  1. package/README.md +7 -1
  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?.maker_fee_bps);
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
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@0xmonaco/core",
3
- "version": "1.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.1",
23
- "@0xmonaco/types": "1.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"