@pendle/sdk-boros 1.2.2 → 1.2.4
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/CHANGELOG.md +12 -0
- package/dist/backend/secrettune/BorosCoreSDK.d.ts +311 -38
- package/dist/backend/secrettune/BorosCoreSDK.js +221 -19
- package/dist/backend/secrettune/BorosCoreSDK.js.map +1 -1
- package/dist/backend/secrettune/BorosSendTxsBotSDK.d.ts +105 -0
- package/dist/backend/secrettune/BorosSendTxsBotSDK.js +99 -1
- package/dist/backend/secrettune/BorosSendTxsBotSDK.js.map +1 -1
- package/dist/entities/exchange/exchange.d.ts +1 -2
- package/dist/entities/exchange/exchange.js +0 -12
- package/dist/entities/exchange/exchange.js.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -113,6 +113,10 @@ export interface MarketDataResponse {
|
|
|
113
113
|
assetMarkPrice: number;
|
|
114
114
|
b7dmafr?: number;
|
|
115
115
|
b30dmafr?: number;
|
|
116
|
+
rateSensitivity: number;
|
|
117
|
+
settlementsToMaturity: number;
|
|
118
|
+
dailyVolatility: number | null;
|
|
119
|
+
dailyVolatilityState: 'new' | 'calibrating' | 'ready';
|
|
116
120
|
}
|
|
117
121
|
export interface MarketPlatformResponse {
|
|
118
122
|
name: string;
|
|
@@ -198,6 +202,56 @@ export interface HistoricalUnderlyingAPRResponse {
|
|
|
198
202
|
export interface HistoricalUnderlyingAPRChartResponse {
|
|
199
203
|
results: HistoricalUnderlyingAPRResponse[];
|
|
200
204
|
}
|
|
205
|
+
export interface ExternalPerpPositionDto {
|
|
206
|
+
asset: string;
|
|
207
|
+
dex: 'main' | 'xyz';
|
|
208
|
+
side: 'long' | 'short';
|
|
209
|
+
size: number;
|
|
210
|
+
leverage: number;
|
|
211
|
+
leverageMode: 'cross' | 'isolated';
|
|
212
|
+
entryPrice: number | null;
|
|
213
|
+
positionValueUsd: number | null;
|
|
214
|
+
unrealizedPnl: number | null;
|
|
215
|
+
marginUsed: number | null;
|
|
216
|
+
liquidationPrice: number | null;
|
|
217
|
+
maxLeverage: number | null;
|
|
218
|
+
}
|
|
219
|
+
export interface ExternalPositionsResponse {
|
|
220
|
+
platform: 'hyperliquid';
|
|
221
|
+
wallet: string;
|
|
222
|
+
positions: ExternalPerpPositionDto[];
|
|
223
|
+
}
|
|
224
|
+
export interface PublicNewsfeedLinkFields {
|
|
225
|
+
label: string;
|
|
226
|
+
url: string;
|
|
227
|
+
}
|
|
228
|
+
export interface PublicNewsfeedResponse {
|
|
229
|
+
id: string;
|
|
230
|
+
title: string;
|
|
231
|
+
description: string;
|
|
232
|
+
link?: PublicNewsfeedLinkFields;
|
|
233
|
+
global: boolean;
|
|
234
|
+
markets: number[];
|
|
235
|
+
publishedAt: number;
|
|
236
|
+
expiresAt: number | null;
|
|
237
|
+
}
|
|
238
|
+
export interface PublicNewsfeedListResponse {
|
|
239
|
+
results: PublicNewsfeedResponse[];
|
|
240
|
+
total: number;
|
|
241
|
+
skip: number;
|
|
242
|
+
}
|
|
243
|
+
export interface PublicToolResourceResponse {
|
|
244
|
+
id: string;
|
|
245
|
+
title: string;
|
|
246
|
+
description: string;
|
|
247
|
+
iconUrl: string;
|
|
248
|
+
url: string;
|
|
249
|
+
category: 'internal' | 'community';
|
|
250
|
+
}
|
|
251
|
+
export interface PublicToolResourceListResponse {
|
|
252
|
+
results: PublicToolResourceResponse[];
|
|
253
|
+
total: number;
|
|
254
|
+
}
|
|
201
255
|
export interface SideTickResponse {
|
|
202
256
|
ia: number[];
|
|
203
257
|
sz: string[];
|
|
@@ -206,6 +260,26 @@ export interface OrderBooksResponse {
|
|
|
206
260
|
long: SideTickResponse;
|
|
207
261
|
short: SideTickResponse;
|
|
208
262
|
}
|
|
263
|
+
export interface MarketActiveOrderResponse {
|
|
264
|
+
side: 0 | 1;
|
|
265
|
+
orderId: string;
|
|
266
|
+
placedSize: string;
|
|
267
|
+
unfilledSize: string;
|
|
268
|
+
tick: number;
|
|
269
|
+
root: string;
|
|
270
|
+
accountId: number;
|
|
271
|
+
marketId: number;
|
|
272
|
+
isCross: boolean;
|
|
273
|
+
marketAcc: string;
|
|
274
|
+
orderType: 0 | 1 | 2 | 3;
|
|
275
|
+
blockTimestamp: number;
|
|
276
|
+
placedEventIndex: number;
|
|
277
|
+
placedTimestamp: number;
|
|
278
|
+
}
|
|
279
|
+
export interface MarketActiveOrdersResponse {
|
|
280
|
+
results: MarketActiveOrderResponse[];
|
|
281
|
+
nextResumeToken?: string | null;
|
|
282
|
+
}
|
|
209
283
|
export interface AllTimeRewardsDto {
|
|
210
284
|
pendleRewards: number;
|
|
211
285
|
swapFeeRewards: number;
|
|
@@ -325,6 +399,18 @@ export interface CashTransferSimulationResponse {
|
|
|
325
399
|
isolatedAccState: CashTransferPrePostSimulationResponse;
|
|
326
400
|
feeBreakdown: FeeBreakdownResponse;
|
|
327
401
|
}
|
|
402
|
+
export interface CashSwapSimulationDto {
|
|
403
|
+
userAddress: string;
|
|
404
|
+
accountId: number;
|
|
405
|
+
fromTokenId: number;
|
|
406
|
+
fromMarketId: number;
|
|
407
|
+
toTokenId: number;
|
|
408
|
+
toMarketId: number;
|
|
409
|
+
unscaledSpent: string;
|
|
410
|
+
unscaledEstReceived: string;
|
|
411
|
+
extRouter: string;
|
|
412
|
+
extCalldata: string;
|
|
413
|
+
}
|
|
328
414
|
export interface CashSwapSimulationResponse {
|
|
329
415
|
fromAccState: CashTransferPrePostSimulationResponse;
|
|
330
416
|
toAccState: CashTransferPrePostSimulationResponse;
|
|
@@ -554,14 +640,6 @@ export interface SettingsByMarketResponse {
|
|
|
554
640
|
export interface AccountSettingsResponse {
|
|
555
641
|
settingsByMarket: SettingsByMarketResponse[];
|
|
556
642
|
}
|
|
557
|
-
export interface UpdateAccountSettingBodyDto {
|
|
558
|
-
marketAcc: string;
|
|
559
|
-
marketId: number;
|
|
560
|
-
leverage: number;
|
|
561
|
-
signature: string;
|
|
562
|
-
agent: string;
|
|
563
|
-
timestamp: number;
|
|
564
|
-
}
|
|
565
643
|
export interface AccountGasBalanceResponse {
|
|
566
644
|
balanceInUSD: number;
|
|
567
645
|
}
|
|
@@ -619,6 +697,8 @@ export interface PnlTransactionResponse {
|
|
|
619
697
|
marketAcc: string;
|
|
620
698
|
accountId: number;
|
|
621
699
|
isLimitOrderTrade: boolean;
|
|
700
|
+
prevPositionS: string;
|
|
701
|
+
postPositionS: string;
|
|
622
702
|
}
|
|
623
703
|
export interface SyncStatusResponse {
|
|
624
704
|
blockNumber: number;
|
|
@@ -697,6 +777,7 @@ export interface FundLocationResponse {
|
|
|
697
777
|
fundType: 'wallet' | 'cross_account' | 'isolated_account' | 'amm';
|
|
698
778
|
marketId?: number;
|
|
699
779
|
tokenId?: number;
|
|
780
|
+
amount?: string;
|
|
700
781
|
}
|
|
701
782
|
export interface TransferLogResponse {
|
|
702
783
|
transferLogId: string;
|
|
@@ -792,6 +873,19 @@ export interface MarketAccCashesResponse {
|
|
|
792
873
|
total: number;
|
|
793
874
|
maxEventIndex: number;
|
|
794
875
|
}
|
|
876
|
+
export interface MarketAccDailyPnlRow {
|
|
877
|
+
timestamp: number;
|
|
878
|
+
cumTradePnl: string;
|
|
879
|
+
cumSettlementPnl: string;
|
|
880
|
+
tradePnlDelta: string;
|
|
881
|
+
settlementPnlDelta: string;
|
|
882
|
+
byMarketId?: Record<string, any>;
|
|
883
|
+
}
|
|
884
|
+
export interface DailyChartResponse {
|
|
885
|
+
results: MarketAccDailyPnlRow[];
|
|
886
|
+
total: number;
|
|
887
|
+
syncStatus: SyncStatusResponse;
|
|
888
|
+
}
|
|
795
889
|
export interface SettlementResponse {
|
|
796
890
|
id: string;
|
|
797
891
|
timestamp: number;
|
|
@@ -802,6 +896,7 @@ export interface SettlementResponse {
|
|
|
802
896
|
positionValue: string;
|
|
803
897
|
yieldPaid: string;
|
|
804
898
|
yieldReceived: string;
|
|
899
|
+
fee: string;
|
|
805
900
|
settlement: string;
|
|
806
901
|
settlementRate: number;
|
|
807
902
|
paidApr: number;
|
|
@@ -961,6 +1056,22 @@ export interface PrepareDepositFromBoxMessageResponse {
|
|
|
961
1056
|
postUserState: DepositStateResponse;
|
|
962
1057
|
minReceived: string;
|
|
963
1058
|
}
|
|
1059
|
+
export interface PrepareCollateralSwapDto {
|
|
1060
|
+
fromToken: string;
|
|
1061
|
+
toToken: string;
|
|
1062
|
+
amountIn: string;
|
|
1063
|
+
slippage: number;
|
|
1064
|
+
aggregators?: string;
|
|
1065
|
+
chainId: number;
|
|
1066
|
+
}
|
|
1067
|
+
export interface PrepareCollateralSwapResponse {
|
|
1068
|
+
swapExtRouter: string;
|
|
1069
|
+
swapApprove: string;
|
|
1070
|
+
swapCalldata: string;
|
|
1071
|
+
estAmountOut: string;
|
|
1072
|
+
attestationSignature: string;
|
|
1073
|
+
attestationExpiry: number;
|
|
1074
|
+
}
|
|
964
1075
|
export interface GetDepositBoxIdResponse {
|
|
965
1076
|
boxId: number;
|
|
966
1077
|
}
|
|
@@ -1006,6 +1117,16 @@ export interface CreateDepositBoxIntentDto {
|
|
|
1006
1117
|
export interface CreateDepositBoxIntentResponse {
|
|
1007
1118
|
id: string;
|
|
1008
1119
|
}
|
|
1120
|
+
export interface CreateDepositBoxIntentV2Dto {
|
|
1121
|
+
fromChainId: number;
|
|
1122
|
+
fromToken: string;
|
|
1123
|
+
fromAmount: string;
|
|
1124
|
+
depositAmount: string;
|
|
1125
|
+
minAmountSpent: string;
|
|
1126
|
+
message: DepositFromBoxMessageDto;
|
|
1127
|
+
depositFromBoxSignature: string;
|
|
1128
|
+
extraData?: DepositBoxIntentRouteDataDto;
|
|
1129
|
+
}
|
|
1009
1130
|
export interface PatchDepositBoxIntentBridgingDto {
|
|
1010
1131
|
account: string;
|
|
1011
1132
|
signature: string;
|
|
@@ -1016,6 +1137,9 @@ export interface PatchDepositBoxIntentBridgingDto {
|
|
|
1016
1137
|
export interface PatchWithdrawIntentResponse {
|
|
1017
1138
|
message: string;
|
|
1018
1139
|
}
|
|
1140
|
+
export interface PatchDepositBoxIntentBridgingV2Dto {
|
|
1141
|
+
bridgeTxHash: string;
|
|
1142
|
+
}
|
|
1019
1143
|
export interface PatchDepositBoxIntentCanceledDto {
|
|
1020
1144
|
account: string;
|
|
1021
1145
|
signature: string;
|
|
@@ -1056,6 +1180,7 @@ export interface GetDepositBoxIntentResponse {
|
|
|
1056
1180
|
extraData?: DepositBoxIntentExtraDataResponse;
|
|
1057
1181
|
isRecoverable?: boolean;
|
|
1058
1182
|
isDismissed?: boolean;
|
|
1183
|
+
failureReason?: string;
|
|
1059
1184
|
}
|
|
1060
1185
|
export interface GetDepositBoxIntentsResponse {
|
|
1061
1186
|
intents: GetDepositBoxIntentResponse[];
|
|
@@ -1071,6 +1196,12 @@ export interface CreateWithdrawIntentDto {
|
|
|
1071
1196
|
dstToken: string;
|
|
1072
1197
|
dstChainId: number;
|
|
1073
1198
|
}
|
|
1199
|
+
export interface CreateWithdrawIntentV2Dto {
|
|
1200
|
+
tokenId: number;
|
|
1201
|
+
unscaledAmount: string;
|
|
1202
|
+
dstToken: string;
|
|
1203
|
+
dstChainId: number;
|
|
1204
|
+
}
|
|
1074
1205
|
export interface PatchWithdrawIntentBridgedDto {
|
|
1075
1206
|
account: string;
|
|
1076
1207
|
signature: string;
|
|
@@ -1080,6 +1211,10 @@ export interface PatchWithdrawIntentBridgedDto {
|
|
|
1080
1211
|
aggregatorName: ('LIFI' | 'BOROS' | 'PENDLE' | 'BUNGEE')[];
|
|
1081
1212
|
root: string;
|
|
1082
1213
|
}
|
|
1214
|
+
export interface PatchWithdrawIntentBridgedV2Dto {
|
|
1215
|
+
bridgeTxHash: string;
|
|
1216
|
+
aggregatorName: ('LIFI' | 'BOROS' | 'PENDLE' | 'BUNGEE')[];
|
|
1217
|
+
}
|
|
1083
1218
|
export interface PatchWithdrawIntentDoneDto {
|
|
1084
1219
|
account: string;
|
|
1085
1220
|
signature: string;
|
|
@@ -1122,22 +1257,6 @@ export interface PrepareTransferToBoxResponse {
|
|
|
1122
1257
|
value: string;
|
|
1123
1258
|
calldata: string;
|
|
1124
1259
|
}
|
|
1125
|
-
export interface PrepareCollateralSwapDto {
|
|
1126
|
-
fromToken: string;
|
|
1127
|
-
toToken: string;
|
|
1128
|
-
amountIn: string;
|
|
1129
|
-
slippage: number;
|
|
1130
|
-
aggregators?: string;
|
|
1131
|
-
chainId: number;
|
|
1132
|
-
}
|
|
1133
|
-
export interface PrepareCollateralSwapResponse {
|
|
1134
|
-
swapExtRouter: string;
|
|
1135
|
-
swapApprove: string;
|
|
1136
|
-
swapCalldata: string;
|
|
1137
|
-
estAmountOut: string;
|
|
1138
|
-
attestationSignature: string;
|
|
1139
|
-
attestationExpiry: number;
|
|
1140
|
-
}
|
|
1141
1260
|
export interface PrepareDepositFromBoxV2Dto {
|
|
1142
1261
|
root: string;
|
|
1143
1262
|
boxId: number;
|
|
@@ -1349,6 +1468,12 @@ export interface JoinReferralBodyDto {
|
|
|
1349
1468
|
export interface JoinReferralResponse {
|
|
1350
1469
|
success: boolean;
|
|
1351
1470
|
}
|
|
1471
|
+
export interface CreateReferralBodyV2Dto {
|
|
1472
|
+
code: string;
|
|
1473
|
+
}
|
|
1474
|
+
export interface JoinReferralBodyV2Dto {
|
|
1475
|
+
code: string;
|
|
1476
|
+
}
|
|
1352
1477
|
export interface Reward {
|
|
1353
1478
|
symbol: string;
|
|
1354
1479
|
amountInAsset: number;
|
|
@@ -1472,6 +1597,11 @@ export interface SubmitOtcRequestResponseDto {
|
|
|
1472
1597
|
success: boolean;
|
|
1473
1598
|
message: string;
|
|
1474
1599
|
}
|
|
1600
|
+
export interface SubmitOtcRequestV2Dto {
|
|
1601
|
+
entityName: string;
|
|
1602
|
+
telegramId: string;
|
|
1603
|
+
otcTerms: OtcTermDto[];
|
|
1604
|
+
}
|
|
1475
1605
|
export interface OtcTermResponseDto {
|
|
1476
1606
|
exchangeName: string;
|
|
1477
1607
|
marketName: string;
|
|
@@ -1503,6 +1633,12 @@ export interface CreateStrategyPositionDto {
|
|
|
1503
1633
|
export interface CreateStrategyPositionResponse {
|
|
1504
1634
|
id: string;
|
|
1505
1635
|
}
|
|
1636
|
+
export interface CreateStrategyPositionV2Dto {
|
|
1637
|
+
longMarketAcc: string;
|
|
1638
|
+
longMarketId: number;
|
|
1639
|
+
shortMarketAcc: string;
|
|
1640
|
+
shortMarketId: number;
|
|
1641
|
+
}
|
|
1506
1642
|
export interface StrategyPositionResponse {
|
|
1507
1643
|
id: string;
|
|
1508
1644
|
root: string;
|
|
@@ -1535,6 +1671,89 @@ export interface DeleteStrategyPositionDto {
|
|
|
1535
1671
|
timestamp: number;
|
|
1536
1672
|
positionId: string;
|
|
1537
1673
|
}
|
|
1674
|
+
export interface DeleteStrategyPositionV2Dto {
|
|
1675
|
+
positionId: string;
|
|
1676
|
+
}
|
|
1677
|
+
export interface PendleSignTxDto {
|
|
1678
|
+
account: string;
|
|
1679
|
+
connectionId: string;
|
|
1680
|
+
nonce: string;
|
|
1681
|
+
}
|
|
1682
|
+
export interface AgentExecuteDto {
|
|
1683
|
+
agent: string;
|
|
1684
|
+
message: PendleSignTxDto;
|
|
1685
|
+
signature: string;
|
|
1686
|
+
calldata: string;
|
|
1687
|
+
}
|
|
1688
|
+
export interface BulkAgentExecuteDto {
|
|
1689
|
+
datas: AgentExecuteDto[];
|
|
1690
|
+
requireSuccess?: boolean;
|
|
1691
|
+
simulate?: boolean;
|
|
1692
|
+
skipReceipt?: boolean;
|
|
1693
|
+
}
|
|
1694
|
+
export interface TxResponse {
|
|
1695
|
+
txHash?: string;
|
|
1696
|
+
status?: 'success' | 'reverted';
|
|
1697
|
+
index?: number;
|
|
1698
|
+
error?: string;
|
|
1699
|
+
}
|
|
1700
|
+
export interface ApproveAgentQueryDto {
|
|
1701
|
+
approveAgentCalldata: string;
|
|
1702
|
+
skipReceipt?: boolean;
|
|
1703
|
+
}
|
|
1704
|
+
export interface ApproveAgentResponse {
|
|
1705
|
+
approveAgentResult: TxResponse;
|
|
1706
|
+
}
|
|
1707
|
+
export interface StopOrderRequest {
|
|
1708
|
+
account: string;
|
|
1709
|
+
cross: boolean;
|
|
1710
|
+
marketId: number;
|
|
1711
|
+
side: number;
|
|
1712
|
+
tif: number;
|
|
1713
|
+
size: string;
|
|
1714
|
+
tick: number;
|
|
1715
|
+
reduceOnly: boolean;
|
|
1716
|
+
salt: string;
|
|
1717
|
+
expiry: string;
|
|
1718
|
+
offchainCondition: string;
|
|
1719
|
+
}
|
|
1720
|
+
export interface PrepareTpslStopOrderResponse {
|
|
1721
|
+
req: StopOrderRequest;
|
|
1722
|
+
offchainCondition: string;
|
|
1723
|
+
}
|
|
1724
|
+
export interface PlaceMsgDto {
|
|
1725
|
+
actionHash: string;
|
|
1726
|
+
}
|
|
1727
|
+
export interface StopOrderRequestV3Dto {
|
|
1728
|
+
cross: boolean;
|
|
1729
|
+
marketId: number;
|
|
1730
|
+
side: 0 | 1;
|
|
1731
|
+
tif: 0 | 1 | 2 | 3 | 4;
|
|
1732
|
+
size: string;
|
|
1733
|
+
tick: number;
|
|
1734
|
+
reduceOnly: boolean;
|
|
1735
|
+
salt: string;
|
|
1736
|
+
expiry: string;
|
|
1737
|
+
hashedOffchainCondition: string;
|
|
1738
|
+
}
|
|
1739
|
+
export interface PlaceStopOrderV3Dto {
|
|
1740
|
+
placeMsg: PlaceMsgDto;
|
|
1741
|
+
placeSignature: string;
|
|
1742
|
+
request: StopOrderRequestV3Dto;
|
|
1743
|
+
offchainCondition: string;
|
|
1744
|
+
type: 2 | 3;
|
|
1745
|
+
closePosition: boolean;
|
|
1746
|
+
}
|
|
1747
|
+
export interface PlaceStopOrderResponse {
|
|
1748
|
+
orderHash: string;
|
|
1749
|
+
}
|
|
1750
|
+
export interface CancelStopOrderV4Dto {
|
|
1751
|
+
orderIds: string[];
|
|
1752
|
+
cancelSignature: string;
|
|
1753
|
+
}
|
|
1754
|
+
export interface CancelStopOrderResponse {
|
|
1755
|
+
message: string;
|
|
1756
|
+
}
|
|
1538
1757
|
import type { AxiosInstance, AxiosRequestConfig, AxiosResponse, ResponseType } from 'axios';
|
|
1539
1758
|
export type QueryParamsType = Record<string | number, any>;
|
|
1540
1759
|
export interface FullRequestParams extends Omit<AxiosRequestConfig, 'data' | 'params' | 'url' | 'responseType'> {
|
|
@@ -1645,10 +1864,34 @@ export declare class Sdk<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
1645
1864
|
}, params?: RequestParams) => Promise<AxiosResponse<HistoricalUnderlyingAPRChartResponse, any, {}>>;
|
|
1646
1865
|
marketsControllerGetMarketInfo: (marketId: number, params?: RequestParams) => Promise<AxiosResponse<MarketResponse, any, {}>>;
|
|
1647
1866
|
};
|
|
1867
|
+
externalPositions: {
|
|
1868
|
+
externalPositionsControllerGetExternalPositions: (query: {
|
|
1869
|
+
wallet: string;
|
|
1870
|
+
platform?: "hyperliquid";
|
|
1871
|
+
}, params?: RequestParams) => Promise<AxiosResponse<ExternalPositionsResponse, any, {}>>;
|
|
1872
|
+
};
|
|
1873
|
+
newsfeeds: {
|
|
1874
|
+
newsfeedsControllerList: (query?: {
|
|
1875
|
+
skip?: number;
|
|
1876
|
+
limit?: number;
|
|
1877
|
+
market?: number;
|
|
1878
|
+
}, params?: RequestParams) => Promise<AxiosResponse<PublicNewsfeedListResponse, any, {}>>;
|
|
1879
|
+
};
|
|
1880
|
+
toolResources: {
|
|
1881
|
+
toolResourcesControllerList: (query?: {
|
|
1882
|
+
category?: "internal" | "community";
|
|
1883
|
+
}, params?: RequestParams) => Promise<AxiosResponse<PublicToolResourceListResponse, any, {}>>;
|
|
1884
|
+
};
|
|
1648
1885
|
orderBooks: {
|
|
1649
1886
|
orderBooksControllerGetOrderBooksByMarketId: (marketId: number, query: {
|
|
1650
1887
|
tickSize: 0.0001 | 0.001 | 0.01 | 0.1;
|
|
1651
1888
|
}, params?: RequestParams) => Promise<AxiosResponse<OrderBooksResponse, any, {}>>;
|
|
1889
|
+
orderBooksControllerGetMarketActiveOrders: (marketId: number, query?: {
|
|
1890
|
+
tokenId?: number;
|
|
1891
|
+
roots?: string;
|
|
1892
|
+
resumeToken?: string;
|
|
1893
|
+
limit?: number;
|
|
1894
|
+
}, params?: RequestParams) => Promise<AxiosResponse<MarketActiveOrdersResponse, any, {}>>;
|
|
1652
1895
|
};
|
|
1653
1896
|
amm: {
|
|
1654
1897
|
ammControllerGetAllVaultStates: (query?: {
|
|
@@ -1697,18 +1940,7 @@ export declare class Sdk<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
1697
1940
|
isDeposit: boolean;
|
|
1698
1941
|
amount: string;
|
|
1699
1942
|
}, params?: RequestParams) => Promise<AxiosResponse<CashTransferSimulationResponse, any, {}>>;
|
|
1700
|
-
|
|
1701
|
-
userAddress: string;
|
|
1702
|
-
accountId: number;
|
|
1703
|
-
fromTokenId: number;
|
|
1704
|
-
fromMarketId: number;
|
|
1705
|
-
toTokenId: number;
|
|
1706
|
-
toMarketId: number;
|
|
1707
|
-
unscaledSpent: string;
|
|
1708
|
-
unscaledEstReceived: string;
|
|
1709
|
-
extRouter: string;
|
|
1710
|
-
extCalldata: string;
|
|
1711
|
-
}, params?: RequestParams) => Promise<AxiosResponse<CashSwapSimulationResponse, any, {}>>;
|
|
1943
|
+
simulationsControllerSimulateCashSwap: (data: CashSwapSimulationDto, params?: RequestParams) => Promise<AxiosResponse<CashSwapSimulationResponse, any, {}>>;
|
|
1712
1944
|
simulationsControllerGetPlaceOrderV2: (query: {
|
|
1713
1945
|
marketId: number;
|
|
1714
1946
|
side: 0 | 1;
|
|
@@ -1868,7 +2100,6 @@ export declare class Sdk<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
1868
2100
|
userAddress: string;
|
|
1869
2101
|
accountId: number;
|
|
1870
2102
|
}, params?: RequestParams) => Promise<AxiosResponse<AccountSettingsResponse, any, {}>>;
|
|
1871
|
-
accountsControllerUpdateAccountSettings: (data: UpdateAccountSettingBodyDto, params?: RequestParams) => Promise<AxiosResponse<void, any, {}>>;
|
|
1872
2103
|
accountsControllerGetAccountGasBalance: (query: {
|
|
1873
2104
|
userAddress: string;
|
|
1874
2105
|
}, params?: RequestParams) => Promise<AxiosResponse<AccountGasBalanceResponse, any, {}>>;
|
|
@@ -1879,6 +2110,7 @@ export declare class Sdk<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
1879
2110
|
}, params?: RequestParams) => Promise<AxiosResponse<AccountGasConsumptionHistoryResponse, any, {}>>;
|
|
1880
2111
|
accountsControllerSetAgentSession: (data: SetAgentSessionDto, params?: RequestParams) => Promise<AxiosResponse<AgentSessionResponse, any, {}>>;
|
|
1881
2112
|
accountsControllerVerifyAgentSession: (data: AgentSessionQueryDto, params?: RequestParams) => Promise<AxiosResponse<AgentSessionResponse, any, {}>>;
|
|
2113
|
+
accountsControllerVerifyAgentSessionV2: (params?: RequestParams) => Promise<AxiosResponse<AgentSessionResponse, any, {}>>;
|
|
1882
2114
|
};
|
|
1883
2115
|
categories: {
|
|
1884
2116
|
categoriesControllerGetAllCategories: (params?: RequestParams) => Promise<AxiosResponse<CategoriesResponse, any, {}>>;
|
|
@@ -1962,6 +2194,10 @@ export declare class Sdk<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
1962
2194
|
skip?: number;
|
|
1963
2195
|
limit?: number;
|
|
1964
2196
|
}, params?: RequestParams) => Promise<AxiosResponse<MarketAccCashesResponse, any, {}>>;
|
|
2197
|
+
pnlControllerGetDailyChart: (query: {
|
|
2198
|
+
marketAcc: string;
|
|
2199
|
+
days?: number;
|
|
2200
|
+
}, params?: RequestParams) => Promise<AxiosResponse<DailyChartResponse, any, {}>>;
|
|
1965
2201
|
};
|
|
1966
2202
|
settlement: {
|
|
1967
2203
|
settlementControllerGetSettlements: (query: {
|
|
@@ -1991,28 +2227,37 @@ export declare class Sdk<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
1991
2227
|
boxId?: number;
|
|
1992
2228
|
}, params?: RequestParams) => Promise<AxiosResponse<GetDepositBoxBalancesResponse, any, {}>>;
|
|
1993
2229
|
depositBoxControllerPrepareDepositFromBox: (data: PrepareDepositFromBoxDto, params?: RequestParams) => Promise<AxiosResponse<PrepareDepositFromBoxMessageResponse, any, {}>>;
|
|
2230
|
+
depositBoxControllerPrepareCollateralSwap: (data: PrepareCollateralSwapDto, params?: RequestParams) => Promise<AxiosResponse<PrepareCollateralSwapResponse, any, {}>>;
|
|
1994
2231
|
depositBoxControllerGetAvailableDepositBoxId: (query: {
|
|
1995
2232
|
root: string;
|
|
1996
2233
|
}, params?: RequestParams) => Promise<AxiosResponse<GetDepositBoxIdResponse, any, {}>>;
|
|
1997
2234
|
depositBoxControllerCreateDepositBoxIntent: (data: CreateDepositBoxIntentDto, params?: RequestParams) => Promise<AxiosResponse<CreateDepositBoxIntentResponse, any, {}>>;
|
|
2235
|
+
depositBoxControllerCreateDepositBoxIntentV2: (data: CreateDepositBoxIntentV2Dto, params?: RequestParams) => Promise<AxiosResponse<CreateDepositBoxIntentResponse, any, {}>>;
|
|
1998
2236
|
depositBoxControllerPatchDepositBoxIntentBridging: (id: string, data: PatchDepositBoxIntentBridgingDto, params?: RequestParams) => Promise<AxiosResponse<PatchWithdrawIntentResponse, any, {}>>;
|
|
2237
|
+
depositBoxControllerPatchDepositBoxIntentBridgingV2: (id: string, data: PatchDepositBoxIntentBridgingV2Dto, params?: RequestParams) => Promise<AxiosResponse<PatchWithdrawIntentResponse, any, {}>>;
|
|
1999
2238
|
depositBoxControllerPatchDepositBoxIntentCanceled: (id: string, data: PatchDepositBoxIntentCanceledDto, params?: RequestParams) => Promise<AxiosResponse<PatchWithdrawIntentResponse, any, {}>>;
|
|
2239
|
+
depositBoxControllerPatchDepositBoxIntentCanceledV2: (id: string, params?: RequestParams) => Promise<AxiosResponse<PatchWithdrawIntentResponse, any, {}>>;
|
|
2000
2240
|
depositBoxControllerPatchDepositBoxIntentFailed: (id: string, data: PatchDepositBoxIntentFailedDto, params?: RequestParams) => Promise<AxiosResponse<PatchWithdrawIntentResponse, any, {}>>;
|
|
2241
|
+
depositBoxControllerPatchDepositBoxIntentFailedV2: (id: string, params?: RequestParams) => Promise<AxiosResponse<PatchWithdrawIntentResponse, any, {}>>;
|
|
2001
2242
|
depositBoxControllerPatchDepositBoxIntentDismissed: (id: string, data: PatchDepositBoxIntentCanceledDto, params?: RequestParams) => Promise<AxiosResponse<PatchWithdrawIntentResponse, any, {}>>;
|
|
2243
|
+
depositBoxControllerPatchDepositBoxIntentDismissedV2: (id: string, params?: RequestParams) => Promise<AxiosResponse<PatchWithdrawIntentResponse, any, {}>>;
|
|
2002
2244
|
depositBoxControllerGetDepositBoxIntents: (query: {
|
|
2003
2245
|
root: string;
|
|
2004
2246
|
}, params?: RequestParams) => Promise<AxiosResponse<GetDepositBoxIntentsResponse, any, {}>>;
|
|
2005
2247
|
depositBoxControllerCreateWithdrawIntent: (data: CreateWithdrawIntentDto, params?: RequestParams) => Promise<AxiosResponse<void, any, {}>>;
|
|
2248
|
+
depositBoxControllerCreateWithdrawIntentV2: (data: CreateWithdrawIntentV2Dto, params?: RequestParams) => Promise<AxiosResponse<void, any, {}>>;
|
|
2006
2249
|
depositBoxControllerPatchWithdrawIntentBridged: (id: string, data: PatchWithdrawIntentBridgedDto, params?: RequestParams) => Promise<AxiosResponse<PatchWithdrawIntentResponse, any, {}>>;
|
|
2250
|
+
depositBoxControllerPatchWithdrawIntentBridgedV2: (id: string, data: PatchWithdrawIntentBridgedV2Dto, params?: RequestParams) => Promise<AxiosResponse<PatchWithdrawIntentResponse, any, {}>>;
|
|
2007
2251
|
depositBoxControllerPatchWithdrawIntentDone: (id: string, data: PatchWithdrawIntentDoneDto, params?: RequestParams) => Promise<AxiosResponse<PatchWithdrawIntentResponse, any, {}>>;
|
|
2252
|
+
depositBoxControllerPatchWithdrawIntentDoneV2: (id: string, params?: RequestParams) => Promise<AxiosResponse<PatchWithdrawIntentResponse, any, {}>>;
|
|
2008
2253
|
depositBoxControllerPatchWithdrawIntentCanceled: (id: string, data: PatchWithdrawIntentCanceledDto, params?: RequestParams) => Promise<AxiosResponse<PatchWithdrawIntentResponse, any, {}>>;
|
|
2254
|
+
depositBoxControllerPatchWithdrawIntentCanceledV2: (id: string, params?: RequestParams) => Promise<AxiosResponse<PatchWithdrawIntentResponse, any, {}>>;
|
|
2009
2255
|
depositBoxControllerGetWithdrawIntents: (query: {
|
|
2010
2256
|
root: string;
|
|
2011
2257
|
}, params?: RequestParams) => Promise<AxiosResponse<GetWithdrawIntentsResponse, any, {}>>;
|
|
2012
2258
|
depositBoxControllerGetWithdrawIntent: (id: string, params?: RequestParams) => Promise<AxiosResponse<GetWithdrawIntentResponse, any, {}>>;
|
|
2013
2259
|
depositBoxControllerGetDepositBoxIntent: (id: string, params?: RequestParams) => Promise<AxiosResponse<GetDepositBoxIntentResponse, any, {}>>;
|
|
2014
2260
|
depositBoxControllerPrepareTransferToBox: (data: PrepareTransferToBoxDto, params?: RequestParams) => Promise<AxiosResponse<PrepareTransferToBoxResponse, any, {}>>;
|
|
2015
|
-
depositBoxControllerPrepareCollateralSwap: (data: PrepareCollateralSwapDto, params?: RequestParams) => Promise<AxiosResponse<PrepareCollateralSwapResponse, any, {}>>;
|
|
2016
2261
|
depositBoxControllerPrepareDepositFromBoxV2: (data: PrepareDepositFromBoxV2Dto, params?: RequestParams) => Promise<AxiosResponse<PrepareDepositFromBoxMessageResponse, any, {}>>;
|
|
2017
2262
|
depositBoxControllerQuoteBscBridgeV2: (data: QuoteBscBridgeV2Dto, params?: RequestParams) => Promise<AxiosResponse<QuoteBscBridgeResponse, any, {}>>;
|
|
2018
2263
|
depositBoxControllerQuoteBridge: (data: QuoteBridgeDto, params?: RequestParams) => Promise<AxiosResponse<QuoteBridgeResponse, any, {}>>;
|
|
@@ -2064,6 +2309,8 @@ export declare class Sdk<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
2064
2309
|
referralControllerCreateReferralCode: (userAddress: string, data: CreateReferralBodyDto, params?: RequestParams) => Promise<AxiosResponse<void, any, {}>>;
|
|
2065
2310
|
referralControllerCheckReferralExist: (data: CheckReferralExistBodyDto, params?: RequestParams) => Promise<AxiosResponse<CheckReferralExistResponse, any, {}>>;
|
|
2066
2311
|
referralControllerJoinReferralCode: (userAddress: string, data: JoinReferralBodyDto, params?: RequestParams) => Promise<AxiosResponse<JoinReferralResponse, any, {}>>;
|
|
2312
|
+
referralControllerCreateReferralCodeV2: (data: CreateReferralBodyV2Dto, params?: RequestParams) => Promise<AxiosResponse<void, any, {}>>;
|
|
2313
|
+
referralControllerJoinReferralCodeV2: (data: JoinReferralBodyV2Dto, params?: RequestParams) => Promise<AxiosResponse<JoinReferralResponse, any, {}>>;
|
|
2067
2314
|
referralControllerGetReferralRewards: (userAddress: string, params?: RequestParams) => Promise<AxiosResponse<ReferralRewardResponse, any, {}>>;
|
|
2068
2315
|
referralControllerGetReferralRewardsInfo: (userAddress: string, params?: RequestParams) => Promise<AxiosResponse<UserReferralRewardsResponse, any, {}>>;
|
|
2069
2316
|
referralControllerGetReferralActivitiesV2: (userAddress: string, params?: RequestParams) => Promise<AxiosResponse<ReferralActivitiesV2Response, any, {}>>;
|
|
@@ -2122,6 +2369,7 @@ export declare class Sdk<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
2122
2369
|
};
|
|
2123
2370
|
otc: {
|
|
2124
2371
|
otcControllerCheckEligibility: (data: CheckEligibilityDto, params?: RequestParams) => Promise<AxiosResponse<CheckEligibilityResponseDto, any, {}>>;
|
|
2372
|
+
otcControllerCheckEligibilityV2: (params?: RequestParams) => Promise<AxiosResponse<CheckEligibilityResponseDto, any, {}>>;
|
|
2125
2373
|
otcControllerSubmitOtcRequest: (data: SubmitOtcRequestDto, params?: RequestParams) => Promise<AxiosResponse<SubmitOtcRequestResponseDto, any, {}>>;
|
|
2126
2374
|
otcControllerGetOtcRequests: (query: {
|
|
2127
2375
|
account: string;
|
|
@@ -2129,9 +2377,12 @@ export declare class Sdk<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
2129
2377
|
agent: string;
|
|
2130
2378
|
timestamp: number;
|
|
2131
2379
|
}, params?: RequestParams) => Promise<AxiosResponse<GetOtcRequestsResponseDto, any, {}>>;
|
|
2380
|
+
otcControllerSubmitOtcRequestV2: (data: SubmitOtcRequestV2Dto, params?: RequestParams) => Promise<AxiosResponse<SubmitOtcRequestResponseDto, any, {}>>;
|
|
2381
|
+
otcControllerGetOtcRequestsV2: (params?: RequestParams) => Promise<AxiosResponse<GetOtcRequestsResponseDto, any, {}>>;
|
|
2132
2382
|
};
|
|
2133
2383
|
strategyPositions: {
|
|
2134
2384
|
strategyPositionsControllerCreatePosition: (data: CreateStrategyPositionDto, params?: RequestParams) => Promise<AxiosResponse<CreateStrategyPositionResponse, any, {}>>;
|
|
2385
|
+
strategyPositionsControllerCreatePositionV2: (data: CreateStrategyPositionV2Dto, params?: RequestParams) => Promise<AxiosResponse<CreateStrategyPositionResponse, any, {}>>;
|
|
2135
2386
|
strategyPositionsControllerGetPositions: (query: {
|
|
2136
2387
|
account: string;
|
|
2137
2388
|
signature: string;
|
|
@@ -2141,6 +2392,28 @@ export declare class Sdk<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
2141
2392
|
skip?: number;
|
|
2142
2393
|
limit?: number;
|
|
2143
2394
|
}, params?: RequestParams) => Promise<AxiosResponse<StrategyPositionsResponse, any, {}>>;
|
|
2395
|
+
strategyPositionsControllerGetPositionsV2: (query?: {
|
|
2396
|
+
skip?: number;
|
|
2397
|
+
limit?: number;
|
|
2398
|
+
}, params?: RequestParams) => Promise<AxiosResponse<StrategyPositionsResponse, any, {}>>;
|
|
2144
2399
|
strategyPositionsControllerDeletePosition: (data: DeleteStrategyPositionDto, params?: RequestParams) => Promise<AxiosResponse<void, any, {}>>;
|
|
2400
|
+
strategyPositionsControllerDeletePositionV2: (data: DeleteStrategyPositionV2Dto, params?: RequestParams) => Promise<AxiosResponse<void, any, {}>>;
|
|
2401
|
+
};
|
|
2402
|
+
sendTxs: {
|
|
2403
|
+
sendTxsControllerUiBulkExecute: (data: BulkAgentExecuteDto, params?: RequestParams) => Promise<AxiosResponse<TxResponse[], any, {}>>;
|
|
2404
|
+
sendTxsControllerApprove: (data: ApproveAgentQueryDto, params?: RequestParams) => Promise<AxiosResponse<ApproveAgentResponse, any, {}>>;
|
|
2405
|
+
};
|
|
2406
|
+
stopOrders: {
|
|
2407
|
+
stopOrdersControllerPrepareTakeProfitStopLossOrder: (query: {
|
|
2408
|
+
marketAcc: string;
|
|
2409
|
+
marketId: number;
|
|
2410
|
+
side: 0 | 1;
|
|
2411
|
+
type: 2 | 3;
|
|
2412
|
+
closePosition: boolean;
|
|
2413
|
+
size: string;
|
|
2414
|
+
stopApr: number;
|
|
2415
|
+
}, params?: RequestParams) => Promise<AxiosResponse<PrepareTpslStopOrderResponse, any, {}>>;
|
|
2416
|
+
stopOrdersControllerPlaceStopOrder: (data: PlaceStopOrderV3Dto, params?: RequestParams) => Promise<AxiosResponse<PlaceStopOrderResponse, any, {}>>;
|
|
2417
|
+
stopOrdersControllerCancelStopOrders: (data: CancelStopOrderV4Dto, params?: RequestParams) => Promise<AxiosResponse<CancelStopOrderResponse, any, {}>>;
|
|
2145
2418
|
};
|
|
2146
2419
|
}
|