@0xmonaco/types 1.0.14 → 1.0.16

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.
@@ -33,8 +33,10 @@ export declare const SimulateFeeResponseSchema: z.ZodObject<{
33
33
  makerTotalReceipt: z.ZodString;
34
34
  monacoMakerRebate: z.ZodString;
35
35
  monacoMakerRebateBps: z.ZodNumber;
36
+ monacoMakerRebateBpsExact: z.ZodString;
36
37
  monacoTakerFee: z.ZodString;
37
38
  monacoTakerFeeBps: z.ZodNumber;
39
+ monacoTakerFeeBpsExact: z.ZodString;
38
40
  notional: z.ZodString;
39
41
  takerTotalPayment: z.ZodString;
40
42
  totalTakerFees: z.ZodString;
@@ -65,12 +65,30 @@ export const SimulateFeeResponseSchema = z.object({
65
65
  makerTotalReceipt: z.string(),
66
66
  /** Monaco protocol maker rebate (negative = rebate) */
67
67
  monacoMakerRebate: z.string(),
68
- /** Monaco maker rebate in basis points */
68
+ /**
69
+ * Monaco maker rebate in basis points.
70
+ * @deprecated Integer field cannot represent fractional tiered rebates (e.g. -1.15); it
71
+ * echoes the flat trading-pair column, not the tier-resolved rate. Use monacoMakerRebateBpsExact.
72
+ */
69
73
  monacoMakerRebateBps: z.number(),
74
+ /**
75
+ * Tier-resolved Monaco maker rebate as a decimal basis-points string (negative is a
76
+ * rebate), e.g. "-1" — the exact rate the ledger credits this caller.
77
+ */
78
+ monacoMakerRebateBpsExact: z.string(),
70
79
  /** Monaco protocol taker fee */
71
80
  monacoTakerFee: z.string(),
72
- /** Monaco taker fee in basis points */
81
+ /**
82
+ * Monaco taker fee in basis points.
83
+ * @deprecated Integer field cannot represent fractional tiered rates (e.g. 6.5); it echoes
84
+ * the flat trading-pair column, not the tier-resolved rate. Use monacoTakerFeeBpsExact.
85
+ */
73
86
  monacoTakerFeeBps: z.number(),
87
+ /**
88
+ * Tier-resolved Monaco taker fee as a decimal basis-points string, e.g. "6.5" — the exact
89
+ * rate the ledger charges this caller (equals monacoTakerFee / notional).
90
+ */
91
+ monacoTakerFeeBpsExact: z.string(),
74
92
  /** Notional value (price * quantity) */
75
93
  notional: z.string(),
76
94
  /** Total amount taker must pay */
@@ -4070,13 +4070,15 @@ export interface components {
4070
4070
  createdAt?: string | null;
4071
4071
  /**
4072
4072
  * Format: int32
4073
- * @description Base maker fee in basis points from active trading pair
4073
+ * @deprecated
4074
+ * @description DEPRECATED: legacy flat maker fee in bps echoed from the trading pair. Does NOT reflect the tiered fee actually charged, which is per-user and fractional. Call GET /api/v1/fees/tier for the caller's real rate.
4074
4075
  * @example -1
4075
4076
  */
4076
4077
  makerFeeBps?: number | null;
4077
4078
  /**
4078
4079
  * Format: int32
4079
- * @description Base taker fee in basis points from active trading pair
4080
+ * @deprecated
4081
+ * @description DEPRECATED: legacy flat taker fee in bps echoed from the trading pair. Does NOT reflect the tiered fee actually charged, which is per-user and fractional. Call GET /api/v1/fees/tier for the caller's real rate.
4080
4082
  * @example 5
4081
4083
  */
4082
4084
  takerFeeBps?: number | null;
@@ -5312,13 +5314,15 @@ export interface components {
5312
5314
  buyOrderLockAmount?: string | null;
5313
5315
  /**
5314
5316
  * Format: int32
5315
- * @description Monaco taker fee rate in basis points
5317
+ * @deprecated
5318
+ * @description DEPRECATED: whole-basis-points taker rate. An integer cannot represent fractional tiered rates (e.g. 6.5), so this echoes the flat trading_pairs column, NOT the tier-resolved rate the ledger charges. Kept for backward compatibility. Use monaco_taker_fee_bps_exact (or GET /api/v1/fees/tier).
5316
5319
  * @example 10
5317
5320
  */
5318
5321
  monacoTakerFeeBps?: number | null;
5319
5322
  /**
5320
5323
  * Format: int32
5321
- * @description Monaco maker rebate rate in bps (negative)
5324
+ * @deprecated
5325
+ * @description DEPRECATED: whole-basis-points maker rebate. An integer cannot represent fractional tiered rebates (e.g. -1.15), so this echoes the flat trading_pairs column, NOT the tier-resolved rate. Kept for backward compatibility. Use monaco_maker_rebate_bps_exact (or GET /api/v1/fees/tier).
5322
5326
  * @example -2
5323
5327
  */
5324
5328
  monacoMakerRebateBps?: number | null;
@@ -5349,6 +5353,16 @@ export interface components {
5349
5353
  * @example 500
5350
5354
  */
5351
5355
  slippageToleranceBps?: number | null;
5356
+ /**
5357
+ * @description Tier-resolved Monaco taker fee rate as a decimal basis-points string — the exact rate the ledger charges this caller (equals monaco_taker_fee / notional). Fractional and per-tier, e.g. "6.5". Prefer this over the deprecated integer monaco_taker_fee_bps.
5358
+ * @example 6.5
5359
+ */
5360
+ monacoTakerFeeBpsExact?: string | null;
5361
+ /**
5362
+ * @description Tier-resolved Monaco maker rebate as a decimal basis-points string (negative is a rebate) — the exact rate the ledger credits this caller. Fractional and per-tier, e.g. "-1". Prefer this over the deprecated integer monaco_maker_rebate_bps.
5363
+ * @example -1
5364
+ */
5365
+ monacoMakerRebateBpsExact?: string | null;
5352
5366
  };
5353
5367
  SimulateOrderRiskRequest: {
5354
5368
  /** @description Margin account UUID for the isolated bucket being simulated. */
@@ -5644,7 +5658,8 @@ export interface components {
5644
5658
  isActive?: boolean | null;
5645
5659
  /**
5646
5660
  * Format: int32
5647
- * @description Maker fee in bps (negative = rebate)
5661
+ * @deprecated
5662
+ * @description DEPRECATED: legacy flat maker fee in bps (negative = rebate). This is the pre-tiered pair-level rate and does NOT reflect the tiered fee actually charged, which is per-user and fractional. Do not display this as the user's fee — call GET /api/v1/fees/tier for the caller's real rate.
5648
5663
  * @example -2
5649
5664
  */
5650
5665
  makerFeeBps?: number | null;
@@ -5697,7 +5712,8 @@ export interface components {
5697
5712
  symbol?: string | null;
5698
5713
  /**
5699
5714
  * Format: int32
5700
- * @description Taker fee (bps)
5715
+ * @deprecated
5716
+ * @description DEPRECATED: legacy flat taker fee in bps. This is the pre-tiered pair-level rate and does NOT reflect the tiered fee actually charged, which is per-user and fractional. Do not display this as the user's fee — call GET /api/v1/fees/tier for the caller's real rate.
5701
5717
  * @example 10
5702
5718
  */
5703
5719
  takerFeeBps?: number | null;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@0xmonaco/types",
3
- "version": "1.0.14",
3
+ "version": "1.0.16",
4
4
  "type": "module",
5
5
  "repository": {
6
6
  "type": "git",
@@ -20,7 +20,7 @@
20
20
  "lint": "biome lint ."
21
21
  },
22
22
  "dependencies": {
23
- "@0xmonaco/contracts": "1.0.14",
23
+ "@0xmonaco/contracts": "1.0.16",
24
24
  "zod": "^4.1.12"
25
25
  },
26
26
  "peerDependencies": {