@bulletxyz/bullet-sdk 0.33.0-rc.2 → 0.36.0-rc.0
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/dist/browser/index.js +76 -40
- package/dist/browser/index.js.map +3 -3
- package/dist/node/index.js +76 -40
- package/dist/node/index.js.map +3 -3
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/types/client.d.ts.map +1 -1
- package/dist/types/error.d.ts +83 -17
- package/dist/types/error.d.ts.map +1 -1
- package/dist/types/websocket.d.ts.map +1 -1
- package/dist/types/zod-types/rest.d.ts +168 -77
- package/dist/types/zod-types/rest.d.ts.map +1 -1
- package/package.json +1 -14
package/dist/types/error.d.ts
CHANGED
|
@@ -2,17 +2,24 @@ import { SovereignError } from "@sovereign-sdk/web3";
|
|
|
2
2
|
/**
|
|
3
3
|
* Structured error details from rollup responses.
|
|
4
4
|
*
|
|
5
|
-
* Standard fields:
|
|
6
|
-
*
|
|
5
|
+
* Standard fields: domain, code, detail
|
|
6
|
+
* All other fields are dynamic and specific to each error type.
|
|
7
7
|
*/
|
|
8
8
|
export interface RollupErrorDetails {
|
|
9
|
-
/**
|
|
10
|
-
|
|
11
|
-
/**
|
|
12
|
-
|
|
13
|
-
/**
|
|
14
|
-
|
|
15
|
-
/**
|
|
9
|
+
/** Error domain/category (e.g., 'risk_engine', 'account', 'order') */
|
|
10
|
+
domain: string;
|
|
11
|
+
/** Specific error code (e.g., 'stale_price', 'insufficient_margin') */
|
|
12
|
+
code: string;
|
|
13
|
+
/** Detailed error message from the rollup (thiserror Display) */
|
|
14
|
+
detail: string;
|
|
15
|
+
/**
|
|
16
|
+
* Additional dynamic fields specific to each error type.
|
|
17
|
+
*
|
|
18
|
+
* Examples:
|
|
19
|
+
* - StalePrice: id, price_kind, last_update_timestamp, current_timestamp
|
|
20
|
+
* - InsufficientMargin: address, available_margin, required_margin, margin_type
|
|
21
|
+
* - OrderNotFound: order_id, market_id, market_type
|
|
22
|
+
*/
|
|
16
23
|
[key: string]: unknown;
|
|
17
24
|
}
|
|
18
25
|
/**
|
|
@@ -28,22 +35,35 @@ export interface RollupErrorDetails {
|
|
|
28
35
|
* } catch (error) {
|
|
29
36
|
* if (isBulletError(error)) {
|
|
30
37
|
* console.log(error.code); // 'stale_price'
|
|
31
|
-
* console.log(error.
|
|
38
|
+
* console.log(error.domain); // 'risk_engine'
|
|
39
|
+
* console.log(error.message); // 'Stale price - mark 1, last_update: 0, current: 1762425013275'
|
|
40
|
+
*
|
|
41
|
+
* // Access error-specific fields via details
|
|
42
|
+
* console.log(error.details.id);
|
|
43
|
+
* console.log(error.details.price_kind);
|
|
44
|
+
* console.log(error.details.current_timestamp);
|
|
32
45
|
*
|
|
33
|
-
*
|
|
34
|
-
*
|
|
46
|
+
* // Type-safe error handling
|
|
47
|
+
* if (error.domain === 'account' && error.code === 'insufficient_margin') {
|
|
48
|
+
* const { available_margin, required_margin } = error.details;
|
|
49
|
+
* showDepositModal(Number(required_margin) - Number(available_margin));
|
|
35
50
|
* }
|
|
36
51
|
* }
|
|
37
52
|
* }
|
|
38
53
|
* ```
|
|
39
54
|
*/
|
|
40
55
|
export declare class BulletError extends SovereignError {
|
|
41
|
-
/**
|
|
56
|
+
/** Specific error code (e.g., 'stale_price', 'insufficient_margin') */
|
|
42
57
|
readonly code: string;
|
|
58
|
+
/** Error domain/category (e.g., 'risk_engine', 'account', 'order') */
|
|
59
|
+
readonly domain: string;
|
|
43
60
|
/** HTTP status code */
|
|
44
61
|
readonly status?: number;
|
|
45
|
-
/**
|
|
46
|
-
|
|
62
|
+
/**
|
|
63
|
+
* Structured error details from the rollup.
|
|
64
|
+
* Contains all error-specific fields.
|
|
65
|
+
*/
|
|
66
|
+
readonly details: RollupErrorDetails;
|
|
47
67
|
/** Original error that caused this */
|
|
48
68
|
readonly cause?: Error;
|
|
49
69
|
private constructor();
|
|
@@ -63,11 +83,18 @@ export declare class BulletError extends SovereignError {
|
|
|
63
83
|
toJSON(): {
|
|
64
84
|
name: string;
|
|
65
85
|
code: string;
|
|
86
|
+
domain: string;
|
|
66
87
|
message: string;
|
|
67
88
|
status: number | undefined;
|
|
68
|
-
details: RollupErrorDetails
|
|
89
|
+
details: RollupErrorDetails;
|
|
69
90
|
stack: string | undefined;
|
|
70
91
|
};
|
|
92
|
+
/**
|
|
93
|
+
* Returns a developer-friendly string representation.
|
|
94
|
+
*
|
|
95
|
+
* @example
|
|
96
|
+
* "[risk_engine:stale_price] Stale price - mark 1, last_update: 0, current: 1762425013275"
|
|
97
|
+
*/
|
|
71
98
|
toString(): string;
|
|
72
99
|
}
|
|
73
100
|
/**
|
|
@@ -77,10 +104,49 @@ export declare class BulletError extends SovereignError {
|
|
|
77
104
|
* ```typescript
|
|
78
105
|
* catch (error) {
|
|
79
106
|
* if (isBulletError(error)) {
|
|
80
|
-
* console.log(error.code, error.details);
|
|
107
|
+
* console.log(error.code, error.domain, error.details);
|
|
81
108
|
* }
|
|
82
109
|
* }
|
|
83
110
|
* ```
|
|
84
111
|
*/
|
|
85
112
|
export declare function isBulletError(error: unknown): error is BulletError;
|
|
113
|
+
/**
|
|
114
|
+
* Helper to create type-safe error handlers for specific error types.
|
|
115
|
+
*
|
|
116
|
+
* @example
|
|
117
|
+
* ```typescript
|
|
118
|
+
* const handleStalePrice = createErrorHandler(
|
|
119
|
+
* 'risk_engine',
|
|
120
|
+
* 'stale_price',
|
|
121
|
+
* (error) => {
|
|
122
|
+
* // Access fields via error.details
|
|
123
|
+
* console.log(`Stale price for ${error.details.id}`);
|
|
124
|
+
* console.log(`Price kind: ${error.details.price_kind}`);
|
|
125
|
+
* retryWithFreshData();
|
|
126
|
+
* }
|
|
127
|
+
* );
|
|
128
|
+
*
|
|
129
|
+
* try {
|
|
130
|
+
* await client.placeOrder(...);
|
|
131
|
+
* } catch (error) {
|
|
132
|
+
* if (isBulletError(error)) {
|
|
133
|
+
* handleStalePrice(error);
|
|
134
|
+
* }
|
|
135
|
+
* }
|
|
136
|
+
* ```
|
|
137
|
+
*/
|
|
138
|
+
export declare function createErrorHandler(domain: string, code: string, handler: (error: BulletError) => void): (error: BulletError) => boolean;
|
|
139
|
+
/**
|
|
140
|
+
* Type guard with specific domain/code check.
|
|
141
|
+
* Useful for narrowing error types in conditional logic.
|
|
142
|
+
*
|
|
143
|
+
* @example
|
|
144
|
+
* ```typescript
|
|
145
|
+
* if (isErrorType(error, 'risk_engine', 'stale_price')) {
|
|
146
|
+
* // error is BulletError with domain='risk_engine' and code='stale_price'
|
|
147
|
+
* const { id, price_kind } = error.details;
|
|
148
|
+
* }
|
|
149
|
+
* ```
|
|
150
|
+
*/
|
|
151
|
+
export declare function isErrorType(error: unknown, domain: string, code: string): error is BulletError;
|
|
86
152
|
//# sourceMappingURL=error.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"error.d.ts","sourceRoot":"","sources":["../../src/error.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAErD;;;;;GAKG;AACH,MAAM,WAAW,kBAAkB;IACjC,
|
|
1
|
+
{"version":3,"file":"error.d.ts","sourceRoot":"","sources":["../../src/error.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAErD;;;;;GAKG;AACH,MAAM,WAAW,kBAAkB;IACjC,sEAAsE;IACtE,MAAM,EAAE,MAAM,CAAC;IAEf,uEAAuE;IACvE,IAAI,EAAE,MAAM,CAAC;IAEb,iEAAiE;IACjE,MAAM,EAAE,MAAM,CAAC;IAEf;;;;;;;OAOG;IACH,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;CACxB;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AACH,qBAAa,WAAY,SAAQ,cAAc;IAC7C,uEAAuE;IACvE,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IAEtB,sEAAsE;IACtE,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IAExB,uBAAuB;IACvB,QAAQ,CAAC,MAAM,CAAC,EAAE,MAAM,CAAC;IAEzB;;;OAGG;IACH,QAAQ,CAAC,OAAO,EAAE,kBAAkB,CAAC;IAErC,sCAAsC;IACtC,QAAQ,CAAC,KAAK,CAAC,EAAE,KAAK,CAAC;IAEvB,OAAO;IAsBP;;;;;;;;OAQG;IACH,MAAM,CAAC,IAAI,CAAC,KAAK,EAAE,OAAO,GAAG,WAAW;IA8CxC;;OAEG;IACH,MAAM;;;;;;;;;IAYN;;;;;OAKG;IACH,QAAQ,IAAI,MAAM;CAGnB;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,aAAa,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,WAAW,CAElE;AAED;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,wBAAgB,kBAAkB,CAChC,MAAM,EAAE,MAAM,EACd,IAAI,EAAE,MAAM,EACZ,OAAO,EAAE,CAAC,KAAK,EAAE,WAAW,KAAK,IAAI,GACpC,CAAC,KAAK,EAAE,WAAW,KAAK,OAAO,CAQjC;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,WAAW,CACzB,KAAK,EAAE,OAAO,EACd,MAAM,EAAE,MAAM,EACd,IAAI,EAAE,MAAM,GACX,KAAK,IAAI,WAAW,CAEtB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"websocket.d.ts","sourceRoot":"","sources":["../../src/websocket.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"websocket.d.ts","sourceRoot":"","sources":["../../src/websocket.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAGxC,qBAAa,gBAAgB;IAC3B,OAAO,CAAC,MAAM,CAA0B;IACxC,OAAO,CAAC,UAAU,CAAuC;IACzD,OAAO,CAAC,WAAW,CAAS;IAC5B,OAAO,CAAC,iBAAiB,CAA+B;IACxD,OAAO,CAAC,aAAa,CAAoC;IACzD,OAAO,CAAC,GAAG,CAAS;IACpB,OAAO,CAAC,iBAAiB,CAAK;IAC9B,OAAO,CAAC,QAAQ,CAAC,oBAAoB,CAAK;IAC1C,OAAO,CAAC,QAAQ,CAAC,cAAc,CAAQ;IACvC,OAAO,CAAC,YAAY,CAAsB;gBAE9B,GAAG,EAAE,MAAM;YAIT,OAAO;YA8CP,eAAe;IAuB7B,OAAO,CAAC,aAAa;IA+DrB,OAAO,CAAC,cAAc;IAStB,OAAO,CAAC,aAAa;IAOrB,OAAO,CAAC,gBAAgB;IAMjB,WAAW,CAAC,OAAO,EAAE,MAAM;IAOpB,kBAAkB,CAC9B,QAAQ,EAAE,QAAQ,GACjB,aAAa,CAAC,SAAS,CAAC;IAgBd,oBAAoB,CAAC,QAAQ,EAAE,QAAQ;CAQrD"}
|
|
@@ -66,7 +66,7 @@ declare const BorrowLendPool: z.ZodObject<{
|
|
|
66
66
|
asset_id: z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<number, string | number>>, z.ZodNumber>;
|
|
67
67
|
is_active: z.ZodBoolean;
|
|
68
68
|
last_update_timestamp: z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBigInt]>, z.ZodTransform<bigint, string | number | bigint>>, z.ZodBigInt>;
|
|
69
|
-
|
|
69
|
+
rate_config: z.ZodObject<{
|
|
70
70
|
optimal_utilisation_rate: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<import("decimal.js").Decimal, string | number>>;
|
|
71
71
|
min_borrow_rate: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<import("decimal.js").Decimal, string | number>>;
|
|
72
72
|
optimal_borrow_rate: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<import("decimal.js").Decimal, string | number>>;
|
|
@@ -86,12 +86,10 @@ export declare const Schemas: {
|
|
|
86
86
|
readonly DummyValue: z.ZodNumber;
|
|
87
87
|
readonly ExchangeInfo: z.ZodObject<{
|
|
88
88
|
global_config: z.ZodObject<{
|
|
89
|
-
|
|
89
|
+
max_orders_per_user: z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBigInt]>, z.ZodTransform<bigint, string | number | bigint>>, z.ZodBigInt>;
|
|
90
|
+
max_trigger_orders_per_user: z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBigInt]>, z.ZodTransform<bigint, string | number | bigint>>, z.ZodBigInt>;
|
|
90
91
|
max_orders_per_batch_msg: z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBigInt]>, z.ZodTransform<bigint, string | number | bigint>>, z.ZodBigInt>;
|
|
91
|
-
|
|
92
|
-
max_order_price_deviation_from_mark_price: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<import("decimal.js").Decimal, string | number>>;
|
|
93
|
-
max_tpsl_price_deviation_from_mark_price: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<import("decimal.js").Decimal, string | number>>;
|
|
94
|
-
max_tpsl_price_deviation_between_order_and_trigger: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<import("decimal.js").Decimal, string | number>>;
|
|
92
|
+
max_trigger_orders_to_execute_per_msg: z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBigInt]>, z.ZodTransform<bigint, string | number | bigint>>, z.ZodBigInt>;
|
|
95
93
|
}, z.core.$strip>;
|
|
96
94
|
admins: z.ZodObject<{
|
|
97
95
|
protocol: z.ZodString;
|
|
@@ -224,7 +222,7 @@ export declare const Schemas: {
|
|
|
224
222
|
asset_id: z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<number, string | number>>, z.ZodNumber>;
|
|
225
223
|
is_active: z.ZodBoolean;
|
|
226
224
|
last_update_timestamp: z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBigInt]>, z.ZodTransform<bigint, string | number | bigint>>, z.ZodBigInt>;
|
|
227
|
-
|
|
225
|
+
rate_config: z.ZodObject<{
|
|
228
226
|
optimal_utilisation_rate: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<import("decimal.js").Decimal, string | number>>;
|
|
229
227
|
min_borrow_rate: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<import("decimal.js").Decimal, string | number>>;
|
|
230
228
|
optimal_borrow_rate: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<import("decimal.js").Decimal, string | number>>;
|
|
@@ -243,7 +241,7 @@ export declare const Schemas: {
|
|
|
243
241
|
asset_id: number;
|
|
244
242
|
is_active: boolean;
|
|
245
243
|
last_update_timestamp: bigint;
|
|
246
|
-
|
|
244
|
+
rate_config: {
|
|
247
245
|
optimal_utilisation_rate: import("decimal.js").Decimal;
|
|
248
246
|
min_borrow_rate: import("decimal.js").Decimal;
|
|
249
247
|
optimal_borrow_rate: import("decimal.js").Decimal;
|
|
@@ -262,7 +260,7 @@ export declare const Schemas: {
|
|
|
262
260
|
asset_id: number;
|
|
263
261
|
is_active: boolean;
|
|
264
262
|
last_update_timestamp: bigint;
|
|
265
|
-
|
|
263
|
+
rate_config: {
|
|
266
264
|
optimal_utilisation_rate: import("decimal.js").Decimal;
|
|
267
265
|
min_borrow_rate: import("decimal.js").Decimal;
|
|
268
266
|
optimal_borrow_rate: import("decimal.js").Decimal;
|
|
@@ -887,9 +885,22 @@ export declare const Schemas: {
|
|
|
887
885
|
readonly PerpMarket: z.ZodObject<{
|
|
888
886
|
market_id: z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<number, string | number>>, z.ZodNumber>;
|
|
889
887
|
is_active: z.ZodBoolean;
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
888
|
+
config: z.ZodObject<{
|
|
889
|
+
min_tick_size: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<import("decimal.js").Decimal, string | number>>;
|
|
890
|
+
min_lot_size: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<import("decimal.js").Decimal, string | number>>;
|
|
891
|
+
max_oi_notional: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<import("decimal.js").Decimal, string | number>>;
|
|
892
|
+
impact_margin: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<import("decimal.js").Decimal, string | number>>;
|
|
893
|
+
max_orders_per_side: z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<number, string | number>>, z.ZodNumber>;
|
|
894
|
+
max_orders_per_user: z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<number, string | number>>, z.ZodNumber>;
|
|
895
|
+
max_trigger_orders_per_user: z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<number, string | number>>, z.ZodNumber>;
|
|
896
|
+
taker_fees_tenth_bps: z.ZodArray<z.ZodNumber>;
|
|
897
|
+
maker_fees_tenth_bps: z.ZodArray<z.ZodNumber>;
|
|
898
|
+
max_order_to_mark_price_deviation_ratio: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<import("decimal.js").Decimal, string | number>>;
|
|
899
|
+
max_tpsl_to_mark_price_deviation_ratio: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<import("decimal.js").Decimal, string | number>>;
|
|
900
|
+
max_tpsl_price_deviation_ratio: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<import("decimal.js").Decimal, string | number>>;
|
|
901
|
+
}, z.core.$strip>;
|
|
902
|
+
current_open_interest_lots: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<import("decimal.js").Decimal, string | number>>;
|
|
903
|
+
last_trade_price: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<import("decimal.js").Decimal, string | number>>;
|
|
893
904
|
orderbook: z.ZodObject<{
|
|
894
905
|
bids: z.ZodPipe<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
895
906
|
nodes: z.ZodArray<z.ZodObject<{
|
|
@@ -930,9 +941,6 @@ export declare const Schemas: {
|
|
|
930
941
|
total_size: import("decimal.js").Decimal;
|
|
931
942
|
}>>>;
|
|
932
943
|
}, z.core.$strip>;
|
|
933
|
-
last_trade_price: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<import("decimal.js").Decimal, string | number>>;
|
|
934
|
-
taker_fees_tenth_bps: z.ZodArray<z.ZodNumber>;
|
|
935
|
-
maker_fees_tenth_bps: z.ZodArray<z.ZodNumber>;
|
|
936
944
|
trigger_nodes_store: z.ZodObject<{
|
|
937
945
|
inactive: z.ZodPipe<z.ZodRecord<z.ZodString, z.ZodPipe<z.ZodRecord<z.ZodString, z.ZodAny>, z.ZodTransform<Map<string, any>, Record<string, any>>>>, z.ZodTransform<Map<string, Map<string, any>>, Record<string, Map<string, any>>>>;
|
|
938
946
|
active: z.ZodArray<z.ZodAny>;
|
|
@@ -943,9 +951,17 @@ export declare const Schemas: {
|
|
|
943
951
|
is_active: z.ZodBoolean;
|
|
944
952
|
base_asset_id: z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<number, string | number>>, z.ZodNumber>;
|
|
945
953
|
quote_asset_id: z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<number, string | number>>, z.ZodNumber>;
|
|
946
|
-
|
|
947
|
-
|
|
948
|
-
|
|
954
|
+
config: z.ZodObject<{
|
|
955
|
+
base_min_lot_size: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<import("decimal.js").Decimal, string | number>>;
|
|
956
|
+
quote_min_lot_size: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<import("decimal.js").Decimal, string | number>>;
|
|
957
|
+
max_orders_per_side: z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<number, string | number>>, z.ZodNumber>;
|
|
958
|
+
max_orders_per_user: z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<number, string | number>>, z.ZodNumber>;
|
|
959
|
+
max_trigger_orders_per_user: z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<number, string | number>>, z.ZodNumber>;
|
|
960
|
+
taker_fees_tenth_bps: z.ZodArray<z.ZodNumber>;
|
|
961
|
+
maker_fees_tenth_bps: z.ZodArray<z.ZodNumber>;
|
|
962
|
+
max_trigger_order_price_deviation_ratio: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<import("decimal.js").Decimal, string | number>>;
|
|
963
|
+
}, z.core.$strip>;
|
|
964
|
+
last_trade_price: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<import("decimal.js").Decimal, string | number>>;
|
|
949
965
|
orderbook: z.ZodObject<{
|
|
950
966
|
bids: z.ZodPipe<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
951
967
|
nodes: z.ZodArray<z.ZodObject<{
|
|
@@ -986,9 +1002,10 @@ export declare const Schemas: {
|
|
|
986
1002
|
total_size: import("decimal.js").Decimal;
|
|
987
1003
|
}>>>;
|
|
988
1004
|
}, z.core.$strip>;
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
|
|
1005
|
+
trigger_nodes_store: z.ZodObject<{
|
|
1006
|
+
inactive: z.ZodPipe<z.ZodRecord<z.ZodString, z.ZodPipe<z.ZodRecord<z.ZodString, z.ZodAny>, z.ZodTransform<Map<string, any>, Record<string, any>>>>, z.ZodTransform<Map<string, Map<string, any>>, Record<string, Map<string, any>>>>;
|
|
1007
|
+
active: z.ZodArray<z.ZodAny>;
|
|
1008
|
+
}, z.core.$strip>;
|
|
992
1009
|
}, z.core.$strip>;
|
|
993
1010
|
readonly ExecutionIds: z.ZodObject<{
|
|
994
1011
|
last_order_id: z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBigInt]>, z.ZodTransform<bigint, string | number | bigint>>, z.ZodBigInt>;
|
|
@@ -1042,12 +1059,10 @@ export declare const ResponseSchemas: {
|
|
|
1042
1059
|
readonly ExchangeInfo: z.ZodObject<{
|
|
1043
1060
|
value: z.ZodNullable<z.ZodObject<{
|
|
1044
1061
|
global_config: z.ZodObject<{
|
|
1045
|
-
|
|
1062
|
+
max_orders_per_user: z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBigInt]>, z.ZodTransform<bigint, string | number | bigint>>, z.ZodBigInt>;
|
|
1063
|
+
max_trigger_orders_per_user: z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBigInt]>, z.ZodTransform<bigint, string | number | bigint>>, z.ZodBigInt>;
|
|
1046
1064
|
max_orders_per_batch_msg: z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBigInt]>, z.ZodTransform<bigint, string | number | bigint>>, z.ZodBigInt>;
|
|
1047
|
-
|
|
1048
|
-
max_order_price_deviation_from_mark_price: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<import("decimal.js").Decimal, string | number>>;
|
|
1049
|
-
max_tpsl_price_deviation_from_mark_price: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<import("decimal.js").Decimal, string | number>>;
|
|
1050
|
-
max_tpsl_price_deviation_between_order_and_trigger: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<import("decimal.js").Decimal, string | number>>;
|
|
1065
|
+
max_trigger_orders_to_execute_per_msg: z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBigInt]>, z.ZodTransform<bigint, string | number | bigint>>, z.ZodBigInt>;
|
|
1051
1066
|
}, z.core.$strip>;
|
|
1052
1067
|
admins: z.ZodObject<{
|
|
1053
1068
|
protocol: z.ZodString;
|
|
@@ -1182,7 +1197,7 @@ export declare const ResponseSchemas: {
|
|
|
1182
1197
|
asset_id: z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<number, string | number>>, z.ZodNumber>;
|
|
1183
1198
|
is_active: z.ZodBoolean;
|
|
1184
1199
|
last_update_timestamp: z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBigInt]>, z.ZodTransform<bigint, string | number | bigint>>, z.ZodBigInt>;
|
|
1185
|
-
|
|
1200
|
+
rate_config: z.ZodObject<{
|
|
1186
1201
|
optimal_utilisation_rate: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<import("decimal.js").Decimal, string | number>>;
|
|
1187
1202
|
min_borrow_rate: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<import("decimal.js").Decimal, string | number>>;
|
|
1188
1203
|
optimal_borrow_rate: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<import("decimal.js").Decimal, string | number>>;
|
|
@@ -1201,7 +1216,7 @@ export declare const ResponseSchemas: {
|
|
|
1201
1216
|
asset_id: number;
|
|
1202
1217
|
is_active: boolean;
|
|
1203
1218
|
last_update_timestamp: bigint;
|
|
1204
|
-
|
|
1219
|
+
rate_config: {
|
|
1205
1220
|
optimal_utilisation_rate: import("decimal.js").Decimal;
|
|
1206
1221
|
min_borrow_rate: import("decimal.js").Decimal;
|
|
1207
1222
|
optimal_borrow_rate: import("decimal.js").Decimal;
|
|
@@ -1220,7 +1235,7 @@ export declare const ResponseSchemas: {
|
|
|
1220
1235
|
asset_id: number;
|
|
1221
1236
|
is_active: boolean;
|
|
1222
1237
|
last_update_timestamp: bigint;
|
|
1223
|
-
|
|
1238
|
+
rate_config: {
|
|
1224
1239
|
optimal_utilisation_rate: import("decimal.js").Decimal;
|
|
1225
1240
|
min_borrow_rate: import("decimal.js").Decimal;
|
|
1226
1241
|
optimal_borrow_rate: import("decimal.js").Decimal;
|
|
@@ -2557,9 +2572,22 @@ export declare const ResponseSchemas: {
|
|
|
2557
2572
|
market: z.ZodObject<{
|
|
2558
2573
|
market_id: z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<number, string | number>>, z.ZodNumber>;
|
|
2559
2574
|
is_active: z.ZodBoolean;
|
|
2560
|
-
|
|
2561
|
-
|
|
2562
|
-
|
|
2575
|
+
config: z.ZodObject<{
|
|
2576
|
+
min_tick_size: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<import("decimal.js").Decimal, string | number>>;
|
|
2577
|
+
min_lot_size: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<import("decimal.js").Decimal, string | number>>;
|
|
2578
|
+
max_oi_notional: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<import("decimal.js").Decimal, string | number>>;
|
|
2579
|
+
impact_margin: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<import("decimal.js").Decimal, string | number>>;
|
|
2580
|
+
max_orders_per_side: z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<number, string | number>>, z.ZodNumber>;
|
|
2581
|
+
max_orders_per_user: z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<number, string | number>>, z.ZodNumber>;
|
|
2582
|
+
max_trigger_orders_per_user: z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<number, string | number>>, z.ZodNumber>;
|
|
2583
|
+
taker_fees_tenth_bps: z.ZodArray<z.ZodNumber>;
|
|
2584
|
+
maker_fees_tenth_bps: z.ZodArray<z.ZodNumber>;
|
|
2585
|
+
max_order_to_mark_price_deviation_ratio: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<import("decimal.js").Decimal, string | number>>;
|
|
2586
|
+
max_tpsl_to_mark_price_deviation_ratio: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<import("decimal.js").Decimal, string | number>>;
|
|
2587
|
+
max_tpsl_price_deviation_ratio: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<import("decimal.js").Decimal, string | number>>;
|
|
2588
|
+
}, z.core.$strip>;
|
|
2589
|
+
current_open_interest_lots: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<import("decimal.js").Decimal, string | number>>;
|
|
2590
|
+
last_trade_price: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<import("decimal.js").Decimal, string | number>>;
|
|
2563
2591
|
orderbook: z.ZodObject<{
|
|
2564
2592
|
bids: z.ZodPipe<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
2565
2593
|
nodes: z.ZodArray<z.ZodObject<{
|
|
@@ -2600,9 +2628,6 @@ export declare const ResponseSchemas: {
|
|
|
2600
2628
|
total_size: import("decimal.js").Decimal;
|
|
2601
2629
|
}>>>;
|
|
2602
2630
|
}, z.core.$strip>;
|
|
2603
|
-
last_trade_price: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<import("decimal.js").Decimal, string | number>>;
|
|
2604
|
-
taker_fees_tenth_bps: z.ZodArray<z.ZodNumber>;
|
|
2605
|
-
maker_fees_tenth_bps: z.ZodArray<z.ZodNumber>;
|
|
2606
2631
|
trigger_nodes_store: z.ZodObject<{
|
|
2607
2632
|
inactive: z.ZodPipe<z.ZodRecord<z.ZodString, z.ZodPipe<z.ZodRecord<z.ZodString, z.ZodAny>, z.ZodTransform<Map<string, any>, Record<string, any>>>>, z.ZodTransform<Map<string, Map<string, any>>, Record<string, Map<string, any>>>>;
|
|
2608
2633
|
active: z.ZodArray<z.ZodAny>;
|
|
@@ -2613,9 +2638,22 @@ export declare const ResponseSchemas: {
|
|
|
2613
2638
|
found: z.ZodPipe<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
2614
2639
|
market_id: z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<number, string | number>>, z.ZodNumber>;
|
|
2615
2640
|
is_active: z.ZodBoolean;
|
|
2616
|
-
|
|
2617
|
-
|
|
2618
|
-
|
|
2641
|
+
config: z.ZodObject<{
|
|
2642
|
+
min_tick_size: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<import("decimal.js").Decimal, string | number>>;
|
|
2643
|
+
min_lot_size: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<import("decimal.js").Decimal, string | number>>;
|
|
2644
|
+
max_oi_notional: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<import("decimal.js").Decimal, string | number>>;
|
|
2645
|
+
impact_margin: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<import("decimal.js").Decimal, string | number>>;
|
|
2646
|
+
max_orders_per_side: z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<number, string | number>>, z.ZodNumber>;
|
|
2647
|
+
max_orders_per_user: z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<number, string | number>>, z.ZodNumber>;
|
|
2648
|
+
max_trigger_orders_per_user: z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<number, string | number>>, z.ZodNumber>;
|
|
2649
|
+
taker_fees_tenth_bps: z.ZodArray<z.ZodNumber>;
|
|
2650
|
+
maker_fees_tenth_bps: z.ZodArray<z.ZodNumber>;
|
|
2651
|
+
max_order_to_mark_price_deviation_ratio: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<import("decimal.js").Decimal, string | number>>;
|
|
2652
|
+
max_tpsl_to_mark_price_deviation_ratio: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<import("decimal.js").Decimal, string | number>>;
|
|
2653
|
+
max_tpsl_price_deviation_ratio: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<import("decimal.js").Decimal, string | number>>;
|
|
2654
|
+
}, z.core.$strip>;
|
|
2655
|
+
current_open_interest_lots: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<import("decimal.js").Decimal, string | number>>;
|
|
2656
|
+
last_trade_price: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<import("decimal.js").Decimal, string | number>>;
|
|
2619
2657
|
orderbook: z.ZodObject<{
|
|
2620
2658
|
bids: z.ZodPipe<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
2621
2659
|
nodes: z.ZodArray<z.ZodObject<{
|
|
@@ -2656,9 +2694,6 @@ export declare const ResponseSchemas: {
|
|
|
2656
2694
|
total_size: import("decimal.js").Decimal;
|
|
2657
2695
|
}>>>;
|
|
2658
2696
|
}, z.core.$strip>;
|
|
2659
|
-
last_trade_price: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<import("decimal.js").Decimal, string | number>>;
|
|
2660
|
-
taker_fees_tenth_bps: z.ZodArray<z.ZodNumber>;
|
|
2661
|
-
maker_fees_tenth_bps: z.ZodArray<z.ZodNumber>;
|
|
2662
2697
|
trigger_nodes_store: z.ZodObject<{
|
|
2663
2698
|
inactive: z.ZodPipe<z.ZodRecord<z.ZodString, z.ZodPipe<z.ZodRecord<z.ZodString, z.ZodAny>, z.ZodTransform<Map<string, any>, Record<string, any>>>>, z.ZodTransform<Map<string, Map<string, any>>, Record<string, Map<string, any>>>>;
|
|
2664
2699
|
active: z.ZodArray<z.ZodAny>;
|
|
@@ -2666,9 +2701,22 @@ export declare const ResponseSchemas: {
|
|
|
2666
2701
|
}, z.core.$strip>>, z.ZodTransform<Map<number, {
|
|
2667
2702
|
market_id: number;
|
|
2668
2703
|
is_active: boolean;
|
|
2669
|
-
|
|
2670
|
-
|
|
2671
|
-
|
|
2704
|
+
config: {
|
|
2705
|
+
min_tick_size: import("decimal.js").Decimal;
|
|
2706
|
+
min_lot_size: import("decimal.js").Decimal;
|
|
2707
|
+
max_oi_notional: import("decimal.js").Decimal;
|
|
2708
|
+
impact_margin: import("decimal.js").Decimal;
|
|
2709
|
+
max_orders_per_side: number;
|
|
2710
|
+
max_orders_per_user: number;
|
|
2711
|
+
max_trigger_orders_per_user: number;
|
|
2712
|
+
taker_fees_tenth_bps: number[];
|
|
2713
|
+
maker_fees_tenth_bps: number[];
|
|
2714
|
+
max_order_to_mark_price_deviation_ratio: import("decimal.js").Decimal;
|
|
2715
|
+
max_tpsl_to_mark_price_deviation_ratio: import("decimal.js").Decimal;
|
|
2716
|
+
max_tpsl_price_deviation_ratio: import("decimal.js").Decimal;
|
|
2717
|
+
};
|
|
2718
|
+
current_open_interest_lots: import("decimal.js").Decimal;
|
|
2719
|
+
last_trade_price: import("decimal.js").Decimal;
|
|
2672
2720
|
orderbook: {
|
|
2673
2721
|
bids: Map<string, {
|
|
2674
2722
|
nodes: {
|
|
@@ -2685,9 +2733,6 @@ export declare const ResponseSchemas: {
|
|
|
2685
2733
|
total_size: import("decimal.js").Decimal;
|
|
2686
2734
|
}>;
|
|
2687
2735
|
};
|
|
2688
|
-
last_trade_price: import("decimal.js").Decimal;
|
|
2689
|
-
taker_fees_tenth_bps: number[];
|
|
2690
|
-
maker_fees_tenth_bps: number[];
|
|
2691
2736
|
trigger_nodes_store: {
|
|
2692
2737
|
inactive: Map<string, Map<string, any>>;
|
|
2693
2738
|
active: any[];
|
|
@@ -2695,9 +2740,22 @@ export declare const ResponseSchemas: {
|
|
|
2695
2740
|
}>, Record<string, {
|
|
2696
2741
|
market_id: number;
|
|
2697
2742
|
is_active: boolean;
|
|
2698
|
-
|
|
2699
|
-
|
|
2700
|
-
|
|
2743
|
+
config: {
|
|
2744
|
+
min_tick_size: import("decimal.js").Decimal;
|
|
2745
|
+
min_lot_size: import("decimal.js").Decimal;
|
|
2746
|
+
max_oi_notional: import("decimal.js").Decimal;
|
|
2747
|
+
impact_margin: import("decimal.js").Decimal;
|
|
2748
|
+
max_orders_per_side: number;
|
|
2749
|
+
max_orders_per_user: number;
|
|
2750
|
+
max_trigger_orders_per_user: number;
|
|
2751
|
+
taker_fees_tenth_bps: number[];
|
|
2752
|
+
maker_fees_tenth_bps: number[];
|
|
2753
|
+
max_order_to_mark_price_deviation_ratio: import("decimal.js").Decimal;
|
|
2754
|
+
max_tpsl_to_mark_price_deviation_ratio: import("decimal.js").Decimal;
|
|
2755
|
+
max_tpsl_price_deviation_ratio: import("decimal.js").Decimal;
|
|
2756
|
+
};
|
|
2757
|
+
current_open_interest_lots: import("decimal.js").Decimal;
|
|
2758
|
+
last_trade_price: import("decimal.js").Decimal;
|
|
2701
2759
|
orderbook: {
|
|
2702
2760
|
bids: Map<string, {
|
|
2703
2761
|
nodes: {
|
|
@@ -2714,9 +2772,6 @@ export declare const ResponseSchemas: {
|
|
|
2714
2772
|
total_size: import("decimal.js").Decimal;
|
|
2715
2773
|
}>;
|
|
2716
2774
|
};
|
|
2717
|
-
last_trade_price: import("decimal.js").Decimal;
|
|
2718
|
-
taker_fees_tenth_bps: number[];
|
|
2719
|
-
maker_fees_tenth_bps: number[];
|
|
2720
2775
|
trigger_nodes_store: {
|
|
2721
2776
|
inactive: Map<string, Map<string, any>>;
|
|
2722
2777
|
active: any[];
|
|
@@ -2731,9 +2786,17 @@ export declare const ResponseSchemas: {
|
|
|
2731
2786
|
is_active: z.ZodBoolean;
|
|
2732
2787
|
base_asset_id: z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<number, string | number>>, z.ZodNumber>;
|
|
2733
2788
|
quote_asset_id: z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<number, string | number>>, z.ZodNumber>;
|
|
2734
|
-
|
|
2735
|
-
|
|
2736
|
-
|
|
2789
|
+
config: z.ZodObject<{
|
|
2790
|
+
base_min_lot_size: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<import("decimal.js").Decimal, string | number>>;
|
|
2791
|
+
quote_min_lot_size: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<import("decimal.js").Decimal, string | number>>;
|
|
2792
|
+
max_orders_per_side: z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<number, string | number>>, z.ZodNumber>;
|
|
2793
|
+
max_orders_per_user: z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<number, string | number>>, z.ZodNumber>;
|
|
2794
|
+
max_trigger_orders_per_user: z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<number, string | number>>, z.ZodNumber>;
|
|
2795
|
+
taker_fees_tenth_bps: z.ZodArray<z.ZodNumber>;
|
|
2796
|
+
maker_fees_tenth_bps: z.ZodArray<z.ZodNumber>;
|
|
2797
|
+
max_trigger_order_price_deviation_ratio: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<import("decimal.js").Decimal, string | number>>;
|
|
2798
|
+
}, z.core.$strip>;
|
|
2799
|
+
last_trade_price: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<import("decimal.js").Decimal, string | number>>;
|
|
2737
2800
|
orderbook: z.ZodObject<{
|
|
2738
2801
|
bids: z.ZodPipe<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
2739
2802
|
nodes: z.ZodArray<z.ZodObject<{
|
|
@@ -2774,9 +2837,10 @@ export declare const ResponseSchemas: {
|
|
|
2774
2837
|
total_size: import("decimal.js").Decimal;
|
|
2775
2838
|
}>>>;
|
|
2776
2839
|
}, z.core.$strip>;
|
|
2777
|
-
|
|
2778
|
-
|
|
2779
|
-
|
|
2840
|
+
trigger_nodes_store: z.ZodObject<{
|
|
2841
|
+
inactive: z.ZodPipe<z.ZodRecord<z.ZodString, z.ZodPipe<z.ZodRecord<z.ZodString, z.ZodAny>, z.ZodTransform<Map<string, any>, Record<string, any>>>>, z.ZodTransform<Map<string, Map<string, any>>, Record<string, Map<string, any>>>>;
|
|
2842
|
+
active: z.ZodArray<z.ZodAny>;
|
|
2843
|
+
}, z.core.$strip>;
|
|
2780
2844
|
}, z.core.$strip>;
|
|
2781
2845
|
}, z.core.$strip>;
|
|
2782
2846
|
readonly SpotMarketBulk: z.ZodObject<{
|
|
@@ -2785,9 +2849,17 @@ export declare const ResponseSchemas: {
|
|
|
2785
2849
|
is_active: z.ZodBoolean;
|
|
2786
2850
|
base_asset_id: z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<number, string | number>>, z.ZodNumber>;
|
|
2787
2851
|
quote_asset_id: z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<number, string | number>>, z.ZodNumber>;
|
|
2788
|
-
|
|
2789
|
-
|
|
2790
|
-
|
|
2852
|
+
config: z.ZodObject<{
|
|
2853
|
+
base_min_lot_size: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<import("decimal.js").Decimal, string | number>>;
|
|
2854
|
+
quote_min_lot_size: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<import("decimal.js").Decimal, string | number>>;
|
|
2855
|
+
max_orders_per_side: z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<number, string | number>>, z.ZodNumber>;
|
|
2856
|
+
max_orders_per_user: z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<number, string | number>>, z.ZodNumber>;
|
|
2857
|
+
max_trigger_orders_per_user: z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<number, string | number>>, z.ZodNumber>;
|
|
2858
|
+
taker_fees_tenth_bps: z.ZodArray<z.ZodNumber>;
|
|
2859
|
+
maker_fees_tenth_bps: z.ZodArray<z.ZodNumber>;
|
|
2860
|
+
max_trigger_order_price_deviation_ratio: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<import("decimal.js").Decimal, string | number>>;
|
|
2861
|
+
}, z.core.$strip>;
|
|
2862
|
+
last_trade_price: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<import("decimal.js").Decimal, string | number>>;
|
|
2791
2863
|
orderbook: z.ZodObject<{
|
|
2792
2864
|
bids: z.ZodPipe<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
2793
2865
|
nodes: z.ZodArray<z.ZodObject<{
|
|
@@ -2828,17 +2900,26 @@ export declare const ResponseSchemas: {
|
|
|
2828
2900
|
total_size: import("decimal.js").Decimal;
|
|
2829
2901
|
}>>>;
|
|
2830
2902
|
}, z.core.$strip>;
|
|
2831
|
-
|
|
2832
|
-
|
|
2833
|
-
|
|
2903
|
+
trigger_nodes_store: z.ZodObject<{
|
|
2904
|
+
inactive: z.ZodPipe<z.ZodRecord<z.ZodString, z.ZodPipe<z.ZodRecord<z.ZodString, z.ZodAny>, z.ZodTransform<Map<string, any>, Record<string, any>>>>, z.ZodTransform<Map<string, Map<string, any>>, Record<string, Map<string, any>>>>;
|
|
2905
|
+
active: z.ZodArray<z.ZodAny>;
|
|
2906
|
+
}, z.core.$strip>;
|
|
2834
2907
|
}, z.core.$strip>>, z.ZodTransform<Map<number, {
|
|
2835
2908
|
market_id: number;
|
|
2836
2909
|
is_active: boolean;
|
|
2837
2910
|
base_asset_id: number;
|
|
2838
2911
|
quote_asset_id: number;
|
|
2839
|
-
|
|
2840
|
-
|
|
2841
|
-
|
|
2912
|
+
config: {
|
|
2913
|
+
base_min_lot_size: import("decimal.js").Decimal;
|
|
2914
|
+
quote_min_lot_size: import("decimal.js").Decimal;
|
|
2915
|
+
max_orders_per_side: number;
|
|
2916
|
+
max_orders_per_user: number;
|
|
2917
|
+
max_trigger_orders_per_user: number;
|
|
2918
|
+
taker_fees_tenth_bps: number[];
|
|
2919
|
+
maker_fees_tenth_bps: number[];
|
|
2920
|
+
max_trigger_order_price_deviation_ratio: import("decimal.js").Decimal;
|
|
2921
|
+
};
|
|
2922
|
+
last_trade_price: import("decimal.js").Decimal;
|
|
2842
2923
|
orderbook: {
|
|
2843
2924
|
bids: Map<string, {
|
|
2844
2925
|
nodes: {
|
|
@@ -2855,17 +2936,26 @@ export declare const ResponseSchemas: {
|
|
|
2855
2936
|
total_size: import("decimal.js").Decimal;
|
|
2856
2937
|
}>;
|
|
2857
2938
|
};
|
|
2858
|
-
|
|
2859
|
-
|
|
2860
|
-
|
|
2939
|
+
trigger_nodes_store: {
|
|
2940
|
+
inactive: Map<string, Map<string, any>>;
|
|
2941
|
+
active: any[];
|
|
2942
|
+
};
|
|
2861
2943
|
}>, Record<string, {
|
|
2862
2944
|
market_id: number;
|
|
2863
2945
|
is_active: boolean;
|
|
2864
2946
|
base_asset_id: number;
|
|
2865
2947
|
quote_asset_id: number;
|
|
2866
|
-
|
|
2867
|
-
|
|
2868
|
-
|
|
2948
|
+
config: {
|
|
2949
|
+
base_min_lot_size: import("decimal.js").Decimal;
|
|
2950
|
+
quote_min_lot_size: import("decimal.js").Decimal;
|
|
2951
|
+
max_orders_per_side: number;
|
|
2952
|
+
max_orders_per_user: number;
|
|
2953
|
+
max_trigger_orders_per_user: number;
|
|
2954
|
+
taker_fees_tenth_bps: number[];
|
|
2955
|
+
maker_fees_tenth_bps: number[];
|
|
2956
|
+
max_trigger_order_price_deviation_ratio: import("decimal.js").Decimal;
|
|
2957
|
+
};
|
|
2958
|
+
last_trade_price: import("decimal.js").Decimal;
|
|
2869
2959
|
orderbook: {
|
|
2870
2960
|
bids: Map<string, {
|
|
2871
2961
|
nodes: {
|
|
@@ -2882,9 +2972,10 @@ export declare const ResponseSchemas: {
|
|
|
2882
2972
|
total_size: import("decimal.js").Decimal;
|
|
2883
2973
|
}>;
|
|
2884
2974
|
};
|
|
2885
|
-
|
|
2886
|
-
|
|
2887
|
-
|
|
2975
|
+
trigger_nodes_store: {
|
|
2976
|
+
inactive: Map<string, Map<string, any>>;
|
|
2977
|
+
active: any[];
|
|
2978
|
+
};
|
|
2888
2979
|
}>>>;
|
|
2889
2980
|
not_found: z.ZodArray<z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<number, string | number>>, z.ZodNumber>>;
|
|
2890
2981
|
}, z.core.$strip>;
|