@nightlylabs/dex-sdk 1.0.9 → 1.0.11
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 +360 -77
- package/dist/index.d.cts +313 -167
- package/dist/index.d.ts +313 -167
- package/dist/index.js +360 -77
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -26,10 +26,12 @@ interface AddApiKey {
|
|
|
26
26
|
userId: string;
|
|
27
27
|
apiKey: string;
|
|
28
28
|
expirationTimestamp: string;
|
|
29
|
+
sequence: string;
|
|
29
30
|
}
|
|
30
31
|
interface ApiCreditsChange {
|
|
31
32
|
userId: string;
|
|
32
33
|
currentCreditsAmount: string;
|
|
34
|
+
sequence: string;
|
|
33
35
|
}
|
|
34
36
|
interface ApiStatus {
|
|
35
37
|
timestamp: string;
|
|
@@ -41,21 +43,14 @@ interface BalanceChange {
|
|
|
41
43
|
tokenAddress: string;
|
|
42
44
|
changeAmount: string;
|
|
43
45
|
currentBalance: string;
|
|
46
|
+
sequence: string;
|
|
44
47
|
}
|
|
45
48
|
interface Borrow {
|
|
46
49
|
userId: string;
|
|
47
50
|
tokenAddress: string;
|
|
48
51
|
tokenAmount: string;
|
|
49
52
|
sharesReceived: string;
|
|
50
|
-
|
|
51
|
-
interface BorrowLendUpdate {
|
|
52
|
-
tokenAddress: string;
|
|
53
|
-
lendShares: string;
|
|
54
|
-
lendAmount: string;
|
|
55
|
-
borrowShares: string;
|
|
56
|
-
borrowAmount: string;
|
|
57
|
-
suppliers: string;
|
|
58
|
-
borrowers: string;
|
|
53
|
+
sequence: string;
|
|
59
54
|
}
|
|
60
55
|
interface UtilizationCurve {
|
|
61
56
|
base: string;
|
|
@@ -75,6 +70,20 @@ interface BorrowLending {
|
|
|
75
70
|
borrowEnabled: boolean;
|
|
76
71
|
lastUpdated: string;
|
|
77
72
|
}
|
|
73
|
+
interface BorrowLendState {
|
|
74
|
+
pools: BorrowLending[];
|
|
75
|
+
sequence: string;
|
|
76
|
+
}
|
|
77
|
+
interface BorrowLendUpdate {
|
|
78
|
+
tokenAddress: string;
|
|
79
|
+
lendShares: string;
|
|
80
|
+
lendAmount: string;
|
|
81
|
+
borrowShares: string;
|
|
82
|
+
borrowAmount: string;
|
|
83
|
+
suppliers: string;
|
|
84
|
+
borrowers: string;
|
|
85
|
+
sequence: string;
|
|
86
|
+
}
|
|
78
87
|
interface BorrowLendingAggregatedData {
|
|
79
88
|
tokenAddress: string;
|
|
80
89
|
totalLend: string;
|
|
@@ -115,6 +124,7 @@ interface BoxOpeningEvent {
|
|
|
115
124
|
totalPoints: string;
|
|
116
125
|
pointsCost: string;
|
|
117
126
|
timestamp: string;
|
|
127
|
+
sequence: string;
|
|
118
128
|
}
|
|
119
129
|
interface CanceledPerpOrderData {
|
|
120
130
|
price: string;
|
|
@@ -128,6 +138,7 @@ interface CanceledPerpOrders {
|
|
|
128
138
|
market: string;
|
|
129
139
|
userId: string;
|
|
130
140
|
orders: CanceledPerpOrderData[];
|
|
141
|
+
sequence: string;
|
|
131
142
|
}
|
|
132
143
|
interface CanceledPerpTriggerOrderData {
|
|
133
144
|
price: string;
|
|
@@ -145,6 +156,7 @@ interface CanceledPerpTriggerOrders {
|
|
|
145
156
|
market: string;
|
|
146
157
|
userId: string;
|
|
147
158
|
orders: CanceledPerpTriggerOrderData[];
|
|
159
|
+
sequence: string;
|
|
148
160
|
}
|
|
149
161
|
interface CanceledSpotOrderData {
|
|
150
162
|
price: string;
|
|
@@ -157,6 +169,7 @@ interface CanceledSpotOrders {
|
|
|
157
169
|
market: string;
|
|
158
170
|
userId: string;
|
|
159
171
|
orders: CanceledSpotOrderData[];
|
|
172
|
+
sequence: string;
|
|
160
173
|
}
|
|
161
174
|
interface ChartCandle {
|
|
162
175
|
marketName: string;
|
|
@@ -180,10 +193,12 @@ interface ClaimReferralFee {
|
|
|
180
193
|
referralUsers: string[];
|
|
181
194
|
tokens: string[];
|
|
182
195
|
amounts: string[];
|
|
196
|
+
sequence: string;
|
|
183
197
|
}
|
|
184
198
|
interface ClaimUserKickbackFee {
|
|
185
199
|
userId: string;
|
|
186
200
|
claimedKickback: Record<string, string>;
|
|
201
|
+
sequence: string;
|
|
187
202
|
}
|
|
188
203
|
interface ClaimedKickback {
|
|
189
204
|
claimedKickbacks: Record<string, string>;
|
|
@@ -201,6 +216,7 @@ interface Deposit {
|
|
|
201
216
|
userId: string;
|
|
202
217
|
tokenAddress: string;
|
|
203
218
|
amount: string;
|
|
219
|
+
sequence: string;
|
|
204
220
|
}
|
|
205
221
|
interface ErrorResponse {
|
|
206
222
|
code: number;
|
|
@@ -308,6 +324,7 @@ interface FundingPayment {
|
|
|
308
324
|
positionSize: string;
|
|
309
325
|
positionValue: string;
|
|
310
326
|
fundingRate: string;
|
|
327
|
+
sequence: string;
|
|
311
328
|
}
|
|
312
329
|
interface GetAccountValueRankingRequest {
|
|
313
330
|
paginationCursor?: PaginationCursor;
|
|
@@ -864,14 +881,17 @@ interface UserPointsBreakdown {
|
|
|
864
881
|
borrowLend: string;
|
|
865
882
|
vault: string;
|
|
866
883
|
referral: string;
|
|
884
|
+
pointsAirdrop?: string;
|
|
867
885
|
}
|
|
868
886
|
interface PerpPosition {
|
|
869
887
|
size: string;
|
|
870
888
|
entryPrice: string;
|
|
871
889
|
fundingCheckpoint: FundingCheckpoint;
|
|
872
890
|
positionId: string;
|
|
891
|
+
openingTimestamp?: string;
|
|
873
892
|
priceMoveDown?: string;
|
|
874
893
|
priceMoveUp?: string;
|
|
894
|
+
accPositionFunding?: string;
|
|
875
895
|
}
|
|
876
896
|
interface Referral {
|
|
877
897
|
masterCode?: string;
|
|
@@ -1086,6 +1106,29 @@ interface GetUserPortfolioValueResponse {
|
|
|
1086
1106
|
portfolioValues: UserPortfolioValue[];
|
|
1087
1107
|
paginationCursor?: PaginationCursor;
|
|
1088
1108
|
}
|
|
1109
|
+
interface GetUserPositionsRequest {
|
|
1110
|
+
userId: string;
|
|
1111
|
+
olderTimestampMs?: string;
|
|
1112
|
+
newerTimestampMs?: string;
|
|
1113
|
+
paginationCursor?: PaginationCursor;
|
|
1114
|
+
}
|
|
1115
|
+
interface HistoricalPosition {
|
|
1116
|
+
userId: string;
|
|
1117
|
+
positionId: string;
|
|
1118
|
+
marketName: string;
|
|
1119
|
+
isBid: boolean;
|
|
1120
|
+
remainingSize: string;
|
|
1121
|
+
sizeChange: string;
|
|
1122
|
+
avgEntryPrice: string;
|
|
1123
|
+
marketPrice: string;
|
|
1124
|
+
pnl: string;
|
|
1125
|
+
fundingAccrued: string;
|
|
1126
|
+
timestamp: string;
|
|
1127
|
+
}
|
|
1128
|
+
interface GetUserPositionsResponse {
|
|
1129
|
+
positions: HistoricalPosition[];
|
|
1130
|
+
paginationCursor?: PaginationCursor;
|
|
1131
|
+
}
|
|
1089
1132
|
interface GetUserReferralStatsHistoryRequest {
|
|
1090
1133
|
userId: string;
|
|
1091
1134
|
olderTimestampMs?: string;
|
|
@@ -1311,6 +1354,7 @@ interface GlobalLiquidation {
|
|
|
1311
1354
|
liquidatedBorrowShares: WsLiquidatedBorrow[];
|
|
1312
1355
|
liquidatedLendShares: WsLiquidatedLend[];
|
|
1313
1356
|
liquidatedCollaterals: WsLiquidatedCollateral[];
|
|
1357
|
+
sequence: string;
|
|
1314
1358
|
}
|
|
1315
1359
|
interface WsPartialLiquidatedPosition {
|
|
1316
1360
|
market: string;
|
|
@@ -1326,12 +1370,14 @@ interface GlobalPartialLiquidation {
|
|
|
1326
1370
|
liquidationId: string;
|
|
1327
1371
|
liquidationValue: string;
|
|
1328
1372
|
liquidatedPositions: WsPartialLiquidatedPosition[];
|
|
1373
|
+
sequence: string;
|
|
1329
1374
|
}
|
|
1330
1375
|
interface Lend {
|
|
1331
1376
|
userId: string;
|
|
1332
1377
|
tokenAddress: string;
|
|
1333
1378
|
tokenAmount: string;
|
|
1334
1379
|
sharesReceived: string;
|
|
1380
|
+
sequence: string;
|
|
1335
1381
|
}
|
|
1336
1382
|
interface Liquidation {
|
|
1337
1383
|
userId: string;
|
|
@@ -1342,6 +1388,7 @@ interface Liquidation {
|
|
|
1342
1388
|
liquidatedBorrowShares: WsLiquidatedBorrow[];
|
|
1343
1389
|
liquidatedLendShares: WsLiquidatedLend[];
|
|
1344
1390
|
liquidatedCollaterals: WsLiquidatedCollateral[];
|
|
1391
|
+
sequence: string;
|
|
1345
1392
|
}
|
|
1346
1393
|
interface LiquidationCancelledOrderData {
|
|
1347
1394
|
orderId: string;
|
|
@@ -1379,14 +1426,25 @@ interface OracleUpdate {
|
|
|
1379
1426
|
name: string;
|
|
1380
1427
|
price: string;
|
|
1381
1428
|
}
|
|
1429
|
+
interface OracleState {
|
|
1430
|
+
prices: OracleUpdate[];
|
|
1431
|
+
sequence: string;
|
|
1432
|
+
}
|
|
1382
1433
|
interface OracleUpdates {
|
|
1383
1434
|
updates: OracleUpdate[];
|
|
1435
|
+
sequence: string;
|
|
1384
1436
|
}
|
|
1385
1437
|
interface PartialLiquidation {
|
|
1386
1438
|
userId: string;
|
|
1387
1439
|
liquidationId: string;
|
|
1388
1440
|
liquidationValue: string;
|
|
1389
1441
|
liquidatedPositions: WsPartialLiquidatedPosition[];
|
|
1442
|
+
sequence: string;
|
|
1443
|
+
}
|
|
1444
|
+
interface PerpMarketDataUpdate {
|
|
1445
|
+
market: string;
|
|
1446
|
+
data: PerpMarketData;
|
|
1447
|
+
sequence: string;
|
|
1390
1448
|
}
|
|
1391
1449
|
interface PerpOrder {
|
|
1392
1450
|
id: string;
|
|
@@ -1411,6 +1469,7 @@ interface PerpOrderFills {
|
|
|
1411
1469
|
userId: string;
|
|
1412
1470
|
orderId: string;
|
|
1413
1471
|
fills: WsFill[];
|
|
1472
|
+
sequence: string;
|
|
1414
1473
|
}
|
|
1415
1474
|
interface PerpOrderbookState {
|
|
1416
1475
|
market: string;
|
|
@@ -1434,6 +1493,7 @@ interface Trade {
|
|
|
1434
1493
|
interface PerpTradesUpdate {
|
|
1435
1494
|
market: string;
|
|
1436
1495
|
updates: Trade[];
|
|
1496
|
+
sequence: string;
|
|
1437
1497
|
}
|
|
1438
1498
|
interface PerpTriggerOrderTriggered {
|
|
1439
1499
|
market: string;
|
|
@@ -1448,6 +1508,7 @@ interface PerpTriggerOrderTriggered {
|
|
|
1448
1508
|
positionDependent?: string;
|
|
1449
1509
|
marketOrder: boolean;
|
|
1450
1510
|
postOnly: boolean;
|
|
1511
|
+
sequence: string;
|
|
1451
1512
|
}
|
|
1452
1513
|
interface PlacePerpLimitOrder {
|
|
1453
1514
|
market: string;
|
|
@@ -1460,6 +1521,7 @@ interface PlacePerpLimitOrder {
|
|
|
1460
1521
|
orderId: string;
|
|
1461
1522
|
filledSize: string;
|
|
1462
1523
|
fills: WsFill[];
|
|
1524
|
+
sequence: string;
|
|
1463
1525
|
}
|
|
1464
1526
|
interface PlacePerpMarketOrder {
|
|
1465
1527
|
market: string;
|
|
@@ -1470,6 +1532,7 @@ interface PlacePerpMarketOrder {
|
|
|
1470
1532
|
reduceOnly: boolean;
|
|
1471
1533
|
orderId: string;
|
|
1472
1534
|
fills: WsFill[];
|
|
1535
|
+
sequence: string;
|
|
1473
1536
|
}
|
|
1474
1537
|
interface PlacePerpTriggerOrder {
|
|
1475
1538
|
market: string;
|
|
@@ -1484,6 +1547,7 @@ interface PlacePerpTriggerOrder {
|
|
|
1484
1547
|
positionDependent?: string;
|
|
1485
1548
|
marketOrder: boolean;
|
|
1486
1549
|
postOnly: boolean;
|
|
1550
|
+
sequence: string;
|
|
1487
1551
|
}
|
|
1488
1552
|
interface PlaceSpotLimitOrder {
|
|
1489
1553
|
market: string;
|
|
@@ -1495,6 +1559,7 @@ interface PlaceSpotLimitOrder {
|
|
|
1495
1559
|
orderId: string;
|
|
1496
1560
|
filledSize: string;
|
|
1497
1561
|
fills: WsFill[];
|
|
1562
|
+
sequence: string;
|
|
1498
1563
|
}
|
|
1499
1564
|
interface PlaceSpotMarketOrder {
|
|
1500
1565
|
market: string;
|
|
@@ -1505,16 +1570,19 @@ interface PlaceSpotMarketOrder {
|
|
|
1505
1570
|
postOnly: boolean;
|
|
1506
1571
|
orderId: string;
|
|
1507
1572
|
fills: WsFill[];
|
|
1573
|
+
sequence: string;
|
|
1508
1574
|
}
|
|
1509
1575
|
interface ReferralUpdate {
|
|
1510
1576
|
userId: string;
|
|
1511
1577
|
masterCode: string;
|
|
1512
1578
|
slaveKickback: string;
|
|
1513
1579
|
masterKickback: string;
|
|
1580
|
+
sequence: string;
|
|
1514
1581
|
}
|
|
1515
1582
|
interface RemoveApiKey {
|
|
1516
1583
|
userId: string;
|
|
1517
1584
|
apiKey: string;
|
|
1585
|
+
sequence: string;
|
|
1518
1586
|
}
|
|
1519
1587
|
interface RepayBorrow {
|
|
1520
1588
|
userId: string;
|
|
@@ -1522,14 +1590,17 @@ interface RepayBorrow {
|
|
|
1522
1590
|
sharesRepaid: string;
|
|
1523
1591
|
tokenRepaid: string;
|
|
1524
1592
|
sharePrice: string;
|
|
1593
|
+
sequence: string;
|
|
1525
1594
|
}
|
|
1526
1595
|
interface SetAlias {
|
|
1527
1596
|
userId: string;
|
|
1528
1597
|
newAlias: string;
|
|
1598
|
+
sequence: string;
|
|
1529
1599
|
}
|
|
1530
1600
|
interface SetAutoLend {
|
|
1531
1601
|
userId: string;
|
|
1532
1602
|
enabled: boolean;
|
|
1603
|
+
sequence: string;
|
|
1533
1604
|
}
|
|
1534
1605
|
interface SetReferralParamsRequest {
|
|
1535
1606
|
userId: string;
|
|
@@ -1538,6 +1609,11 @@ interface SetReferralParamsRequest {
|
|
|
1538
1609
|
interface SetReferralParamsResponse {
|
|
1539
1610
|
txHash?: string;
|
|
1540
1611
|
}
|
|
1612
|
+
interface SpotMarketDataUpdate {
|
|
1613
|
+
market: string;
|
|
1614
|
+
data: SpotMarketData;
|
|
1615
|
+
sequence: string;
|
|
1616
|
+
}
|
|
1541
1617
|
interface SpotOrder {
|
|
1542
1618
|
id: string;
|
|
1543
1619
|
size: string;
|
|
@@ -1554,6 +1630,7 @@ interface SpotOrderFills {
|
|
|
1554
1630
|
userId: string;
|
|
1555
1631
|
orderId: string;
|
|
1556
1632
|
fills: WsFill[];
|
|
1633
|
+
sequence: string;
|
|
1557
1634
|
}
|
|
1558
1635
|
interface SpotOrderbookState {
|
|
1559
1636
|
market: string;
|
|
@@ -1570,6 +1647,7 @@ interface SpotOrderbookUpdate {
|
|
|
1570
1647
|
interface SpotTradesUpdate {
|
|
1571
1648
|
market: string;
|
|
1572
1649
|
updates: Trade[];
|
|
1650
|
+
sequence: string;
|
|
1573
1651
|
}
|
|
1574
1652
|
interface StatusResponse {
|
|
1575
1653
|
status: string;
|
|
@@ -1619,6 +1697,7 @@ interface TriggerOrder {
|
|
|
1619
1697
|
interface UpdateUserFeeTier {
|
|
1620
1698
|
userId: string;
|
|
1621
1699
|
newTierIndex: string;
|
|
1700
|
+
sequence: string;
|
|
1622
1701
|
}
|
|
1623
1702
|
interface UserBoxOpeningEvent {
|
|
1624
1703
|
txHash: string;
|
|
@@ -1631,17 +1710,24 @@ interface UserBoxOpeningEvent {
|
|
|
1631
1710
|
pointsCost: string;
|
|
1632
1711
|
timestamp: string;
|
|
1633
1712
|
userPointsBalance: string;
|
|
1713
|
+
sequence: string;
|
|
1714
|
+
}
|
|
1715
|
+
interface UserState {
|
|
1716
|
+
user: User;
|
|
1717
|
+
sequence: string;
|
|
1634
1718
|
}
|
|
1635
1719
|
interface UserTransfer {
|
|
1636
1720
|
senderId: string;
|
|
1637
1721
|
receiverId: string;
|
|
1638
1722
|
tokenAddress: string;
|
|
1639
1723
|
amount: string;
|
|
1724
|
+
sequence: string;
|
|
1640
1725
|
}
|
|
1641
1726
|
interface VaultDeposit {
|
|
1642
1727
|
vaultId: string;
|
|
1643
1728
|
userId: string;
|
|
1644
1729
|
usdAmount: string;
|
|
1730
|
+
sequence: string;
|
|
1645
1731
|
}
|
|
1646
1732
|
interface VaultInvestment {
|
|
1647
1733
|
sharesAmount: string;
|
|
@@ -1650,17 +1736,20 @@ interface VaultWithdraw {
|
|
|
1650
1736
|
vaultId: string;
|
|
1651
1737
|
userId: string;
|
|
1652
1738
|
usdAmount: string;
|
|
1739
|
+
sequence: string;
|
|
1653
1740
|
}
|
|
1654
1741
|
interface Withdraw {
|
|
1655
1742
|
userId: string;
|
|
1656
1743
|
tokenAddress: string;
|
|
1657
1744
|
amount: string;
|
|
1745
|
+
sequence: string;
|
|
1658
1746
|
}
|
|
1659
1747
|
interface WithdrawLend {
|
|
1660
1748
|
userId: string;
|
|
1661
1749
|
tokenAddress: string;
|
|
1662
1750
|
sharesAmount: string;
|
|
1663
1751
|
tokenReceived: string;
|
|
1752
|
+
sequence: string;
|
|
1664
1753
|
}
|
|
1665
1754
|
declare enum AdminEndpoints {
|
|
1666
1755
|
ComputeLeaderboardRankings = "/admin/compute_leaderboard_rankings",
|
|
@@ -1690,6 +1779,7 @@ declare enum EndpointsV1 {
|
|
|
1690
1779
|
GetUserDeposits = "/v1/get_user_deposits",
|
|
1691
1780
|
GetUserWithdrawals = "/v1/get_user_withdrawals",
|
|
1692
1781
|
GetUserFundingHistory = "/v1/get_user_funding_history",
|
|
1782
|
+
GetUserPositions = "/v1/get_user_positions",
|
|
1693
1783
|
GetUserPortfolioValue = "/v1/get_user_portfolio_value",
|
|
1694
1784
|
SyncStatus = "/v1/sync_status",
|
|
1695
1785
|
GetUserAggregatedReferral = "/v1/get_user_aggregated_referral",
|
|
@@ -1738,259 +1828,305 @@ declare enum EndpointsV1 {
|
|
|
1738
1828
|
GetExchangeStatsHistory = "/v1/get_exchange_stats_history"
|
|
1739
1829
|
}
|
|
1740
1830
|
type Topic = {
|
|
1741
|
-
type:
|
|
1831
|
+
type: 'PerpMarket';
|
|
1742
1832
|
content: string;
|
|
1743
1833
|
} | {
|
|
1744
|
-
type:
|
|
1834
|
+
type: 'SpotMarket';
|
|
1745
1835
|
content: string;
|
|
1746
1836
|
} | {
|
|
1747
|
-
type:
|
|
1837
|
+
type: 'User';
|
|
1748
1838
|
content: {
|
|
1749
1839
|
id: string;
|
|
1750
1840
|
};
|
|
1751
1841
|
} | {
|
|
1752
|
-
type:
|
|
1842
|
+
type: 'Oracle';
|
|
1753
1843
|
content?: undefined;
|
|
1754
1844
|
} | {
|
|
1755
|
-
type:
|
|
1845
|
+
type: 'BorrowLend';
|
|
1756
1846
|
content?: undefined;
|
|
1757
1847
|
} | {
|
|
1758
|
-
type:
|
|
1848
|
+
type: 'Boxes';
|
|
1759
1849
|
content?: undefined;
|
|
1760
1850
|
} | {
|
|
1761
|
-
type:
|
|
1851
|
+
type: 'Liquidations';
|
|
1762
1852
|
content?: undefined;
|
|
1853
|
+
} | {
|
|
1854
|
+
type: 'PerpMarketData';
|
|
1855
|
+
content: string;
|
|
1856
|
+
} | {
|
|
1857
|
+
type: 'SpotMarketData';
|
|
1858
|
+
content: string;
|
|
1763
1859
|
};
|
|
1764
1860
|
declare enum UserStatus {
|
|
1765
1861
|
Active = "Active",
|
|
1766
1862
|
Locked = "Locked"
|
|
1767
1863
|
}
|
|
1768
1864
|
type WsCommand = {
|
|
1769
|
-
type:
|
|
1865
|
+
type: 'SubscribePerpMarket';
|
|
1770
1866
|
content: {
|
|
1771
1867
|
id: string;
|
|
1772
1868
|
market: string;
|
|
1773
1869
|
};
|
|
1774
1870
|
} | {
|
|
1775
|
-
type:
|
|
1871
|
+
type: 'SubscribeSpotMarket';
|
|
1776
1872
|
content: {
|
|
1777
1873
|
id: string;
|
|
1778
1874
|
market: string;
|
|
1779
1875
|
};
|
|
1780
1876
|
} | {
|
|
1781
|
-
type:
|
|
1877
|
+
type: 'UnsubscribePerpMarket';
|
|
1782
1878
|
content: {
|
|
1783
1879
|
id: string;
|
|
1784
1880
|
market: string;
|
|
1785
1881
|
};
|
|
1786
1882
|
} | {
|
|
1787
|
-
type:
|
|
1883
|
+
type: 'UnsubscribeSpotMarket';
|
|
1788
1884
|
content: {
|
|
1789
1885
|
id: string;
|
|
1790
1886
|
market: string;
|
|
1791
1887
|
};
|
|
1792
1888
|
} | {
|
|
1793
|
-
type:
|
|
1889
|
+
type: 'SubscribeUser';
|
|
1794
1890
|
content: {
|
|
1795
1891
|
id: string;
|
|
1796
1892
|
userId: string;
|
|
1797
1893
|
};
|
|
1798
1894
|
} | {
|
|
1799
|
-
type:
|
|
1895
|
+
type: 'UnsubscribeUser';
|
|
1800
1896
|
content: {
|
|
1801
1897
|
id: string;
|
|
1802
1898
|
userId: string;
|
|
1803
1899
|
};
|
|
1804
1900
|
} | {
|
|
1805
|
-
type:
|
|
1901
|
+
type: 'SubscribeOracle';
|
|
1902
|
+
content: {
|
|
1903
|
+
id: string;
|
|
1904
|
+
};
|
|
1905
|
+
} | {
|
|
1906
|
+
type: 'UnsubscribeOracle';
|
|
1907
|
+
content: {
|
|
1908
|
+
id: string;
|
|
1909
|
+
};
|
|
1910
|
+
} | {
|
|
1911
|
+
type: 'SubscribeBorrowLend';
|
|
1912
|
+
content: {
|
|
1913
|
+
id: string;
|
|
1914
|
+
};
|
|
1915
|
+
} | {
|
|
1916
|
+
type: 'UnsubscribeBorrowLend';
|
|
1917
|
+
content: {
|
|
1918
|
+
id: string;
|
|
1919
|
+
};
|
|
1920
|
+
} | {
|
|
1921
|
+
type: 'SubscribeBoxes';
|
|
1806
1922
|
content: {
|
|
1807
1923
|
id: string;
|
|
1808
1924
|
};
|
|
1809
1925
|
} | {
|
|
1810
|
-
type:
|
|
1926
|
+
type: 'UnsubscribeBoxes';
|
|
1811
1927
|
content: {
|
|
1812
1928
|
id: string;
|
|
1813
1929
|
};
|
|
1814
1930
|
} | {
|
|
1815
|
-
type:
|
|
1931
|
+
type: 'SubscribeLiquidations';
|
|
1816
1932
|
content: {
|
|
1817
1933
|
id: string;
|
|
1818
1934
|
};
|
|
1819
1935
|
} | {
|
|
1820
|
-
type:
|
|
1936
|
+
type: 'UnsubscribeLiquidations';
|
|
1821
1937
|
content: {
|
|
1822
1938
|
id: string;
|
|
1823
1939
|
};
|
|
1824
1940
|
} | {
|
|
1825
|
-
type:
|
|
1941
|
+
type: 'SubscribePerpMarketData';
|
|
1826
1942
|
content: {
|
|
1827
1943
|
id: string;
|
|
1944
|
+
market: string;
|
|
1828
1945
|
};
|
|
1829
1946
|
} | {
|
|
1830
|
-
type:
|
|
1947
|
+
type: 'UnsubscribePerpMarketData';
|
|
1831
1948
|
content: {
|
|
1832
1949
|
id: string;
|
|
1950
|
+
market: string;
|
|
1833
1951
|
};
|
|
1834
1952
|
} | {
|
|
1835
|
-
type:
|
|
1953
|
+
type: 'SubscribeSpotMarketData';
|
|
1836
1954
|
content: {
|
|
1837
1955
|
id: string;
|
|
1956
|
+
market: string;
|
|
1838
1957
|
};
|
|
1839
1958
|
} | {
|
|
1840
|
-
type:
|
|
1959
|
+
type: 'UnsubscribeSpotMarketData';
|
|
1841
1960
|
content: {
|
|
1842
1961
|
id: string;
|
|
1962
|
+
market: string;
|
|
1843
1963
|
};
|
|
1844
1964
|
};
|
|
1845
1965
|
type WsMessage = {
|
|
1846
|
-
type:
|
|
1966
|
+
type: 'Ack';
|
|
1847
1967
|
content: {
|
|
1848
1968
|
id: string;
|
|
1969
|
+
sequence?: string;
|
|
1849
1970
|
};
|
|
1850
1971
|
} | {
|
|
1851
|
-
type:
|
|
1972
|
+
type: 'Error';
|
|
1852
1973
|
content: {
|
|
1853
1974
|
id: string;
|
|
1854
1975
|
message: string;
|
|
1855
1976
|
};
|
|
1856
1977
|
} | {
|
|
1857
|
-
type:
|
|
1978
|
+
type: 'OracleUpdates';
|
|
1858
1979
|
content: OracleUpdates;
|
|
1859
1980
|
} | {
|
|
1860
|
-
type:
|
|
1981
|
+
type: 'PerpOrderbookState';
|
|
1861
1982
|
content: PerpOrderbookState;
|
|
1862
1983
|
} | {
|
|
1863
|
-
type:
|
|
1984
|
+
type: 'PerpOrderbookUpdate';
|
|
1864
1985
|
content: PerpOrderbookUpdate;
|
|
1865
1986
|
} | {
|
|
1866
|
-
type:
|
|
1987
|
+
type: 'PerpTradesUpdate';
|
|
1867
1988
|
content: PerpTradesUpdate;
|
|
1868
1989
|
} | {
|
|
1869
|
-
type:
|
|
1990
|
+
type: 'SpotOrderbookState';
|
|
1870
1991
|
content: SpotOrderbookState;
|
|
1871
1992
|
} | {
|
|
1872
|
-
type:
|
|
1993
|
+
type: 'SpotOrderbookUpdate';
|
|
1873
1994
|
content: SpotOrderbookUpdate;
|
|
1874
1995
|
} | {
|
|
1875
|
-
type:
|
|
1996
|
+
type: 'SpotTradesUpdate';
|
|
1876
1997
|
content: SpotTradesUpdate;
|
|
1877
1998
|
} | {
|
|
1878
|
-
type:
|
|
1999
|
+
type: 'BalanceChange';
|
|
1879
2000
|
content: BalanceChange;
|
|
1880
2001
|
} | {
|
|
1881
|
-
type:
|
|
2002
|
+
type: 'Deposit';
|
|
1882
2003
|
content: Deposit;
|
|
1883
2004
|
} | {
|
|
1884
|
-
type:
|
|
2005
|
+
type: 'Withdraw';
|
|
1885
2006
|
content: Withdraw;
|
|
1886
2007
|
} | {
|
|
1887
|
-
type:
|
|
2008
|
+
type: 'WithdrawLend';
|
|
1888
2009
|
content: WithdrawLend;
|
|
1889
2010
|
} | {
|
|
1890
|
-
type:
|
|
2011
|
+
type: 'Lend';
|
|
1891
2012
|
content: Lend;
|
|
1892
2013
|
} | {
|
|
1893
|
-
type:
|
|
2014
|
+
type: 'Borrow';
|
|
1894
2015
|
content: Borrow;
|
|
1895
2016
|
} | {
|
|
1896
|
-
type:
|
|
2017
|
+
type: 'RepayBorrow';
|
|
1897
2018
|
content: RepayBorrow;
|
|
1898
2019
|
} | {
|
|
1899
|
-
type:
|
|
2020
|
+
type: 'PlacePerpLimitOrder';
|
|
1900
2021
|
content: PlacePerpLimitOrder;
|
|
1901
2022
|
} | {
|
|
1902
|
-
type:
|
|
2023
|
+
type: 'PlacePerpMarketOrder';
|
|
1903
2024
|
content: PlacePerpMarketOrder;
|
|
1904
2025
|
} | {
|
|
1905
|
-
type:
|
|
2026
|
+
type: 'PlacePerpTriggerOrder';
|
|
1906
2027
|
content: PlacePerpTriggerOrder;
|
|
1907
2028
|
} | {
|
|
1908
|
-
type:
|
|
2029
|
+
type: 'PerpTriggerOrderTriggered';
|
|
1909
2030
|
content: PerpTriggerOrderTriggered;
|
|
1910
2031
|
} | {
|
|
1911
|
-
type:
|
|
2032
|
+
type: 'PlaceSpotMarketOrder';
|
|
1912
2033
|
content: PlaceSpotMarketOrder;
|
|
1913
2034
|
} | {
|
|
1914
|
-
type:
|
|
2035
|
+
type: 'PlaceSpotLimitOrder';
|
|
1915
2036
|
content: PlaceSpotLimitOrder;
|
|
1916
2037
|
} | {
|
|
1917
|
-
type:
|
|
2038
|
+
type: 'CanceledPerpOrders';
|
|
1918
2039
|
content: CanceledPerpOrders;
|
|
1919
2040
|
} | {
|
|
1920
|
-
type:
|
|
2041
|
+
type: 'CanceledPerpTriggerOrders';
|
|
1921
2042
|
content: CanceledPerpTriggerOrders;
|
|
1922
2043
|
} | {
|
|
1923
|
-
type:
|
|
2044
|
+
type: 'CanceledSpotOrders';
|
|
1924
2045
|
content: CanceledSpotOrders;
|
|
1925
2046
|
} | {
|
|
1926
|
-
type:
|
|
2047
|
+
type: 'PerpOrderFills';
|
|
1927
2048
|
content: PerpOrderFills;
|
|
1928
2049
|
} | {
|
|
1929
|
-
type:
|
|
2050
|
+
type: 'SpotOrderFills';
|
|
1930
2051
|
content: SpotOrderFills;
|
|
1931
2052
|
} | {
|
|
1932
|
-
type:
|
|
2053
|
+
type: 'SetAutoLend';
|
|
1933
2054
|
content: SetAutoLend;
|
|
1934
2055
|
} | {
|
|
1935
|
-
type:
|
|
2056
|
+
type: 'SetAlias';
|
|
1936
2057
|
content: SetAlias;
|
|
1937
2058
|
} | {
|
|
1938
|
-
type:
|
|
2059
|
+
type: 'AddApiKey';
|
|
1939
2060
|
content: AddApiKey;
|
|
1940
2061
|
} | {
|
|
1941
|
-
type:
|
|
2062
|
+
type: 'RemoveApiKey';
|
|
1942
2063
|
content: RemoveApiKey;
|
|
1943
2064
|
} | {
|
|
1944
|
-
type:
|
|
2065
|
+
type: 'FundingPayment';
|
|
1945
2066
|
content: FundingPayment;
|
|
1946
2067
|
} | {
|
|
1947
|
-
type:
|
|
2068
|
+
type: 'BorrowLendUpdate';
|
|
1948
2069
|
content: BorrowLendUpdate;
|
|
1949
2070
|
} | {
|
|
1950
|
-
type:
|
|
2071
|
+
type: 'ClaimReferralFee';
|
|
1951
2072
|
content: ClaimReferralFee;
|
|
1952
2073
|
} | {
|
|
1953
|
-
type:
|
|
2074
|
+
type: 'ClaimUserKickbackFee';
|
|
1954
2075
|
content: ClaimUserKickbackFee;
|
|
1955
2076
|
} | {
|
|
1956
|
-
type:
|
|
2077
|
+
type: 'UpdateUserFeeTier';
|
|
1957
2078
|
content: UpdateUserFeeTier;
|
|
1958
2079
|
} | {
|
|
1959
|
-
type:
|
|
2080
|
+
type: 'UserTransferSent';
|
|
1960
2081
|
content: UserTransfer;
|
|
1961
2082
|
} | {
|
|
1962
|
-
type:
|
|
2083
|
+
type: 'UserTransferReceived';
|
|
1963
2084
|
content: UserTransfer;
|
|
1964
2085
|
} | {
|
|
1965
|
-
type:
|
|
2086
|
+
type: 'ReferralUpdate';
|
|
1966
2087
|
content: ReferralUpdate;
|
|
1967
2088
|
} | {
|
|
1968
|
-
type:
|
|
2089
|
+
type: 'ApiCreditsChange';
|
|
1969
2090
|
content: ApiCreditsChange;
|
|
1970
2091
|
} | {
|
|
1971
|
-
type:
|
|
2092
|
+
type: 'VaultDeposit';
|
|
1972
2093
|
content: VaultDeposit;
|
|
1973
2094
|
} | {
|
|
1974
|
-
type:
|
|
2095
|
+
type: 'VaultWithdraw';
|
|
1975
2096
|
content: VaultWithdraw;
|
|
1976
2097
|
} | {
|
|
1977
|
-
type:
|
|
2098
|
+
type: 'BoxOpening';
|
|
1978
2099
|
content: BoxOpeningEvent;
|
|
1979
2100
|
} | {
|
|
1980
|
-
type:
|
|
2101
|
+
type: 'UserBoxOpening';
|
|
1981
2102
|
content: UserBoxOpeningEvent;
|
|
1982
2103
|
} | {
|
|
1983
|
-
type:
|
|
2104
|
+
type: 'Liquidation';
|
|
1984
2105
|
content: Liquidation;
|
|
1985
2106
|
} | {
|
|
1986
|
-
type:
|
|
2107
|
+
type: 'GlobalLiquidation';
|
|
1987
2108
|
content: GlobalLiquidation;
|
|
1988
2109
|
} | {
|
|
1989
|
-
type:
|
|
2110
|
+
type: 'PartialLiquidation';
|
|
1990
2111
|
content: PartialLiquidation;
|
|
1991
2112
|
} | {
|
|
1992
|
-
type:
|
|
2113
|
+
type: 'GlobalPartialLiquidation';
|
|
1993
2114
|
content: GlobalPartialLiquidation;
|
|
2115
|
+
} | {
|
|
2116
|
+
type: 'UserState';
|
|
2117
|
+
content: UserState;
|
|
2118
|
+
} | {
|
|
2119
|
+
type: 'OracleState';
|
|
2120
|
+
content: OracleState;
|
|
2121
|
+
} | {
|
|
2122
|
+
type: 'BorrowLendState';
|
|
2123
|
+
content: BorrowLendState;
|
|
2124
|
+
} | {
|
|
2125
|
+
type: 'PerpMarketDataUpdate';
|
|
2126
|
+
content: PerpMarketDataUpdate;
|
|
2127
|
+
} | {
|
|
2128
|
+
type: 'SpotMarketDataUpdate';
|
|
2129
|
+
content: SpotMarketDataUpdate;
|
|
1994
2130
|
};
|
|
1995
2131
|
|
|
1996
2132
|
/** Controls which deployment the SDK targets. */
|
|
@@ -6123,7 +6259,7 @@ interface OpenBoxesSignRequest {
|
|
|
6123
6259
|
}
|
|
6124
6260
|
/** WebSocket message type for index (oracle) price updates across all markets. */
|
|
6125
6261
|
type WsOracleUpdates = Extract<WsMessage, {
|
|
6126
|
-
type: 'OracleUpdates';
|
|
6262
|
+
type: 'OracleUpdates' | 'OracleState';
|
|
6127
6263
|
}>;
|
|
6128
6264
|
/**
|
|
6129
6265
|
* Union of all user-specific WebSocket event types.
|
|
@@ -6133,7 +6269,7 @@ type WsOracleUpdates = Extract<WsMessage, {
|
|
|
6133
6269
|
* fills, liquidations, referral events, vault activity, and more.
|
|
6134
6270
|
*/
|
|
6135
6271
|
type WsUserUpdates = Extract<WsMessage, {
|
|
6136
|
-
type: 'BalanceChange' | 'Deposit' | 'Withdraw' | 'WithdrawLend' | 'Lend' | 'Borrow' | 'RepayBorrow' | 'PlacePerpLimitOrder' | 'PlacePerpMarketOrder' | 'PlacePerpTriggerOrder' | 'PlaceSpotLimitOrder' | 'PlaceSpotMarketOrder' | 'CanceledPerpOrders' | 'CanceledSpotOrders' | 'PerpOrderFills' | 'SpotOrderFills' | 'SetAutoLend' | 'SetAlias' | 'AddApiKey' | 'RemoveApiKey' | 'ClaimReferralFee' | 'ClaimUserKickbackFee' | 'UpdateUserFeeTier' | 'UserTransferSent' | 'UserTransferReceived' | 'ReferralUpdate' | 'ApiCreditsChange' | 'VaultDeposit' | 'VaultWithdraw' | 'UserBoxOpening' | 'Liquidation' | 'PartialLiquidation' | 'PerpTriggerOrderTriggered' | 'CanceledPerpTriggerOrders';
|
|
6272
|
+
type: 'BalanceChange' | 'Deposit' | 'Withdraw' | 'WithdrawLend' | 'Lend' | 'Borrow' | 'RepayBorrow' | 'PlacePerpLimitOrder' | 'PlacePerpMarketOrder' | 'PlacePerpTriggerOrder' | 'PlaceSpotLimitOrder' | 'PlaceSpotMarketOrder' | 'CanceledPerpOrders' | 'CanceledSpotOrders' | 'PerpOrderFills' | 'SpotOrderFills' | 'SetAutoLend' | 'SetAlias' | 'AddApiKey' | 'RemoveApiKey' | 'ClaimReferralFee' | 'ClaimUserKickbackFee' | 'UpdateUserFeeTier' | 'UserTransferSent' | 'UserTransferReceived' | 'ReferralUpdate' | 'ApiCreditsChange' | 'VaultDeposit' | 'VaultWithdraw' | 'UserBoxOpening' | 'Liquidation' | 'PartialLiquidation' | 'PerpTriggerOrderTriggered' | 'CanceledPerpTriggerOrders' | 'UserState';
|
|
6137
6273
|
}>;
|
|
6138
6274
|
/**
|
|
6139
6275
|
* WebSocket message type for perpetual market updates.
|
|
@@ -6159,7 +6295,7 @@ type WsSpotMarketUpdates = Extract<WsMessage, {
|
|
|
6159
6295
|
* Subscribe via {@link Client.subscribeBorrowLendingUpdates}.
|
|
6160
6296
|
*/
|
|
6161
6297
|
type WsBorrowLendUpdate = Extract<WsMessage, {
|
|
6162
|
-
type: 'BorrowLendUpdate';
|
|
6298
|
+
type: 'BorrowLendUpdate' | 'BorrowLendState';
|
|
6163
6299
|
}>;
|
|
6164
6300
|
/**
|
|
6165
6301
|
* WebSocket message type for mystery box opening results.
|
|
@@ -6178,6 +6314,12 @@ type WsBoxOpeningUpdate = Extract<WsMessage, {
|
|
|
6178
6314
|
type WsLiquidationUpdate = Extract<WsMessage, {
|
|
6179
6315
|
type: 'GlobalLiquidation' | 'GlobalPartialLiquidation';
|
|
6180
6316
|
}>;
|
|
6317
|
+
type WsPerpMarketDataUpdate = Extract<WsMessage, {
|
|
6318
|
+
type: 'PerpMarketDataUpdate';
|
|
6319
|
+
}>;
|
|
6320
|
+
type WsSpotMarketDataUpdate = Extract<WsMessage, {
|
|
6321
|
+
type: 'SpotMarketDataUpdate';
|
|
6322
|
+
}>;
|
|
6181
6323
|
|
|
6182
6324
|
declare const getRandomId: () => string;
|
|
6183
6325
|
declare class Client {
|
|
@@ -6201,13 +6343,13 @@ declare class Client {
|
|
|
6201
6343
|
_abis: ReturnType<typeof getABIsForNetwork>;
|
|
6202
6344
|
_contractAddress: string;
|
|
6203
6345
|
/**
|
|
6204
|
-
|
|
6205
|
-
|
|
6206
|
-
|
|
6207
|
-
|
|
6208
|
-
|
|
6209
|
-
|
|
6210
|
-
|
|
6346
|
+
* init.
|
|
6347
|
+
*
|
|
6348
|
+
* @param connection - Aptos connection instance. See {@link Aptos}.
|
|
6349
|
+
* @param config - Client configuration options. See {@link ClientConfig}.
|
|
6350
|
+
|
|
6351
|
+
* @returns A promise that resolves to {@link Client}.
|
|
6352
|
+
*/
|
|
6211
6353
|
static init(connection: Aptos, config?: ClientConfig): Promise<Client>;
|
|
6212
6354
|
/**
|
|
6213
6355
|
* constructor.
|
|
@@ -6311,20 +6453,20 @@ declare class Client {
|
|
|
6311
6453
|
disconnectWebSocket(): Promise<void>;
|
|
6312
6454
|
isWebSocketConnected(): boolean;
|
|
6313
6455
|
/**
|
|
6314
|
-
|
|
6315
|
-
|
|
6316
|
-
|
|
6317
|
-
|
|
6318
|
-
|
|
6319
|
-
|
|
6456
|
+
* sendWsMessage.
|
|
6457
|
+
*
|
|
6458
|
+
* @param message - See {@link WsCommand}.
|
|
6459
|
+
|
|
6460
|
+
* @returns A promise that resolves to {@link WsMessage}.
|
|
6461
|
+
*/
|
|
6320
6462
|
sendWsMessage(message: WsCommand): Promise<WsMessage>;
|
|
6321
6463
|
/**
|
|
6322
|
-
|
|
6323
|
-
|
|
6324
|
-
|
|
6325
|
-
|
|
6326
|
-
|
|
6327
|
-
|
|
6464
|
+
* subscribeIndexPricesUpdates.
|
|
6465
|
+
*
|
|
6466
|
+
* @param callback - Callback invoked for oracle updates. See {@link WsOracleUpdates}.
|
|
6467
|
+
|
|
6468
|
+
* @returns A promise that resolves to an unsubscribe function.
|
|
6469
|
+
*/
|
|
6328
6470
|
subscribeIndexPricesUpdates(callback: (data: WsOracleUpdates) => void): Promise<() => Promise<void>>;
|
|
6329
6471
|
/**
|
|
6330
6472
|
* unsubscribeIndexPricesUpdates.
|
|
@@ -6333,12 +6475,12 @@ declare class Client {
|
|
|
6333
6475
|
*/
|
|
6334
6476
|
unsubscribeIndexPricesUpdates(): Promise<void>;
|
|
6335
6477
|
/**
|
|
6336
|
-
|
|
6337
|
-
|
|
6338
|
-
|
|
6339
|
-
|
|
6340
|
-
|
|
6341
|
-
|
|
6478
|
+
* subscribeBorrowLendingUpdates.
|
|
6479
|
+
*
|
|
6480
|
+
* @param callback - Callback invoked for borrow-lending updates. See {@link WsBorrowLendUpdate}.
|
|
6481
|
+
|
|
6482
|
+
* @returns A promise that resolves to an unsubscribe function.
|
|
6483
|
+
*/
|
|
6342
6484
|
subscribeBorrowLendingUpdates(callback: (data: WsBorrowLendUpdate) => void): Promise<() => Promise<void>>;
|
|
6343
6485
|
/**
|
|
6344
6486
|
* unsubscribeBorrowLendingUpdates.
|
|
@@ -6347,12 +6489,12 @@ declare class Client {
|
|
|
6347
6489
|
*/
|
|
6348
6490
|
unsubscribeBorrowLendingUpdates(): Promise<void>;
|
|
6349
6491
|
/**
|
|
6350
|
-
|
|
6351
|
-
|
|
6352
|
-
|
|
6353
|
-
|
|
6354
|
-
|
|
6355
|
-
|
|
6492
|
+
* subscribeBoxOpeningUpdates.
|
|
6493
|
+
*
|
|
6494
|
+
* @param callback - Callback invoked for box-opening updates. See {@link WsBoxOpeningUpdate}.
|
|
6495
|
+
|
|
6496
|
+
* @returns A promise that resolves to an unsubscribe function.
|
|
6497
|
+
*/
|
|
6356
6498
|
subscribeBoxOpeningUpdates(callback: (data: WsBoxOpeningUpdate) => void): Promise<() => Promise<void>>;
|
|
6357
6499
|
/**
|
|
6358
6500
|
* unsubscribeBoxOpeningUpdates.
|
|
@@ -6361,12 +6503,12 @@ declare class Client {
|
|
|
6361
6503
|
*/
|
|
6362
6504
|
unsubscribeBoxOpeningUpdates(): Promise<void>;
|
|
6363
6505
|
/**
|
|
6364
|
-
|
|
6365
|
-
|
|
6366
|
-
|
|
6367
|
-
|
|
6368
|
-
|
|
6369
|
-
|
|
6506
|
+
* subscribeLiquidationUpdates.
|
|
6507
|
+
*
|
|
6508
|
+
* @param callback - Callback invoked for liquidation updates. See {@link WsLiquidationUpdate}.
|
|
6509
|
+
|
|
6510
|
+
* @returns A promise that resolves to an unsubscribe function.
|
|
6511
|
+
*/
|
|
6370
6512
|
subscribeLiquidationUpdates(callback: (data: WsLiquidationUpdate) => void): Promise<() => Promise<void>>;
|
|
6371
6513
|
/**
|
|
6372
6514
|
* unsubscribeLiquidationUpdates.
|
|
@@ -6374,14 +6516,18 @@ declare class Client {
|
|
|
6374
6516
|
* @returns A promise that resolves to a completed unsubscribe flow.
|
|
6375
6517
|
*/
|
|
6376
6518
|
unsubscribeLiquidationUpdates(): Promise<void>;
|
|
6519
|
+
subscribePerpMarketDataUpdates(market: string, callback: (data: WsPerpMarketDataUpdate) => void): Promise<() => Promise<void>>;
|
|
6520
|
+
unsubscribePerpMarketDataUpdates(market: string): Promise<void>;
|
|
6521
|
+
subscribeSpotMarketDataUpdates(market: string, callback: (data: WsSpotMarketDataUpdate) => void): Promise<() => Promise<void>>;
|
|
6522
|
+
unsubscribeSpotMarketDataUpdates(market: string): Promise<void>;
|
|
6377
6523
|
/**
|
|
6378
|
-
|
|
6379
|
-
|
|
6380
|
-
|
|
6381
|
-
|
|
6382
|
-
|
|
6383
|
-
|
|
6384
|
-
|
|
6524
|
+
* subscribeUserUpdates.
|
|
6525
|
+
*
|
|
6526
|
+
* @param userId - See string.
|
|
6527
|
+
* @param callback - Callback invoked for user updates. See {@link WsUserUpdates}.
|
|
6528
|
+
|
|
6529
|
+
* @returns A promise that resolves to an unsubscribe function.
|
|
6530
|
+
*/
|
|
6385
6531
|
subscribeUserUpdates(userId: string, callback: (data: WsUserUpdates) => void): Promise<() => Promise<void>>;
|
|
6386
6532
|
/**
|
|
6387
6533
|
* unsubscribeUserUpdates.
|
|
@@ -6390,13 +6536,13 @@ declare class Client {
|
|
|
6390
6536
|
*/
|
|
6391
6537
|
unsubscribeUserUpdates(userId: string): Promise<void>;
|
|
6392
6538
|
/**
|
|
6393
|
-
|
|
6394
|
-
|
|
6395
|
-
|
|
6396
|
-
|
|
6397
|
-
|
|
6398
|
-
|
|
6399
|
-
|
|
6539
|
+
* subscribePerpMarketUpdates.
|
|
6540
|
+
*
|
|
6541
|
+
* @param market - See string.
|
|
6542
|
+
* @param callback - Callback invoked for perpetual market updates. See {@link WsPerpMarketUpdates}.
|
|
6543
|
+
|
|
6544
|
+
* @returns A promise that resolves to an unsubscribe function.
|
|
6545
|
+
*/
|
|
6400
6546
|
subscribePerpMarketUpdates(market: string, callback: (data: WsPerpMarketUpdates) => void): Promise<() => Promise<void>>;
|
|
6401
6547
|
/**
|
|
6402
6548
|
* unsubscribePerpMarketUpdates.
|
|
@@ -6405,13 +6551,13 @@ declare class Client {
|
|
|
6405
6551
|
*/
|
|
6406
6552
|
unsubscribePerpMarketUpdates(market: string): Promise<void>;
|
|
6407
6553
|
/**
|
|
6408
|
-
|
|
6409
|
-
|
|
6410
|
-
|
|
6411
|
-
|
|
6412
|
-
|
|
6413
|
-
|
|
6414
|
-
|
|
6554
|
+
* subscribeSpotMarketUpdates.
|
|
6555
|
+
*
|
|
6556
|
+
* @param market - See string.
|
|
6557
|
+
* @param callback - Callback invoked for spot market updates. See {@link WsSpotMarketUpdates}.
|
|
6558
|
+
|
|
6559
|
+
* @returns A promise that resolves to an unsubscribe function.
|
|
6560
|
+
*/
|
|
6415
6561
|
subscribeSpotMarketUpdates(market: string, callback: (data: WsSpotMarketUpdates) => void): Promise<() => Promise<void>>;
|
|
6416
6562
|
/**
|
|
6417
6563
|
* unsubscribeSpotMarketUpdates.
|
|
@@ -6493,39 +6639,39 @@ declare class Client {
|
|
|
6493
6639
|
*/
|
|
6494
6640
|
submitSponsoredMultiAgentTransaction: (tx: MultiAgentTransaction, signature: AccountAuthenticator, secondarySignersAuthenticators: AccountAuthenticator[]) => Promise<SubmitSponsoredTransactionResponse>;
|
|
6495
6641
|
/**
|
|
6496
|
-
|
|
6497
|
-
|
|
6498
|
-
|
|
6499
|
-
|
|
6500
|
-
|
|
6501
|
-
|
|
6642
|
+
* createAndSubmitTransaction.
|
|
6643
|
+
*
|
|
6644
|
+
* @param aptosPayload - See {@link AnyTransactionPayloadInstance}.
|
|
6645
|
+
|
|
6646
|
+
* @returns A promise that resolves to {@link SubmitSponsoredTransactionResponse}.
|
|
6647
|
+
*/
|
|
6502
6648
|
createAndSubmitTransaction(aptosPayload: AnyTransactionPayloadInstance): Promise<SubmitSponsoredTransactionResponse>;
|
|
6503
6649
|
/**
|
|
6504
|
-
|
|
6505
|
-
|
|
6506
|
-
|
|
6507
|
-
|
|
6508
|
-
|
|
6509
|
-
|
|
6510
|
-
|
|
6511
|
-
|
|
6512
|
-
|
|
6650
|
+
* createOpenBoxesMessage.
|
|
6651
|
+
*
|
|
6652
|
+
* @param boxId - See string.
|
|
6653
|
+
* @param amount - See string.
|
|
6654
|
+
* @param userId - See string.
|
|
6655
|
+
* @param apiKey - See string.
|
|
6656
|
+
|
|
6657
|
+
* @returns The generated box-open message.
|
|
6658
|
+
*/
|
|
6513
6659
|
createOpenBoxesMessage(boxId: string, amount: string, userId: string, apiKey: string): string;
|
|
6514
6660
|
/**
|
|
6515
|
-
|
|
6516
|
-
|
|
6517
|
-
|
|
6518
|
-
|
|
6519
|
-
|
|
6520
|
-
|
|
6661
|
+
* openBoxes.
|
|
6662
|
+
*
|
|
6663
|
+
* @param params - See {@link OpenBoxesRequest}.
|
|
6664
|
+
|
|
6665
|
+
* @returns A promise that resolves to {@link OpenBoxesResponse}.
|
|
6666
|
+
*/
|
|
6521
6667
|
openBoxes(params: OpenBoxesRequest): Promise<OpenBoxesResponse>;
|
|
6522
6668
|
/**
|
|
6523
|
-
|
|
6524
|
-
|
|
6525
|
-
|
|
6526
|
-
|
|
6527
|
-
|
|
6528
|
-
|
|
6669
|
+
* removeApiKey.
|
|
6670
|
+
*
|
|
6671
|
+
* @param params - See {@link RemoveApiKeyParams}.
|
|
6672
|
+
|
|
6673
|
+
* @returns A promise that resolves to {@link SubmitSponsoredTransactionResponse}.
|
|
6674
|
+
*/
|
|
6529
6675
|
removeApiKey(params: RemoveApiKeyParams): Promise<SubmitSponsoredTransactionResponse>;
|
|
6530
6676
|
/**
|
|
6531
6677
|
* setAliasName.
|
|
@@ -7206,4 +7352,4 @@ declare const getTopicFromCommand: (data: WsCommand) => string;
|
|
|
7206
7352
|
*/
|
|
7207
7353
|
declare const getTopicFromMessage: (data: WsMessage) => string;
|
|
7208
7354
|
|
|
7209
|
-
export { ABIs, type AccountValueRankingEntry, 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 CancelAllSpotOrdersParams, type CancelPerpOrdersParams, type CancelSpotOrdersParams, type CanceledPerpOrderData, type CanceledPerpOrders, type CanceledPerpTriggerOrderData, type CanceledPerpTriggerOrders, type CanceledSpotOrderData, type CanceledSpotOrders, type ChangePerpOrderParams, type ChangeSpotOrderParams, type ChartCandle, ChartInterval, type CheckReferralCodeRequest, type CheckReferralCodeResponse, type ClaimDepositParams, type ClaimKickbackFeeParams, type ClaimReferralFee, type ClaimReferralFeesParams, type ClaimUserKickbackFee, type ClaimedKickback, type ClaimedReferralKickback, Client, type ClientConfig, type Content, type CreateUserParams, type Deposit, type DepositToVaultParams, type DepositTokenParams, EndpointsV1, type ErrorResponse, type ExchangeConfig, ExchangeProxies, type ExchangeStatsEntry, type FeeData, type FeeTier, type Fees, type FundingCheckpoint, type FundingPayment, type FundingRate, GLOBAL_DENOMINATOR, type GetAccountValueRankingRequest, type GetAccountValueRankingResponse, type GetAllVaultsIdsResponse, type GetBorrowLendingAggregatedStatsRequest, type GetBorrowLendingAggregatedStatsResponse, type GetBorrowLendingDataResponse, type GetBorrowLendingHistoricalDataRequest, type GetBorrowLendingHistoricalDataResponse, type GetChartCandlesInRangeRequest, type GetChartCandlesInRangeResponse, type GetExchangeStatsHistoryRequest, type GetExchangeStatsHistoryResponse, type GetIndexPriceHistoryRequest, type GetIndexPriceHistoryResponse, type GetIndexPricesResponse, 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 GetTopPointsRankingResponse, type GetUserAccountValueRankingRequest, type GetUserAccountValueRankingResponse, 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 GetUserFullLiquidationsHistoryRequest, type GetUserFundingHistoryRequest, type GetUserFundingHistoryResponse, type GetUserLiquidationsCancelHistoryResponse, type GetUserLiquidationsCancelOrdersHistoryRequest, type GetUserLiquidationsHistoryResponse, type GetUserPartialLiquidationsHistoryRequest, type GetUserPartialLiquidationsHistoryResponse, type GetUserPersonalPointsRankingRequest, type GetUserPersonalPointsRankingResponse, 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 GlobalLiquidation, type GlobalPartialLiquidation, type HistoricBoxReward, type HistoricalBoxRewardsStats, type HistoricalDeposit, type HistoricalFullLiquidation, type HistoricalFunding, type HistoricalLiquidatedBorrow, type HistoricalLiquidatedCollateral, type HistoricalLiquidatedLend, type HistoricalLiquidatedPosition, type HistoricalLiquidationCancelOrders, type HistoricalPartialLiquidatedPosition, type HistoricalPartialLiquidation, type HistoricalPerpOrder, type HistoricalPoints, type HistoricalReferralStats, type HistoricalSpotOrder, type HistoricalTokenStats, type HistoricalTradeStats, type HistoricalUserTransfer, type HistoricalVaultDeposit, type HistoricalVaultWithdraw, type HistoricalWithdraw, type IndexPriceHistory, type IndexPriceLive, type Lend, type LendTokenParams, type Liquidation, type LiquidationCancelledOrderData, type LiquidationCancelledTriggerOrderData, MAINNET_CONFIG, type MarginStep, type NetworkConfig, type NetworkMode, type NodeStatus, type OpenBoxesRequest, type OpenBoxesResponse, type OpenBoxesSignRequest, type OracleUpdate, type OracleUpdates, type OrderBookData, OrderSide, OrderStatus, OrderType, type PaginationCursor, type PartialLiquidation, type PerpFill, type PerpMarketConfigEntry, type PerpMarketData, type PerpOrder, type PerpOrderData, type PerpOrderDataForMarket, type PerpOrderFills, type PerpOrderbookState, type PerpOrderbookUpdate, type PerpPosition, type PerpTrade, type PerpTradesUpdate, type PerpTriggerOrder, type PerpTriggerOrderTriggered, type PlaceMultiplePerpOrdersParams, type PlaceMultipleSpotOrdersParams, type PlacePerpLimitOrder, type PlacePerpMarketOrder, type PlacePerpOrderParams, type PlacePerpTriggerOrder, type PlacePerpTriggerOrderParams, type PlaceSpotLimitOrder, type PlaceSpotMarketOrder, type PlaceSpotOrderParams, type PointsRankingEntry, type PriceIndex, type RedeemTokenParams, type Referral, type ReferralUpdate, type RemoveApiKey, type RemoveApiKeyParams, type RemoveApiKeySignerParams, type RepayBorrow, type ReplaceMultipleOrdersParams, type ReplaceMultipleSpotOrdersParams, 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 SpotOrderDataForMarket, type SpotOrderFills, type SpotOrderbookState, type SpotOrderbookUpdate, type SpotTrade, type SpotTradesUpdate, type StatusResponse, type SubServiceStatus, type SubmitSponsoredTransactionRequest, type SubmitSponsoredTransactionResponse, TESTNET_CONFIG, TestFaucet, type TimeResponse, type TokenAggregatedStats, type TokenConfigEntry, type TokenizeUserVaultInvestmentParams, type Topic, type Trade, TradeRole, TransferAction, type TransferToUserParams, type TriggerOrder, type TvlTokenEntry, type TxParams, type UpdateUserFeeTier, type User, type UserAggregatedBoxRewardsStats, type UserAggregatedReferralStats, type UserAggregatedStats, type UserAggregatedVaultStats, type UserBoxOpeningEvent, type UserPointsBreakdown, 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 WsLiquidatedBorrow, type WsLiquidatedCollateral, type WsLiquidatedLend, type WsLiquidatedPosition, type WsLiquidationUpdate, type WsMessage, type WsOracleUpdates, type WsPartialLiquidatedPosition, type WsPerpMarketUpdates, type WsSpotMarketUpdates, type WsUserUpdates, createAptosClient, createAptosClientFromEnv, generateApiKey, getABIsForNetwork, getNetworkConfig, getNetworkModeFromEnv, getRandomId, getTopicFromCommand, getTopicFromMessage, nowInMiliseconds, nowInMilliseconds, parseEntryFunctionAbi, sleep, toSystemValue };
|
|
7355
|
+
export { ABIs, type AccountValueRankingEntry, type AddApiCreditsParams, type AddApiKey, type AddApiKeyParams, type Address, AdminEndpoints, type ApiCreditsChange, type ApiStatus, type BalanceChange, BaseEndpoints, type Borrow, type BorrowLendState, type BorrowLendUpdate, type BorrowLending, type BorrowLendingAggregatedData, type BorrowLendingHistoricalData, type BoxOpeningEvent, type BoxReward, BoxRewardTier, type CancelAllPerpOrdersParams, type CancelAllSpotOrdersParams, type CancelPerpOrdersParams, type CancelSpotOrdersParams, type CanceledPerpOrderData, type CanceledPerpOrders, type CanceledPerpTriggerOrderData, type CanceledPerpTriggerOrders, type CanceledSpotOrderData, type CanceledSpotOrders, type ChangePerpOrderParams, type ChangeSpotOrderParams, type ChartCandle, ChartInterval, type CheckReferralCodeRequest, type CheckReferralCodeResponse, type ClaimDepositParams, type ClaimKickbackFeeParams, type ClaimReferralFee, type ClaimReferralFeesParams, type ClaimUserKickbackFee, type ClaimedKickback, type ClaimedReferralKickback, Client, type ClientConfig, type Content, type CreateUserParams, type Deposit, type DepositToVaultParams, type DepositTokenParams, EndpointsV1, type ErrorResponse, type ExchangeConfig, ExchangeProxies, type ExchangeStatsEntry, type FeeData, type FeeTier, type Fees, type FundingCheckpoint, type FundingPayment, type FundingRate, GLOBAL_DENOMINATOR, type GetAccountValueRankingRequest, type GetAccountValueRankingResponse, type GetAllVaultsIdsResponse, type GetBorrowLendingAggregatedStatsRequest, type GetBorrowLendingAggregatedStatsResponse, type GetBorrowLendingDataResponse, type GetBorrowLendingHistoricalDataRequest, type GetBorrowLendingHistoricalDataResponse, type GetChartCandlesInRangeRequest, type GetChartCandlesInRangeResponse, type GetExchangeStatsHistoryRequest, type GetExchangeStatsHistoryResponse, type GetIndexPriceHistoryRequest, type GetIndexPriceHistoryResponse, type GetIndexPricesResponse, 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 GetTopPointsRankingResponse, type GetUserAccountValueRankingRequest, type GetUserAccountValueRankingResponse, 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 GetUserFullLiquidationsHistoryRequest, type GetUserFundingHistoryRequest, type GetUserFundingHistoryResponse, type GetUserLiquidationsCancelHistoryResponse, type GetUserLiquidationsCancelOrdersHistoryRequest, type GetUserLiquidationsHistoryResponse, type GetUserPartialLiquidationsHistoryRequest, type GetUserPartialLiquidationsHistoryResponse, type GetUserPersonalPointsRankingRequest, type GetUserPersonalPointsRankingResponse, type GetUserPointsHistoryRequest, type GetUserPointsHistoryResponse, type GetUserPortfolioValueRequest, type GetUserPortfolioValueResponse, type GetUserPositionsRequest, type GetUserPositionsResponse, 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 GlobalLiquidation, type GlobalPartialLiquidation, type HistoricBoxReward, type HistoricalBoxRewardsStats, type HistoricalDeposit, type HistoricalFullLiquidation, type HistoricalFunding, type HistoricalLiquidatedBorrow, type HistoricalLiquidatedCollateral, type HistoricalLiquidatedLend, type HistoricalLiquidatedPosition, type HistoricalLiquidationCancelOrders, type HistoricalPartialLiquidatedPosition, type HistoricalPartialLiquidation, type HistoricalPerpOrder, type HistoricalPoints, type HistoricalPosition, type HistoricalReferralStats, type HistoricalSpotOrder, type HistoricalTokenStats, type HistoricalTradeStats, type HistoricalUserTransfer, type HistoricalVaultDeposit, type HistoricalVaultWithdraw, type HistoricalWithdraw, type IndexPriceHistory, type IndexPriceLive, type Lend, type LendTokenParams, type Liquidation, type LiquidationCancelledOrderData, type LiquidationCancelledTriggerOrderData, MAINNET_CONFIG, type MarginStep, type NetworkConfig, type NetworkMode, type NodeStatus, type OpenBoxesRequest, type OpenBoxesResponse, type OpenBoxesSignRequest, type OracleState, type OracleUpdate, type OracleUpdates, type OrderBookData, OrderSide, OrderStatus, OrderType, type PaginationCursor, type PartialLiquidation, type PerpFill, type PerpMarketConfigEntry, type PerpMarketData, type PerpMarketDataUpdate, type PerpOrder, type PerpOrderData, type PerpOrderDataForMarket, type PerpOrderFills, type PerpOrderbookState, type PerpOrderbookUpdate, type PerpPosition, type PerpTrade, type PerpTradesUpdate, type PerpTriggerOrder, type PerpTriggerOrderTriggered, type PlaceMultiplePerpOrdersParams, type PlaceMultipleSpotOrdersParams, type PlacePerpLimitOrder, type PlacePerpMarketOrder, type PlacePerpOrderParams, type PlacePerpTriggerOrder, type PlacePerpTriggerOrderParams, type PlaceSpotLimitOrder, type PlaceSpotMarketOrder, type PlaceSpotOrderParams, type PointsRankingEntry, type PriceIndex, type RedeemTokenParams, type Referral, type ReferralUpdate, type RemoveApiKey, type RemoveApiKeyParams, type RemoveApiKeySignerParams, type RepayBorrow, type ReplaceMultipleOrdersParams, type ReplaceMultipleSpotOrdersParams, type SetAlias, type SetAliasNameParams, type SetAutoLend, type SetAutolendParams, type SetReferralCodeParams, type SetReferralParamsRequest, type SetReferralParamsResponse, type SpotFill, type SpotMarketConfigEntry, type SpotMarketData, type SpotMarketDataUpdate, type SpotOrder, type SpotOrderData, type SpotOrderDataForMarket, type SpotOrderFills, type SpotOrderbookState, type SpotOrderbookUpdate, type SpotTrade, type SpotTradesUpdate, type StatusResponse, type SubServiceStatus, type SubmitSponsoredTransactionRequest, type SubmitSponsoredTransactionResponse, TESTNET_CONFIG, TestFaucet, type TimeResponse, type TokenAggregatedStats, type TokenConfigEntry, type TokenizeUserVaultInvestmentParams, type Topic, type Trade, TradeRole, TransferAction, type TransferToUserParams, type TriggerOrder, type TvlTokenEntry, type TxParams, type UpdateUserFeeTier, type User, type UserAggregatedBoxRewardsStats, type UserAggregatedReferralStats, type UserAggregatedStats, type UserAggregatedVaultStats, type UserBoxOpeningEvent, type UserPointsBreakdown, type UserPortfolioValue, type UserRewardsValue, type UserState, 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 WsLiquidatedBorrow, type WsLiquidatedCollateral, type WsLiquidatedLend, type WsLiquidatedPosition, type WsLiquidationUpdate, type WsMessage, type WsOracleUpdates, type WsPartialLiquidatedPosition, type WsPerpMarketDataUpdate, type WsPerpMarketUpdates, type WsSpotMarketDataUpdate, type WsSpotMarketUpdates, type WsUserUpdates, createAptosClient, createAptosClientFromEnv, generateApiKey, getABIsForNetwork, getNetworkConfig, getNetworkModeFromEnv, getRandomId, getTopicFromCommand, getTopicFromMessage, nowInMiliseconds, nowInMilliseconds, parseEntryFunctionAbi, sleep, toSystemValue };
|