@pendle/sdk-boros 0.3.28 → 0.3.30-beta

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.
@@ -186,9 +186,18 @@ export interface CashTransferPrePostSimulationResponse {
186
186
  preUserState: CashTransferStateResponse;
187
187
  postUserState: CashTransferStateResponse;
188
188
  }
189
+ export interface FeeBreakdownResponse {
190
+ marketEntranceFee: string;
191
+ takerOtcFee: string;
192
+ opsFee: string;
193
+ marketEntranceFeeInUSD: number;
194
+ takerOtcFeeInUSD: number;
195
+ opsFeeInUSD: number;
196
+ }
189
197
  export interface CashTransferSimulationResponse {
190
198
  crossAccState: CashTransferPrePostSimulationResponse;
191
199
  isolatedAccState: CashTransferPrePostSimulationResponse;
200
+ feeBreakdown: FeeBreakdownResponse;
192
201
  }
193
202
  export interface ContractSwapPositionResponse {
194
203
  size: string;
@@ -202,36 +211,12 @@ export interface PlaceOrderSimulationResponseV2 {
202
211
  liquidationApr?: number;
203
212
  priceImpact: number;
204
213
  fee: string;
214
+ feeBreakdown: FeeBreakdownResponse;
205
215
  actualLeverage: number;
206
216
  status: string;
207
217
  }
208
- export interface PlaceOrderStateResponse {
209
- totalCash: string;
210
- availableInitialMargin: string;
211
- availableMaintMargin: string;
212
- marginRatio: number;
213
- activePositionSize: string;
214
- }
215
- export interface PlaceOrderSimulationResponse {
216
- preUserInfo: PlaceOrderStateResponse;
217
- postUserInfo: PlaceOrderStateResponse;
218
- matched: ContractSwapPositionResponse;
219
- marginRequired: string;
220
- liquidationApr?: number;
221
- profit25PercentApr: number;
222
- priceImpact: number;
223
- fee: string;
224
- actualLeverage: number;
225
- }
226
- export interface UserInfoResponse {
227
- totalCash: string;
228
- availableInitialMargin: string;
229
- availableMaintMargin: string;
230
- marginRatio: number;
231
- }
232
218
  export interface CancelOrderSimulationResponse {
233
- preUserInfo: UserInfoResponse;
234
- postUserInfo: UserInfoResponse;
219
+ feeBreakdown: FeeBreakdownResponse;
235
220
  }
236
221
  export interface AddLiquiditySingleCashStateResponse {
237
222
  collateralBalance: string;
@@ -246,6 +231,7 @@ export interface AddLiquiditySingleCashSimulationResponse {
246
231
  preUserInfo: AddLiquiditySingleCashStateResponse;
247
232
  postUserInfo: AddLiquiditySingleCashStateResponse;
248
233
  matched: AddLiquiditySingleCashMatchedResponse;
234
+ feeBreakdown: FeeBreakdownResponse;
249
235
  }
250
236
  export interface RemoveLiquiditySingleCashStateResponse {
251
237
  collateralBalance: string;
@@ -259,6 +245,7 @@ export interface RemoveLiquiditySingleCashSimulationResponse {
259
245
  preUserInfo: RemoveLiquiditySingleCashStateResponse;
260
246
  postUserInfo: RemoveLiquiditySingleCashStateResponse;
261
247
  matched: RemoveLiquiditySingleCashMatchedResponse;
248
+ feeBreakdown: FeeBreakdownResponse;
262
249
  }
263
250
  export interface AssetMetadataResponse {
264
251
  proSymbol: string;
@@ -290,6 +277,10 @@ export interface AgentExecuteParamsResponse {
290
277
  tag: string;
291
278
  data: string;
292
279
  }
280
+ export interface BulkAgentExecuteParamsResponse {
281
+ tag: string;
282
+ datas: string[];
283
+ }
293
284
  export interface BulkPlaceOrderQueryDto {
294
285
  marketAcc: string;
295
286
  marketId: number;
@@ -301,6 +292,7 @@ export interface BulkPlaceOrderQueryDto {
301
292
  tif: 0 | 1 | 2 | 3;
302
293
  }
303
294
  export interface BulkPlaceOrderQueryDtoV2 {
295
+ payTreasuryAmount?: string;
304
296
  marketAcc: string;
305
297
  marketId: number;
306
298
  sides: (0 | 1)[];
@@ -310,10 +302,6 @@ export interface BulkPlaceOrderQueryDtoV2 {
310
302
  ammId?: number;
311
303
  slippage?: number;
312
304
  }
313
- export interface BulkAgentExecuteParamsResponse {
314
- tag: string;
315
- datas: string[];
316
- }
317
305
  export interface SettingsByMarketResponse {
318
306
  marketId: number;
319
307
  crossLeverage?: number;
@@ -330,6 +318,9 @@ export interface UpdateAccountSettingBodyDto {
330
318
  agent: string;
331
319
  timestamp: number;
332
320
  }
321
+ export interface AccountGasBalanceResponse {
322
+ balanceInUSD: number;
323
+ }
333
324
  export interface PnlTransactionResponse {
334
325
  id: string;
335
326
  marketId: number;
@@ -410,6 +401,55 @@ export interface RiskGetAmmImpliedRateResponse {
410
401
  address: string;
411
402
  impliedRate: number;
412
403
  }
404
+ export interface PriceDeviationItem {
405
+ time: string;
406
+ value: number;
407
+ }
408
+ export interface PriceDeviationResponse {
409
+ startTime: string;
410
+ endTime: string;
411
+ data: PriceDeviationItem[];
412
+ }
413
+ export interface UnhealthyVolumeItem {
414
+ time: string;
415
+ value: number;
416
+ }
417
+ export interface UnhealthyVolumeResponse {
418
+ startTime: string;
419
+ endTime: string;
420
+ data: UnhealthyVolumeItem[];
421
+ }
422
+ export interface LongShortCostItem {
423
+ long: number;
424
+ short: number;
425
+ }
426
+ export interface LiquidationCostItem {
427
+ time: string;
428
+ value: LongShortCostItem;
429
+ }
430
+ export interface LiquidationCostResponse {
431
+ startTime: string;
432
+ endTime: string;
433
+ data: LiquidationCostItem[];
434
+ }
435
+ export interface TradedVolumeItem {
436
+ time: string;
437
+ value: number;
438
+ }
439
+ export interface TradedVolumeResponse {
440
+ startTime: string;
441
+ endTime: string;
442
+ data: TradedVolumeItem[];
443
+ }
444
+ export interface LiquidityDepthItem {
445
+ time: string;
446
+ value: number;
447
+ }
448
+ export interface LiquidityDepthResponse {
449
+ startTime: string;
450
+ endTime: string;
451
+ data: LiquidityDepthItem[];
452
+ }
413
453
  export interface SettlementResponse {
414
454
  id: string;
415
455
  timestamp: number;
@@ -600,7 +640,10 @@ export interface LiquidityDashboardPerMarketResponse {
600
640
  totalOI: string;
601
641
  midApr: number;
602
642
  spread: number;
643
+ longSize: string;
644
+ shortSize: string;
603
645
  ammLiquidityWithinSpreadRange: string;
646
+ ammTvl: string;
604
647
  skew: number;
605
648
  tierInfos: LiquidityDashboardTierInfo[];
606
649
  }
@@ -657,7 +700,7 @@ export declare class Sdk<SecurityDataType extends unknown> extends HttpClient<Se
657
700
  }, params?: RequestParams) => Promise<AxiosResponse<MarketTradesResponse, any>>;
658
701
  marketsControllerGetChartData: (query: {
659
702
  marketId: number;
660
- timeFrame: "5m" | "1h" | "1d" | "1w";
703
+ timeFrame: "1m" | "5m" | "1h" | "1d" | "1w";
661
704
  startTimestamp?: number;
662
705
  endTimestamp?: number;
663
706
  }, params?: RequestParams) => Promise<AxiosResponse<ChartResponse, any>>;
@@ -678,18 +721,13 @@ export declare class Sdk<SecurityDataType extends unknown> extends HttpClient<Se
678
721
  }, params?: RequestParams) => Promise<AxiosResponse<GetSingleVaultResponse, any>>;
679
722
  ammControllerGetVaultApyChart: (query: {
680
723
  marketId: number;
681
- timeFrame: "5m" | "1h" | "1d" | "1w";
724
+ timeFrame: "1m" | "5m" | "1h" | "1d" | "1w";
682
725
  startTimestamp?: number;
683
726
  endTimestamp?: number;
684
727
  }, params?: RequestParams) => Promise<AxiosResponse<GetVaultApyChartResponse, any>>;
685
728
  ammControllerGetAmmInfoByAmmId: (ammId: number, params?: RequestParams) => Promise<AxiosResponse<GetAMMInfoByAmmIdResponse, any>>;
686
729
  };
687
730
  simulations: {
688
- simulationsControllerGetDeposit: (query: {
689
- userAddress: string;
690
- tokenId: number;
691
- amount: string;
692
- }, params?: RequestParams) => Promise<AxiosResponse<DepositSimulationResponse, any>>;
693
731
  simulationsControllerGetDepositV2: (query: {
694
732
  userAddress: string;
695
733
  tokenId: number;
@@ -709,29 +747,19 @@ export declare class Sdk<SecurityDataType extends unknown> extends HttpClient<Se
709
747
  amount: string;
710
748
  }, params?: RequestParams) => Promise<AxiosResponse<CashTransferSimulationResponse, any>>;
711
749
  simulationsControllerGetPlaceOrderV2: (query: {
712
- marketAcc?: string;
713
750
  marketId: number;
714
751
  side: 0 | 1;
715
752
  size: string;
716
753
  limitTick?: number;
717
754
  tif: 0 | 1 | 2 | 3;
718
755
  slippage?: number;
756
+ marketAcc?: string;
719
757
  }, params?: RequestParams) => Promise<AxiosResponse<PlaceOrderSimulationResponseV2, any>>;
720
- simulationsControllerGetPlaceOrder: (query: {
721
- marketAcc: string;
722
- marketId: number;
723
- side: 0 | 1;
724
- size: string;
725
- limitTick?: number;
726
- tif: 0 | 1 | 2 | 3;
727
- slippage?: number;
728
- isConnected?: boolean;
729
- }, params?: RequestParams) => Promise<AxiosResponse<PlaceOrderSimulationResponse, any>>;
730
758
  simulationsControllerGetCancelOrder: (query: {
731
759
  marketAcc: string;
732
760
  marketId: number;
733
761
  cancelAll: boolean;
734
- orderIds?: string[];
762
+ orderIds?: string;
735
763
  }, params?: RequestParams) => Promise<AxiosResponse<CancelOrderSimulationResponse, any>>;
736
764
  simulationsControllerCloseActiveMarketPositionV2: (query: {
737
765
  marketId: number;
@@ -742,14 +770,6 @@ export declare class Sdk<SecurityDataType extends unknown> extends HttpClient<Se
742
770
  slippage?: number;
743
771
  marketAcc: string;
744
772
  }, params?: RequestParams) => Promise<AxiosResponse<PlaceOrderSimulationResponseV2, any>>;
745
- simulationsControllerCloseActiveMarketPosition: (query: {
746
- marketAcc: string;
747
- marketId: number;
748
- type: "limit" | "market";
749
- size: string;
750
- rate?: number;
751
- slippage?: number;
752
- }, params?: RequestParams) => Promise<AxiosResponse<PlaceOrderSimulationResponse, any>>;
753
773
  simulationsControllerGetAddLiquiditySingleCashToAmm: (query: {
754
774
  userAddress: string;
755
775
  accountId: number;
@@ -771,6 +791,8 @@ export declare class Sdk<SecurityDataType extends unknown> extends HttpClient<Se
771
791
  userAddress: string;
772
792
  tokenId: number;
773
793
  amount: string;
794
+ accountId: number;
795
+ marketId: number;
774
796
  }, params?: RequestParams) => Promise<AxiosResponse<GetCalldataResponse, any>>;
775
797
  calldataControllerGetDepositCalldataV2: (query: {
776
798
  userAddress: string;
@@ -779,11 +801,6 @@ export declare class Sdk<SecurityDataType extends unknown> extends HttpClient<Se
779
801
  accountId: number;
780
802
  marketId: number;
781
803
  }, params?: RequestParams) => Promise<AxiosResponse<GetCalldataResponse, any>>;
782
- calldataControllerGetWithdrawCalldata: (query: {
783
- userAddress: string;
784
- tokenId: number;
785
- amount: string;
786
- }, params?: RequestParams) => Promise<AxiosResponse<GetCalldataResponse, any>>;
787
804
  calldataControllerGetWithdrawRequestCalldata: (query: {
788
805
  userAddress: string;
789
806
  tokenId: number;
@@ -798,6 +815,13 @@ export declare class Sdk<SecurityDataType extends unknown> extends HttpClient<Se
798
815
  tokenId: number;
799
816
  }, params?: RequestParams) => Promise<AxiosResponse<GetCalldataResponse, any>>;
800
817
  calldataControllerGetPositionTransferCalldata: (query: {
818
+ payTreasuryAmount?: string;
819
+ marketId: number;
820
+ isDeposit: boolean;
821
+ amount: string;
822
+ }, params?: RequestParams) => Promise<AxiosResponse<AgentExecuteParamsResponse, any>>;
823
+ calldataControllerGetPositionTransferCalldataV2: (query: {
824
+ payTreasuryAmount?: string;
801
825
  marketId: number;
802
826
  isDeposit: boolean;
803
827
  amount: string;
@@ -810,24 +834,34 @@ export declare class Sdk<SecurityDataType extends unknown> extends HttpClient<Se
810
834
  tif: 0 | 1 | 2 | 3;
811
835
  slippage?: number;
812
836
  marketAcc: string;
837
+ payTreasuryAmount?: string;
813
838
  }, params?: RequestParams) => Promise<AxiosResponse<AgentExecuteParamsResponse, any>>;
814
- calldataControllerGetPlaceOrderCalldata: (query: {
815
- marketAcc: string;
839
+ calldataControllerGetPlaceOrderCalldataV3: (query: {
816
840
  marketId: number;
817
841
  side: 0 | 1;
818
842
  size: string;
819
843
  limitTick?: number;
820
- slippage?: number;
821
844
  tif: 0 | 1 | 2 | 3;
822
- }, params?: RequestParams) => Promise<AxiosResponse<AgentExecuteParamsResponse, any>>;
845
+ slippage?: number;
846
+ marketAcc: string;
847
+ payTreasuryAmount?: string;
848
+ }, params?: RequestParams) => Promise<AxiosResponse<BulkAgentExecuteParamsResponse, any>>;
823
849
  calldataControllerGetBulkPlaceOrderCalldata: (data: BulkPlaceOrderQueryDto, params?: RequestParams) => Promise<AxiosResponse<AgentExecuteParamsResponse, any>>;
824
850
  calldataControllerGetBulkPlaceOrderCalldataV2: (data: BulkPlaceOrderQueryDtoV2, params?: RequestParams) => Promise<AxiosResponse<BulkAgentExecuteParamsResponse, any>>;
825
851
  calldataControllerGetCancelOrderCalldata: (query: {
852
+ payTreasuryAmount?: string;
826
853
  marketAcc: string;
827
854
  marketId: number;
828
855
  cancelAll: boolean;
829
856
  orderIds?: string;
830
857
  }, params?: RequestParams) => Promise<AxiosResponse<AgentExecuteParamsResponse, any>>;
858
+ calldataControllerGetCancelOrderCalldataV2: (query: {
859
+ payTreasuryAmount?: string;
860
+ marketAcc: string;
861
+ marketId: number;
862
+ cancelAll: boolean;
863
+ orderIds?: string;
864
+ }, params?: RequestParams) => Promise<AxiosResponse<BulkAgentExecuteParamsResponse, any>>;
831
865
  calldataControllerGetCloseActiveMarketPositionV2: (query: {
832
866
  marketId: number;
833
867
  side: 0 | 1;
@@ -836,31 +870,51 @@ export declare class Sdk<SecurityDataType extends unknown> extends HttpClient<Se
836
870
  tif: 0 | 1 | 2 | 3;
837
871
  slippage?: number;
838
872
  marketAcc: string;
873
+ payTreasuryAmount?: string;
839
874
  }, params?: RequestParams) => Promise<AxiosResponse<AgentExecuteParamsResponse, any>>;
840
- calldataControllerGetCloseActiveMarketPosition: (query: {
841
- marketAcc: string;
875
+ calldataControllerGetCloseActiveMarketPositionV3: (query: {
842
876
  marketId: number;
843
- type: "limit" | "market";
877
+ side: 0 | 1;
844
878
  size: string;
845
- rate?: number;
879
+ limitTick?: number;
880
+ tif: 0 | 1 | 2 | 3;
846
881
  slippage?: number;
847
- }, params?: RequestParams) => Promise<AxiosResponse<AgentExecuteParamsResponse, any>>;
882
+ marketAcc: string;
883
+ payTreasuryAmount?: string;
884
+ }, params?: RequestParams) => Promise<AxiosResponse<BulkAgentExecuteParamsResponse, any>>;
848
885
  calldataControllerGetAddLiquiditySingleCashToAmmCalldata: (query: {
886
+ payTreasuryAmount?: string;
849
887
  userAddress: string;
850
888
  accountId: number;
851
889
  marketId: number;
852
890
  netCashIn: string;
853
891
  minLpOut: string;
854
892
  }, params?: RequestParams) => Promise<AxiosResponse<AgentExecuteParamsResponse, any>>;
893
+ calldataControllerGetAddLiquiditySingleCashToAmmCalldataV2: (query: {
894
+ payTreasuryAmount?: string;
895
+ userAddress: string;
896
+ accountId: number;
897
+ marketId: number;
898
+ netCashIn: string;
899
+ minLpOut: string;
900
+ }, params?: RequestParams) => Promise<AxiosResponse<BulkAgentExecuteParamsResponse, any>>;
855
901
  calldataControllerGetRemoveLiquiditySingleCashFromAmmCalldata: (query: {
902
+ payTreasuryAmount?: string;
856
903
  marketId: number;
857
904
  lpToRemove: string;
858
905
  minCashOut: string;
859
906
  }, params?: RequestParams) => Promise<AxiosResponse<AgentExecuteParamsResponse, any>>;
860
- calldataControllerEnterAllMarkets: (query: {
861
- userAddress: string;
862
- isCross?: boolean;
863
- }, params?: RequestParams) => Promise<AxiosResponse<AgentExecuteParamsResponse, any>>;
907
+ calldataControllerGetRemoveLiquiditySingleCashFromAmmCalldataV2: (query: {
908
+ payTreasuryAmount?: string;
909
+ marketId: number;
910
+ lpToRemove: string;
911
+ minCashOut: string;
912
+ }, params?: RequestParams) => Promise<AxiosResponse<BulkAgentExecuteParamsResponse, any>>;
913
+ calldataControllerGetPayTreasuryCalldata: (query: {
914
+ isCross: boolean;
915
+ marketId: number;
916
+ usdAmount: number;
917
+ }, params?: RequestParams) => Promise<AxiosResponse<BulkAgentExecuteParamsResponse, any>>;
864
918
  };
865
919
  accounts: {
866
920
  accountsControllerGetUserSettings: (query: {
@@ -868,6 +922,10 @@ export declare class Sdk<SecurityDataType extends unknown> extends HttpClient<Se
868
922
  accountId: number;
869
923
  }, params?: RequestParams) => Promise<AxiosResponse<AccountSettingsResponse, any>>;
870
924
  accountsControllerUpdateAccountSettings: (data: UpdateAccountSettingBodyDto, params?: RequestParams) => Promise<AxiosResponse<void, any>>;
925
+ accountsControllerGetAccountGasBalance: (query: {
926
+ userAddress: string;
927
+ accountId: number;
928
+ }, params?: RequestParams) => Promise<AxiosResponse<AccountGasBalanceResponse, any>>;
871
929
  };
872
930
  pnL: {
873
931
  pnlControllerGetPnlTransactions: (query: {
@@ -881,7 +939,7 @@ export declare class Sdk<SecurityDataType extends unknown> extends HttpClient<Se
881
939
  userAddress: string;
882
940
  marketId: number;
883
941
  accountId: number;
884
- timeFrame?: "5m" | "1h" | "1d" | "1w";
942
+ timeFrame?: "1m" | "5m" | "1h" | "1d" | "1w";
885
943
  startTimestamp?: number;
886
944
  endTimestamp?: number;
887
945
  }, params?: RequestParams) => Promise<AxiosResponse<HistoricalPnlChartResponse[], any>>;
@@ -929,6 +987,36 @@ export declare class Sdk<SecurityDataType extends unknown> extends HttpClient<Se
929
987
  riskControllerGetAmmImpliedRate: (query: {
930
988
  marketId: number;
931
989
  }, params?: RequestParams) => Promise<AxiosResponse<RiskGetAmmImpliedRateResponse, any>>;
990
+ riskControllerGetPriceDeviation: (query: {
991
+ frequency: number;
992
+ marketId: number;
993
+ limit?: number;
994
+ timeWindow: number;
995
+ }, params?: RequestParams) => Promise<AxiosResponse<PriceDeviationResponse, any>>;
996
+ riskControllerGetUnhealthyVolume: (query: {
997
+ frequency: number;
998
+ marketId: number;
999
+ limit?: number;
1000
+ rate: number;
1001
+ }, params?: RequestParams) => Promise<AxiosResponse<UnhealthyVolumeResponse, any>>;
1002
+ riskControllerGetLiquidationCost: (query: {
1003
+ frequency: number;
1004
+ marketId: number;
1005
+ limit?: number;
1006
+ openInterestPercentage: number;
1007
+ }, params?: RequestParams) => Promise<AxiosResponse<LiquidationCostResponse, any>>;
1008
+ riskControllerGetTradedVolume: (query: {
1009
+ frequency: number;
1010
+ marketId: number;
1011
+ limit?: number;
1012
+ timeWindow: number;
1013
+ }, params?: RequestParams) => Promise<AxiosResponse<TradedVolumeResponse, any>>;
1014
+ riskControllerGetLiquidityDepth: (query: {
1015
+ frequency: number;
1016
+ marketId: number;
1017
+ limit?: number;
1018
+ deltaRate: number;
1019
+ }, params?: RequestParams) => Promise<AxiosResponse<LiquidityDepthResponse, any>>;
932
1020
  };
933
1021
  settlement: {
934
1022
  settlementControllerGetSettlements: (query: {
@@ -991,5 +1079,6 @@ export declare class Sdk<SecurityDataType extends unknown> extends HttpClient<Se
991
1079
  };
992
1080
  dashboard: {
993
1081
  dashboardControllerGetLiquidityMetrics: (params?: RequestParams) => Promise<AxiosResponse<LiquidityDashboardResponse, any>>;
1082
+ dashboardControllerGetLiquidityMetricsPerMarket: (marketId: number, params?: RequestParams) => Promise<AxiosResponse<LiquidityDashboardPerMarketResponse, any>>;
994
1083
  };
995
1084
  }
@@ -22,7 +22,7 @@ class HttpClient {
22
22
  constructor({ securityWorker, secure, format, ...axiosConfig } = {}) {
23
23
  this.instance = axios_1.default.create({
24
24
  ...axiosConfig,
25
- baseURL: axiosConfig.baseURL || 'https://secrettune.io/core-v2',
25
+ baseURL: axiosConfig.baseURL || 'http://localhost:8000',
26
26
  });
27
27
  this.secure = secure;
28
28
  this.format = format;
@@ -162,13 +162,6 @@ class Sdk extends HttpClient {
162
162
  }),
163
163
  };
164
164
  simulations = {
165
- simulationsControllerGetDeposit: (query, params = {}) => this.request({
166
- path: `/v1/simulations/deposit`,
167
- method: 'GET',
168
- query: query,
169
- format: 'json',
170
- ...params,
171
- }),
172
165
  simulationsControllerGetDepositV2: (query, params = {}) => this.request({
173
166
  path: `/v2/simulations/deposit`,
174
167
  method: 'GET',
@@ -197,13 +190,6 @@ class Sdk extends HttpClient {
197
190
  format: 'json',
198
191
  ...params,
199
192
  }),
200
- simulationsControllerGetPlaceOrder: (query, params = {}) => this.request({
201
- path: `/v1/simulations/place-order`,
202
- method: 'GET',
203
- query: query,
204
- format: 'json',
205
- ...params,
206
- }),
207
193
  simulationsControllerGetCancelOrder: (query, params = {}) => this.request({
208
194
  path: `/v1/simulations/cancel-order`,
209
195
  method: 'GET',
@@ -218,13 +204,6 @@ class Sdk extends HttpClient {
218
204
  format: 'json',
219
205
  ...params,
220
206
  }),
221
- simulationsControllerCloseActiveMarketPosition: (query, params = {}) => this.request({
222
- path: `/v1/simulations/close-active-position`,
223
- method: 'GET',
224
- query: query,
225
- format: 'json',
226
- ...params,
227
- }),
228
207
  simulationsControllerGetAddLiquiditySingleCashToAmm: (query, params = {}) => this.request({
229
208
  path: `/v1/simulations/add-liquidity-single-cash`,
230
209
  method: 'GET',
@@ -263,13 +242,6 @@ class Sdk extends HttpClient {
263
242
  format: 'json',
264
243
  ...params,
265
244
  }),
266
- calldataControllerGetWithdrawCalldata: (query, params = {}) => this.request({
267
- path: `/v1/calldata/withdraw`,
268
- method: 'GET',
269
- query: query,
270
- format: 'json',
271
- ...params,
272
- }),
273
245
  calldataControllerGetWithdrawRequestCalldata: (query, params = {}) => this.request({
274
246
  path: `/v1/calldata/withdraw/request`,
275
247
  method: 'GET',
@@ -298,6 +270,13 @@ class Sdk extends HttpClient {
298
270
  format: 'json',
299
271
  ...params,
300
272
  }),
273
+ calldataControllerGetPositionTransferCalldataV2: (query, params = {}) => this.request({
274
+ path: `/v2/calldata/cash-transfer`,
275
+ method: 'GET',
276
+ query: query,
277
+ format: 'json',
278
+ ...params,
279
+ }),
301
280
  calldataControllerGetPlaceOrderCalldataV2: (query, params = {}) => this.request({
302
281
  path: `/v2/calldata/place-order`,
303
282
  method: 'GET',
@@ -305,8 +284,8 @@ class Sdk extends HttpClient {
305
284
  format: 'json',
306
285
  ...params,
307
286
  }),
308
- calldataControllerGetPlaceOrderCalldata: (query, params = {}) => this.request({
309
- path: `/v1/calldata/place-order`,
287
+ calldataControllerGetPlaceOrderCalldataV3: (query, params = {}) => this.request({
288
+ path: `/v3/calldata/place-order`,
310
289
  method: 'GET',
311
290
  query: query,
312
291
  format: 'json',
@@ -335,6 +314,13 @@ class Sdk extends HttpClient {
335
314
  format: 'json',
336
315
  ...params,
337
316
  }),
317
+ calldataControllerGetCancelOrderCalldataV2: (query, params = {}) => this.request({
318
+ path: `/v2/calldata/cancel-order`,
319
+ method: 'GET',
320
+ query: query,
321
+ format: 'json',
322
+ ...params,
323
+ }),
338
324
  calldataControllerGetCloseActiveMarketPositionV2: (query, params = {}) => this.request({
339
325
  path: `/v2/calldata/close-active-position`,
340
326
  method: 'GET',
@@ -342,8 +328,8 @@ class Sdk extends HttpClient {
342
328
  format: 'json',
343
329
  ...params,
344
330
  }),
345
- calldataControllerGetCloseActiveMarketPosition: (query, params = {}) => this.request({
346
- path: `/v1/calldata/close-active-position`,
331
+ calldataControllerGetCloseActiveMarketPositionV3: (query, params = {}) => this.request({
332
+ path: `/v3/calldata/close-active-position`,
347
333
  method: 'GET',
348
334
  query: query,
349
335
  format: 'json',
@@ -356,6 +342,13 @@ class Sdk extends HttpClient {
356
342
  format: 'json',
357
343
  ...params,
358
344
  }),
345
+ calldataControllerGetAddLiquiditySingleCashToAmmCalldataV2: (query, params = {}) => this.request({
346
+ path: `/v2/calldata/add-liquidity-single-cash-to-amm`,
347
+ method: 'GET',
348
+ query: query,
349
+ format: 'json',
350
+ ...params,
351
+ }),
359
352
  calldataControllerGetRemoveLiquiditySingleCashFromAmmCalldata: (query, params = {}) => this.request({
360
353
  path: `/v1/calldata/remove-liquidity-single-cash-from-amm`,
361
354
  method: 'GET',
@@ -363,8 +356,15 @@ class Sdk extends HttpClient {
363
356
  format: 'json',
364
357
  ...params,
365
358
  }),
366
- calldataControllerEnterAllMarkets: (query, params = {}) => this.request({
367
- path: `/v1/calldata/enter-all-markets`,
359
+ calldataControllerGetRemoveLiquiditySingleCashFromAmmCalldataV2: (query, params = {}) => this.request({
360
+ path: `/v2/calldata/remove-liquidity-single-cash-from-amm`,
361
+ method: 'GET',
362
+ query: query,
363
+ format: 'json',
364
+ ...params,
365
+ }),
366
+ calldataControllerGetPayTreasuryCalldata: (query, params = {}) => this.request({
367
+ path: `/v1/calldata/pay-treasury`,
368
368
  method: 'GET',
369
369
  query: query,
370
370
  format: 'json',
@@ -386,6 +386,13 @@ class Sdk extends HttpClient {
386
386
  type: ContentType.Json,
387
387
  ...params,
388
388
  }),
389
+ accountsControllerGetAccountGasBalance: (query, params = {}) => this.request({
390
+ path: `/v1/accounts/gas-balance`,
391
+ method: 'GET',
392
+ query: query,
393
+ format: 'json',
394
+ ...params,
395
+ }),
389
396
  };
390
397
  pnL = {
391
398
  pnlControllerGetPnlTransactions: (query, params = {}) => this.request({
@@ -446,6 +453,41 @@ class Sdk extends HttpClient {
446
453
  format: 'json',
447
454
  ...params,
448
455
  }),
456
+ riskControllerGetPriceDeviation: (query, params = {}) => this.request({
457
+ path: `/v1/risk/price-deviation`,
458
+ method: 'GET',
459
+ query: query,
460
+ format: 'json',
461
+ ...params,
462
+ }),
463
+ riskControllerGetUnhealthyVolume: (query, params = {}) => this.request({
464
+ path: `/v1/risk/unhealthy-volume`,
465
+ method: 'GET',
466
+ query: query,
467
+ format: 'json',
468
+ ...params,
469
+ }),
470
+ riskControllerGetLiquidationCost: (query, params = {}) => this.request({
471
+ path: `/v1/risk/liquidation-cost`,
472
+ method: 'GET',
473
+ query: query,
474
+ format: 'json',
475
+ ...params,
476
+ }),
477
+ riskControllerGetTradedVolume: (query, params = {}) => this.request({
478
+ path: `/v1/risk/traded-volume`,
479
+ method: 'GET',
480
+ query: query,
481
+ format: 'json',
482
+ ...params,
483
+ }),
484
+ riskControllerGetLiquidityDepth: (query, params = {}) => this.request({
485
+ path: `/v1/risk/liquidity-depth`,
486
+ method: 'GET',
487
+ query: query,
488
+ format: 'json',
489
+ ...params,
490
+ }),
449
491
  };
450
492
  settlement = {
451
493
  settlementControllerGetSettlements: (query, params = {}) => this.request({
@@ -587,6 +629,12 @@ class Sdk extends HttpClient {
587
629
  format: 'json',
588
630
  ...params,
589
631
  }),
632
+ dashboardControllerGetLiquidityMetricsPerMarket: (marketId, params = {}) => this.request({
633
+ path: `/v1/dashboard/liquidity/${marketId}`,
634
+ method: 'GET',
635
+ format: 'json',
636
+ ...params,
637
+ }),
590
638
  };
591
639
  }
592
640
  exports.Sdk = Sdk;