zklighter-perps 1.0.263 → 1.0.265
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/models/AccountAsset.ts +9 -0
- package/models/AccountPosition.ts +9 -0
- package/models/Asset.ts +9 -0
- package/models/OrderBook.ts +9 -0
- package/models/PerpsOrderBookDetail.ts +36 -0
- package/models/RiskParameters.ts +9 -0
- package/models/SpotOrderBookDetail.ts +9 -0
- package/openapi.json +54 -4
- package/package.json +1 -1
package/models/AccountAsset.ts
CHANGED
|
@@ -55,6 +55,12 @@ export interface AccountAsset {
|
|
|
55
55
|
* @memberof AccountAsset
|
|
56
56
|
*/
|
|
57
57
|
margin_balance: string;
|
|
58
|
+
/**
|
|
59
|
+
*
|
|
60
|
+
* @type {string}
|
|
61
|
+
* @memberof AccountAsset
|
|
62
|
+
*/
|
|
63
|
+
multiplier: string;
|
|
58
64
|
}
|
|
59
65
|
|
|
60
66
|
|
|
@@ -78,6 +84,7 @@ export function instanceOfAccountAsset(value: object): value is AccountAsset {
|
|
|
78
84
|
if (!('locked_balance' in value) || value['locked_balance'] === undefined) return false;
|
|
79
85
|
if (!('margin_mode' in value) || value['margin_mode'] === undefined) return false;
|
|
80
86
|
if (!('margin_balance' in value) || value['margin_balance'] === undefined) return false;
|
|
87
|
+
if (!('multiplier' in value) || value['multiplier'] === undefined) return false;
|
|
81
88
|
return true;
|
|
82
89
|
}
|
|
83
90
|
|
|
@@ -97,6 +104,7 @@ export function AccountAssetFromJSONTyped(json: any, ignoreDiscriminator: boolea
|
|
|
97
104
|
'locked_balance': json['locked_balance'],
|
|
98
105
|
'margin_mode': json['margin_mode'],
|
|
99
106
|
'margin_balance': json['margin_balance'],
|
|
107
|
+
'multiplier': json['multiplier'],
|
|
100
108
|
};
|
|
101
109
|
}
|
|
102
110
|
|
|
@@ -112,6 +120,7 @@ export function AccountAssetToJSON(value?: AccountAsset | null): any {
|
|
|
112
120
|
'locked_balance': value['locked_balance'],
|
|
113
121
|
'margin_mode': value['margin_mode'],
|
|
114
122
|
'margin_balance': value['margin_balance'],
|
|
123
|
+
'multiplier': value['multiplier'],
|
|
115
124
|
};
|
|
116
125
|
}
|
|
117
126
|
|
|
@@ -109,6 +109,12 @@ export interface AccountPosition {
|
|
|
109
109
|
* @memberof AccountPosition
|
|
110
110
|
*/
|
|
111
111
|
margin_mode: number;
|
|
112
|
+
/**
|
|
113
|
+
*
|
|
114
|
+
* @type {number}
|
|
115
|
+
* @memberof AccountPosition
|
|
116
|
+
*/
|
|
117
|
+
margin_set_flag: number;
|
|
112
118
|
/**
|
|
113
119
|
*
|
|
114
120
|
* @type {string}
|
|
@@ -141,6 +147,7 @@ export function instanceOfAccountPosition(value: object): value is AccountPositi
|
|
|
141
147
|
if (!('realized_pnl' in value) || value['realized_pnl'] === undefined) return false;
|
|
142
148
|
if (!('liquidation_price' in value) || value['liquidation_price'] === undefined) return false;
|
|
143
149
|
if (!('margin_mode' in value) || value['margin_mode'] === undefined) return false;
|
|
150
|
+
if (!('margin_set_flag' in value) || value['margin_set_flag'] === undefined) return false;
|
|
144
151
|
if (!('allocated_margin' in value) || value['allocated_margin'] === undefined) return false;
|
|
145
152
|
if (!('total_discount' in value) || value['total_discount'] === undefined) return false;
|
|
146
153
|
return true;
|
|
@@ -171,6 +178,7 @@ export function AccountPositionFromJSONTyped(json: any, ignoreDiscriminator: boo
|
|
|
171
178
|
'liquidation_price': json['liquidation_price'],
|
|
172
179
|
'total_funding_paid_out': json['total_funding_paid_out'] == null ? undefined : json['total_funding_paid_out'],
|
|
173
180
|
'margin_mode': json['margin_mode'],
|
|
181
|
+
'margin_set_flag': json['margin_set_flag'],
|
|
174
182
|
'allocated_margin': json['allocated_margin'],
|
|
175
183
|
'total_discount': json['total_discount'],
|
|
176
184
|
};
|
|
@@ -197,6 +205,7 @@ export function AccountPositionToJSON(value?: AccountPosition | null): any {
|
|
|
197
205
|
'liquidation_price': value['liquidation_price'],
|
|
198
206
|
'total_funding_paid_out': value['total_funding_paid_out'],
|
|
199
207
|
'margin_mode': value['margin_mode'],
|
|
208
|
+
'margin_set_flag': value['margin_set_flag'],
|
|
200
209
|
'allocated_margin': value['allocated_margin'],
|
|
201
210
|
'total_discount': value['total_discount'],
|
|
202
211
|
};
|
package/models/Asset.ts
CHANGED
|
@@ -121,6 +121,12 @@ export interface Asset {
|
|
|
121
121
|
* @memberof Asset
|
|
122
122
|
*/
|
|
123
123
|
total_supplied: string;
|
|
124
|
+
/**
|
|
125
|
+
*
|
|
126
|
+
* @type {string}
|
|
127
|
+
* @memberof Asset
|
|
128
|
+
*/
|
|
129
|
+
multiplier: string;
|
|
124
130
|
}
|
|
125
131
|
|
|
126
132
|
|
|
@@ -155,6 +161,7 @@ export function instanceOfAsset(value: object): value is Asset {
|
|
|
155
161
|
if (!('global_supply_cap' in value) || value['global_supply_cap'] === undefined) return false;
|
|
156
162
|
if (!('user_supply_cap' in value) || value['user_supply_cap'] === undefined) return false;
|
|
157
163
|
if (!('total_supplied' in value) || value['total_supplied'] === undefined) return false;
|
|
164
|
+
if (!('multiplier' in value) || value['multiplier'] === undefined) return false;
|
|
158
165
|
return true;
|
|
159
166
|
}
|
|
160
167
|
|
|
@@ -185,6 +192,7 @@ export function AssetFromJSONTyped(json: any, ignoreDiscriminator: boolean): Ass
|
|
|
185
192
|
'global_supply_cap': json['global_supply_cap'],
|
|
186
193
|
'user_supply_cap': json['user_supply_cap'],
|
|
187
194
|
'total_supplied': json['total_supplied'],
|
|
195
|
+
'multiplier': json['multiplier'],
|
|
188
196
|
};
|
|
189
197
|
}
|
|
190
198
|
|
|
@@ -211,6 +219,7 @@ export function AssetToJSON(value?: Asset | null): any {
|
|
|
211
219
|
'global_supply_cap': value['global_supply_cap'],
|
|
212
220
|
'user_supply_cap': value['user_supply_cap'],
|
|
213
221
|
'total_supplied': value['total_supplied'],
|
|
222
|
+
'multiplier': value['multiplier'],
|
|
214
223
|
};
|
|
215
224
|
}
|
|
216
225
|
|
package/models/OrderBook.ts
CHANGED
|
@@ -127,6 +127,12 @@ export interface OrderBook {
|
|
|
127
127
|
* @memberof OrderBook
|
|
128
128
|
*/
|
|
129
129
|
created_at: string;
|
|
130
|
+
/**
|
|
131
|
+
*
|
|
132
|
+
* @type {string}
|
|
133
|
+
* @memberof OrderBook
|
|
134
|
+
*/
|
|
135
|
+
multiplier: string;
|
|
130
136
|
}
|
|
131
137
|
|
|
132
138
|
|
|
@@ -171,6 +177,7 @@ export function instanceOfOrderBook(value: object): value is OrderBook {
|
|
|
171
177
|
if (!('supported_price_decimals' in value) || value['supported_price_decimals'] === undefined) return false;
|
|
172
178
|
if (!('supported_quote_decimals' in value) || value['supported_quote_decimals'] === undefined) return false;
|
|
173
179
|
if (!('created_at' in value) || value['created_at'] === undefined) return false;
|
|
180
|
+
if (!('multiplier' in value) || value['multiplier'] === undefined) return false;
|
|
174
181
|
return true;
|
|
175
182
|
}
|
|
176
183
|
|
|
@@ -202,6 +209,7 @@ export function OrderBookFromJSONTyped(json: any, ignoreDiscriminator: boolean):
|
|
|
202
209
|
'supported_price_decimals': json['supported_price_decimals'],
|
|
203
210
|
'supported_quote_decimals': json['supported_quote_decimals'],
|
|
204
211
|
'created_at': json['created_at'],
|
|
212
|
+
'multiplier': json['multiplier'],
|
|
205
213
|
};
|
|
206
214
|
}
|
|
207
215
|
|
|
@@ -229,6 +237,7 @@ export function OrderBookToJSON(value?: OrderBook | null): any {
|
|
|
229
237
|
'supported_price_decimals': value['supported_price_decimals'],
|
|
230
238
|
'supported_quote_decimals': value['supported_quote_decimals'],
|
|
231
239
|
'created_at': value['created_at'],
|
|
240
|
+
'multiplier': value['multiplier'],
|
|
232
241
|
};
|
|
233
242
|
}
|
|
234
243
|
|
|
@@ -134,6 +134,12 @@ export interface PerpsOrderBookDetail {
|
|
|
134
134
|
* @memberof PerpsOrderBookDetail
|
|
135
135
|
*/
|
|
136
136
|
created_at: string;
|
|
137
|
+
/**
|
|
138
|
+
*
|
|
139
|
+
* @type {string}
|
|
140
|
+
* @memberof PerpsOrderBookDetail
|
|
141
|
+
*/
|
|
142
|
+
multiplier: string;
|
|
137
143
|
/**
|
|
138
144
|
*
|
|
139
145
|
* @type {number}
|
|
@@ -176,6 +182,18 @@ export interface PerpsOrderBookDetail {
|
|
|
176
182
|
* @memberof PerpsOrderBookDetail
|
|
177
183
|
*/
|
|
178
184
|
closeout_margin_fraction: number;
|
|
185
|
+
/**
|
|
186
|
+
*
|
|
187
|
+
* @type {string}
|
|
188
|
+
* @memberof PerpsOrderBookDetail
|
|
189
|
+
*/
|
|
190
|
+
mark_price: string;
|
|
191
|
+
/**
|
|
192
|
+
*
|
|
193
|
+
* @type {string}
|
|
194
|
+
* @memberof PerpsOrderBookDetail
|
|
195
|
+
*/
|
|
196
|
+
index_price: string;
|
|
179
197
|
/**
|
|
180
198
|
*
|
|
181
199
|
* @type {number}
|
|
@@ -242,6 +260,12 @@ export interface PerpsOrderBookDetail {
|
|
|
242
260
|
* @memberof PerpsOrderBookDetail
|
|
243
261
|
*/
|
|
244
262
|
strategy_index: number;
|
|
263
|
+
/**
|
|
264
|
+
*
|
|
265
|
+
* @type {number}
|
|
266
|
+
* @memberof PerpsOrderBookDetail
|
|
267
|
+
*/
|
|
268
|
+
market_flags: number;
|
|
245
269
|
/**
|
|
246
270
|
*
|
|
247
271
|
* @type {string}
|
|
@@ -304,6 +328,7 @@ export function instanceOfPerpsOrderBookDetail(value: object): value is PerpsOrd
|
|
|
304
328
|
if (!('supported_price_decimals' in value) || value['supported_price_decimals'] === undefined) return false;
|
|
305
329
|
if (!('supported_quote_decimals' in value) || value['supported_quote_decimals'] === undefined) return false;
|
|
306
330
|
if (!('created_at' in value) || value['created_at'] === undefined) return false;
|
|
331
|
+
if (!('multiplier' in value) || value['multiplier'] === undefined) return false;
|
|
307
332
|
if (!('size_decimals' in value) || value['size_decimals'] === undefined) return false;
|
|
308
333
|
if (!('price_decimals' in value) || value['price_decimals'] === undefined) return false;
|
|
309
334
|
if (!('quote_multiplier' in value) || value['quote_multiplier'] === undefined) return false;
|
|
@@ -311,6 +336,8 @@ export function instanceOfPerpsOrderBookDetail(value: object): value is PerpsOrd
|
|
|
311
336
|
if (!('min_initial_margin_fraction' in value) || value['min_initial_margin_fraction'] === undefined) return false;
|
|
312
337
|
if (!('maintenance_margin_fraction' in value) || value['maintenance_margin_fraction'] === undefined) return false;
|
|
313
338
|
if (!('closeout_margin_fraction' in value) || value['closeout_margin_fraction'] === undefined) return false;
|
|
339
|
+
if (!('mark_price' in value) || value['mark_price'] === undefined) return false;
|
|
340
|
+
if (!('index_price' in value) || value['index_price'] === undefined) return false;
|
|
314
341
|
if (!('last_trade_price' in value) || value['last_trade_price'] === undefined) return false;
|
|
315
342
|
if (!('daily_trades_count' in value) || value['daily_trades_count'] === undefined) return false;
|
|
316
343
|
if (!('daily_base_token_volume' in value) || value['daily_base_token_volume'] === undefined) return false;
|
|
@@ -322,6 +349,7 @@ export function instanceOfPerpsOrderBookDetail(value: object): value is PerpsOrd
|
|
|
322
349
|
if (!('daily_chart' in value) || value['daily_chart'] === undefined) return false;
|
|
323
350
|
if (!('market_config' in value) || value['market_config'] === undefined) return false;
|
|
324
351
|
if (!('strategy_index' in value) || value['strategy_index'] === undefined) return false;
|
|
352
|
+
if (!('market_flags' in value) || value['market_flags'] === undefined) return false;
|
|
325
353
|
if (!('funding_clamp_small' in value) || value['funding_clamp_small'] === undefined) return false;
|
|
326
354
|
if (!('funding_clamp_big' in value) || value['funding_clamp_big'] === undefined) return false;
|
|
327
355
|
if (!('base_interest_rate' in value) || value['base_interest_rate'] === undefined) return false;
|
|
@@ -356,6 +384,7 @@ export function PerpsOrderBookDetailFromJSONTyped(json: any, ignoreDiscriminator
|
|
|
356
384
|
'supported_price_decimals': json['supported_price_decimals'],
|
|
357
385
|
'supported_quote_decimals': json['supported_quote_decimals'],
|
|
358
386
|
'created_at': json['created_at'],
|
|
387
|
+
'multiplier': json['multiplier'],
|
|
359
388
|
'size_decimals': json['size_decimals'],
|
|
360
389
|
'price_decimals': json['price_decimals'],
|
|
361
390
|
'quote_multiplier': json['quote_multiplier'],
|
|
@@ -363,6 +392,8 @@ export function PerpsOrderBookDetailFromJSONTyped(json: any, ignoreDiscriminator
|
|
|
363
392
|
'min_initial_margin_fraction': json['min_initial_margin_fraction'],
|
|
364
393
|
'maintenance_margin_fraction': json['maintenance_margin_fraction'],
|
|
365
394
|
'closeout_margin_fraction': json['closeout_margin_fraction'],
|
|
395
|
+
'mark_price': json['mark_price'],
|
|
396
|
+
'index_price': json['index_price'],
|
|
366
397
|
'last_trade_price': json['last_trade_price'],
|
|
367
398
|
'daily_trades_count': json['daily_trades_count'],
|
|
368
399
|
'daily_base_token_volume': json['daily_base_token_volume'],
|
|
@@ -374,6 +405,7 @@ export function PerpsOrderBookDetailFromJSONTyped(json: any, ignoreDiscriminator
|
|
|
374
405
|
'daily_chart': json['daily_chart'],
|
|
375
406
|
'market_config': MarketConfigFromJSON(json['market_config']),
|
|
376
407
|
'strategy_index': json['strategy_index'],
|
|
408
|
+
'market_flags': json['market_flags'],
|
|
377
409
|
'funding_clamp_small': json['funding_clamp_small'],
|
|
378
410
|
'funding_clamp_big': json['funding_clamp_big'],
|
|
379
411
|
'base_interest_rate': json['base_interest_rate'],
|
|
@@ -404,6 +436,7 @@ export function PerpsOrderBookDetailToJSON(value?: PerpsOrderBookDetail | null):
|
|
|
404
436
|
'supported_price_decimals': value['supported_price_decimals'],
|
|
405
437
|
'supported_quote_decimals': value['supported_quote_decimals'],
|
|
406
438
|
'created_at': value['created_at'],
|
|
439
|
+
'multiplier': value['multiplier'],
|
|
407
440
|
'size_decimals': value['size_decimals'],
|
|
408
441
|
'price_decimals': value['price_decimals'],
|
|
409
442
|
'quote_multiplier': value['quote_multiplier'],
|
|
@@ -411,6 +444,8 @@ export function PerpsOrderBookDetailToJSON(value?: PerpsOrderBookDetail | null):
|
|
|
411
444
|
'min_initial_margin_fraction': value['min_initial_margin_fraction'],
|
|
412
445
|
'maintenance_margin_fraction': value['maintenance_margin_fraction'],
|
|
413
446
|
'closeout_margin_fraction': value['closeout_margin_fraction'],
|
|
447
|
+
'mark_price': value['mark_price'],
|
|
448
|
+
'index_price': value['index_price'],
|
|
414
449
|
'last_trade_price': value['last_trade_price'],
|
|
415
450
|
'daily_trades_count': value['daily_trades_count'],
|
|
416
451
|
'daily_base_token_volume': value['daily_base_token_volume'],
|
|
@@ -422,6 +457,7 @@ export function PerpsOrderBookDetailToJSON(value?: PerpsOrderBookDetail | null):
|
|
|
422
457
|
'daily_chart': value['daily_chart'],
|
|
423
458
|
'market_config': MarketConfigToJSON(value['market_config']),
|
|
424
459
|
'strategy_index': value['strategy_index'],
|
|
460
|
+
'market_flags': value['market_flags'],
|
|
425
461
|
'funding_clamp_small': value['funding_clamp_small'],
|
|
426
462
|
'funding_clamp_big': value['funding_clamp_big'],
|
|
427
463
|
'base_interest_rate': value['base_interest_rate'],
|
package/models/RiskParameters.ts
CHANGED
|
@@ -73,6 +73,12 @@ export interface RiskParameters {
|
|
|
73
73
|
* @memberof RiskParameters
|
|
74
74
|
*/
|
|
75
75
|
usdc_portfolio_value: string;
|
|
76
|
+
/**
|
|
77
|
+
*
|
|
78
|
+
* @type {string}
|
|
79
|
+
* @memberof RiskParameters
|
|
80
|
+
*/
|
|
81
|
+
total_portfolio_value: string;
|
|
76
82
|
}
|
|
77
83
|
|
|
78
84
|
/**
|
|
@@ -88,6 +94,7 @@ export function instanceOfRiskParameters(value: object): value is RiskParameters
|
|
|
88
94
|
if (!('collateral' in value) || value['collateral'] === undefined) return false;
|
|
89
95
|
if (!('usdc_collateral_with_funding' in value) || value['usdc_collateral_with_funding'] === undefined) return false;
|
|
90
96
|
if (!('usdc_portfolio_value' in value) || value['usdc_portfolio_value'] === undefined) return false;
|
|
97
|
+
if (!('total_portfolio_value' in value) || value['total_portfolio_value'] === undefined) return false;
|
|
91
98
|
return true;
|
|
92
99
|
}
|
|
93
100
|
|
|
@@ -110,6 +117,7 @@ export function RiskParametersFromJSONTyped(json: any, ignoreDiscriminator: bool
|
|
|
110
117
|
'collateral': json['collateral'],
|
|
111
118
|
'usdc_collateral_with_funding': json['usdc_collateral_with_funding'],
|
|
112
119
|
'usdc_portfolio_value': json['usdc_portfolio_value'],
|
|
120
|
+
'total_portfolio_value': json['total_portfolio_value'],
|
|
113
121
|
};
|
|
114
122
|
}
|
|
115
123
|
|
|
@@ -128,6 +136,7 @@ export function RiskParametersToJSON(value?: RiskParameters | null): any {
|
|
|
128
136
|
'collateral': value['collateral'],
|
|
129
137
|
'usdc_collateral_with_funding': value['usdc_collateral_with_funding'],
|
|
130
138
|
'usdc_portfolio_value': value['usdc_portfolio_value'],
|
|
139
|
+
'total_portfolio_value': value['total_portfolio_value'],
|
|
131
140
|
};
|
|
132
141
|
}
|
|
133
142
|
|
|
@@ -127,6 +127,12 @@ export interface SpotOrderBookDetail {
|
|
|
127
127
|
* @memberof SpotOrderBookDetail
|
|
128
128
|
*/
|
|
129
129
|
created_at: string;
|
|
130
|
+
/**
|
|
131
|
+
*
|
|
132
|
+
* @type {string}
|
|
133
|
+
* @memberof SpotOrderBookDetail
|
|
134
|
+
*/
|
|
135
|
+
multiplier: string;
|
|
130
136
|
/**
|
|
131
137
|
*
|
|
132
138
|
* @type {number}
|
|
@@ -231,6 +237,7 @@ export function instanceOfSpotOrderBookDetail(value: object): value is SpotOrder
|
|
|
231
237
|
if (!('supported_price_decimals' in value) || value['supported_price_decimals'] === undefined) return false;
|
|
232
238
|
if (!('supported_quote_decimals' in value) || value['supported_quote_decimals'] === undefined) return false;
|
|
233
239
|
if (!('created_at' in value) || value['created_at'] === undefined) return false;
|
|
240
|
+
if (!('multiplier' in value) || value['multiplier'] === undefined) return false;
|
|
234
241
|
if (!('size_decimals' in value) || value['size_decimals'] === undefined) return false;
|
|
235
242
|
if (!('price_decimals' in value) || value['price_decimals'] === undefined) return false;
|
|
236
243
|
if (!('last_trade_price' in value) || value['last_trade_price'] === undefined) return false;
|
|
@@ -272,6 +279,7 @@ export function SpotOrderBookDetailFromJSONTyped(json: any, ignoreDiscriminator:
|
|
|
272
279
|
'supported_price_decimals': json['supported_price_decimals'],
|
|
273
280
|
'supported_quote_decimals': json['supported_quote_decimals'],
|
|
274
281
|
'created_at': json['created_at'],
|
|
282
|
+
'multiplier': json['multiplier'],
|
|
275
283
|
'size_decimals': json['size_decimals'],
|
|
276
284
|
'price_decimals': json['price_decimals'],
|
|
277
285
|
'last_trade_price': json['last_trade_price'],
|
|
@@ -309,6 +317,7 @@ export function SpotOrderBookDetailToJSON(value?: SpotOrderBookDetail | null): a
|
|
|
309
317
|
'supported_price_decimals': value['supported_price_decimals'],
|
|
310
318
|
'supported_quote_decimals': value['supported_quote_decimals'],
|
|
311
319
|
'created_at': value['created_at'],
|
|
320
|
+
'multiplier': value['multiplier'],
|
|
312
321
|
'size_decimals': value['size_decimals'],
|
|
313
322
|
'price_decimals': value['price_decimals'],
|
|
314
323
|
'last_trade_price': value['last_trade_price'],
|
package/openapi.json
CHANGED
|
@@ -5315,6 +5315,10 @@
|
|
|
5315
5315
|
"margin_balance": {
|
|
5316
5316
|
"type": "string",
|
|
5317
5317
|
"example": "1000"
|
|
5318
|
+
},
|
|
5319
|
+
"multiplier": {
|
|
5320
|
+
"type": "string",
|
|
5321
|
+
"example": "1.000000000000000000"
|
|
5318
5322
|
}
|
|
5319
5323
|
},
|
|
5320
5324
|
"title": "AccountAsset",
|
|
@@ -5324,7 +5328,8 @@
|
|
|
5324
5328
|
"balance",
|
|
5325
5329
|
"locked_balance",
|
|
5326
5330
|
"margin_mode",
|
|
5327
|
-
"margin_balance"
|
|
5331
|
+
"margin_balance",
|
|
5332
|
+
"multiplier"
|
|
5328
5333
|
]
|
|
5329
5334
|
},
|
|
5330
5335
|
"AccountLimits": {
|
|
@@ -5697,6 +5702,11 @@
|
|
|
5697
5702
|
"format": "int32",
|
|
5698
5703
|
"example": "1"
|
|
5699
5704
|
},
|
|
5705
|
+
"margin_set_flag": {
|
|
5706
|
+
"type": "integer",
|
|
5707
|
+
"format": "int32",
|
|
5708
|
+
"example": "1"
|
|
5709
|
+
},
|
|
5700
5710
|
"allocated_margin": {
|
|
5701
5711
|
"type": "string",
|
|
5702
5712
|
"example": "46342"
|
|
@@ -5722,6 +5732,7 @@
|
|
|
5722
5732
|
"realized_pnl",
|
|
5723
5733
|
"liquidation_price",
|
|
5724
5734
|
"margin_mode",
|
|
5735
|
+
"margin_set_flag",
|
|
5725
5736
|
"allocated_margin",
|
|
5726
5737
|
"total_discount"
|
|
5727
5738
|
]
|
|
@@ -6147,6 +6158,10 @@
|
|
|
6147
6158
|
"total_supplied": {
|
|
6148
6159
|
"type": "string",
|
|
6149
6160
|
"example": "100"
|
|
6161
|
+
},
|
|
6162
|
+
"multiplier": {
|
|
6163
|
+
"type": "string",
|
|
6164
|
+
"example": "1.000000000000000000"
|
|
6150
6165
|
}
|
|
6151
6166
|
},
|
|
6152
6167
|
"title": "Asset",
|
|
@@ -6167,7 +6182,8 @@
|
|
|
6167
6182
|
"liquidation_fee",
|
|
6168
6183
|
"global_supply_cap",
|
|
6169
6184
|
"user_supply_cap",
|
|
6170
|
-
"total_supplied"
|
|
6185
|
+
"total_supplied",
|
|
6186
|
+
"multiplier"
|
|
6171
6187
|
]
|
|
6172
6188
|
},
|
|
6173
6189
|
"AssetDetails": {
|
|
@@ -8910,6 +8926,10 @@
|
|
|
8910
8926
|
"created_at": {
|
|
8911
8927
|
"type": "string",
|
|
8912
8928
|
"example": "1640995200000"
|
|
8929
|
+
},
|
|
8930
|
+
"multiplier": {
|
|
8931
|
+
"type": "string",
|
|
8932
|
+
"example": "1.000000000000000000"
|
|
8913
8933
|
}
|
|
8914
8934
|
},
|
|
8915
8935
|
"title": "OrderBook",
|
|
@@ -8931,7 +8951,8 @@
|
|
|
8931
8951
|
"supported_size_decimals",
|
|
8932
8952
|
"supported_price_decimals",
|
|
8933
8953
|
"supported_quote_decimals",
|
|
8934
|
-
"created_at"
|
|
8954
|
+
"created_at",
|
|
8955
|
+
"multiplier"
|
|
8935
8956
|
]
|
|
8936
8957
|
},
|
|
8937
8958
|
"OrderBookDepth": {
|
|
@@ -9501,6 +9522,10 @@
|
|
|
9501
9522
|
"type": "string",
|
|
9502
9523
|
"example": "1640995200000"
|
|
9503
9524
|
},
|
|
9525
|
+
"multiplier": {
|
|
9526
|
+
"type": "string",
|
|
9527
|
+
"example": "1.000000000000000000"
|
|
9528
|
+
},
|
|
9504
9529
|
"size_decimals": {
|
|
9505
9530
|
"type": "integer",
|
|
9506
9531
|
"format": "uint8",
|
|
@@ -9536,6 +9561,14 @@
|
|
|
9536
9561
|
"format": "uin16",
|
|
9537
9562
|
"example": "100"
|
|
9538
9563
|
},
|
|
9564
|
+
"mark_price": {
|
|
9565
|
+
"type": "string",
|
|
9566
|
+
"example": "3024.66"
|
|
9567
|
+
},
|
|
9568
|
+
"index_price": {
|
|
9569
|
+
"type": "string",
|
|
9570
|
+
"example": "3024.66"
|
|
9571
|
+
},
|
|
9539
9572
|
"last_trade_price": {
|
|
9540
9573
|
"type": "number",
|
|
9541
9574
|
"format": "double",
|
|
@@ -9591,6 +9624,10 @@
|
|
|
9591
9624
|
"type": "integer",
|
|
9592
9625
|
"format": "uint8"
|
|
9593
9626
|
},
|
|
9627
|
+
"market_flags": {
|
|
9628
|
+
"type": "integer",
|
|
9629
|
+
"format": "int64"
|
|
9630
|
+
},
|
|
9594
9631
|
"funding_clamp_small": {
|
|
9595
9632
|
"type": "string",
|
|
9596
9633
|
"example": "0.005"
|
|
@@ -9624,6 +9661,7 @@
|
|
|
9624
9661
|
"supported_price_decimals",
|
|
9625
9662
|
"supported_quote_decimals",
|
|
9626
9663
|
"created_at",
|
|
9664
|
+
"multiplier",
|
|
9627
9665
|
"size_decimals",
|
|
9628
9666
|
"price_decimals",
|
|
9629
9667
|
"quote_multiplier",
|
|
@@ -9631,6 +9669,8 @@
|
|
|
9631
9669
|
"min_initial_margin_fraction",
|
|
9632
9670
|
"maintenance_margin_fraction",
|
|
9633
9671
|
"closeout_margin_fraction",
|
|
9672
|
+
"mark_price",
|
|
9673
|
+
"index_price",
|
|
9634
9674
|
"last_trade_price",
|
|
9635
9675
|
"daily_trades_count",
|
|
9636
9676
|
"daily_base_token_volume",
|
|
@@ -9642,6 +9682,7 @@
|
|
|
9642
9682
|
"daily_chart",
|
|
9643
9683
|
"market_config",
|
|
9644
9684
|
"strategy_index",
|
|
9685
|
+
"market_flags",
|
|
9645
9686
|
"funding_clamp_small",
|
|
9646
9687
|
"funding_clamp_big",
|
|
9647
9688
|
"base_interest_rate"
|
|
@@ -13747,6 +13788,9 @@
|
|
|
13747
13788
|
},
|
|
13748
13789
|
"usdc_portfolio_value": {
|
|
13749
13790
|
"type": "string"
|
|
13791
|
+
},
|
|
13792
|
+
"total_portfolio_value": {
|
|
13793
|
+
"type": "string"
|
|
13750
13794
|
}
|
|
13751
13795
|
},
|
|
13752
13796
|
"title": "RiskParameters",
|
|
@@ -13759,7 +13803,8 @@
|
|
|
13759
13803
|
"total_account_liquidation_threshold",
|
|
13760
13804
|
"collateral",
|
|
13761
13805
|
"usdc_collateral_with_funding",
|
|
13762
|
-
"usdc_portfolio_value"
|
|
13806
|
+
"usdc_portfolio_value",
|
|
13807
|
+
"total_portfolio_value"
|
|
13763
13808
|
]
|
|
13764
13809
|
},
|
|
13765
13810
|
"RollingContractResp": {
|
|
@@ -14082,6 +14127,10 @@
|
|
|
14082
14127
|
"type": "string",
|
|
14083
14128
|
"example": "1640995200000"
|
|
14084
14129
|
},
|
|
14130
|
+
"multiplier": {
|
|
14131
|
+
"type": "string",
|
|
14132
|
+
"example": "1.000000000000000000"
|
|
14133
|
+
},
|
|
14085
14134
|
"size_decimals": {
|
|
14086
14135
|
"type": "integer",
|
|
14087
14136
|
"format": "uint8",
|
|
@@ -14156,6 +14205,7 @@
|
|
|
14156
14205
|
"supported_price_decimals",
|
|
14157
14206
|
"supported_quote_decimals",
|
|
14158
14207
|
"created_at",
|
|
14208
|
+
"multiplier",
|
|
14159
14209
|
"size_decimals",
|
|
14160
14210
|
"price_decimals",
|
|
14161
14211
|
"last_trade_price",
|