@deriverse/kit 1.0.28 → 1.0.30
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/index.d.ts +0 -1
- package/dist/index.js +19 -24
- package/dist/instruction_models.d.ts +4 -3
- package/dist/instruction_models.js +18 -11
- package/dist/logs_models.d.ts +43 -4
- package/dist/logs_models.js +57 -4
- package/dist/structure_models.d.ts +202 -244
- package/dist/structure_models.js +222 -263
- package/dist/types.d.ts +2 -16
- package/dist/types.js +18 -16
- package/package.json +1 -1
|
@@ -7,23 +7,11 @@ export declare enum OrderType {
|
|
|
7
7
|
}
|
|
8
8
|
export declare enum AccountType {
|
|
9
9
|
clientCommunity = 35,
|
|
10
|
-
clientDrv = 32,
|
|
11
10
|
clientPrimary = 31,
|
|
12
11
|
community = 34,
|
|
13
|
-
pdf = 33,
|
|
14
|
-
futuresAskOrders = 29,
|
|
15
|
-
futuresAsksTree = 27,
|
|
16
|
-
futuresBidOrders = 28,
|
|
17
|
-
futuresBidsTree = 26,
|
|
18
|
-
futuresClientAccounts = 23,
|
|
19
|
-
futuresClientInfos = 24,
|
|
20
|
-
futuresClientInfos2 = 25,
|
|
21
|
-
futuresLines = 30,
|
|
22
|
-
futuresMaps = 22,
|
|
23
12
|
holder = 1,
|
|
24
13
|
root = 2,
|
|
25
14
|
instr = 7,
|
|
26
|
-
instrTrace = 8,
|
|
27
15
|
spot15MCandles = 20,
|
|
28
16
|
spot1MCandles = 19,
|
|
29
17
|
spotAskOrders = 17,
|
|
@@ -205,14 +193,6 @@ export declare class HolderAccountHeaderModel {
|
|
|
205
193
|
operatorsCount: number;
|
|
206
194
|
static fromBuffer(data: Base64EncodedDataResponse, offset?: number): HolderAccountHeaderModel;
|
|
207
195
|
}
|
|
208
|
-
export declare class PdfAccountHeaderModel {
|
|
209
|
-
static readonly LENGTH: number;
|
|
210
|
-
static readonly OFFSET_TAG = 0;
|
|
211
|
-
static readonly OFFSET_VERSION = 4;
|
|
212
|
-
tag: number;
|
|
213
|
-
version: number;
|
|
214
|
-
static fromBuffer(data: Base64EncodedDataResponse, offset?: number): PdfAccountHeaderModel;
|
|
215
|
-
}
|
|
216
196
|
export declare class OperatorModel {
|
|
217
197
|
static readonly LENGTH: number;
|
|
218
198
|
static readonly OFFSET_OPERATOR_ADDRESS = 0;
|
|
@@ -231,18 +211,6 @@ export declare class LineQuotesModel {
|
|
|
231
211
|
qty: number;
|
|
232
212
|
static fromBuffer(data: Base64EncodedDataResponse, offset?: number): LineQuotesModel;
|
|
233
213
|
}
|
|
234
|
-
export declare class TraceAccountHeaderModel {
|
|
235
|
-
static readonly LENGTH: number;
|
|
236
|
-
static readonly OFFSET_TAG = 0;
|
|
237
|
-
static readonly OFFSET_VERSION = 4;
|
|
238
|
-
static readonly OFFSET_ID = 8;
|
|
239
|
-
static readonly OFFSET_COUNT = 12;
|
|
240
|
-
tag: number;
|
|
241
|
-
version: number;
|
|
242
|
-
id: number;
|
|
243
|
-
count: number;
|
|
244
|
-
static fromBuffer(data: Base64EncodedDataResponse, offset?: number): TraceAccountHeaderModel;
|
|
245
|
-
}
|
|
246
214
|
export declare class CandleModel {
|
|
247
215
|
static readonly LENGTH: number;
|
|
248
216
|
static readonly OFFSET_OPEN = 0;
|
|
@@ -287,143 +255,157 @@ export declare class InstrAccountHeaderModel {
|
|
|
287
255
|
static readonly OFFSET_ASSET_TOKEN_ID = 12;
|
|
288
256
|
static readonly OFFSET_CRNCY_TOKEN_ID = 16;
|
|
289
257
|
static readonly OFFSET_MASK = 20;
|
|
290
|
-
static readonly
|
|
291
|
-
static readonly
|
|
292
|
-
static readonly
|
|
293
|
-
static readonly
|
|
294
|
-
static readonly
|
|
295
|
-
static readonly
|
|
296
|
-
static readonly
|
|
297
|
-
static readonly
|
|
298
|
-
static readonly
|
|
299
|
-
static readonly
|
|
300
|
-
static readonly
|
|
301
|
-
static readonly
|
|
302
|
-
static readonly
|
|
303
|
-
static readonly
|
|
304
|
-
static readonly
|
|
305
|
-
static readonly
|
|
306
|
-
static readonly
|
|
307
|
-
static readonly
|
|
308
|
-
static readonly
|
|
309
|
-
static readonly
|
|
310
|
-
static readonly
|
|
311
|
-
static readonly
|
|
312
|
-
static readonly
|
|
313
|
-
static readonly
|
|
314
|
-
static readonly
|
|
315
|
-
static readonly
|
|
316
|
-
static readonly
|
|
317
|
-
static readonly
|
|
318
|
-
static readonly
|
|
319
|
-
static readonly
|
|
320
|
-
static readonly
|
|
321
|
-
static readonly
|
|
322
|
-
static readonly
|
|
323
|
-
static readonly
|
|
324
|
-
static readonly
|
|
325
|
-
static readonly
|
|
326
|
-
static readonly
|
|
327
|
-
static readonly
|
|
328
|
-
static readonly
|
|
329
|
-
static readonly
|
|
330
|
-
static readonly
|
|
331
|
-
static readonly
|
|
332
|
-
static readonly
|
|
333
|
-
static readonly
|
|
334
|
-
static readonly
|
|
335
|
-
static readonly
|
|
336
|
-
static readonly
|
|
337
|
-
static readonly
|
|
338
|
-
static readonly
|
|
339
|
-
static readonly
|
|
340
|
-
static readonly
|
|
341
|
-
static readonly
|
|
342
|
-
static readonly
|
|
343
|
-
static readonly
|
|
344
|
-
static readonly
|
|
345
|
-
static readonly
|
|
346
|
-
static readonly
|
|
347
|
-
static readonly
|
|
348
|
-
static readonly
|
|
349
|
-
static readonly
|
|
350
|
-
static readonly
|
|
351
|
-
static readonly
|
|
352
|
-
static readonly
|
|
353
|
-
static readonly
|
|
354
|
-
static readonly
|
|
355
|
-
static readonly
|
|
356
|
-
static readonly
|
|
357
|
-
static readonly
|
|
358
|
-
static readonly
|
|
359
|
-
static readonly
|
|
360
|
-
static readonly
|
|
361
|
-
static readonly
|
|
362
|
-
static readonly
|
|
363
|
-
static readonly
|
|
364
|
-
static readonly
|
|
365
|
-
static readonly
|
|
366
|
-
static readonly
|
|
367
|
-
static readonly
|
|
368
|
-
static readonly
|
|
369
|
-
static readonly
|
|
370
|
-
static readonly
|
|
371
|
-
static readonly
|
|
372
|
-
static readonly
|
|
373
|
-
static readonly
|
|
374
|
-
static readonly
|
|
375
|
-
static readonly
|
|
376
|
-
static readonly
|
|
377
|
-
static readonly
|
|
378
|
-
static readonly
|
|
379
|
-
static readonly
|
|
380
|
-
static readonly
|
|
381
|
-
static readonly
|
|
382
|
-
static readonly
|
|
383
|
-
static readonly
|
|
384
|
-
static readonly
|
|
385
|
-
static readonly
|
|
386
|
-
static readonly
|
|
387
|
-
static readonly
|
|
388
|
-
static readonly
|
|
389
|
-
static readonly
|
|
390
|
-
static readonly
|
|
391
|
-
static readonly
|
|
392
|
-
static readonly
|
|
393
|
-
static readonly
|
|
394
|
-
static readonly
|
|
395
|
-
static readonly
|
|
396
|
-
static readonly
|
|
397
|
-
static readonly
|
|
398
|
-
static readonly
|
|
399
|
-
static readonly
|
|
400
|
-
static readonly
|
|
401
|
-
static readonly
|
|
402
|
-
static readonly
|
|
403
|
-
static readonly
|
|
404
|
-
static readonly
|
|
405
|
-
static readonly
|
|
406
|
-
static readonly
|
|
407
|
-
static readonly
|
|
408
|
-
static readonly
|
|
409
|
-
static readonly OFFSET_LIQUIDATION_THRESHOLD =
|
|
410
|
-
static readonly OFFSET_SEATS_RESERVE =
|
|
411
|
-
static readonly OFFSET_RESERVED_VALUE1 =
|
|
412
|
-
static readonly OFFSET_RESERVED_VALUE2 =
|
|
413
|
-
static readonly OFFSET_RESERVED_VALUE3 =
|
|
414
|
-
static readonly OFFSET_RESERVED_VALUE4 =
|
|
415
|
-
static readonly OFFSET_RESERVED_VALUE5 =
|
|
416
|
-
static readonly OFFSET_RESERVED_VALUE6 =
|
|
417
|
-
static readonly OFFSET_RESERVED_VALUE7 =
|
|
418
|
-
static readonly OFFSET_RESERVED_VALUE8 =
|
|
419
|
-
static readonly OFFSET_RESERVED_VALUE9 =
|
|
420
|
-
static readonly OFFSET_RESERVED_VALUE10 =
|
|
258
|
+
static readonly OFFSET_ASSET_TOKENS = 24;
|
|
259
|
+
static readonly OFFSET_CRNCY_TOKENS = 32;
|
|
260
|
+
static readonly OFFSET_PS = 40;
|
|
261
|
+
static readonly OFFSET_POOL_FEES = 48;
|
|
262
|
+
static readonly OFFSET_LAST_PX = 56;
|
|
263
|
+
static readonly OFFSET_LAST_CLOSE = 64;
|
|
264
|
+
static readonly OFFSET_ALLTIME_TRADES = 72;
|
|
265
|
+
static readonly OFFSET_PREV_DAY_TRADES = 80;
|
|
266
|
+
static readonly OFFSET_DAY_VOLATILITY = 88;
|
|
267
|
+
static readonly OFFSET_PERP_LAST_PX = 96;
|
|
268
|
+
static readonly OFFSET_PERP_LAST_CLOSE = 104;
|
|
269
|
+
static readonly OFFSET_PERP_ALLTIME_TRADES = 112;
|
|
270
|
+
static readonly OFFSET_PERP_PREV_DAY_TRADES = 120;
|
|
271
|
+
static readonly OFFSET_PERP_OPEN_INT = 128;
|
|
272
|
+
static readonly OFFSET_MAPS_ADDRESS = 136;
|
|
273
|
+
static readonly OFFSET_PERP_MAPS_ADDRESS = 168;
|
|
274
|
+
static readonly OFFSET_LUT_ADDRESS = 200;
|
|
275
|
+
static readonly OFFSET_FEED_ID = 232;
|
|
276
|
+
static readonly OFFSET_DRV_COUNT = 264;
|
|
277
|
+
static readonly OFFSET_ASSET_TOKEN_DECS_COUNT = 268;
|
|
278
|
+
static readonly OFFSET_CRNCY_TOKEN_DECS_COUNT = 272;
|
|
279
|
+
static readonly OFFSET_SLOT = 276;
|
|
280
|
+
static readonly OFFSET_CREATOR = 280;
|
|
281
|
+
static readonly OFFSET_LAST_TIME = 312;
|
|
282
|
+
static readonly OFFSET_DISTRIB_TIME = 316;
|
|
283
|
+
static readonly OFFSET_BASE_CRNCY_INDEX = 320;
|
|
284
|
+
static readonly OFFSET_INSTANCE_COUNTER = 324;
|
|
285
|
+
static readonly OFFSET_VARIANCE_COUNTER = 328;
|
|
286
|
+
static readonly OFFSET_BIDS_TREE_NODES_COUNT = 332;
|
|
287
|
+
static readonly OFFSET_BIDS_TREE_LINES_ENTRY = 336;
|
|
288
|
+
static readonly OFFSET_BIDS_TREE_ORDERS_ENTRY = 340;
|
|
289
|
+
static readonly OFFSET_ASKS_TREE_NODES_COUNT = 344;
|
|
290
|
+
static readonly OFFSET_ASKS_TREE_LINES_ENTRY = 348;
|
|
291
|
+
static readonly OFFSET_ASKS_TREE_ORDERS_ENTRY = 352;
|
|
292
|
+
static readonly OFFSET_BID_LINES_BEGIN = 356;
|
|
293
|
+
static readonly OFFSET_BID_LINES_END = 360;
|
|
294
|
+
static readonly OFFSET_BID_LINES_COUNT = 364;
|
|
295
|
+
static readonly OFFSET_ASK_LINES_BEGIN = 368;
|
|
296
|
+
static readonly OFFSET_ASK_LINES_END = 372;
|
|
297
|
+
static readonly OFFSET_ASK_LINES_COUNT = 376;
|
|
298
|
+
static readonly OFFSET_BID_ORDERS_COUNT = 380;
|
|
299
|
+
static readonly OFFSET_ASK_ORDERS_COUNT = 384;
|
|
300
|
+
static readonly OFFSET_FIXING_TIME = 388;
|
|
301
|
+
static readonly OFFSET_FIXING_CRNCY_TOKENS = 392;
|
|
302
|
+
static readonly OFFSET_FIXING_ASSET_TOKENS = 400;
|
|
303
|
+
static readonly OFFSET_COUNTER = 408;
|
|
304
|
+
static readonly OFFSET_PROTOCOL_FEES = 416;
|
|
305
|
+
static readonly OFFSET_HITS_COUNTER = 424;
|
|
306
|
+
static readonly OFFSET_LAST_ASSET_TOKENS = 432;
|
|
307
|
+
static readonly OFFSET_LAST_CRNCY_TOKENS = 440;
|
|
308
|
+
static readonly OFFSET_PERP_UNDERLYING_PX = 448;
|
|
309
|
+
static readonly OFFSET_BEST_BID = 456;
|
|
310
|
+
static readonly OFFSET_BEST_ASK = 464;
|
|
311
|
+
static readonly OFFSET_FIXING_PX = 472;
|
|
312
|
+
static readonly OFFSET_VARIANCE = 480;
|
|
313
|
+
static readonly OFFSET_AVG_SPREAD = 488;
|
|
314
|
+
static readonly OFFSET_LAST_SPREAD = 496;
|
|
315
|
+
static readonly OFFSET_LAST_SPREAD_TIME = 504;
|
|
316
|
+
static readonly OFFSET_TOTAL_SPREAD_PERIOD = 508;
|
|
317
|
+
static readonly OFFSET_DAY_ASSET_TOKENS = 512;
|
|
318
|
+
static readonly OFFSET_DAY_CRNCY_TOKENS = 520;
|
|
319
|
+
static readonly OFFSET_DAY_LOW = 528;
|
|
320
|
+
static readonly OFFSET_DAY_HIGH = 536;
|
|
321
|
+
static readonly OFFSET_PREV_DAY_ASSET_TOKENS = 544;
|
|
322
|
+
static readonly OFFSET_PREV_DAY_CRNCY_TOKENS = 552;
|
|
323
|
+
static readonly OFFSET_ALLTIME_ASSET_TOKENS = 560;
|
|
324
|
+
static readonly OFFSET_ALLTIME_CRNCY_TOKENS = 568;
|
|
325
|
+
static readonly OFFSET_DAY_TRADES = 576;
|
|
326
|
+
static readonly OFFSET_LP_DAY_TRADES = 580;
|
|
327
|
+
static readonly OFFSET_LP_PREV_DAY_TRADES = 584;
|
|
328
|
+
static readonly OFFSET_CREATION_TIME = 588;
|
|
329
|
+
static readonly OFFSET_DEC_FACTOR = 592;
|
|
330
|
+
static readonly OFFSET_PERP_CLIENTS_COUNT = 600;
|
|
331
|
+
static readonly OFFSET_PERP_SLOT = 604;
|
|
332
|
+
static readonly OFFSET_PERP_TIME = 608;
|
|
333
|
+
static readonly OFFSET_PERP_FUNDING_RATE_SLOT = 612;
|
|
334
|
+
static readonly OFFSET_PERP_FUNDING_RATE_TIME = 616;
|
|
335
|
+
static readonly OFFSET_PERP_LONG_PX_TREE_NODES_COUNT = 620;
|
|
336
|
+
static readonly OFFSET_PERP_LONG_PX_TREE_ENTRY = 624;
|
|
337
|
+
static readonly OFFSET_PERP_SHORT_PX_TREE_NODES_COUNT = 628;
|
|
338
|
+
static readonly OFFSET_PERP_SHORT_PX_TREE_ENTRY = 632;
|
|
339
|
+
static readonly OFFSET_PERP_REBALANCE_TIME_TREE_NODES_COUNT = 636;
|
|
340
|
+
static readonly OFFSET_PERP_REBALANCE_TIME_TREE_ENTRY = 640;
|
|
341
|
+
static readonly OFFSET_PERP_BIDS_TREE_NODES_COUNT = 644;
|
|
342
|
+
static readonly OFFSET_PERP_BIDS_TREE_LINES_ENTRY = 648;
|
|
343
|
+
static readonly OFFSET_PERP_BIDS_TREE_ORDERS_ENTRY = 652;
|
|
344
|
+
static readonly OFFSET_PERP_ASKS_TREE_NODES_COUNT = 656;
|
|
345
|
+
static readonly OFFSET_PERP_ASKS_TREE_LINES_ENTRY = 660;
|
|
346
|
+
static readonly OFFSET_PERP_ASKS_TREE_ORDERS_ENTRY = 664;
|
|
347
|
+
static readonly OFFSET_PERP_BID_LINES_BEGIN = 668;
|
|
348
|
+
static readonly OFFSET_PERP_BID_LINES_END = 672;
|
|
349
|
+
static readonly OFFSET_PERP_BID_LINES_COUNT = 676;
|
|
350
|
+
static readonly OFFSET_PERP_ASK_LINES_BEGIN = 680;
|
|
351
|
+
static readonly OFFSET_PERP_ASK_LINES_END = 684;
|
|
352
|
+
static readonly OFFSET_PERP_ASK_LINES_COUNT = 688;
|
|
353
|
+
static readonly OFFSET_PERP_BID_ORDERS_COUNT = 692;
|
|
354
|
+
static readonly OFFSET_PERP_ASK_ORDERS_COUNT = 696;
|
|
355
|
+
static readonly OFFSET_PERP_DAY_TRADES = 700;
|
|
356
|
+
static readonly OFFSET_PERP_SPOT_PRICE_FOR_WITHDROWAL = 704;
|
|
357
|
+
static readonly OFFSET_PERP_SOC_LOSS_LONG_RATE = 712;
|
|
358
|
+
static readonly OFFSET_PERP_SOC_LOSS_SHORT_RATE = 720;
|
|
359
|
+
static readonly OFFSET_PERP_PRICE_DELTA = 728;
|
|
360
|
+
static readonly OFFSET_PERP_FUNDING_RATE = 736;
|
|
361
|
+
static readonly OFFSET_PERP_FUNDING_FUNDS = 744;
|
|
362
|
+
static readonly OFFSET_PERP_SOC_LOSS_FUNDS = 752;
|
|
363
|
+
static readonly OFFSET_PERP_INSURANCE_FUND = 760;
|
|
364
|
+
static readonly OFFSET_PERP_LAST_ASSET_TOKENS = 768;
|
|
365
|
+
static readonly OFFSET_PERP_LAST_CRNCY_TOKENS = 776;
|
|
366
|
+
static readonly OFFSET_PERP_BEST_BID = 784;
|
|
367
|
+
static readonly OFFSET_PERP_BEST_ASK = 792;
|
|
368
|
+
static readonly OFFSET_PERP_DAY_ASSET_TOKENS = 800;
|
|
369
|
+
static readonly OFFSET_PERP_DAY_CRNCY_TOKENS = 808;
|
|
370
|
+
static readonly OFFSET_PERP_DAY_LOW = 816;
|
|
371
|
+
static readonly OFFSET_PERP_DAY_HIGH = 824;
|
|
372
|
+
static readonly OFFSET_PERP_PREV_DAY_ASSET_TOKENS = 832;
|
|
373
|
+
static readonly OFFSET_PERP_PREV_DAY_CRNCY_TOKENS = 840;
|
|
374
|
+
static readonly OFFSET_PERP_ALLTIME_ASSET_TOKENS = 848;
|
|
375
|
+
static readonly OFFSET_PERP_ALLTIME_CRNCY_TOKENS = 856;
|
|
376
|
+
static readonly OFFSET_MAX_LEVERAGE = 864;
|
|
377
|
+
static readonly OFFSET_LIQUIDATION_THRESHOLD = 872;
|
|
378
|
+
static readonly OFFSET_SEATS_RESERVE = 880;
|
|
379
|
+
static readonly OFFSET_RESERVED_VALUE1 = 888;
|
|
380
|
+
static readonly OFFSET_RESERVED_VALUE2 = 896;
|
|
381
|
+
static readonly OFFSET_RESERVED_VALUE3 = 904;
|
|
382
|
+
static readonly OFFSET_RESERVED_VALUE4 = 912;
|
|
383
|
+
static readonly OFFSET_RESERVED_VALUE5 = 920;
|
|
384
|
+
static readonly OFFSET_RESERVED_VALUE6 = 928;
|
|
385
|
+
static readonly OFFSET_RESERVED_VALUE7 = 936;
|
|
386
|
+
static readonly OFFSET_RESERVED_VALUE8 = 944;
|
|
387
|
+
static readonly OFFSET_RESERVED_VALUE9 = 952;
|
|
388
|
+
static readonly OFFSET_RESERVED_VALUE10 = 960;
|
|
421
389
|
tag: number;
|
|
422
390
|
version: number;
|
|
423
391
|
instrId: number;
|
|
424
392
|
assetTokenId: number;
|
|
425
393
|
crncyTokenId: number;
|
|
426
394
|
mask: number;
|
|
395
|
+
assetTokens: number;
|
|
396
|
+
crncyTokens: number;
|
|
397
|
+
ps: number;
|
|
398
|
+
poolFees: number;
|
|
399
|
+
lastPx: number;
|
|
400
|
+
lastClose: number;
|
|
401
|
+
alltimeTrades: number;
|
|
402
|
+
prevDayTrades: number;
|
|
403
|
+
dayVolatility: number;
|
|
404
|
+
perpLastPx: number;
|
|
405
|
+
perpLastClose: number;
|
|
406
|
+
perpAlltimeTrades: number;
|
|
407
|
+
perpPrevDayTrades: number;
|
|
408
|
+
perpOpenInt: number;
|
|
427
409
|
mapsAddress: Address<any>;
|
|
428
410
|
perpMapsAddress: Address<any>;
|
|
429
411
|
lutAddress: Address<any>;
|
|
@@ -456,16 +438,11 @@ export declare class InstrAccountHeaderModel {
|
|
|
456
438
|
fixingCrncyTokens: number;
|
|
457
439
|
fixingAssetTokens: number;
|
|
458
440
|
counter: number;
|
|
459
|
-
assetTokens: number;
|
|
460
|
-
crncyTokens: number;
|
|
461
|
-
poolFees: number;
|
|
462
|
-
ps: number;
|
|
463
441
|
protocolFees: number;
|
|
464
442
|
hitsCounter: number;
|
|
465
443
|
lastAssetTokens: number;
|
|
466
444
|
lastCrncyTokens: number;
|
|
467
445
|
perpUnderlyingPx: number;
|
|
468
|
-
lastPx: number;
|
|
469
446
|
bestBid: number;
|
|
470
447
|
bestAsk: number;
|
|
471
448
|
fixingPx: number;
|
|
@@ -474,7 +451,6 @@ export declare class InstrAccountHeaderModel {
|
|
|
474
451
|
lastSpread: number;
|
|
475
452
|
lastSpreadTime: number;
|
|
476
453
|
totalSpreadPeriod: number;
|
|
477
|
-
lastClose: number;
|
|
478
454
|
dayAssetTokens: number;
|
|
479
455
|
dayCrncyTokens: number;
|
|
480
456
|
dayLow: number;
|
|
@@ -484,10 +460,9 @@ export declare class InstrAccountHeaderModel {
|
|
|
484
460
|
alltimeAssetTokens: number;
|
|
485
461
|
alltimeCrncyTokens: number;
|
|
486
462
|
dayTrades: number;
|
|
487
|
-
prevDayTrades: number;
|
|
488
463
|
lpDayTrades: number;
|
|
489
464
|
lpPrevDayTrades: number;
|
|
490
|
-
|
|
465
|
+
creationTime: number;
|
|
491
466
|
decFactor: number;
|
|
492
467
|
perpClientsCount: number;
|
|
493
468
|
perpSlot: number;
|
|
@@ -515,22 +490,16 @@ export declare class InstrAccountHeaderModel {
|
|
|
515
490
|
perpBidOrdersCount: number;
|
|
516
491
|
perpAskOrdersCount: number;
|
|
517
492
|
perpDayTrades: number;
|
|
518
|
-
perpPrevDayTrades: number;
|
|
519
|
-
creationTime: number;
|
|
520
|
-
perpAlltimeTrades: number;
|
|
521
493
|
perpSpotPriceForWithdrowal: number;
|
|
522
494
|
perpSocLossLongRate: number;
|
|
523
495
|
perpSocLossShortRate: number;
|
|
524
|
-
perpOpenInt: number;
|
|
525
496
|
perpPriceDelta: number;
|
|
526
497
|
perpFundingRate: number;
|
|
527
498
|
perpFundingFunds: number;
|
|
528
499
|
perpSocLossFunds: number;
|
|
529
500
|
perpInsuranceFund: number;
|
|
530
|
-
perpLastClose: number;
|
|
531
501
|
perpLastAssetTokens: number;
|
|
532
502
|
perpLastCrncyTokens: number;
|
|
533
|
-
perpLastPx: number;
|
|
534
503
|
perpBestBid: number;
|
|
535
504
|
perpBestAsk: number;
|
|
536
505
|
perpDayAssetTokens: number;
|
|
@@ -542,7 +511,6 @@ export declare class InstrAccountHeaderModel {
|
|
|
542
511
|
perpAlltimeAssetTokens: number;
|
|
543
512
|
perpAlltimeCrncyTokens: number;
|
|
544
513
|
maxLeverage: number;
|
|
545
|
-
dayVolatility: number;
|
|
546
514
|
liquidationThreshold: number;
|
|
547
515
|
seatsReserve: number;
|
|
548
516
|
reservedValue1: number;
|
|
@@ -563,24 +531,22 @@ export declare class RootStateModel {
|
|
|
563
531
|
static readonly OFFSET_VERSION = 4;
|
|
564
532
|
static readonly OFFSET_OPERATOR_ADDRESS = 8;
|
|
565
533
|
static readonly OFFSET_HOLDER_ADDRESS = 40;
|
|
566
|
-
static readonly
|
|
567
|
-
static readonly
|
|
568
|
-
static readonly
|
|
569
|
-
static readonly
|
|
570
|
-
static readonly
|
|
571
|
-
static readonly
|
|
572
|
-
static readonly
|
|
573
|
-
static readonly
|
|
574
|
-
static readonly
|
|
575
|
-
static readonly
|
|
576
|
-
static readonly
|
|
577
|
-
static readonly
|
|
534
|
+
static readonly OFFSET_DRVS_MINT_ADDRESS = 72;
|
|
535
|
+
static readonly OFFSET_LUT_ADDRESS = 104;
|
|
536
|
+
static readonly OFFSET_REF_PROGRAM_DURATION = 136;
|
|
537
|
+
static readonly OFFSET_REF_LINK_DURATION = 140;
|
|
538
|
+
static readonly OFFSET_REF_DISCOUNT = 144;
|
|
539
|
+
static readonly OFFSET_REF_RATIO = 152;
|
|
540
|
+
static readonly OFFSET_CLIENTS_COUNT = 160;
|
|
541
|
+
static readonly OFFSET_TOKENS_COUNT = 164;
|
|
542
|
+
static readonly OFFSET_INSTR_COUNT = 168;
|
|
543
|
+
static readonly OFFSET_REF_COUNTER = 172;
|
|
544
|
+
static readonly OFFSET_MASK = 176;
|
|
545
|
+
static readonly OFFSET_RESERVED = 180;
|
|
578
546
|
tag: number;
|
|
579
547
|
version: number;
|
|
580
548
|
operatorAddress: Address<any>;
|
|
581
549
|
holderAddress: Address<any>;
|
|
582
|
-
communityAddress: Address<any>;
|
|
583
|
-
pdfAddress: Address<any>;
|
|
584
550
|
drvsMintAddress: Address<any>;
|
|
585
551
|
lutAddress: Address<any>;
|
|
586
552
|
refProgramDuration: number;
|
|
@@ -591,6 +557,8 @@ export declare class RootStateModel {
|
|
|
591
557
|
tokensCount: number;
|
|
592
558
|
instrCount: number;
|
|
593
559
|
refCounter: number;
|
|
560
|
+
mask: number;
|
|
561
|
+
reserved: number;
|
|
594
562
|
static fromBuffer(data: Base64EncodedDataResponse, offset?: number): RootStateModel;
|
|
595
563
|
}
|
|
596
564
|
export declare class TokenStateModel {
|
|
@@ -764,45 +732,41 @@ export declare class ClientPrimaryAccountHeaderModel {
|
|
|
764
732
|
static readonly OFFSET_TAG = 0;
|
|
765
733
|
static readonly OFFSET_VERSION = 4;
|
|
766
734
|
static readonly OFFSET_WALLET_ADDRESS = 8;
|
|
767
|
-
static readonly
|
|
768
|
-
static readonly
|
|
769
|
-
static readonly
|
|
770
|
-
static readonly
|
|
771
|
-
static readonly
|
|
772
|
-
static readonly
|
|
773
|
-
static readonly
|
|
774
|
-
static readonly
|
|
775
|
-
static readonly
|
|
776
|
-
static readonly
|
|
777
|
-
static readonly
|
|
778
|
-
static readonly
|
|
779
|
-
static readonly
|
|
780
|
-
static readonly
|
|
781
|
-
static readonly
|
|
782
|
-
static readonly
|
|
783
|
-
static readonly
|
|
784
|
-
static readonly
|
|
785
|
-
static readonly
|
|
786
|
-
static readonly
|
|
787
|
-
static readonly
|
|
788
|
-
static readonly
|
|
789
|
-
static readonly
|
|
790
|
-
static readonly
|
|
791
|
-
static readonly
|
|
792
|
-
static readonly
|
|
793
|
-
static readonly
|
|
794
|
-
static readonly
|
|
795
|
-
static readonly
|
|
796
|
-
static readonly
|
|
797
|
-
static readonly
|
|
798
|
-
static readonly
|
|
799
|
-
static readonly OFFSET_RESERVED_VALUE7 = 336;
|
|
800
|
-
static readonly OFFSET_RESERVED_VALUE8 = 344;
|
|
735
|
+
static readonly OFFSET_LUT_ADDRESS = 40;
|
|
736
|
+
static readonly OFFSET_REF_ADDRESS = 72;
|
|
737
|
+
static readonly OFFSET_FIRST_REF_LINK_DISCOUNT = 104;
|
|
738
|
+
static readonly OFFSET_SECOND_REF_LINK_DISCOUNT = 112;
|
|
739
|
+
static readonly OFFSET_FIRST_REF_LINK_RATIO = 120;
|
|
740
|
+
static readonly OFFSET_SECOND_REF_LINK_RATIO = 128;
|
|
741
|
+
static readonly OFFSET_REF_PROGRAM_DISCOUNT = 136;
|
|
742
|
+
static readonly OFFSET_REF_PROGRAM_RATIO = 144;
|
|
743
|
+
static readonly OFFSET_RESERVED = 152;
|
|
744
|
+
static readonly OFFSET_MASK = 160;
|
|
745
|
+
static readonly OFFSET_ID = 168;
|
|
746
|
+
static readonly OFFSET_REF_CLIENT_ID = 172;
|
|
747
|
+
static readonly OFFSET_REF_COUNTER = 176;
|
|
748
|
+
static readonly OFFSET_FIRST_REF_LINK_ID = 180;
|
|
749
|
+
static readonly OFFSET_SECOND_REF_LINK_ID = 184;
|
|
750
|
+
static readonly OFFSET_FIRST_REF_LINK_EXPIRATION = 188;
|
|
751
|
+
static readonly OFFSET_SECOND_REF_LINK_EXPIRATION = 192;
|
|
752
|
+
static readonly OFFSET_REF_PROGRAM_EXPIRATION = 196;
|
|
753
|
+
static readonly OFFSET_SPOT_TRADES = 200;
|
|
754
|
+
static readonly OFFSET_PERP_TRADES = 204;
|
|
755
|
+
static readonly OFFSET_LP_TRADES = 208;
|
|
756
|
+
static readonly OFFSET_POINTS = 212;
|
|
757
|
+
static readonly OFFSET_SLOT = 216;
|
|
758
|
+
static readonly OFFSET_ASSETS_COUNT = 220;
|
|
759
|
+
static readonly OFFSET_RESERVED_VALUE1 = 224;
|
|
760
|
+
static readonly OFFSET_RESERVED_VALUE2 = 232;
|
|
761
|
+
static readonly OFFSET_RESERVED_VALUE3 = 240;
|
|
762
|
+
static readonly OFFSET_RESERVED_VALUE4 = 248;
|
|
763
|
+
static readonly OFFSET_RESERVED_VALUE5 = 256;
|
|
764
|
+
static readonly OFFSET_RESERVED_VALUE6 = 264;
|
|
765
|
+
static readonly OFFSET_RESERVED_VALUE7 = 272;
|
|
766
|
+
static readonly OFFSET_RESERVED_VALUE8 = 280;
|
|
801
767
|
tag: number;
|
|
802
768
|
version: number;
|
|
803
769
|
walletAddress: Address<any>;
|
|
804
|
-
drvAddress: Address<any>;
|
|
805
|
-
communityAddress: Address<any>;
|
|
806
770
|
lutAddress: Address<any>;
|
|
807
771
|
refAddress: Address<any>;
|
|
808
772
|
firstRefLinkDiscount: number;
|
|
@@ -837,22 +801,6 @@ export declare class ClientPrimaryAccountHeaderModel {
|
|
|
837
801
|
reservedValue8: number;
|
|
838
802
|
static fromBuffer(data: Base64EncodedDataResponse, offset?: number): ClientPrimaryAccountHeaderModel;
|
|
839
803
|
}
|
|
840
|
-
export declare class ClientDrvAccountHeaderModel {
|
|
841
|
-
static readonly LENGTH: number;
|
|
842
|
-
static readonly OFFSET_TAG = 0;
|
|
843
|
-
static readonly OFFSET_VERSION = 4;
|
|
844
|
-
static readonly OFFSET_ID = 8;
|
|
845
|
-
static readonly OFFSET_COUNT = 12;
|
|
846
|
-
static readonly OFFSET_SLOT = 16;
|
|
847
|
-
static readonly OFFSET_RESERVED = 20;
|
|
848
|
-
tag: number;
|
|
849
|
-
version: number;
|
|
850
|
-
id: number;
|
|
851
|
-
count: number;
|
|
852
|
-
slot: number;
|
|
853
|
-
reserved: number;
|
|
854
|
-
static fromBuffer(data: Base64EncodedDataResponse, offset?: number): ClientDrvAccountHeaderModel;
|
|
855
|
-
}
|
|
856
804
|
export declare class OrderModel {
|
|
857
805
|
static readonly LENGTH: number;
|
|
858
806
|
static readonly OFFSET_QTY = 0;
|
|
@@ -903,3 +851,13 @@ export declare class PxOrdersModel {
|
|
|
903
851
|
end: number;
|
|
904
852
|
static fromBuffer(data: Base64EncodedDataResponse, offset?: number): PxOrdersModel;
|
|
905
853
|
}
|
|
854
|
+
export declare class PrivateClientModel {
|
|
855
|
+
static readonly LENGTH: number;
|
|
856
|
+
static readonly OFFSET_CREATION_TIME = 0;
|
|
857
|
+
static readonly OFFSET_EXPIRATION_TIME = 4;
|
|
858
|
+
static readonly OFFSET_WALLET = 8;
|
|
859
|
+
creationTime: number;
|
|
860
|
+
expirationTime: number;
|
|
861
|
+
wallet: Address<any>;
|
|
862
|
+
static fromBuffer(data: Base64EncodedDataResponse, offset?: number): PrivateClientModel;
|
|
863
|
+
}
|