@pendle/sdk-boros 1.2.1 → 1.2.3
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 +13 -0
- package/README.md +5 -1
- package/dist/backend/secrettune/BorosCoreSDK.d.ts +286 -39
- package/dist/backend/secrettune/BorosCoreSDK.js +214 -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/backend/secrettune/module.js +4 -4
- package/dist/backend/secrettune/module.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/dist/entities/exchange/types.d.ts +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,18 @@
|
|
|
1
1
|
# @pendle/sdk-boros
|
|
2
2
|
|
|
3
|
+
## 1.2.3
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 4ae9649: Update backend SDK
|
|
8
|
+
|
|
9
|
+
## 1.2.2
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- 5b32dc4: chore: update backend API domains. Production now uses `https://api-boros.pendle.finance/` (was `https://api.boros.finance/`) and staging now uses `https://api.secrettune.io/` (was `https://staging-api.boros.finance/`). Affects default URLs in `module.ts`, the SDK generator script, the baked default in `BorosSendTxsBotSDK`, and the API documentation. Consumers calling `setCoreBackendUrl` / `setSendTxsBotBackendUrl` are unaffected.
|
|
14
|
+
- 351804c: chore(ci): upgrade `actions/checkout` from v1 to v6 (SHA-pinned) in release and snapshot-release workflows. No runtime or API impact — release tooling only.
|
|
15
|
+
|
|
3
16
|
## 1.2.1
|
|
4
17
|
|
|
5
18
|
### Patch Changes
|
package/README.md
CHANGED
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
# Pendle SDK Boros
|
|
2
2
|
|
|
3
|
+
> ⚠️ **This SDK is legacy.** Please migrate to [`@pendle/boros-sdk-public`](https://www.npmjs.com/package/@pendle/boros-sdk-public), which targets the new Boros API.
|
|
4
|
+
>
|
|
5
|
+
> The legacy API hosts will be turned off on **20 June 2026**, after which `@pendle/sdk-boros` will stop working. See the [API migration guide](https://docs.pendle.finance/boros-dev/Backend/api-migration) for details.
|
|
6
|
+
|
|
3
7
|
## Overview
|
|
4
8
|
|
|
5
9
|
Below is the documentation for the SDK. For more details about the overall architecture, contracts, API, and more, please refer to the [documentation](documentation/) folder.
|
|
@@ -493,7 +497,7 @@ Retrieves the order book for a market.
|
|
|
493
497
|
|
|
494
498
|
Parameters:
|
|
495
499
|
- `marketId`: ID of the market
|
|
496
|
-
- `tickSize`: Tick size (0.
|
|
500
|
+
- `tickSize`: Tick size (0.0001, 0.001, 0.01, or 0.1)
|
|
497
501
|
|
|
498
502
|
Example:
|
|
499
503
|
```typescript
|
|
@@ -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[];
|
|
@@ -325,6 +379,18 @@ export interface CashTransferSimulationResponse {
|
|
|
325
379
|
isolatedAccState: CashTransferPrePostSimulationResponse;
|
|
326
380
|
feeBreakdown: FeeBreakdownResponse;
|
|
327
381
|
}
|
|
382
|
+
export interface CashSwapSimulationDto {
|
|
383
|
+
userAddress: string;
|
|
384
|
+
accountId: number;
|
|
385
|
+
fromTokenId: number;
|
|
386
|
+
fromMarketId: number;
|
|
387
|
+
toTokenId: number;
|
|
388
|
+
toMarketId: number;
|
|
389
|
+
unscaledSpent: string;
|
|
390
|
+
unscaledEstReceived: string;
|
|
391
|
+
extRouter: string;
|
|
392
|
+
extCalldata: string;
|
|
393
|
+
}
|
|
328
394
|
export interface CashSwapSimulationResponse {
|
|
329
395
|
fromAccState: CashTransferPrePostSimulationResponse;
|
|
330
396
|
toAccState: CashTransferPrePostSimulationResponse;
|
|
@@ -554,14 +620,6 @@ export interface SettingsByMarketResponse {
|
|
|
554
620
|
export interface AccountSettingsResponse {
|
|
555
621
|
settingsByMarket: SettingsByMarketResponse[];
|
|
556
622
|
}
|
|
557
|
-
export interface UpdateAccountSettingBodyDto {
|
|
558
|
-
marketAcc: string;
|
|
559
|
-
marketId: number;
|
|
560
|
-
leverage: number;
|
|
561
|
-
signature: string;
|
|
562
|
-
agent: string;
|
|
563
|
-
timestamp: number;
|
|
564
|
-
}
|
|
565
623
|
export interface AccountGasBalanceResponse {
|
|
566
624
|
balanceInUSD: number;
|
|
567
625
|
}
|
|
@@ -619,6 +677,8 @@ export interface PnlTransactionResponse {
|
|
|
619
677
|
marketAcc: string;
|
|
620
678
|
accountId: number;
|
|
621
679
|
isLimitOrderTrade: boolean;
|
|
680
|
+
prevPositionS: string;
|
|
681
|
+
postPositionS: string;
|
|
622
682
|
}
|
|
623
683
|
export interface SyncStatusResponse {
|
|
624
684
|
blockNumber: number;
|
|
@@ -697,6 +757,7 @@ export interface FundLocationResponse {
|
|
|
697
757
|
fundType: 'wallet' | 'cross_account' | 'isolated_account' | 'amm';
|
|
698
758
|
marketId?: number;
|
|
699
759
|
tokenId?: number;
|
|
760
|
+
amount?: string;
|
|
700
761
|
}
|
|
701
762
|
export interface TransferLogResponse {
|
|
702
763
|
transferLogId: string;
|
|
@@ -792,6 +853,19 @@ export interface MarketAccCashesResponse {
|
|
|
792
853
|
total: number;
|
|
793
854
|
maxEventIndex: number;
|
|
794
855
|
}
|
|
856
|
+
export interface MarketAccDailyPnlRow {
|
|
857
|
+
timestamp: number;
|
|
858
|
+
cumTradePnl: string;
|
|
859
|
+
cumSettlementPnl: string;
|
|
860
|
+
tradePnlDelta: string;
|
|
861
|
+
settlementPnlDelta: string;
|
|
862
|
+
byMarketId?: Record<string, any>;
|
|
863
|
+
}
|
|
864
|
+
export interface DailyChartResponse {
|
|
865
|
+
results: MarketAccDailyPnlRow[];
|
|
866
|
+
total: number;
|
|
867
|
+
syncStatus: SyncStatusResponse;
|
|
868
|
+
}
|
|
795
869
|
export interface SettlementResponse {
|
|
796
870
|
id: string;
|
|
797
871
|
timestamp: number;
|
|
@@ -802,6 +876,7 @@ export interface SettlementResponse {
|
|
|
802
876
|
positionValue: string;
|
|
803
877
|
yieldPaid: string;
|
|
804
878
|
yieldReceived: string;
|
|
879
|
+
fee: string;
|
|
805
880
|
settlement: string;
|
|
806
881
|
settlementRate: number;
|
|
807
882
|
paidApr: number;
|
|
@@ -961,6 +1036,22 @@ export interface PrepareDepositFromBoxMessageResponse {
|
|
|
961
1036
|
postUserState: DepositStateResponse;
|
|
962
1037
|
minReceived: string;
|
|
963
1038
|
}
|
|
1039
|
+
export interface PrepareCollateralSwapDto {
|
|
1040
|
+
fromToken: string;
|
|
1041
|
+
toToken: string;
|
|
1042
|
+
amountIn: string;
|
|
1043
|
+
slippage: number;
|
|
1044
|
+
aggregators?: string;
|
|
1045
|
+
chainId: number;
|
|
1046
|
+
}
|
|
1047
|
+
export interface PrepareCollateralSwapResponse {
|
|
1048
|
+
swapExtRouter: string;
|
|
1049
|
+
swapApprove: string;
|
|
1050
|
+
swapCalldata: string;
|
|
1051
|
+
estAmountOut: string;
|
|
1052
|
+
attestationSignature: string;
|
|
1053
|
+
attestationExpiry: number;
|
|
1054
|
+
}
|
|
964
1055
|
export interface GetDepositBoxIdResponse {
|
|
965
1056
|
boxId: number;
|
|
966
1057
|
}
|
|
@@ -1006,6 +1097,16 @@ export interface CreateDepositBoxIntentDto {
|
|
|
1006
1097
|
export interface CreateDepositBoxIntentResponse {
|
|
1007
1098
|
id: string;
|
|
1008
1099
|
}
|
|
1100
|
+
export interface CreateDepositBoxIntentV2Dto {
|
|
1101
|
+
fromChainId: number;
|
|
1102
|
+
fromToken: string;
|
|
1103
|
+
fromAmount: string;
|
|
1104
|
+
depositAmount: string;
|
|
1105
|
+
minAmountSpent: string;
|
|
1106
|
+
message: DepositFromBoxMessageDto;
|
|
1107
|
+
depositFromBoxSignature: string;
|
|
1108
|
+
extraData?: DepositBoxIntentRouteDataDto;
|
|
1109
|
+
}
|
|
1009
1110
|
export interface PatchDepositBoxIntentBridgingDto {
|
|
1010
1111
|
account: string;
|
|
1011
1112
|
signature: string;
|
|
@@ -1016,6 +1117,9 @@ export interface PatchDepositBoxIntentBridgingDto {
|
|
|
1016
1117
|
export interface PatchWithdrawIntentResponse {
|
|
1017
1118
|
message: string;
|
|
1018
1119
|
}
|
|
1120
|
+
export interface PatchDepositBoxIntentBridgingV2Dto {
|
|
1121
|
+
bridgeTxHash: string;
|
|
1122
|
+
}
|
|
1019
1123
|
export interface PatchDepositBoxIntentCanceledDto {
|
|
1020
1124
|
account: string;
|
|
1021
1125
|
signature: string;
|
|
@@ -1056,6 +1160,7 @@ export interface GetDepositBoxIntentResponse {
|
|
|
1056
1160
|
extraData?: DepositBoxIntentExtraDataResponse;
|
|
1057
1161
|
isRecoverable?: boolean;
|
|
1058
1162
|
isDismissed?: boolean;
|
|
1163
|
+
failureReason?: string;
|
|
1059
1164
|
}
|
|
1060
1165
|
export interface GetDepositBoxIntentsResponse {
|
|
1061
1166
|
intents: GetDepositBoxIntentResponse[];
|
|
@@ -1071,6 +1176,12 @@ export interface CreateWithdrawIntentDto {
|
|
|
1071
1176
|
dstToken: string;
|
|
1072
1177
|
dstChainId: number;
|
|
1073
1178
|
}
|
|
1179
|
+
export interface CreateWithdrawIntentV2Dto {
|
|
1180
|
+
tokenId: number;
|
|
1181
|
+
unscaledAmount: string;
|
|
1182
|
+
dstToken: string;
|
|
1183
|
+
dstChainId: number;
|
|
1184
|
+
}
|
|
1074
1185
|
export interface PatchWithdrawIntentBridgedDto {
|
|
1075
1186
|
account: string;
|
|
1076
1187
|
signature: string;
|
|
@@ -1080,6 +1191,10 @@ export interface PatchWithdrawIntentBridgedDto {
|
|
|
1080
1191
|
aggregatorName: ('LIFI' | 'BOROS' | 'PENDLE' | 'BUNGEE')[];
|
|
1081
1192
|
root: string;
|
|
1082
1193
|
}
|
|
1194
|
+
export interface PatchWithdrawIntentBridgedV2Dto {
|
|
1195
|
+
bridgeTxHash: string;
|
|
1196
|
+
aggregatorName: ('LIFI' | 'BOROS' | 'PENDLE' | 'BUNGEE')[];
|
|
1197
|
+
}
|
|
1083
1198
|
export interface PatchWithdrawIntentDoneDto {
|
|
1084
1199
|
account: string;
|
|
1085
1200
|
signature: string;
|
|
@@ -1122,22 +1237,6 @@ export interface PrepareTransferToBoxResponse {
|
|
|
1122
1237
|
value: string;
|
|
1123
1238
|
calldata: string;
|
|
1124
1239
|
}
|
|
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
1240
|
export interface PrepareDepositFromBoxV2Dto {
|
|
1142
1241
|
root: string;
|
|
1143
1242
|
boxId: number;
|
|
@@ -1349,6 +1448,12 @@ export interface JoinReferralBodyDto {
|
|
|
1349
1448
|
export interface JoinReferralResponse {
|
|
1350
1449
|
success: boolean;
|
|
1351
1450
|
}
|
|
1451
|
+
export interface CreateReferralBodyV2Dto {
|
|
1452
|
+
code: string;
|
|
1453
|
+
}
|
|
1454
|
+
export interface JoinReferralBodyV2Dto {
|
|
1455
|
+
code: string;
|
|
1456
|
+
}
|
|
1352
1457
|
export interface Reward {
|
|
1353
1458
|
symbol: string;
|
|
1354
1459
|
amountInAsset: number;
|
|
@@ -1472,6 +1577,11 @@ export interface SubmitOtcRequestResponseDto {
|
|
|
1472
1577
|
success: boolean;
|
|
1473
1578
|
message: string;
|
|
1474
1579
|
}
|
|
1580
|
+
export interface SubmitOtcRequestV2Dto {
|
|
1581
|
+
entityName: string;
|
|
1582
|
+
telegramId: string;
|
|
1583
|
+
otcTerms: OtcTermDto[];
|
|
1584
|
+
}
|
|
1475
1585
|
export interface OtcTermResponseDto {
|
|
1476
1586
|
exchangeName: string;
|
|
1477
1587
|
marketName: string;
|
|
@@ -1503,6 +1613,12 @@ export interface CreateStrategyPositionDto {
|
|
|
1503
1613
|
export interface CreateStrategyPositionResponse {
|
|
1504
1614
|
id: string;
|
|
1505
1615
|
}
|
|
1616
|
+
export interface CreateStrategyPositionV2Dto {
|
|
1617
|
+
longMarketAcc: string;
|
|
1618
|
+
longMarketId: number;
|
|
1619
|
+
shortMarketAcc: string;
|
|
1620
|
+
shortMarketId: number;
|
|
1621
|
+
}
|
|
1506
1622
|
export interface StrategyPositionResponse {
|
|
1507
1623
|
id: string;
|
|
1508
1624
|
root: string;
|
|
@@ -1535,6 +1651,89 @@ export interface DeleteStrategyPositionDto {
|
|
|
1535
1651
|
timestamp: number;
|
|
1536
1652
|
positionId: string;
|
|
1537
1653
|
}
|
|
1654
|
+
export interface DeleteStrategyPositionV2Dto {
|
|
1655
|
+
positionId: string;
|
|
1656
|
+
}
|
|
1657
|
+
export interface PendleSignTxDto {
|
|
1658
|
+
account: string;
|
|
1659
|
+
connectionId: string;
|
|
1660
|
+
nonce: string;
|
|
1661
|
+
}
|
|
1662
|
+
export interface AgentExecuteDto {
|
|
1663
|
+
agent: string;
|
|
1664
|
+
message: PendleSignTxDto;
|
|
1665
|
+
signature: string;
|
|
1666
|
+
calldata: string;
|
|
1667
|
+
}
|
|
1668
|
+
export interface BulkAgentExecuteDto {
|
|
1669
|
+
datas: AgentExecuteDto[];
|
|
1670
|
+
requireSuccess?: boolean;
|
|
1671
|
+
simulate?: boolean;
|
|
1672
|
+
skipReceipt?: boolean;
|
|
1673
|
+
}
|
|
1674
|
+
export interface TxResponse {
|
|
1675
|
+
txHash?: string;
|
|
1676
|
+
status?: 'success' | 'reverted';
|
|
1677
|
+
index?: number;
|
|
1678
|
+
error?: string;
|
|
1679
|
+
}
|
|
1680
|
+
export interface ApproveAgentQueryDto {
|
|
1681
|
+
approveAgentCalldata: string;
|
|
1682
|
+
skipReceipt?: boolean;
|
|
1683
|
+
}
|
|
1684
|
+
export interface ApproveAgentResponse {
|
|
1685
|
+
approveAgentResult: TxResponse;
|
|
1686
|
+
}
|
|
1687
|
+
export interface StopOrderRequest {
|
|
1688
|
+
account: string;
|
|
1689
|
+
cross: boolean;
|
|
1690
|
+
marketId: number;
|
|
1691
|
+
side: number;
|
|
1692
|
+
tif: number;
|
|
1693
|
+
size: string;
|
|
1694
|
+
tick: number;
|
|
1695
|
+
reduceOnly: boolean;
|
|
1696
|
+
salt: string;
|
|
1697
|
+
expiry: string;
|
|
1698
|
+
offchainCondition: string;
|
|
1699
|
+
}
|
|
1700
|
+
export interface PrepareTpslStopOrderResponse {
|
|
1701
|
+
req: StopOrderRequest;
|
|
1702
|
+
offchainCondition: string;
|
|
1703
|
+
}
|
|
1704
|
+
export interface PlaceMsgDto {
|
|
1705
|
+
actionHash: string;
|
|
1706
|
+
}
|
|
1707
|
+
export interface StopOrderRequestV3Dto {
|
|
1708
|
+
cross: boolean;
|
|
1709
|
+
marketId: number;
|
|
1710
|
+
side: 0 | 1;
|
|
1711
|
+
tif: 0 | 1 | 2 | 3 | 4;
|
|
1712
|
+
size: string;
|
|
1713
|
+
tick: number;
|
|
1714
|
+
reduceOnly: boolean;
|
|
1715
|
+
salt: string;
|
|
1716
|
+
expiry: string;
|
|
1717
|
+
hashedOffchainCondition: string;
|
|
1718
|
+
}
|
|
1719
|
+
export interface PlaceStopOrderV3Dto {
|
|
1720
|
+
placeMsg: PlaceMsgDto;
|
|
1721
|
+
placeSignature: string;
|
|
1722
|
+
request: StopOrderRequestV3Dto;
|
|
1723
|
+
offchainCondition: string;
|
|
1724
|
+
type: 2 | 3;
|
|
1725
|
+
closePosition: boolean;
|
|
1726
|
+
}
|
|
1727
|
+
export interface PlaceStopOrderResponse {
|
|
1728
|
+
orderHash: string;
|
|
1729
|
+
}
|
|
1730
|
+
export interface CancelStopOrderV4Dto {
|
|
1731
|
+
orderIds: string[];
|
|
1732
|
+
cancelSignature: string;
|
|
1733
|
+
}
|
|
1734
|
+
export interface CancelStopOrderResponse {
|
|
1735
|
+
message: string;
|
|
1736
|
+
}
|
|
1538
1737
|
import type { AxiosInstance, AxiosRequestConfig, AxiosResponse, ResponseType } from 'axios';
|
|
1539
1738
|
export type QueryParamsType = Record<string | number, any>;
|
|
1540
1739
|
export interface FullRequestParams extends Omit<AxiosRequestConfig, 'data' | 'params' | 'url' | 'responseType'> {
|
|
@@ -1645,9 +1844,27 @@ export declare class Sdk<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
1645
1844
|
}, params?: RequestParams) => Promise<AxiosResponse<HistoricalUnderlyingAPRChartResponse, any, {}>>;
|
|
1646
1845
|
marketsControllerGetMarketInfo: (marketId: number, params?: RequestParams) => Promise<AxiosResponse<MarketResponse, any, {}>>;
|
|
1647
1846
|
};
|
|
1847
|
+
externalPositions: {
|
|
1848
|
+
externalPositionsControllerGetExternalPositions: (query: {
|
|
1849
|
+
wallet: string;
|
|
1850
|
+
platform?: "hyperliquid";
|
|
1851
|
+
}, params?: RequestParams) => Promise<AxiosResponse<ExternalPositionsResponse, any, {}>>;
|
|
1852
|
+
};
|
|
1853
|
+
newsfeeds: {
|
|
1854
|
+
newsfeedsControllerList: (query?: {
|
|
1855
|
+
skip?: number;
|
|
1856
|
+
limit?: number;
|
|
1857
|
+
market?: number;
|
|
1858
|
+
}, params?: RequestParams) => Promise<AxiosResponse<PublicNewsfeedListResponse, any, {}>>;
|
|
1859
|
+
};
|
|
1860
|
+
toolResources: {
|
|
1861
|
+
toolResourcesControllerList: (query?: {
|
|
1862
|
+
category?: "internal" | "community";
|
|
1863
|
+
}, params?: RequestParams) => Promise<AxiosResponse<PublicToolResourceListResponse, any, {}>>;
|
|
1864
|
+
};
|
|
1648
1865
|
orderBooks: {
|
|
1649
1866
|
orderBooksControllerGetOrderBooksByMarketId: (marketId: number, query: {
|
|
1650
|
-
tickSize: 0.
|
|
1867
|
+
tickSize: 0.0001 | 0.001 | 0.01 | 0.1;
|
|
1651
1868
|
}, params?: RequestParams) => Promise<AxiosResponse<OrderBooksResponse, any, {}>>;
|
|
1652
1869
|
};
|
|
1653
1870
|
amm: {
|
|
@@ -1697,18 +1914,7 @@ export declare class Sdk<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
1697
1914
|
isDeposit: boolean;
|
|
1698
1915
|
amount: string;
|
|
1699
1916
|
}, 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, {}>>;
|
|
1917
|
+
simulationsControllerSimulateCashSwap: (data: CashSwapSimulationDto, params?: RequestParams) => Promise<AxiosResponse<CashSwapSimulationResponse, any, {}>>;
|
|
1712
1918
|
simulationsControllerGetPlaceOrderV2: (query: {
|
|
1713
1919
|
marketId: number;
|
|
1714
1920
|
side: 0 | 1;
|
|
@@ -1868,7 +2074,6 @@ export declare class Sdk<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
1868
2074
|
userAddress: string;
|
|
1869
2075
|
accountId: number;
|
|
1870
2076
|
}, params?: RequestParams) => Promise<AxiosResponse<AccountSettingsResponse, any, {}>>;
|
|
1871
|
-
accountsControllerUpdateAccountSettings: (data: UpdateAccountSettingBodyDto, params?: RequestParams) => Promise<AxiosResponse<void, any, {}>>;
|
|
1872
2077
|
accountsControllerGetAccountGasBalance: (query: {
|
|
1873
2078
|
userAddress: string;
|
|
1874
2079
|
}, params?: RequestParams) => Promise<AxiosResponse<AccountGasBalanceResponse, any, {}>>;
|
|
@@ -1879,6 +2084,7 @@ export declare class Sdk<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
1879
2084
|
}, params?: RequestParams) => Promise<AxiosResponse<AccountGasConsumptionHistoryResponse, any, {}>>;
|
|
1880
2085
|
accountsControllerSetAgentSession: (data: SetAgentSessionDto, params?: RequestParams) => Promise<AxiosResponse<AgentSessionResponse, any, {}>>;
|
|
1881
2086
|
accountsControllerVerifyAgentSession: (data: AgentSessionQueryDto, params?: RequestParams) => Promise<AxiosResponse<AgentSessionResponse, any, {}>>;
|
|
2087
|
+
accountsControllerVerifyAgentSessionV2: (params?: RequestParams) => Promise<AxiosResponse<AgentSessionResponse, any, {}>>;
|
|
1882
2088
|
};
|
|
1883
2089
|
categories: {
|
|
1884
2090
|
categoriesControllerGetAllCategories: (params?: RequestParams) => Promise<AxiosResponse<CategoriesResponse, any, {}>>;
|
|
@@ -1962,6 +2168,10 @@ export declare class Sdk<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
1962
2168
|
skip?: number;
|
|
1963
2169
|
limit?: number;
|
|
1964
2170
|
}, params?: RequestParams) => Promise<AxiosResponse<MarketAccCashesResponse, any, {}>>;
|
|
2171
|
+
pnlControllerGetDailyChart: (query: {
|
|
2172
|
+
marketAcc: string;
|
|
2173
|
+
days?: number;
|
|
2174
|
+
}, params?: RequestParams) => Promise<AxiosResponse<DailyChartResponse, any, {}>>;
|
|
1965
2175
|
};
|
|
1966
2176
|
settlement: {
|
|
1967
2177
|
settlementControllerGetSettlements: (query: {
|
|
@@ -1991,28 +2201,37 @@ export declare class Sdk<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
1991
2201
|
boxId?: number;
|
|
1992
2202
|
}, params?: RequestParams) => Promise<AxiosResponse<GetDepositBoxBalancesResponse, any, {}>>;
|
|
1993
2203
|
depositBoxControllerPrepareDepositFromBox: (data: PrepareDepositFromBoxDto, params?: RequestParams) => Promise<AxiosResponse<PrepareDepositFromBoxMessageResponse, any, {}>>;
|
|
2204
|
+
depositBoxControllerPrepareCollateralSwap: (data: PrepareCollateralSwapDto, params?: RequestParams) => Promise<AxiosResponse<PrepareCollateralSwapResponse, any, {}>>;
|
|
1994
2205
|
depositBoxControllerGetAvailableDepositBoxId: (query: {
|
|
1995
2206
|
root: string;
|
|
1996
2207
|
}, params?: RequestParams) => Promise<AxiosResponse<GetDepositBoxIdResponse, any, {}>>;
|
|
1997
2208
|
depositBoxControllerCreateDepositBoxIntent: (data: CreateDepositBoxIntentDto, params?: RequestParams) => Promise<AxiosResponse<CreateDepositBoxIntentResponse, any, {}>>;
|
|
2209
|
+
depositBoxControllerCreateDepositBoxIntentV2: (data: CreateDepositBoxIntentV2Dto, params?: RequestParams) => Promise<AxiosResponse<CreateDepositBoxIntentResponse, any, {}>>;
|
|
1998
2210
|
depositBoxControllerPatchDepositBoxIntentBridging: (id: string, data: PatchDepositBoxIntentBridgingDto, params?: RequestParams) => Promise<AxiosResponse<PatchWithdrawIntentResponse, any, {}>>;
|
|
2211
|
+
depositBoxControllerPatchDepositBoxIntentBridgingV2: (id: string, data: PatchDepositBoxIntentBridgingV2Dto, params?: RequestParams) => Promise<AxiosResponse<PatchWithdrawIntentResponse, any, {}>>;
|
|
1999
2212
|
depositBoxControllerPatchDepositBoxIntentCanceled: (id: string, data: PatchDepositBoxIntentCanceledDto, params?: RequestParams) => Promise<AxiosResponse<PatchWithdrawIntentResponse, any, {}>>;
|
|
2213
|
+
depositBoxControllerPatchDepositBoxIntentCanceledV2: (id: string, params?: RequestParams) => Promise<AxiosResponse<PatchWithdrawIntentResponse, any, {}>>;
|
|
2000
2214
|
depositBoxControllerPatchDepositBoxIntentFailed: (id: string, data: PatchDepositBoxIntentFailedDto, params?: RequestParams) => Promise<AxiosResponse<PatchWithdrawIntentResponse, any, {}>>;
|
|
2215
|
+
depositBoxControllerPatchDepositBoxIntentFailedV2: (id: string, params?: RequestParams) => Promise<AxiosResponse<PatchWithdrawIntentResponse, any, {}>>;
|
|
2001
2216
|
depositBoxControllerPatchDepositBoxIntentDismissed: (id: string, data: PatchDepositBoxIntentCanceledDto, params?: RequestParams) => Promise<AxiosResponse<PatchWithdrawIntentResponse, any, {}>>;
|
|
2217
|
+
depositBoxControllerPatchDepositBoxIntentDismissedV2: (id: string, params?: RequestParams) => Promise<AxiosResponse<PatchWithdrawIntentResponse, any, {}>>;
|
|
2002
2218
|
depositBoxControllerGetDepositBoxIntents: (query: {
|
|
2003
2219
|
root: string;
|
|
2004
2220
|
}, params?: RequestParams) => Promise<AxiosResponse<GetDepositBoxIntentsResponse, any, {}>>;
|
|
2005
2221
|
depositBoxControllerCreateWithdrawIntent: (data: CreateWithdrawIntentDto, params?: RequestParams) => Promise<AxiosResponse<void, any, {}>>;
|
|
2222
|
+
depositBoxControllerCreateWithdrawIntentV2: (data: CreateWithdrawIntentV2Dto, params?: RequestParams) => Promise<AxiosResponse<void, any, {}>>;
|
|
2006
2223
|
depositBoxControllerPatchWithdrawIntentBridged: (id: string, data: PatchWithdrawIntentBridgedDto, params?: RequestParams) => Promise<AxiosResponse<PatchWithdrawIntentResponse, any, {}>>;
|
|
2224
|
+
depositBoxControllerPatchWithdrawIntentBridgedV2: (id: string, data: PatchWithdrawIntentBridgedV2Dto, params?: RequestParams) => Promise<AxiosResponse<PatchWithdrawIntentResponse, any, {}>>;
|
|
2007
2225
|
depositBoxControllerPatchWithdrawIntentDone: (id: string, data: PatchWithdrawIntentDoneDto, params?: RequestParams) => Promise<AxiosResponse<PatchWithdrawIntentResponse, any, {}>>;
|
|
2226
|
+
depositBoxControllerPatchWithdrawIntentDoneV2: (id: string, params?: RequestParams) => Promise<AxiosResponse<PatchWithdrawIntentResponse, any, {}>>;
|
|
2008
2227
|
depositBoxControllerPatchWithdrawIntentCanceled: (id: string, data: PatchWithdrawIntentCanceledDto, params?: RequestParams) => Promise<AxiosResponse<PatchWithdrawIntentResponse, any, {}>>;
|
|
2228
|
+
depositBoxControllerPatchWithdrawIntentCanceledV2: (id: string, params?: RequestParams) => Promise<AxiosResponse<PatchWithdrawIntentResponse, any, {}>>;
|
|
2009
2229
|
depositBoxControllerGetWithdrawIntents: (query: {
|
|
2010
2230
|
root: string;
|
|
2011
2231
|
}, params?: RequestParams) => Promise<AxiosResponse<GetWithdrawIntentsResponse, any, {}>>;
|
|
2012
2232
|
depositBoxControllerGetWithdrawIntent: (id: string, params?: RequestParams) => Promise<AxiosResponse<GetWithdrawIntentResponse, any, {}>>;
|
|
2013
2233
|
depositBoxControllerGetDepositBoxIntent: (id: string, params?: RequestParams) => Promise<AxiosResponse<GetDepositBoxIntentResponse, any, {}>>;
|
|
2014
2234
|
depositBoxControllerPrepareTransferToBox: (data: PrepareTransferToBoxDto, params?: RequestParams) => Promise<AxiosResponse<PrepareTransferToBoxResponse, any, {}>>;
|
|
2015
|
-
depositBoxControllerPrepareCollateralSwap: (data: PrepareCollateralSwapDto, params?: RequestParams) => Promise<AxiosResponse<PrepareCollateralSwapResponse, any, {}>>;
|
|
2016
2235
|
depositBoxControllerPrepareDepositFromBoxV2: (data: PrepareDepositFromBoxV2Dto, params?: RequestParams) => Promise<AxiosResponse<PrepareDepositFromBoxMessageResponse, any, {}>>;
|
|
2017
2236
|
depositBoxControllerQuoteBscBridgeV2: (data: QuoteBscBridgeV2Dto, params?: RequestParams) => Promise<AxiosResponse<QuoteBscBridgeResponse, any, {}>>;
|
|
2018
2237
|
depositBoxControllerQuoteBridge: (data: QuoteBridgeDto, params?: RequestParams) => Promise<AxiosResponse<QuoteBridgeResponse, any, {}>>;
|
|
@@ -2064,6 +2283,8 @@ export declare class Sdk<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
2064
2283
|
referralControllerCreateReferralCode: (userAddress: string, data: CreateReferralBodyDto, params?: RequestParams) => Promise<AxiosResponse<void, any, {}>>;
|
|
2065
2284
|
referralControllerCheckReferralExist: (data: CheckReferralExistBodyDto, params?: RequestParams) => Promise<AxiosResponse<CheckReferralExistResponse, any, {}>>;
|
|
2066
2285
|
referralControllerJoinReferralCode: (userAddress: string, data: JoinReferralBodyDto, params?: RequestParams) => Promise<AxiosResponse<JoinReferralResponse, any, {}>>;
|
|
2286
|
+
referralControllerCreateReferralCodeV2: (data: CreateReferralBodyV2Dto, params?: RequestParams) => Promise<AxiosResponse<void, any, {}>>;
|
|
2287
|
+
referralControllerJoinReferralCodeV2: (data: JoinReferralBodyV2Dto, params?: RequestParams) => Promise<AxiosResponse<JoinReferralResponse, any, {}>>;
|
|
2067
2288
|
referralControllerGetReferralRewards: (userAddress: string, params?: RequestParams) => Promise<AxiosResponse<ReferralRewardResponse, any, {}>>;
|
|
2068
2289
|
referralControllerGetReferralRewardsInfo: (userAddress: string, params?: RequestParams) => Promise<AxiosResponse<UserReferralRewardsResponse, any, {}>>;
|
|
2069
2290
|
referralControllerGetReferralActivitiesV2: (userAddress: string, params?: RequestParams) => Promise<AxiosResponse<ReferralActivitiesV2Response, any, {}>>;
|
|
@@ -2122,6 +2343,7 @@ export declare class Sdk<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
2122
2343
|
};
|
|
2123
2344
|
otc: {
|
|
2124
2345
|
otcControllerCheckEligibility: (data: CheckEligibilityDto, params?: RequestParams) => Promise<AxiosResponse<CheckEligibilityResponseDto, any, {}>>;
|
|
2346
|
+
otcControllerCheckEligibilityV2: (params?: RequestParams) => Promise<AxiosResponse<CheckEligibilityResponseDto, any, {}>>;
|
|
2125
2347
|
otcControllerSubmitOtcRequest: (data: SubmitOtcRequestDto, params?: RequestParams) => Promise<AxiosResponse<SubmitOtcRequestResponseDto, any, {}>>;
|
|
2126
2348
|
otcControllerGetOtcRequests: (query: {
|
|
2127
2349
|
account: string;
|
|
@@ -2129,9 +2351,12 @@ export declare class Sdk<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
2129
2351
|
agent: string;
|
|
2130
2352
|
timestamp: number;
|
|
2131
2353
|
}, params?: RequestParams) => Promise<AxiosResponse<GetOtcRequestsResponseDto, any, {}>>;
|
|
2354
|
+
otcControllerSubmitOtcRequestV2: (data: SubmitOtcRequestV2Dto, params?: RequestParams) => Promise<AxiosResponse<SubmitOtcRequestResponseDto, any, {}>>;
|
|
2355
|
+
otcControllerGetOtcRequestsV2: (params?: RequestParams) => Promise<AxiosResponse<GetOtcRequestsResponseDto, any, {}>>;
|
|
2132
2356
|
};
|
|
2133
2357
|
strategyPositions: {
|
|
2134
2358
|
strategyPositionsControllerCreatePosition: (data: CreateStrategyPositionDto, params?: RequestParams) => Promise<AxiosResponse<CreateStrategyPositionResponse, any, {}>>;
|
|
2359
|
+
strategyPositionsControllerCreatePositionV2: (data: CreateStrategyPositionV2Dto, params?: RequestParams) => Promise<AxiosResponse<CreateStrategyPositionResponse, any, {}>>;
|
|
2135
2360
|
strategyPositionsControllerGetPositions: (query: {
|
|
2136
2361
|
account: string;
|
|
2137
2362
|
signature: string;
|
|
@@ -2141,6 +2366,28 @@ export declare class Sdk<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
2141
2366
|
skip?: number;
|
|
2142
2367
|
limit?: number;
|
|
2143
2368
|
}, params?: RequestParams) => Promise<AxiosResponse<StrategyPositionsResponse, any, {}>>;
|
|
2369
|
+
strategyPositionsControllerGetPositionsV2: (query?: {
|
|
2370
|
+
skip?: number;
|
|
2371
|
+
limit?: number;
|
|
2372
|
+
}, params?: RequestParams) => Promise<AxiosResponse<StrategyPositionsResponse, any, {}>>;
|
|
2144
2373
|
strategyPositionsControllerDeletePosition: (data: DeleteStrategyPositionDto, params?: RequestParams) => Promise<AxiosResponse<void, any, {}>>;
|
|
2374
|
+
strategyPositionsControllerDeletePositionV2: (data: DeleteStrategyPositionV2Dto, params?: RequestParams) => Promise<AxiosResponse<void, any, {}>>;
|
|
2375
|
+
};
|
|
2376
|
+
sendTxs: {
|
|
2377
|
+
sendTxsControllerUiBulkExecute: (data: BulkAgentExecuteDto, params?: RequestParams) => Promise<AxiosResponse<TxResponse[], any, {}>>;
|
|
2378
|
+
sendTxsControllerApprove: (data: ApproveAgentQueryDto, params?: RequestParams) => Promise<AxiosResponse<ApproveAgentResponse, any, {}>>;
|
|
2379
|
+
};
|
|
2380
|
+
stopOrders: {
|
|
2381
|
+
stopOrdersControllerPrepareTakeProfitStopLossOrder: (query: {
|
|
2382
|
+
marketAcc: string;
|
|
2383
|
+
marketId: number;
|
|
2384
|
+
side: 0 | 1;
|
|
2385
|
+
type: 2 | 3;
|
|
2386
|
+
closePosition: boolean;
|
|
2387
|
+
size: string;
|
|
2388
|
+
stopApr: number;
|
|
2389
|
+
}, params?: RequestParams) => Promise<AxiosResponse<PrepareTpslStopOrderResponse, any, {}>>;
|
|
2390
|
+
stopOrdersControllerPlaceStopOrder: (data: PlaceStopOrderV3Dto, params?: RequestParams) => Promise<AxiosResponse<PlaceStopOrderResponse, any, {}>>;
|
|
2391
|
+
stopOrdersControllerCancelStopOrders: (data: CancelStopOrderV4Dto, params?: RequestParams) => Promise<AxiosResponse<CancelStopOrderResponse, any, {}>>;
|
|
2145
2392
|
};
|
|
2146
2393
|
}
|