@nightlylabs/dex-sdk 0.1.78 → 0.1.80
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.cjs +318 -54
- package/dist/index.d.cts +304 -104
- package/dist/index.d.ts +304 -104
- package/dist/index.js +318 -53
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -102,6 +102,11 @@ interface CanceledPerpOrders {
|
|
|
102
102
|
userId: string;
|
|
103
103
|
ordersIds: string[];
|
|
104
104
|
}
|
|
105
|
+
interface CanceledSpotOrders {
|
|
106
|
+
market: string;
|
|
107
|
+
userId: string;
|
|
108
|
+
ordersIds: string[];
|
|
109
|
+
}
|
|
105
110
|
interface ChartCandle {
|
|
106
111
|
marketName: string;
|
|
107
112
|
open: string;
|
|
@@ -170,22 +175,6 @@ interface MarginStep {
|
|
|
170
175
|
maintenanceAmount: string;
|
|
171
176
|
maxPositionInUsd: string;
|
|
172
177
|
}
|
|
173
|
-
type PerpetualMarketStatus = {
|
|
174
|
-
type: "halted";
|
|
175
|
-
content?: undefined;
|
|
176
|
-
} | {
|
|
177
|
-
type: "reduceOnly";
|
|
178
|
-
content?: undefined;
|
|
179
|
-
} | {
|
|
180
|
-
type: "postOnly";
|
|
181
|
-
content?: undefined;
|
|
182
|
-
} | {
|
|
183
|
-
type: "live";
|
|
184
|
-
content?: undefined;
|
|
185
|
-
} | {
|
|
186
|
-
type: "settled";
|
|
187
|
-
content: string;
|
|
188
|
-
};
|
|
189
178
|
interface FundingRate {
|
|
190
179
|
enabled: boolean;
|
|
191
180
|
interestRateHourly: string;
|
|
@@ -194,7 +183,7 @@ interface FundingRate {
|
|
|
194
183
|
maxFundingRate: string;
|
|
195
184
|
minFundingRate: string;
|
|
196
185
|
}
|
|
197
|
-
interface
|
|
186
|
+
interface PerpMarketConfigEntry {
|
|
198
187
|
name: string;
|
|
199
188
|
priceIndex: string;
|
|
200
189
|
marginSteps: MarginStep[];
|
|
@@ -202,9 +191,13 @@ interface PerpetualMarketConfigEntry {
|
|
|
202
191
|
lotSize: string;
|
|
203
192
|
tickSize: string;
|
|
204
193
|
maxOpenInterest: string;
|
|
205
|
-
status: PerpetualMarketStatus;
|
|
206
194
|
fundingRate: FundingRate;
|
|
207
195
|
}
|
|
196
|
+
interface SpotMarketConfigEntry {
|
|
197
|
+
marketName: string;
|
|
198
|
+
lotSize: string;
|
|
199
|
+
tickSize: string;
|
|
200
|
+
}
|
|
208
201
|
interface FeeData {
|
|
209
202
|
basicMakerFee: string;
|
|
210
203
|
basicTakerFee: string;
|
|
@@ -214,7 +207,8 @@ interface FeeData {
|
|
|
214
207
|
interface ExchangeConfig {
|
|
215
208
|
tokens: Record<string, TokenConfigEntry>;
|
|
216
209
|
usdcAddress?: string;
|
|
217
|
-
|
|
210
|
+
perpMarkets: Record<string, PerpMarketConfigEntry>;
|
|
211
|
+
spotMarkets: Record<string, SpotMarketConfigEntry>;
|
|
218
212
|
feeData: FeeData;
|
|
219
213
|
systemHaircut: string;
|
|
220
214
|
}
|
|
@@ -302,6 +296,20 @@ interface GetIndexerStatusResponse {
|
|
|
302
296
|
lastProcessorUpdate: string;
|
|
303
297
|
lastSeenBlock: string;
|
|
304
298
|
}
|
|
299
|
+
interface GetOrderBookDataRequest {
|
|
300
|
+
marketName: string;
|
|
301
|
+
}
|
|
302
|
+
interface OrderBookData {
|
|
303
|
+
timestamp: string;
|
|
304
|
+
bids: Content[];
|
|
305
|
+
asks: Content[];
|
|
306
|
+
}
|
|
307
|
+
interface GetOrderBookDataResponse {
|
|
308
|
+
data: OrderBookData;
|
|
309
|
+
}
|
|
310
|
+
interface GetPerpMarketsConfigResponse {
|
|
311
|
+
perpMarkets: Record<string, PerpMarketConfigEntry>;
|
|
312
|
+
}
|
|
305
313
|
interface GetPerpMarketsDataRequest {
|
|
306
314
|
markets: string[];
|
|
307
315
|
}
|
|
@@ -320,17 +328,6 @@ interface PerpMarketData {
|
|
|
320
328
|
interface GetPerpMarketsDataResponse {
|
|
321
329
|
perpMarkets: Record<string, PerpMarketData>;
|
|
322
330
|
}
|
|
323
|
-
interface GetPerpOrderBookDataRequest {
|
|
324
|
-
marketName: string;
|
|
325
|
-
}
|
|
326
|
-
interface PerpOrderBookData {
|
|
327
|
-
timestamp: string;
|
|
328
|
-
bids: Content[];
|
|
329
|
-
asks: Content[];
|
|
330
|
-
}
|
|
331
|
-
interface GetPerpOrderBookDataResponse {
|
|
332
|
-
data: PerpOrderBookData;
|
|
333
|
-
}
|
|
334
331
|
interface GetPerpRecentTradesRequest {
|
|
335
332
|
marketName: string;
|
|
336
333
|
olderTimestampMs?: string;
|
|
@@ -389,27 +386,6 @@ interface GetPerpUserOrdersRequest {
|
|
|
389
386
|
newerTimestampMs?: string;
|
|
390
387
|
paginationCursor?: PaginationCursor;
|
|
391
388
|
}
|
|
392
|
-
declare enum OrderStatus {
|
|
393
|
-
Placed = "Placed",
|
|
394
|
-
Cancelled = "Cancelled",
|
|
395
|
-
Filled = "Filled",
|
|
396
|
-
PartiallyFilled = "PartiallyFilled",
|
|
397
|
-
Executed = "Executed"
|
|
398
|
-
}
|
|
399
|
-
interface PerpOrder {
|
|
400
|
-
orderId: string;
|
|
401
|
-
userId: string;
|
|
402
|
-
creationTimestamp: string;
|
|
403
|
-
marketName: string;
|
|
404
|
-
size: string;
|
|
405
|
-
price: string;
|
|
406
|
-
filledSize: string;
|
|
407
|
-
side: OrderSide;
|
|
408
|
-
reduceOnly: boolean;
|
|
409
|
-
postOnly: boolean;
|
|
410
|
-
orderType: OrderType;
|
|
411
|
-
orderStatus: OrderStatus;
|
|
412
|
-
}
|
|
413
389
|
interface GetPerpUserOrdersResponse {
|
|
414
390
|
orders: PerpOrder[];
|
|
415
391
|
paginationCursor?: PaginationCursor;
|
|
@@ -421,6 +397,13 @@ interface GetPerpUserTriggerOrdersRequest {
|
|
|
421
397
|
newerTimestampMs?: string;
|
|
422
398
|
paginationCursor?: PaginationCursor;
|
|
423
399
|
}
|
|
400
|
+
declare enum OrderStatus {
|
|
401
|
+
Placed = "Placed",
|
|
402
|
+
Cancelled = "Cancelled",
|
|
403
|
+
Filled = "Filled",
|
|
404
|
+
PartiallyFilled = "PartiallyFilled",
|
|
405
|
+
Executed = "Executed"
|
|
406
|
+
}
|
|
424
407
|
interface PerpTriggerOrder {
|
|
425
408
|
marketName: string;
|
|
426
409
|
userId: string;
|
|
@@ -441,9 +424,6 @@ interface GetPerpUserTriggerOrdersResponse {
|
|
|
441
424
|
triggerOrders: PerpTriggerOrder[];
|
|
442
425
|
paginationCursor?: PaginationCursor;
|
|
443
426
|
}
|
|
444
|
-
interface GetPerpetualMarketsConfigResponse {
|
|
445
|
-
perpMarkets: Record<string, PerpetualMarketConfigEntry>;
|
|
446
|
-
}
|
|
447
427
|
interface PriceIndex {
|
|
448
428
|
name: string;
|
|
449
429
|
price: string;
|
|
@@ -471,6 +451,74 @@ interface GetServicesStatusResponse {
|
|
|
471
451
|
nodeStatus: NodeStatus[];
|
|
472
452
|
subServicesStatus: SubServiceStatus[];
|
|
473
453
|
}
|
|
454
|
+
interface GetSpotMarketsConfigResponse {
|
|
455
|
+
spotMarkets: Record<string, SpotMarketConfigEntry>;
|
|
456
|
+
}
|
|
457
|
+
interface GetSpotMarketsDataRequest {
|
|
458
|
+
markets: string[];
|
|
459
|
+
}
|
|
460
|
+
interface SpotMarketData {
|
|
461
|
+
price: string;
|
|
462
|
+
change24: string;
|
|
463
|
+
high24: string;
|
|
464
|
+
low24: string;
|
|
465
|
+
baseVolume24: string;
|
|
466
|
+
quoteVolume24: string;
|
|
467
|
+
timestamp: string;
|
|
468
|
+
}
|
|
469
|
+
interface GetSpotMarketsDataResponse {
|
|
470
|
+
spotMarkets: Record<string, SpotMarketData>;
|
|
471
|
+
}
|
|
472
|
+
interface GetSpotRecentTradesRequest {
|
|
473
|
+
marketName: string;
|
|
474
|
+
olderTimestampMs?: string;
|
|
475
|
+
newerTimestampMs?: string;
|
|
476
|
+
paginationCursor?: PaginationCursor;
|
|
477
|
+
}
|
|
478
|
+
interface SpotTrade {
|
|
479
|
+
timestamp: string;
|
|
480
|
+
size: string;
|
|
481
|
+
price: string;
|
|
482
|
+
side: OrderSide;
|
|
483
|
+
}
|
|
484
|
+
interface GetSpotRecentTradesResponse {
|
|
485
|
+
trades: SpotTrade[];
|
|
486
|
+
paginationCursor?: PaginationCursor;
|
|
487
|
+
}
|
|
488
|
+
interface GetSpotUserFillsRequest {
|
|
489
|
+
userId: string;
|
|
490
|
+
marketName?: string;
|
|
491
|
+
olderTimestampMs?: string;
|
|
492
|
+
newerTimestampMs?: string;
|
|
493
|
+
paginationCursor?: PaginationCursor;
|
|
494
|
+
}
|
|
495
|
+
interface SpotFill {
|
|
496
|
+
fillId: string;
|
|
497
|
+
orderId: string;
|
|
498
|
+
timestamp: string;
|
|
499
|
+
marketName: string;
|
|
500
|
+
size: string;
|
|
501
|
+
price: string;
|
|
502
|
+
fee: string;
|
|
503
|
+
side: OrderSide;
|
|
504
|
+
tradeRole: TradeRole;
|
|
505
|
+
orderType: OrderType;
|
|
506
|
+
}
|
|
507
|
+
interface GetSpotUserFillsResponse {
|
|
508
|
+
fills: SpotFill[];
|
|
509
|
+
paginationCursor?: PaginationCursor;
|
|
510
|
+
}
|
|
511
|
+
interface GetSpotUserOrdersRequest {
|
|
512
|
+
userId: string;
|
|
513
|
+
marketName?: string;
|
|
514
|
+
olderTimestampMs?: string;
|
|
515
|
+
newerTimestampMs?: string;
|
|
516
|
+
paginationCursor?: PaginationCursor;
|
|
517
|
+
}
|
|
518
|
+
interface GetSpotUserOrdersResponse {
|
|
519
|
+
orders: SpotOrder[];
|
|
520
|
+
paginationCursor?: PaginationCursor;
|
|
521
|
+
}
|
|
474
522
|
interface GetTokenAggregatedStatsRequest {
|
|
475
523
|
tokenAddress: string[];
|
|
476
524
|
}
|
|
@@ -682,8 +730,9 @@ interface User {
|
|
|
682
730
|
tokenBalances: Record<string, string>;
|
|
683
731
|
points: string;
|
|
684
732
|
positions: Record<string, PerpPosition>;
|
|
685
|
-
perpOrders: Record<string, Record<string,
|
|
733
|
+
perpOrders: Record<string, Record<string, PerpOrder>>;
|
|
686
734
|
perpTriggerOrders: Record<string, Record<string, TriggerOrder>>;
|
|
735
|
+
spotOrders: Record<string, Record<string, SpotOrder>>;
|
|
687
736
|
referralToClaim: Record<string, string>;
|
|
688
737
|
lendingShares: Record<string, string>;
|
|
689
738
|
borrowShares: Record<string, string>;
|
|
@@ -756,6 +805,24 @@ interface GetUserLiquidationsHistoryResponse {
|
|
|
756
805
|
liquidations: HistoricalLiquidation[];
|
|
757
806
|
paginationCursor?: PaginationCursor;
|
|
758
807
|
}
|
|
808
|
+
interface GetUserPointsHistoryRequest {
|
|
809
|
+
userId: string;
|
|
810
|
+
olderTimestampMs?: string;
|
|
811
|
+
newerTimestampMs?: string;
|
|
812
|
+
paginationCursor?: PaginationCursor;
|
|
813
|
+
}
|
|
814
|
+
interface HistoricalPoints {
|
|
815
|
+
userId: string;
|
|
816
|
+
rankingPosition: string;
|
|
817
|
+
season: string;
|
|
818
|
+
pointsTotal: string;
|
|
819
|
+
timestampOpen: string;
|
|
820
|
+
timestampClose: string;
|
|
821
|
+
}
|
|
822
|
+
interface GetUserPointsHistoryResponse {
|
|
823
|
+
points: HistoricalPoints[];
|
|
824
|
+
paginationCursor?: PaginationCursor;
|
|
825
|
+
}
|
|
759
826
|
interface GetUserPortfolioValueRequest {
|
|
760
827
|
userId: string;
|
|
761
828
|
olderTimestampMs?: string;
|
|
@@ -970,10 +1037,6 @@ interface Liquidation {
|
|
|
970
1037
|
userId: string;
|
|
971
1038
|
liquidationValue: string;
|
|
972
1039
|
}
|
|
973
|
-
interface MarketStatusChange {
|
|
974
|
-
market: string;
|
|
975
|
-
status: PerpetualMarketStatus;
|
|
976
|
-
}
|
|
977
1040
|
interface OpenBoxesRequest {
|
|
978
1041
|
userId: string;
|
|
979
1042
|
boxId: string;
|
|
@@ -996,7 +1059,7 @@ interface OracleUpdate {
|
|
|
996
1059
|
interface OracleUpdates {
|
|
997
1060
|
updates: OracleUpdate[];
|
|
998
1061
|
}
|
|
999
|
-
interface
|
|
1062
|
+
interface PerpOrder {
|
|
1000
1063
|
id: string;
|
|
1001
1064
|
size: string;
|
|
1002
1065
|
market: string;
|
|
@@ -1008,6 +1071,20 @@ interface Order {
|
|
|
1008
1071
|
timestamp: string;
|
|
1009
1072
|
orderType: OrderType;
|
|
1010
1073
|
}
|
|
1074
|
+
interface PerpOrder {
|
|
1075
|
+
orderId: string;
|
|
1076
|
+
userId: string;
|
|
1077
|
+
creationTimestamp: string;
|
|
1078
|
+
marketName: string;
|
|
1079
|
+
size: string;
|
|
1080
|
+
price: string;
|
|
1081
|
+
filledSize: string;
|
|
1082
|
+
side: OrderSide;
|
|
1083
|
+
reduceOnly: boolean;
|
|
1084
|
+
postOnly: boolean;
|
|
1085
|
+
orderType: OrderType;
|
|
1086
|
+
orderStatus: OrderStatus;
|
|
1087
|
+
}
|
|
1011
1088
|
interface WsFill {
|
|
1012
1089
|
id: string;
|
|
1013
1090
|
size: string;
|
|
@@ -1015,17 +1092,28 @@ interface WsFill {
|
|
|
1015
1092
|
feePaid: string;
|
|
1016
1093
|
isTakerBid: boolean;
|
|
1017
1094
|
}
|
|
1018
|
-
interface
|
|
1095
|
+
interface PerpOrderFills {
|
|
1019
1096
|
market: string;
|
|
1020
1097
|
userId: string;
|
|
1021
1098
|
orderId: string;
|
|
1022
1099
|
fills: WsFill[];
|
|
1023
1100
|
}
|
|
1024
|
-
interface
|
|
1101
|
+
interface PerpOrderbookUpdate {
|
|
1025
1102
|
market: string;
|
|
1026
1103
|
bidsUpdates: Record<string, string>;
|
|
1027
1104
|
asksUpdates: Record<string, string>;
|
|
1028
1105
|
}
|
|
1106
|
+
interface Trade {
|
|
1107
|
+
tradeId: string;
|
|
1108
|
+
size: string;
|
|
1109
|
+
price: string;
|
|
1110
|
+
timestamp: string;
|
|
1111
|
+
isTakerBid: boolean;
|
|
1112
|
+
}
|
|
1113
|
+
interface PerpTradesUpdate {
|
|
1114
|
+
market: string;
|
|
1115
|
+
updates: Trade[];
|
|
1116
|
+
}
|
|
1029
1117
|
interface PlacePerpLimitOrder {
|
|
1030
1118
|
market: string;
|
|
1031
1119
|
userId: string;
|
|
@@ -1062,6 +1150,27 @@ interface PlacePerpTriggerOrder {
|
|
|
1062
1150
|
marketOrder: boolean;
|
|
1063
1151
|
postOnly: boolean;
|
|
1064
1152
|
}
|
|
1153
|
+
interface PlaceSpotLimitOrder {
|
|
1154
|
+
market: string;
|
|
1155
|
+
userId: string;
|
|
1156
|
+
isBid: boolean;
|
|
1157
|
+
price: string;
|
|
1158
|
+
size: string;
|
|
1159
|
+
postOnly: boolean;
|
|
1160
|
+
orderId: string;
|
|
1161
|
+
filledSize: string;
|
|
1162
|
+
fills: WsFill[];
|
|
1163
|
+
}
|
|
1164
|
+
interface PlaceSpotMarketOrder {
|
|
1165
|
+
market: string;
|
|
1166
|
+
userId: string;
|
|
1167
|
+
isBid: boolean;
|
|
1168
|
+
maxPrice: string;
|
|
1169
|
+
size: string;
|
|
1170
|
+
postOnly: boolean;
|
|
1171
|
+
orderId: string;
|
|
1172
|
+
fills: WsFill[];
|
|
1173
|
+
}
|
|
1065
1174
|
interface ReferralUpdate {
|
|
1066
1175
|
userId: string;
|
|
1067
1176
|
masterCode: string;
|
|
@@ -1094,14 +1203,44 @@ interface SetReferralParamsRequest {
|
|
|
1094
1203
|
interface SetReferralParamsResponse {
|
|
1095
1204
|
txHash?: string;
|
|
1096
1205
|
}
|
|
1097
|
-
interface
|
|
1206
|
+
interface SpotOrder {
|
|
1207
|
+
id: string;
|
|
1208
|
+
size: string;
|
|
1209
|
+
market: string;
|
|
1098
1210
|
price: string;
|
|
1099
|
-
|
|
1100
|
-
|
|
1101
|
-
|
|
1102
|
-
baseVolume24: string;
|
|
1103
|
-
quoteVolume24: string;
|
|
1211
|
+
side: OrderSide;
|
|
1212
|
+
sizeLeft: string;
|
|
1213
|
+
postOnly: boolean;
|
|
1104
1214
|
timestamp: string;
|
|
1215
|
+
orderType: OrderType;
|
|
1216
|
+
}
|
|
1217
|
+
interface SpotOrder {
|
|
1218
|
+
orderId: string;
|
|
1219
|
+
userId: string;
|
|
1220
|
+
creationTimestamp: string;
|
|
1221
|
+
marketName: string;
|
|
1222
|
+
size: string;
|
|
1223
|
+
price: string;
|
|
1224
|
+
filledSize: string;
|
|
1225
|
+
side: OrderSide;
|
|
1226
|
+
postOnly: boolean;
|
|
1227
|
+
orderType: OrderType;
|
|
1228
|
+
orderStatus: OrderStatus;
|
|
1229
|
+
}
|
|
1230
|
+
interface SpotOrderFills {
|
|
1231
|
+
market: string;
|
|
1232
|
+
userId: string;
|
|
1233
|
+
orderId: string;
|
|
1234
|
+
fills: WsFill[];
|
|
1235
|
+
}
|
|
1236
|
+
interface SpotOrderbookUpdate {
|
|
1237
|
+
market: string;
|
|
1238
|
+
bidsUpdates: Record<string, string>;
|
|
1239
|
+
asksUpdates: Record<string, string>;
|
|
1240
|
+
}
|
|
1241
|
+
interface SpotTradesUpdate {
|
|
1242
|
+
market: string;
|
|
1243
|
+
updates: Trade[];
|
|
1105
1244
|
}
|
|
1106
1245
|
interface StatusResponse {
|
|
1107
1246
|
status: string;
|
|
@@ -1124,17 +1263,6 @@ interface SubmitSponsoredTransactionResponse {
|
|
|
1124
1263
|
interface TimeResponse {
|
|
1125
1264
|
time: string;
|
|
1126
1265
|
}
|
|
1127
|
-
interface Trade {
|
|
1128
|
-
tradeId: string;
|
|
1129
|
-
size: string;
|
|
1130
|
-
price: string;
|
|
1131
|
-
timestamp: string;
|
|
1132
|
-
isTakerBid: boolean;
|
|
1133
|
-
}
|
|
1134
|
-
interface TradesUpdate {
|
|
1135
|
-
market: string;
|
|
1136
|
-
updates: Trade[];
|
|
1137
|
-
}
|
|
1138
1266
|
interface TriggerOrder {
|
|
1139
1267
|
id: string;
|
|
1140
1268
|
size: string;
|
|
@@ -1209,7 +1337,7 @@ declare enum EndpointsV1 {
|
|
|
1209
1337
|
GetPerpMarketsConfig = "/v1/get_perp_markets_config",
|
|
1210
1338
|
GetUserData = "/v1/get_user_data",
|
|
1211
1339
|
GetPriceIndexes = "/v1/get_price_indexes",
|
|
1212
|
-
|
|
1340
|
+
GetOrderBookData = "/v1/get_orderbook_data",
|
|
1213
1341
|
GetPerpMarketsData = "/v1/get_perp_markets_data",
|
|
1214
1342
|
GetBorrowLendingData = "/v1/get_borrow_lending_data",
|
|
1215
1343
|
SubmitSponsoredTransactionRequest = "/v1/submit_sponsored_transaction",
|
|
@@ -1252,16 +1380,20 @@ declare enum EndpointsV1 {
|
|
|
1252
1380
|
GetUserVolumeForReferral = "/v1/get_required_volume_for_referral",
|
|
1253
1381
|
GetUserRewardsValue = "/v1/get_user_rewards_value",
|
|
1254
1382
|
OpenBoxes = "/v1/open_boxes",
|
|
1255
|
-
GetUserBoxesHistory = "/v1/get_user_boxes_history"
|
|
1256
|
-
|
|
1257
|
-
|
|
1258
|
-
|
|
1259
|
-
|
|
1260
|
-
|
|
1261
|
-
|
|
1383
|
+
GetUserBoxesHistory = "/v1/get_user_boxes_history",
|
|
1384
|
+
GetObsoleteTpSl = "/v1/get_obsolete_tpsl",
|
|
1385
|
+
GetUserSpotOrders = "/v1/get_user_spot_orders",
|
|
1386
|
+
GetUserSpotFills = "/v1/get_user_spot_fills",
|
|
1387
|
+
GetSpotMarketsConfig = "/v1/get_spot_markets_config",
|
|
1388
|
+
GetUserPointsHistory = "/v1/get_user_points_history",
|
|
1389
|
+
GetSpotMarketsData = "/v1/get_spot_markets_data",
|
|
1390
|
+
GetSpotRecentTrades = "/v1/get_spot_recent_trades"
|
|
1262
1391
|
}
|
|
1263
1392
|
type Topic = {
|
|
1264
|
-
type: "
|
|
1393
|
+
type: "PerpMarket";
|
|
1394
|
+
content: string;
|
|
1395
|
+
} | {
|
|
1396
|
+
type: "SpotMarket";
|
|
1265
1397
|
content: string;
|
|
1266
1398
|
} | {
|
|
1267
1399
|
type: "User";
|
|
@@ -1286,13 +1418,25 @@ declare enum UserStatus {
|
|
|
1286
1418
|
Locked = "Locked"
|
|
1287
1419
|
}
|
|
1288
1420
|
type WsCommand = {
|
|
1289
|
-
type: "
|
|
1421
|
+
type: "SubscribePerpMarket";
|
|
1290
1422
|
content: {
|
|
1291
1423
|
id: string;
|
|
1292
1424
|
market: string;
|
|
1293
1425
|
};
|
|
1294
1426
|
} | {
|
|
1295
|
-
type: "
|
|
1427
|
+
type: "SubscribeSpotMarket";
|
|
1428
|
+
content: {
|
|
1429
|
+
id: string;
|
|
1430
|
+
market: string;
|
|
1431
|
+
};
|
|
1432
|
+
} | {
|
|
1433
|
+
type: "UnsubscribePerpMarket";
|
|
1434
|
+
content: {
|
|
1435
|
+
id: string;
|
|
1436
|
+
market: string;
|
|
1437
|
+
};
|
|
1438
|
+
} | {
|
|
1439
|
+
type: "UnsubscribeSpotMarket";
|
|
1296
1440
|
content: {
|
|
1297
1441
|
id: string;
|
|
1298
1442
|
market: string;
|
|
@@ -1365,11 +1509,17 @@ type WsMessage = {
|
|
|
1365
1509
|
type: "OracleUpdates";
|
|
1366
1510
|
content: OracleUpdates;
|
|
1367
1511
|
} | {
|
|
1368
|
-
type: "
|
|
1369
|
-
content:
|
|
1512
|
+
type: "PerpOrderbookUpdate";
|
|
1513
|
+
content: PerpOrderbookUpdate;
|
|
1370
1514
|
} | {
|
|
1371
|
-
type: "
|
|
1372
|
-
content:
|
|
1515
|
+
type: "PerpTradesUpdate";
|
|
1516
|
+
content: PerpTradesUpdate;
|
|
1517
|
+
} | {
|
|
1518
|
+
type: "SpotOrderbookUpdate";
|
|
1519
|
+
content: SpotOrderbookUpdate;
|
|
1520
|
+
} | {
|
|
1521
|
+
type: "SpotTradesUpdate";
|
|
1522
|
+
content: SpotTradesUpdate;
|
|
1373
1523
|
} | {
|
|
1374
1524
|
type: "BalanceChange";
|
|
1375
1525
|
content: BalanceChange;
|
|
@@ -1400,12 +1550,24 @@ type WsMessage = {
|
|
|
1400
1550
|
} | {
|
|
1401
1551
|
type: "PlacePerpTriggerOrder";
|
|
1402
1552
|
content: PlacePerpTriggerOrder;
|
|
1553
|
+
} | {
|
|
1554
|
+
type: "PlaceSpotMarketOrder";
|
|
1555
|
+
content: PlaceSpotMarketOrder;
|
|
1556
|
+
} | {
|
|
1557
|
+
type: "PlaceSpotLimitOrder";
|
|
1558
|
+
content: PlaceSpotLimitOrder;
|
|
1403
1559
|
} | {
|
|
1404
1560
|
type: "CanceledPerpOrders";
|
|
1405
1561
|
content: CanceledPerpOrders;
|
|
1406
1562
|
} | {
|
|
1407
|
-
type: "
|
|
1408
|
-
content:
|
|
1563
|
+
type: "CanceledSpotOrders";
|
|
1564
|
+
content: CanceledSpotOrders;
|
|
1565
|
+
} | {
|
|
1566
|
+
type: "PerpOrderFills";
|
|
1567
|
+
content: PerpOrderFills;
|
|
1568
|
+
} | {
|
|
1569
|
+
type: "SpotOrderFills";
|
|
1570
|
+
content: SpotOrderFills;
|
|
1409
1571
|
} | {
|
|
1410
1572
|
type: "SetAutoLend";
|
|
1411
1573
|
content: SetAutoLend;
|
|
@@ -1442,9 +1604,6 @@ type WsMessage = {
|
|
|
1442
1604
|
} | {
|
|
1443
1605
|
type: "ReferralUpdate";
|
|
1444
1606
|
content: ReferralUpdate;
|
|
1445
|
-
} | {
|
|
1446
|
-
type: "MarketStatusChange";
|
|
1447
|
-
content: MarketStatusChange;
|
|
1448
1607
|
} | {
|
|
1449
1608
|
type: "ApiCreditsChange";
|
|
1450
1609
|
content: ApiCreditsChange;
|
|
@@ -1488,6 +1647,32 @@ interface ChangePerpOrderPriceParams {
|
|
|
1488
1647
|
postOnly: boolean;
|
|
1489
1648
|
reduceOnly: boolean;
|
|
1490
1649
|
}
|
|
1650
|
+
interface ChangeSpotOrderPriceParams {
|
|
1651
|
+
userId: string;
|
|
1652
|
+
baseToken: Address;
|
|
1653
|
+
quoteToken: Address;
|
|
1654
|
+
orderId: string;
|
|
1655
|
+
newPrice: string;
|
|
1656
|
+
postOnly: boolean;
|
|
1657
|
+
}
|
|
1658
|
+
interface SpotOrderData {
|
|
1659
|
+
baseToken: Address;
|
|
1660
|
+
quoteToken: Address;
|
|
1661
|
+
isBid: boolean;
|
|
1662
|
+
price: string;
|
|
1663
|
+
size: string;
|
|
1664
|
+
postOnly?: boolean;
|
|
1665
|
+
}
|
|
1666
|
+
interface PlaceSpotOrderParams {
|
|
1667
|
+
userId: string;
|
|
1668
|
+
orderData: SpotOrderData;
|
|
1669
|
+
}
|
|
1670
|
+
interface CancelSpotOrdersParams {
|
|
1671
|
+
userId: string;
|
|
1672
|
+
baseTokens: Address[];
|
|
1673
|
+
quoteTokens: Address[];
|
|
1674
|
+
orderIds: string[][];
|
|
1675
|
+
}
|
|
1491
1676
|
interface PlacePerpOrderParams {
|
|
1492
1677
|
userId: string;
|
|
1493
1678
|
orderData: PerpOrderData;
|
|
@@ -1647,10 +1832,13 @@ type WsOracleUpdates = Extract<WsMessage, {
|
|
|
1647
1832
|
type: 'OracleUpdates';
|
|
1648
1833
|
}>;
|
|
1649
1834
|
type WsUserUpdates = Extract<WsMessage, {
|
|
1650
|
-
type: 'BalanceChange' | 'Deposit' | 'Withdraw' | 'WithdrawLend' | 'Lend' | 'Borrow' | 'RepayBorrow' | 'PlacePerpLimitOrder' | 'PlacePerpMarketOrder' | 'PlacePerpTriggerOrder' | 'CanceledPerpOrders' | '
|
|
1835
|
+
type: 'BalanceChange' | 'Deposit' | 'Withdraw' | 'WithdrawLend' | 'Lend' | 'Borrow' | 'RepayBorrow' | 'PlacePerpLimitOrder' | 'PlacePerpMarketOrder' | 'PlacePerpTriggerOrder' | 'PlaceSpotLimitOrder' | 'PlaceSpotMarketOrder' | 'CancelPerpOrders' | 'CancelSpotOrders' | 'CanceledPerpOrders' | 'PerpOrderFills' | 'SpotOrderFills' | 'SetAutoLend' | 'SetAlias' | 'AddApiKey' | 'RemoveApiKey' | 'ClaimReferralFee' | 'ClaimUserKickbackFee' | 'UpdateUserFeeTier' | 'UserTransferSent' | 'UserTransferReceived' | 'ReferralUpdate' | 'ApiCreditsChange' | 'VaultDeposit' | 'VaultWithdraw' | 'UserBoxOpening' | 'Liquidation';
|
|
1651
1836
|
}>;
|
|
1652
1837
|
type WsPerpMarketUpdates = Extract<WsMessage, {
|
|
1653
|
-
type: '
|
|
1838
|
+
type: 'PerpOrderbookUpdate' | 'PerpTradesUpdate';
|
|
1839
|
+
}>;
|
|
1840
|
+
type WsSpotMarketUpdates = Extract<WsMessage, {
|
|
1841
|
+
type: 'SpotOrderbookUpdate' | 'SpotTradesUpdate';
|
|
1654
1842
|
}>;
|
|
1655
1843
|
type WsBorrowLendUpdate = Extract<WsMessage, {
|
|
1656
1844
|
type: 'BorrowLendUpdate';
|
|
@@ -1782,6 +1970,8 @@ declare class Client {
|
|
|
1782
1970
|
unsubscribeUserUpdates(userId: string): Promise<void>;
|
|
1783
1971
|
subscribePerpMarketUpdates(market: string, callback: (data: WsPerpMarketUpdates) => void): Promise<() => Promise<void>>;
|
|
1784
1972
|
unsubscribePerpMarketUpdates(market: string): Promise<void>;
|
|
1973
|
+
subscribeSpotMarketUpdates(market: string, callback: (data: WsSpotMarketUpdates) => void): Promise<() => Promise<void>>;
|
|
1974
|
+
unsubscribeSpotMarketUpdates(market: string): Promise<void>;
|
|
1785
1975
|
createUser(params: CreateUserParams): Promise<{
|
|
1786
1976
|
tx: MultiAgentTransaction;
|
|
1787
1977
|
signature: AccountAuthenticator;
|
|
@@ -1804,6 +1994,10 @@ declare class Client {
|
|
|
1804
1994
|
setAliasName(params: SetAliasNameParams): Promise<SubmitSponsoredTransactionResponse>;
|
|
1805
1995
|
placePerpLimitOrder(params: PlacePerpOrderParams): Promise<SubmitSponsoredTransactionResponse>;
|
|
1806
1996
|
placePerpMarketOrder(params: PlacePerpOrderParams): Promise<SubmitSponsoredTransactionResponse>;
|
|
1997
|
+
placeSpotLimitOrder(params: PlaceSpotOrderParams): Promise<SubmitSponsoredTransactionResponse>;
|
|
1998
|
+
placeSpotMarketOrder(params: PlaceSpotOrderParams): Promise<SubmitSponsoredTransactionResponse>;
|
|
1999
|
+
changeSpotOrderPrice(params: ChangeSpotOrderPriceParams): Promise<SubmitSponsoredTransactionResponse>;
|
|
2000
|
+
cancelSpotOrders(params: CancelSpotOrdersParams): Promise<SubmitSponsoredTransactionResponse>;
|
|
1807
2001
|
placeTriggerOrder(params: PlaceTriggerOrderParams): Promise<SubmitSponsoredTransactionResponse>;
|
|
1808
2002
|
changePerpOrderPrice(params: ChangePerpOrderPriceParams): Promise<SubmitSponsoredTransactionResponse>;
|
|
1809
2003
|
cancelPerpOrders(params: CancelPerpOrdersParams): Promise<SubmitSponsoredTransactionResponse>;
|
|
@@ -1829,17 +2023,22 @@ declare class Client {
|
|
|
1829
2023
|
sendPostJson: (message: object, endpoint: string) => Promise<any>;
|
|
1830
2024
|
getConfig: () => Promise<ExchangeConfig>;
|
|
1831
2025
|
getTokensConfig: () => Promise<GetTokensConfigResponse>;
|
|
1832
|
-
|
|
2026
|
+
getPerpMarketsConfig: () => Promise<GetPerpMarketsConfigResponse>;
|
|
2027
|
+
getSpotMarketsConfig: () => Promise<GetSpotMarketsConfigResponse>;
|
|
1833
2028
|
getUserData: (userId: string) => Promise<GetUserDataResponse>;
|
|
1834
|
-
|
|
2029
|
+
getOrderBookData: (marketName: string) => Promise<GetOrderBookDataResponse>;
|
|
1835
2030
|
getPerpMarketsData: (markets: string[]) => Promise<GetPerpMarketsDataResponse>;
|
|
2031
|
+
getSpotMarketsData: (markets: string[]) => Promise<GetSpotMarketsDataResponse>;
|
|
1836
2032
|
getBorrowLendingData: () => Promise<GetBorrowLendingDataResponse>;
|
|
1837
2033
|
getChartCandlesInRange: ({ interval, marketName, timestampStartMs, timestampEndMs, cursor, }: IGetChartCandlesInRange) => Promise<GetChartCandlesInRangeResponse>;
|
|
1838
2034
|
getPriceIndexes: () => Promise<GetPriceIndexesResponse>;
|
|
1839
2035
|
getUsersByAddress: (payload: GetUsersByAddressRequest) => Promise<GetUsersByAddressResponse>;
|
|
1840
2036
|
getPerpRecentTrades: (request: GetPerpRecentTradesRequest) => Promise<GetPerpRecentTradesResponse>;
|
|
2037
|
+
getSpotRecentTrades: (request: GetSpotRecentTradesRequest) => Promise<GetSpotRecentTradesResponse>;
|
|
1841
2038
|
getUserPerpFills: (request: GetPerpUserFillsRequest) => Promise<GetPerpUserFillsResponse>;
|
|
2039
|
+
getUserSpotFills: (request: GetSpotUserFillsRequest) => Promise<GetSpotUserFillsResponse>;
|
|
1842
2040
|
getUserPerpOrders: (request: GetPerpUserOrdersRequest) => Promise<GetPerpUserOrdersResponse>;
|
|
2041
|
+
getUserSpotOrders: (request: GetSpotUserOrdersRequest) => Promise<GetSpotUserOrdersResponse>;
|
|
1843
2042
|
getUserPerpTriggerOrders: (request: GetPerpUserTriggerOrdersRequest) => Promise<GetPerpUserTriggerOrdersResponse>;
|
|
1844
2043
|
getUserFundingHistory: (request: GetUserFundingHistoryRequest) => Promise<GetUserFundingHistoryResponse>;
|
|
1845
2044
|
getUserHistoricalDeposits: (request: GetUserDepositsRequest) => Promise<GetUserDepositsResponse>;
|
|
@@ -1872,6 +2071,7 @@ declare class Client {
|
|
|
1872
2071
|
getVaultWithdrawals: (request: GetVaultWithdrawalsRequest) => Promise<GetVaultWithdrawalsResponse>;
|
|
1873
2072
|
getUserBoxesHistory: (request: GetUserBoxesHistoryRequest) => Promise<GetUserBoxesHistoryResponse>;
|
|
1874
2073
|
getUserRequiredVolumeForReferral: (request: GetUserVolumeForReferralRequest) => Promise<GetUserVolumeForReferralResponse>;
|
|
2074
|
+
getUserPointsHistory: (request: GetUserPointsHistoryRequest) => Promise<GetUserPointsHistoryResponse>;
|
|
1875
2075
|
getTime: () => Promise<string>;
|
|
1876
2076
|
}
|
|
1877
2077
|
|
|
@@ -1903,4 +2103,4 @@ declare const generateApiKey: () => _aptos_labs_ts_sdk.Ed25519Account;
|
|
|
1903
2103
|
declare const getTopicFromCommand: (data: WsCommand) => string;
|
|
1904
2104
|
declare const getTopicFromMessage: (data: WsMessage) => string;
|
|
1905
2105
|
|
|
1906
|
-
export { type AddApiCreditsParams, type AddApiKey, type AddApiKeyParams, type Address, AdminEndpoints, type ApiCreditsChange, type ApiStatus, type BalanceChange, BaseEndpoints, type Borrow, type BorrowLendUpdate, type BorrowLending, type BorrowLendingAggregatedData, type BorrowLendingHistoricalData, type BoxOpeningEvent, type BoxReward, BoxRewardTier, type CancelAllPerpOrdersParams, type CancelPerpOrdersParams, type CanceledPerpOrders, type ChangePerpOrderPriceParams, type ChartCandle, ChartInterval, type CheckReferralCodeRequest, type CheckReferralCodeResponse, type ClaimDepositParams, type ClaimKickbackFeeParams, type ClaimReferralFee, type ClaimReferralFeesParams, type ClaimUserKickbackFee, type ClaimedKickback, type ClaimedReferralKickback, Client, type Content, type CreateUserParams, type Deposit, type DepositToVaultParams, type DepositTokenParams, EndpointsV1, type ErrorResponse, type ExchangeConfig, ExchangeProxies, type FeeData, type FeeTier, type Fees, type FundingCheckpoint, type FundingPayment, type FundingRate, GLOBAL_DENOMINATOR, type GetBorrowLendingAggregatedStatsRequest, type GetBorrowLendingAggregatedStatsResponse, type GetBorrowLendingDataResponse, type GetBorrowLendingHistoricalDataRequest, type GetBorrowLendingHistoricalDataResponse, type GetChartCandlesInRangeRequest, type GetChartCandlesInRangeResponse, type GetIndexPriceHistoryRequest, type GetIndexPriceHistoryResponse, type GetIndexerStatusResponse, type
|
|
2106
|
+
export { type AddApiCreditsParams, type AddApiKey, type AddApiKeyParams, type Address, AdminEndpoints, type ApiCreditsChange, type ApiStatus, type BalanceChange, BaseEndpoints, type Borrow, type BorrowLendUpdate, type BorrowLending, type BorrowLendingAggregatedData, type BorrowLendingHistoricalData, type BoxOpeningEvent, type BoxReward, BoxRewardTier, type CancelAllPerpOrdersParams, type CancelPerpOrdersParams, type CancelSpotOrdersParams, type CanceledPerpOrders, type CanceledSpotOrders, type ChangePerpOrderPriceParams, type ChangeSpotOrderPriceParams, type ChartCandle, ChartInterval, type CheckReferralCodeRequest, type CheckReferralCodeResponse, type ClaimDepositParams, type ClaimKickbackFeeParams, type ClaimReferralFee, type ClaimReferralFeesParams, type ClaimUserKickbackFee, type ClaimedKickback, type ClaimedReferralKickback, Client, type Content, type CreateUserParams, type Deposit, type DepositToVaultParams, type DepositTokenParams, EndpointsV1, type ErrorResponse, type ExchangeConfig, ExchangeProxies, type FeeData, type FeeTier, type Fees, type FundingCheckpoint, type FundingPayment, type FundingRate, GLOBAL_DENOMINATOR, type GetBorrowLendingAggregatedStatsRequest, type GetBorrowLendingAggregatedStatsResponse, type GetBorrowLendingDataResponse, type GetBorrowLendingHistoricalDataRequest, type GetBorrowLendingHistoricalDataResponse, type GetChartCandlesInRangeRequest, type GetChartCandlesInRangeResponse, type GetIndexPriceHistoryRequest, type GetIndexPriceHistoryResponse, type GetIndexerStatusResponse, type GetOrderBookDataRequest, type GetOrderBookDataResponse, type GetPerpMarketsConfigResponse, type GetPerpMarketsDataRequest, type GetPerpMarketsDataResponse, type GetPerpRecentTradesRequest, type GetPerpRecentTradesResponse, type GetPerpUserFillsRequest, type GetPerpUserFillsResponse, type GetPerpUserOrdersRequest, type GetPerpUserOrdersResponse, type GetPerpUserTriggerOrdersRequest, type GetPerpUserTriggerOrdersResponse, type GetPriceIndexesResponse, type GetServicesStatusResponse, type GetSpotMarketsConfigResponse, type GetSpotMarketsDataRequest, type GetSpotMarketsDataResponse, type GetSpotRecentTradesRequest, type GetSpotRecentTradesResponse, type GetSpotUserFillsRequest, type GetSpotUserFillsResponse, type GetSpotUserOrdersRequest, type GetSpotUserOrdersResponse, type GetTokenAggregatedStatsRequest, type GetTokenAggregatedStatsResponse, type GetTokenStatsHistoryRequest, type GetTokenStatsHistoryResponse, type GetTokensConfigResponse, type GetUserAggregatedBoxRewardsStatsRequest, type GetUserAggregatedBoxRewardsStatsResponse, type GetUserAggregatedReferralStatsRequest, type GetUserAggregatedReferralStatsResponse, type GetUserAggregatedStatsRequest, type GetUserAggregatedStatsResponse, type GetUserAggregatedVaultStatsRequest, type GetUserAggregatedVaultStatsResponse, type GetUserBoxRewardsStatsHistoryRequest, type GetUserBoxRewardsStatsHistoryResponse, type GetUserBoxesHistoryRequest, type GetUserBoxesHistoryResponse, type GetUserClaimedKickbackHistoryRequest, type GetUserClaimedKickbackHistoryResponse, type GetUserClaimedReferralKickbackHistoryRequest, type GetUserClaimedReferralKickbackHistoryResponse, type GetUserDataRequest, type GetUserDataResponse, type GetUserDepositsRequest, type GetUserDepositsResponse, type GetUserFundingHistoryRequest, type GetUserFundingHistoryResponse, type GetUserLiquidationsHistoryRequest, type GetUserLiquidationsHistoryResponse, type GetUserPointsHistoryRequest, type GetUserPointsHistoryResponse, type GetUserPortfolioValueRequest, type GetUserPortfolioValueResponse, type GetUserReferralStatsHistoryRequest, type GetUserReferralStatsHistoryResponse, type GetUserRewardsValueRequest, type GetUserRewardsValueResponse, type GetUserTradeStatsHistoryRequest, type GetUserTradeStatsHistoryResponse, type GetUserTransferHistoryRequest, type GetUserTransferHistoryResponse, type GetUserVaultDepositsRequest, type GetUserVaultDepositsResponse, type GetUserVaultWithdrawsRequest, type GetUserVaultWithdrawsResponse, type GetUserVolumeForReferralRequest, type GetUserVolumeForReferralResponse, type GetUserWithdrawalsRequest, type GetUserWithdrawalsResponse, type GetUsersByAddressRequest, type GetUsersByAddressResponse, type GetVaultDepositsRequest, type GetVaultDepositsResponse, type GetVaultHistoricalDataRequest, type GetVaultHistoricalDataResponse, type GetVaultWithdrawalsRequest, type GetVaultWithdrawalsResponse, type HistoricBoxReward, type HistoricalBoxRewardsStats, type HistoricalDeposit, type HistoricalFunding, type HistoricalLiquidation, type HistoricalPoints, type HistoricalReferralStats, type HistoricalTokenStats, type HistoricalTradeStats, type HistoricalUserTransfer, type HistoricalVaultDeposit, type HistoricalVaultWithdraw, type HistoricalWithdraw, type IGetChartCandlesInRange, type IndexPriceHistory, type Lend, type LendTokenParams, type Liquidation, type MarginStep, Network, type NodeStatus, type OpenBoxesRequest, type OpenBoxesResponse, type OpenBoxesSignRequest, type OracleUpdate, type OracleUpdates, type OrderBookData, OrderSide, OrderStatus, OrderType, type PaginationCursor, type PerpFill, type PerpMarketConfigEntry, type PerpMarketData, type PerpOrder, type PerpOrderData, type PerpOrderDataForMarket, type PerpOrderFills, type PerpOrderbookUpdate, type PerpPosition, type PerpTrade, type PerpTradesUpdate, type PerpTriggerOrder, type PlaceMultiplePerpOrdersParams, type PlacePerpLimitOrder, type PlacePerpMarketOrder, type PlacePerpOrderParams, type PlacePerpTriggerOrder, type PlaceSpotLimitOrder, type PlaceSpotMarketOrder, type PlaceSpotOrderParams, type PlaceTriggerOrderParams, type PriceIndex, type RedeemTokenParams, type Referral, type ReferralUpdate, type RemoveApiKey, type RemoveApiKeyParams, type RemoveApiKeySignerParams, type RepayBorrow, type ReplaceMultipleOrdersParams, type SetAlias, type SetAliasNameParams, type SetAutoLend, type SetAutolendParams, type SetReferralCodeParams, type SetReferralParamsRequest, type SetReferralParamsResponse, type SpotFill, type SpotMarketConfigEntry, type SpotMarketData, type SpotOrder, type SpotOrderData, type SpotOrderFills, type SpotOrderbookUpdate, type SpotTrade, type SpotTradesUpdate, Status, type StatusResponse, type SubServiceStatus, type SubmitSponsoredTransactionRequest, type SubmitSponsoredTransactionResponse, TestFaucet, type TimeResponse, type TokenAggregatedStats, type TokenConfigEntry, type TokenizeUserVaultInvestmentParams, type Topic, type Trade, TradeRole, TransferAction, type TransferToUserParams, type TriggerOrder, type TxParams, type UpdateUserFeeTier, type User, type UserAggregatedBoxRewardsStats, type UserAggregatedReferralStats, type UserAggregatedStats, type UserAggregatedVaultStats, type UserBoxOpeningEvent, type UserPortfolioValue, type UserRewardsValue, UserStatus, type UserTransfer, type UtilizationCurve, type Vault, type VaultDeposit, type VaultHistoricalData, type VaultInvestment, type VaultWithdraw, type Withdraw, type WithdrawFromVaultParams, type WithdrawLend, type WithdrawTokenParams, type WsBorrowLendUpdate, type WsBoxOpeningUpdate, type WsCommand, type WsFill, type WsLiquidationUpdate, type WsMessage, type WsOracleUpdates, type WsPerpMarketUpdates, type WsSpotMarketUpdates, type WsUserUpdates, generateApiKey, getRandomId, getTopicFromCommand, getTopicFromMessage, nowInMiliseconds, parseEntryFunctionAbi, sleep, toSystemValue };
|