@binance/margin-trading 10.1.2 → 11.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.mts +94 -18
- package/dist/index.d.ts +94 -18
- package/dist/index.js +43 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +43 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
package/dist/index.d.mts
CHANGED
|
@@ -909,6 +909,47 @@ interface GetListScheduleResponseInner {
|
|
|
909
909
|
*/
|
|
910
910
|
interface GetListScheduleResponse extends Array<GetListScheduleResponseInner> {}
|
|
911
911
|
//#endregion
|
|
912
|
+
//#region src/rest-api/types/get-margin-asset-risk-based-liquidation-ratio-response-inner.d.ts
|
|
913
|
+
/**
|
|
914
|
+
* Binance Margin Trading REST API
|
|
915
|
+
*
|
|
916
|
+
* OpenAPI Specification for the Binance Margin Trading REST API
|
|
917
|
+
*
|
|
918
|
+
* The version of the OpenAPI document: 1.0.0
|
|
919
|
+
*
|
|
920
|
+
*
|
|
921
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
922
|
+
* https://openapi-generator.tech
|
|
923
|
+
* Do not edit the class manually.
|
|
924
|
+
*/
|
|
925
|
+
/**
|
|
926
|
+
*
|
|
927
|
+
* @export
|
|
928
|
+
* @interface GetMarginAssetRiskBasedLiquidationRatioResponseInner
|
|
929
|
+
*/
|
|
930
|
+
interface GetMarginAssetRiskBasedLiquidationRatioResponseInner {
|
|
931
|
+
/**
|
|
932
|
+
*
|
|
933
|
+
* @type {string}
|
|
934
|
+
* @memberof GetMarginAssetRiskBasedLiquidationRatioResponseInner
|
|
935
|
+
*/
|
|
936
|
+
asset?: string;
|
|
937
|
+
/**
|
|
938
|
+
*
|
|
939
|
+
* @type {string}
|
|
940
|
+
* @memberof GetMarginAssetRiskBasedLiquidationRatioResponseInner
|
|
941
|
+
*/
|
|
942
|
+
riskBasedLiquidationRatio?: string;
|
|
943
|
+
}
|
|
944
|
+
//#endregion
|
|
945
|
+
//#region src/rest-api/types/get-margin-asset-risk-based-liquidation-ratio-response.d.ts
|
|
946
|
+
/**
|
|
947
|
+
*
|
|
948
|
+
* @export
|
|
949
|
+
* @interface GetMarginAssetRiskBasedLiquidationRatioResponse
|
|
950
|
+
*/
|
|
951
|
+
interface GetMarginAssetRiskBasedLiquidationRatioResponse extends Array<GetMarginAssetRiskBasedLiquidationRatioResponseInner> {}
|
|
952
|
+
//#endregion
|
|
912
953
|
//#region src/rest-api/types/get-small-liability-exchange-coin-list-response-inner.d.ts
|
|
913
954
|
/**
|
|
914
955
|
* Binance Margin Trading REST API
|
|
@@ -5026,7 +5067,7 @@ interface QueryCrossIsolatedMarginCapitalFlowRequest {
|
|
|
5026
5067
|
*/
|
|
5027
5068
|
readonly type?: string;
|
|
5028
5069
|
/**
|
|
5029
|
-
*
|
|
5070
|
+
* Only supports querying data from the past 90 days.
|
|
5030
5071
|
* @type {number | bigint}
|
|
5031
5072
|
* @memberof AccountApiQueryCrossIsolatedMarginCapitalFlow
|
|
5032
5073
|
*/
|
|
@@ -5038,13 +5079,13 @@ interface QueryCrossIsolatedMarginCapitalFlowRequest {
|
|
|
5038
5079
|
*/
|
|
5039
5080
|
readonly endTime?: number | bigint;
|
|
5040
5081
|
/**
|
|
5041
|
-
*
|
|
5082
|
+
* If `fromId` is set, data with `id` greater than `fromId` will be returned. Otherwise, the latest data will be returned.
|
|
5042
5083
|
* @type {number | bigint}
|
|
5043
5084
|
* @memberof AccountApiQueryCrossIsolatedMarginCapitalFlow
|
|
5044
5085
|
*/
|
|
5045
5086
|
readonly fromId?: number | bigint;
|
|
5046
5087
|
/**
|
|
5047
|
-
* Default
|
|
5088
|
+
* Limit on the number of data records returned per request. Default: 500; Maximum: 1000.
|
|
5048
5089
|
* @type {number | bigint}
|
|
5049
5090
|
* @memberof AccountApiQueryCrossIsolatedMarginCapitalFlow
|
|
5050
5091
|
*/
|
|
@@ -5441,7 +5482,7 @@ interface GetInterestHistoryRequest {
|
|
|
5441
5482
|
*/
|
|
5442
5483
|
readonly isolatedSymbol?: string;
|
|
5443
5484
|
/**
|
|
5444
|
-
*
|
|
5485
|
+
* Only supports querying data from the past 90 days.
|
|
5445
5486
|
* @type {number | bigint}
|
|
5446
5487
|
* @memberof BorrowRepayApiGetInterestHistory
|
|
5447
5488
|
*/
|
|
@@ -5543,7 +5584,7 @@ interface QueryBorrowRepayRecordsInMarginAccountRequest {
|
|
|
5543
5584
|
*/
|
|
5544
5585
|
readonly txId?: number | bigint;
|
|
5545
5586
|
/**
|
|
5546
|
-
*
|
|
5587
|
+
* Only supports querying data from the past 90 days.
|
|
5547
5588
|
* @type {number | bigint}
|
|
5548
5589
|
* @memberof BorrowRepayApiQueryBorrowRepayRecordsInMarginAccount
|
|
5549
5590
|
*/
|
|
@@ -5591,7 +5632,7 @@ interface QueryMarginInterestRateHistoryRequest {
|
|
|
5591
5632
|
*/
|
|
5592
5633
|
readonly vipLevel?: number | bigint;
|
|
5593
5634
|
/**
|
|
5594
|
-
*
|
|
5635
|
+
* Only supports querying data from the past 90 days.
|
|
5595
5636
|
* @type {number | bigint}
|
|
5596
5637
|
* @memberof BorrowRepayApiQueryMarginInterestRateHistory
|
|
5597
5638
|
*/
|
|
@@ -5835,6 +5876,17 @@ interface MarketDataApiInterface {
|
|
|
5835
5876
|
* @memberof MarketDataApiInterface
|
|
5836
5877
|
*/
|
|
5837
5878
|
getListSchedule(requestParameters?: GetListScheduleRequest): Promise<RestApiResponse<GetListScheduleResponse>>;
|
|
5879
|
+
/**
|
|
5880
|
+
* Get Margin Asset Risk-Based Liquidation Ratio
|
|
5881
|
+
*
|
|
5882
|
+
* Weight: 1
|
|
5883
|
+
*
|
|
5884
|
+
* @summary Get Margin Asset Risk-Based Liquidation Ratio (MARKET_DATA)
|
|
5885
|
+
*
|
|
5886
|
+
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
5887
|
+
* @memberof MarketDataApiInterface
|
|
5888
|
+
*/
|
|
5889
|
+
getMarginAssetRiskBasedLiquidationRatio(): Promise<RestApiResponse<GetMarginAssetRiskBasedLiquidationRatioResponse>>;
|
|
5838
5890
|
/**
|
|
5839
5891
|
* Get isolated margin tier data collection with any tier as https://www.binance.com/en/margin-data
|
|
5840
5892
|
*
|
|
@@ -6099,6 +6151,18 @@ declare class MarketDataApi implements MarketDataApiInterface {
|
|
|
6099
6151
|
* @see {@link https://developers.binance.com/docs/margin_trading/market-data/Get-list-Schedule Binance API Documentation}
|
|
6100
6152
|
*/
|
|
6101
6153
|
getListSchedule(requestParameters?: GetListScheduleRequest): Promise<RestApiResponse<GetListScheduleResponse>>;
|
|
6154
|
+
/**
|
|
6155
|
+
* Get Margin Asset Risk-Based Liquidation Ratio
|
|
6156
|
+
*
|
|
6157
|
+
* Weight: 1
|
|
6158
|
+
*
|
|
6159
|
+
* @summary Get Margin Asset Risk-Based Liquidation Ratio (MARKET_DATA)
|
|
6160
|
+
* @returns {Promise<RestApiResponse<GetMarginAssetRiskBasedLiquidationRatioResponse>>}
|
|
6161
|
+
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
6162
|
+
* @memberof MarketDataApi
|
|
6163
|
+
* @see {@link https://developers.binance.com/docs/margin_trading/market-data/Get-Margin-Asset-Risk-Based-Liquidation-Ratio Binance API Documentation}
|
|
6164
|
+
*/
|
|
6165
|
+
getMarginAssetRiskBasedLiquidationRatio(): Promise<RestApiResponse<GetMarginAssetRiskBasedLiquidationRatioResponse>>;
|
|
6102
6166
|
/**
|
|
6103
6167
|
* Get isolated margin tier data collection with any tier as https://www.binance.com/en/margin-data
|
|
6104
6168
|
*
|
|
@@ -6735,7 +6799,7 @@ interface EditIpForSpecialKeyRequest {
|
|
|
6735
6799
|
*/
|
|
6736
6800
|
interface GetForceLiquidationRecordRequest {
|
|
6737
6801
|
/**
|
|
6738
|
-
*
|
|
6802
|
+
* Only supports querying data from the past 90 days.
|
|
6739
6803
|
* @type {number | bigint}
|
|
6740
6804
|
* @memberof TradeApiGetForceLiquidationRecord
|
|
6741
6805
|
*/
|
|
@@ -6801,7 +6865,7 @@ interface GetSmallLiabilityExchangeHistoryRequest {
|
|
|
6801
6865
|
*/
|
|
6802
6866
|
readonly size: number | bigint;
|
|
6803
6867
|
/**
|
|
6804
|
-
*
|
|
6868
|
+
* Only supports querying data from the past 90 days.
|
|
6805
6869
|
* @type {number | bigint}
|
|
6806
6870
|
* @memberof TradeApiGetSmallLiabilityExchangeHistory
|
|
6807
6871
|
*/
|
|
@@ -7539,13 +7603,13 @@ interface QueryMarginAccountsAllOcoRequest {
|
|
|
7539
7603
|
*/
|
|
7540
7604
|
readonly symbol?: string;
|
|
7541
7605
|
/**
|
|
7542
|
-
*
|
|
7606
|
+
* If `fromId` is set, data with `id` greater than `fromId` will be returned. Otherwise, the latest data will be returned.
|
|
7543
7607
|
* @type {number | bigint}
|
|
7544
7608
|
* @memberof TradeApiQueryMarginAccountsAllOco
|
|
7545
7609
|
*/
|
|
7546
7610
|
readonly fromId?: number | bigint;
|
|
7547
7611
|
/**
|
|
7548
|
-
*
|
|
7612
|
+
* Only supports querying data from the past 90 days.
|
|
7549
7613
|
* @type {number | bigint}
|
|
7550
7614
|
* @memberof TradeApiQueryMarginAccountsAllOco
|
|
7551
7615
|
*/
|
|
@@ -7557,7 +7621,7 @@ interface QueryMarginAccountsAllOcoRequest {
|
|
|
7557
7621
|
*/
|
|
7558
7622
|
readonly endTime?: number | bigint;
|
|
7559
7623
|
/**
|
|
7560
|
-
* Default
|
|
7624
|
+
* Limit on the number of data records returned per request. Default: 500; Maximum: 1000.
|
|
7561
7625
|
* @type {number | bigint}
|
|
7562
7626
|
* @memberof TradeApiQueryMarginAccountsAllOco
|
|
7563
7627
|
*/
|
|
@@ -7593,7 +7657,7 @@ interface QueryMarginAccountsAllOrdersRequest {
|
|
|
7593
7657
|
*/
|
|
7594
7658
|
readonly orderId?: number | bigint;
|
|
7595
7659
|
/**
|
|
7596
|
-
*
|
|
7660
|
+
* Only supports querying data from the past 90 days.
|
|
7597
7661
|
* @type {number | bigint}
|
|
7598
7662
|
* @memberof TradeApiQueryMarginAccountsAllOrders
|
|
7599
7663
|
*/
|
|
@@ -7605,7 +7669,7 @@ interface QueryMarginAccountsAllOrdersRequest {
|
|
|
7605
7669
|
*/
|
|
7606
7670
|
readonly endTime?: number | bigint;
|
|
7607
7671
|
/**
|
|
7608
|
-
* Default
|
|
7672
|
+
* Limit on the number of data records returned per request. Default: 500; Maximum: 1000.
|
|
7609
7673
|
* @type {number | bigint}
|
|
7610
7674
|
* @memberof TradeApiQueryMarginAccountsAllOrders
|
|
7611
7675
|
*/
|
|
@@ -7761,7 +7825,7 @@ interface QueryMarginAccountsTradeListRequest {
|
|
|
7761
7825
|
*/
|
|
7762
7826
|
readonly orderId?: number | bigint;
|
|
7763
7827
|
/**
|
|
7764
|
-
*
|
|
7828
|
+
* Only supports querying data from the past 90 days.
|
|
7765
7829
|
* @type {number | bigint}
|
|
7766
7830
|
* @memberof TradeApiQueryMarginAccountsTradeList
|
|
7767
7831
|
*/
|
|
@@ -7773,13 +7837,13 @@ interface QueryMarginAccountsTradeListRequest {
|
|
|
7773
7837
|
*/
|
|
7774
7838
|
readonly endTime?: number | bigint;
|
|
7775
7839
|
/**
|
|
7776
|
-
*
|
|
7840
|
+
* If `fromId` is set, data with `id` greater than `fromId` will be returned. Otherwise, the latest data will be returned.
|
|
7777
7841
|
* @type {number | bigint}
|
|
7778
7842
|
* @memberof TradeApiQueryMarginAccountsTradeList
|
|
7779
7843
|
*/
|
|
7780
7844
|
readonly fromId?: number | bigint;
|
|
7781
7845
|
/**
|
|
7782
|
-
* Default
|
|
7846
|
+
* Limit on the number of data records returned per request. Default: 500; Maximum: 1000.
|
|
7783
7847
|
* @type {number | bigint}
|
|
7784
7848
|
* @memberof TradeApiQueryMarginAccountsTradeList
|
|
7785
7849
|
*/
|
|
@@ -8348,7 +8412,7 @@ interface GetCrossMarginTransferHistoryRequest {
|
|
|
8348
8412
|
*/
|
|
8349
8413
|
readonly type?: string;
|
|
8350
8414
|
/**
|
|
8351
|
-
*
|
|
8415
|
+
* Only supports querying data from the past 90 days.
|
|
8352
8416
|
* @type {number | bigint}
|
|
8353
8417
|
* @memberof TransferApiGetCrossMarginTransferHistory
|
|
8354
8418
|
*/
|
|
@@ -8822,6 +8886,18 @@ declare class RestAPI {
|
|
|
8822
8886
|
* @see {@link https://developers.binance.com/docs/margin_trading/market-data/Get-list-Schedule Binance API Documentation}
|
|
8823
8887
|
*/
|
|
8824
8888
|
getListSchedule(requestParameters?: GetListScheduleRequest): Promise<RestApiResponse<GetListScheduleResponse>>;
|
|
8889
|
+
/**
|
|
8890
|
+
* Get Margin Asset Risk-Based Liquidation Ratio
|
|
8891
|
+
*
|
|
8892
|
+
* Weight: 1
|
|
8893
|
+
*
|
|
8894
|
+
* @summary Get Margin Asset Risk-Based Liquidation Ratio (MARKET_DATA)
|
|
8895
|
+
*
|
|
8896
|
+
* @returns {Promise<RestApiResponse<GetMarginAssetRiskBasedLiquidationRatioResponse>>}
|
|
8897
|
+
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
8898
|
+
* @see {@link https://developers.binance.com/docs/margin_trading/market-data/Get-Margin-Asset-Risk-Based-Liquidation-Ratio Binance API Documentation}
|
|
8899
|
+
*/
|
|
8900
|
+
getMarginAssetRiskBasedLiquidationRatio(): Promise<RestApiResponse<GetMarginAssetRiskBasedLiquidationRatioResponse>>;
|
|
8825
8901
|
/**
|
|
8826
8902
|
* Get isolated margin tier data collection with any tier as https://www.binance.com/en/margin-data
|
|
8827
8903
|
*
|
|
@@ -9349,7 +9425,7 @@ declare class RestAPI {
|
|
|
9349
9425
|
queryMaxTransferOutAmount(requestParameters: QueryMaxTransferOutAmountRequest): Promise<RestApiResponse<QueryMaxTransferOutAmountResponse>>;
|
|
9350
9426
|
}
|
|
9351
9427
|
declare namespace index_d_exports {
|
|
9352
|
-
export { AccountApi, AccountApiInterface, AdjustCrossMarginMaxLeverageRequest, AdjustCrossMarginMaxLeverageResponse, BorrowRepayApi, BorrowRepayApiInterface, CreateSpecialKeyRequest, CreateSpecialKeyResponse, CrossMarginCollateralRatioResponse, CrossMarginCollateralRatioResponseInner, CrossMarginCollateralRatioResponseInnerCollateralsInner, DeleteSpecialKeyRequest, DisableIsolatedMarginAccountRequest, DisableIsolatedMarginAccountResponse, EditIpForSpecialKeyRequest, EnableIsolatedMarginAccountRequest, EnableIsolatedMarginAccountResponse, GetAllCrossMarginPairsRequest, GetAllCrossMarginPairsResponse, GetAllCrossMarginPairsResponseInner, GetAllIsolatedMarginSymbolRequest, GetAllIsolatedMarginSymbolResponse, GetAllIsolatedMarginSymbolResponseInner, GetAllMarginAssetsRequest, GetAllMarginAssetsResponse, GetAllMarginAssetsResponseInner, GetBnbBurnStatusRequest, GetBnbBurnStatusResponse, GetCrossMarginTransferHistoryRequest, GetCrossMarginTransferHistoryResponse, GetCrossMarginTransferHistoryResponseRowsInner, GetDelistScheduleRequest, GetDelistScheduleResponse, GetDelistScheduleResponseInner, GetForceLiquidationRecordRequest, GetForceLiquidationRecordResponse, GetForceLiquidationRecordResponseRowsInner, GetFutureHourlyInterestRateRequest, GetFutureHourlyInterestRateResponse, GetFutureHourlyInterestRateResponseInner, GetInterestHistoryRequest, GetInterestHistoryResponse, GetInterestHistoryResponseRowsInner, GetLimitPricePairsResponse, GetListScheduleRequest, GetListScheduleResponse, GetListScheduleResponseInner, GetSmallLiabilityExchangeCoinListRequest, GetSmallLiabilityExchangeCoinListResponse, GetSmallLiabilityExchangeCoinListResponseInner, GetSmallLiabilityExchangeHistoryRequest, GetSmallLiabilityExchangeHistoryResponse, GetSmallLiabilityExchangeHistoryResponseRowsInner, GetSummaryOfMarginAccountRequest, GetSummaryOfMarginAccountResponse, KeepaliveUserDataStreamRequest, MarginAccountBorrowRepayRequest, MarginAccountBorrowRepayResponse, MarginAccountCancelAllOpenOrdersOnASymbolRequest, MarginAccountCancelAllOpenOrdersOnASymbolResponse, MarginAccountCancelAllOpenOrdersOnASymbolResponseInner, MarginAccountCancelAllOpenOrdersOnASymbolResponseInnerOrderReportsInner, MarginAccountCancelAllOpenOrdersOnASymbolResponseInnerOrdersInner, MarginAccountCancelOcoRequest, MarginAccountCancelOcoResponse, MarginAccountCancelOcoResponseOrderReportsInner, MarginAccountCancelOcoResponseOrdersInner, MarginAccountCancelOrderRequest, MarginAccountCancelOrderResponse, MarginAccountNewOcoNewOrderRespTypeEnum, MarginAccountNewOcoRequest, MarginAccountNewOcoResponse, MarginAccountNewOcoResponseOrderReportsInner, MarginAccountNewOcoResponseOrdersInner, MarginAccountNewOcoSideEnum, MarginAccountNewOrderNewOrderRespTypeEnum, MarginAccountNewOrderRequest, MarginAccountNewOrderResponse, MarginAccountNewOrderResponseFillsInner, MarginAccountNewOrderSideEnum, MarginAccountNewOrderTimeInForceEnum, MarginAccountNewOtoNewOrderRespTypeEnum, MarginAccountNewOtoRequest, MarginAccountNewOtoResponse, MarginAccountNewOtoResponseOrderReportsInner, MarginAccountNewOtoResponseOrdersInner, MarginAccountNewOtocoNewOrderRespTypeEnum, MarginAccountNewOtocoRequest, MarginAccountNewOtocoResponse, MarginAccountNewOtocoResponseOrderReportsInner, MarginAccountNewOtocoResponseOrdersInner, MarginManualLiquidationRequest, MarginManualLiquidationResponse, MarketDataApi, MarketDataApiInterface, QueryBorrowRepayRecordsInMarginAccountRequest, QueryBorrowRepayRecordsInMarginAccountResponse, QueryBorrowRepayRecordsInMarginAccountResponseRowsInner, QueryCrossIsolatedMarginCapitalFlowRequest, QueryCrossIsolatedMarginCapitalFlowResponse, QueryCrossIsolatedMarginCapitalFlowResponseInner, QueryCrossMarginAccountDetailsRequest, QueryCrossMarginAccountDetailsResponse, QueryCrossMarginAccountDetailsResponseUserAssetsInner, QueryCrossMarginFeeDataRequest, QueryCrossMarginFeeDataResponse, QueryCrossMarginFeeDataResponseInner, QueryCurrentMarginOrderCountUsageRequest, QueryCurrentMarginOrderCountUsageResponse, QueryCurrentMarginOrderCountUsageResponseInner, QueryEnabledIsolatedMarginAccountLimitRequest, QueryEnabledIsolatedMarginAccountLimitResponse, QueryIsolatedMarginAccountInfoRequest, QueryIsolatedMarginAccountInfoResponse, QueryIsolatedMarginAccountInfoResponseAssetsInner, QueryIsolatedMarginAccountInfoResponseAssetsInnerBaseAsset, QueryIsolatedMarginAccountInfoResponseAssetsInnerQuoteAsset, QueryIsolatedMarginFeeDataRequest, QueryIsolatedMarginFeeDataResponse, QueryIsolatedMarginFeeDataResponseInner, QueryIsolatedMarginFeeDataResponseInnerDataInner, QueryIsolatedMarginTierDataRequest, QueryIsolatedMarginTierDataResponse, QueryIsolatedMarginTierDataResponseInner, QueryLiabilityCoinLeverageBracketInCrossMarginProModeResponse, QueryLiabilityCoinLeverageBracketInCrossMarginProModeResponseInner, QueryLiabilityCoinLeverageBracketInCrossMarginProModeResponseInnerBracketsInner, QueryMarginAccountsAllOcoRequest, QueryMarginAccountsAllOcoResponse, QueryMarginAccountsAllOcoResponseInner, QueryMarginAccountsAllOcoResponseInnerOrdersInner, QueryMarginAccountsAllOrdersRequest, QueryMarginAccountsAllOrdersResponse, QueryMarginAccountsAllOrdersResponseInner, QueryMarginAccountsOcoRequest, QueryMarginAccountsOcoResponse, QueryMarginAccountsOcoResponseOrdersInner, QueryMarginAccountsOpenOcoRequest, QueryMarginAccountsOpenOcoResponse, QueryMarginAccountsOpenOcoResponseInner, QueryMarginAccountsOpenOcoResponseInnerOrdersInner, QueryMarginAccountsOpenOrdersRequest, QueryMarginAccountsOpenOrdersResponse, QueryMarginAccountsOpenOrdersResponseInner, QueryMarginAccountsOrderRequest, QueryMarginAccountsOrderResponse, QueryMarginAccountsTradeListRequest, QueryMarginAccountsTradeListResponse, QueryMarginAccountsTradeListResponseInner, QueryMarginAvailableInventoryRequest, QueryMarginAvailableInventoryResponse, QueryMarginAvailableInventoryResponseAssets, QueryMarginInterestRateHistoryRequest, QueryMarginInterestRateHistoryResponse, QueryMarginInterestRateHistoryResponseInner, QueryMarginPriceindexRequest, QueryMarginPriceindexResponse, QueryMaxBorrowRequest, QueryMaxBorrowResponse, QueryMaxTransferOutAmountRequest, QueryMaxTransferOutAmountResponse, QuerySpecialKeyListRequest, QuerySpecialKeyListResponse, QuerySpecialKeyListResponseInner, QuerySpecialKeyRequest, QuerySpecialKeyResponse, RestAPI, RiskDataStreamApi, RiskDataStreamApiInterface, SmallLiabilityExchangeRequest, StartUserDataStreamResponse, TradeApi, TradeApiInterface, TransferApi, TransferApiInterface };
|
|
9428
|
+
export { AccountApi, AccountApiInterface, AdjustCrossMarginMaxLeverageRequest, AdjustCrossMarginMaxLeverageResponse, BorrowRepayApi, BorrowRepayApiInterface, CreateSpecialKeyRequest, CreateSpecialKeyResponse, CrossMarginCollateralRatioResponse, CrossMarginCollateralRatioResponseInner, CrossMarginCollateralRatioResponseInnerCollateralsInner, DeleteSpecialKeyRequest, DisableIsolatedMarginAccountRequest, DisableIsolatedMarginAccountResponse, EditIpForSpecialKeyRequest, EnableIsolatedMarginAccountRequest, EnableIsolatedMarginAccountResponse, GetAllCrossMarginPairsRequest, GetAllCrossMarginPairsResponse, GetAllCrossMarginPairsResponseInner, GetAllIsolatedMarginSymbolRequest, GetAllIsolatedMarginSymbolResponse, GetAllIsolatedMarginSymbolResponseInner, GetAllMarginAssetsRequest, GetAllMarginAssetsResponse, GetAllMarginAssetsResponseInner, GetBnbBurnStatusRequest, GetBnbBurnStatusResponse, GetCrossMarginTransferHistoryRequest, GetCrossMarginTransferHistoryResponse, GetCrossMarginTransferHistoryResponseRowsInner, GetDelistScheduleRequest, GetDelistScheduleResponse, GetDelistScheduleResponseInner, GetForceLiquidationRecordRequest, GetForceLiquidationRecordResponse, GetForceLiquidationRecordResponseRowsInner, GetFutureHourlyInterestRateRequest, GetFutureHourlyInterestRateResponse, GetFutureHourlyInterestRateResponseInner, GetInterestHistoryRequest, GetInterestHistoryResponse, GetInterestHistoryResponseRowsInner, GetLimitPricePairsResponse, GetListScheduleRequest, GetListScheduleResponse, GetListScheduleResponseInner, GetMarginAssetRiskBasedLiquidationRatioResponse, GetMarginAssetRiskBasedLiquidationRatioResponseInner, GetSmallLiabilityExchangeCoinListRequest, GetSmallLiabilityExchangeCoinListResponse, GetSmallLiabilityExchangeCoinListResponseInner, GetSmallLiabilityExchangeHistoryRequest, GetSmallLiabilityExchangeHistoryResponse, GetSmallLiabilityExchangeHistoryResponseRowsInner, GetSummaryOfMarginAccountRequest, GetSummaryOfMarginAccountResponse, KeepaliveUserDataStreamRequest, MarginAccountBorrowRepayRequest, MarginAccountBorrowRepayResponse, MarginAccountCancelAllOpenOrdersOnASymbolRequest, MarginAccountCancelAllOpenOrdersOnASymbolResponse, MarginAccountCancelAllOpenOrdersOnASymbolResponseInner, MarginAccountCancelAllOpenOrdersOnASymbolResponseInnerOrderReportsInner, MarginAccountCancelAllOpenOrdersOnASymbolResponseInnerOrdersInner, MarginAccountCancelOcoRequest, MarginAccountCancelOcoResponse, MarginAccountCancelOcoResponseOrderReportsInner, MarginAccountCancelOcoResponseOrdersInner, MarginAccountCancelOrderRequest, MarginAccountCancelOrderResponse, MarginAccountNewOcoNewOrderRespTypeEnum, MarginAccountNewOcoRequest, MarginAccountNewOcoResponse, MarginAccountNewOcoResponseOrderReportsInner, MarginAccountNewOcoResponseOrdersInner, MarginAccountNewOcoSideEnum, MarginAccountNewOrderNewOrderRespTypeEnum, MarginAccountNewOrderRequest, MarginAccountNewOrderResponse, MarginAccountNewOrderResponseFillsInner, MarginAccountNewOrderSideEnum, MarginAccountNewOrderTimeInForceEnum, MarginAccountNewOtoNewOrderRespTypeEnum, MarginAccountNewOtoRequest, MarginAccountNewOtoResponse, MarginAccountNewOtoResponseOrderReportsInner, MarginAccountNewOtoResponseOrdersInner, MarginAccountNewOtocoNewOrderRespTypeEnum, MarginAccountNewOtocoRequest, MarginAccountNewOtocoResponse, MarginAccountNewOtocoResponseOrderReportsInner, MarginAccountNewOtocoResponseOrdersInner, MarginManualLiquidationRequest, MarginManualLiquidationResponse, MarketDataApi, MarketDataApiInterface, QueryBorrowRepayRecordsInMarginAccountRequest, QueryBorrowRepayRecordsInMarginAccountResponse, QueryBorrowRepayRecordsInMarginAccountResponseRowsInner, QueryCrossIsolatedMarginCapitalFlowRequest, QueryCrossIsolatedMarginCapitalFlowResponse, QueryCrossIsolatedMarginCapitalFlowResponseInner, QueryCrossMarginAccountDetailsRequest, QueryCrossMarginAccountDetailsResponse, QueryCrossMarginAccountDetailsResponseUserAssetsInner, QueryCrossMarginFeeDataRequest, QueryCrossMarginFeeDataResponse, QueryCrossMarginFeeDataResponseInner, QueryCurrentMarginOrderCountUsageRequest, QueryCurrentMarginOrderCountUsageResponse, QueryCurrentMarginOrderCountUsageResponseInner, QueryEnabledIsolatedMarginAccountLimitRequest, QueryEnabledIsolatedMarginAccountLimitResponse, QueryIsolatedMarginAccountInfoRequest, QueryIsolatedMarginAccountInfoResponse, QueryIsolatedMarginAccountInfoResponseAssetsInner, QueryIsolatedMarginAccountInfoResponseAssetsInnerBaseAsset, QueryIsolatedMarginAccountInfoResponseAssetsInnerQuoteAsset, QueryIsolatedMarginFeeDataRequest, QueryIsolatedMarginFeeDataResponse, QueryIsolatedMarginFeeDataResponseInner, QueryIsolatedMarginFeeDataResponseInnerDataInner, QueryIsolatedMarginTierDataRequest, QueryIsolatedMarginTierDataResponse, QueryIsolatedMarginTierDataResponseInner, QueryLiabilityCoinLeverageBracketInCrossMarginProModeResponse, QueryLiabilityCoinLeverageBracketInCrossMarginProModeResponseInner, QueryLiabilityCoinLeverageBracketInCrossMarginProModeResponseInnerBracketsInner, QueryMarginAccountsAllOcoRequest, QueryMarginAccountsAllOcoResponse, QueryMarginAccountsAllOcoResponseInner, QueryMarginAccountsAllOcoResponseInnerOrdersInner, QueryMarginAccountsAllOrdersRequest, QueryMarginAccountsAllOrdersResponse, QueryMarginAccountsAllOrdersResponseInner, QueryMarginAccountsOcoRequest, QueryMarginAccountsOcoResponse, QueryMarginAccountsOcoResponseOrdersInner, QueryMarginAccountsOpenOcoRequest, QueryMarginAccountsOpenOcoResponse, QueryMarginAccountsOpenOcoResponseInner, QueryMarginAccountsOpenOcoResponseInnerOrdersInner, QueryMarginAccountsOpenOrdersRequest, QueryMarginAccountsOpenOrdersResponse, QueryMarginAccountsOpenOrdersResponseInner, QueryMarginAccountsOrderRequest, QueryMarginAccountsOrderResponse, QueryMarginAccountsTradeListRequest, QueryMarginAccountsTradeListResponse, QueryMarginAccountsTradeListResponseInner, QueryMarginAvailableInventoryRequest, QueryMarginAvailableInventoryResponse, QueryMarginAvailableInventoryResponseAssets, QueryMarginInterestRateHistoryRequest, QueryMarginInterestRateHistoryResponse, QueryMarginInterestRateHistoryResponseInner, QueryMarginPriceindexRequest, QueryMarginPriceindexResponse, QueryMaxBorrowRequest, QueryMaxBorrowResponse, QueryMaxTransferOutAmountRequest, QueryMaxTransferOutAmountResponse, QuerySpecialKeyListRequest, QuerySpecialKeyListResponse, QuerySpecialKeyListResponseInner, QuerySpecialKeyRequest, QuerySpecialKeyResponse, RestAPI, RiskDataStreamApi, RiskDataStreamApiInterface, SmallLiabilityExchangeRequest, StartUserDataStreamResponse, TradeApi, TradeApiInterface, TransferApi, TransferApiInterface };
|
|
9353
9429
|
}
|
|
9354
9430
|
//#endregion
|
|
9355
9431
|
//#region src/websocket-streams/types/balanceupdate.d.ts
|
package/dist/index.d.ts
CHANGED
|
@@ -911,6 +911,47 @@ interface GetListScheduleResponseInner {
|
|
|
911
911
|
*/
|
|
912
912
|
interface GetListScheduleResponse extends Array<GetListScheduleResponseInner> {}
|
|
913
913
|
//#endregion
|
|
914
|
+
//#region src/rest-api/types/get-margin-asset-risk-based-liquidation-ratio-response-inner.d.ts
|
|
915
|
+
/**
|
|
916
|
+
* Binance Margin Trading REST API
|
|
917
|
+
*
|
|
918
|
+
* OpenAPI Specification for the Binance Margin Trading REST API
|
|
919
|
+
*
|
|
920
|
+
* The version of the OpenAPI document: 1.0.0
|
|
921
|
+
*
|
|
922
|
+
*
|
|
923
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
924
|
+
* https://openapi-generator.tech
|
|
925
|
+
* Do not edit the class manually.
|
|
926
|
+
*/
|
|
927
|
+
/**
|
|
928
|
+
*
|
|
929
|
+
* @export
|
|
930
|
+
* @interface GetMarginAssetRiskBasedLiquidationRatioResponseInner
|
|
931
|
+
*/
|
|
932
|
+
interface GetMarginAssetRiskBasedLiquidationRatioResponseInner {
|
|
933
|
+
/**
|
|
934
|
+
*
|
|
935
|
+
* @type {string}
|
|
936
|
+
* @memberof GetMarginAssetRiskBasedLiquidationRatioResponseInner
|
|
937
|
+
*/
|
|
938
|
+
asset?: string;
|
|
939
|
+
/**
|
|
940
|
+
*
|
|
941
|
+
* @type {string}
|
|
942
|
+
* @memberof GetMarginAssetRiskBasedLiquidationRatioResponseInner
|
|
943
|
+
*/
|
|
944
|
+
riskBasedLiquidationRatio?: string;
|
|
945
|
+
}
|
|
946
|
+
//#endregion
|
|
947
|
+
//#region src/rest-api/types/get-margin-asset-risk-based-liquidation-ratio-response.d.ts
|
|
948
|
+
/**
|
|
949
|
+
*
|
|
950
|
+
* @export
|
|
951
|
+
* @interface GetMarginAssetRiskBasedLiquidationRatioResponse
|
|
952
|
+
*/
|
|
953
|
+
interface GetMarginAssetRiskBasedLiquidationRatioResponse extends Array<GetMarginAssetRiskBasedLiquidationRatioResponseInner> {}
|
|
954
|
+
//#endregion
|
|
914
955
|
//#region src/rest-api/types/get-small-liability-exchange-coin-list-response-inner.d.ts
|
|
915
956
|
/**
|
|
916
957
|
* Binance Margin Trading REST API
|
|
@@ -5028,7 +5069,7 @@ interface QueryCrossIsolatedMarginCapitalFlowRequest {
|
|
|
5028
5069
|
*/
|
|
5029
5070
|
readonly type?: string;
|
|
5030
5071
|
/**
|
|
5031
|
-
*
|
|
5072
|
+
* Only supports querying data from the past 90 days.
|
|
5032
5073
|
* @type {number | bigint}
|
|
5033
5074
|
* @memberof AccountApiQueryCrossIsolatedMarginCapitalFlow
|
|
5034
5075
|
*/
|
|
@@ -5040,13 +5081,13 @@ interface QueryCrossIsolatedMarginCapitalFlowRequest {
|
|
|
5040
5081
|
*/
|
|
5041
5082
|
readonly endTime?: number | bigint;
|
|
5042
5083
|
/**
|
|
5043
|
-
*
|
|
5084
|
+
* If `fromId` is set, data with `id` greater than `fromId` will be returned. Otherwise, the latest data will be returned.
|
|
5044
5085
|
* @type {number | bigint}
|
|
5045
5086
|
* @memberof AccountApiQueryCrossIsolatedMarginCapitalFlow
|
|
5046
5087
|
*/
|
|
5047
5088
|
readonly fromId?: number | bigint;
|
|
5048
5089
|
/**
|
|
5049
|
-
* Default
|
|
5090
|
+
* Limit on the number of data records returned per request. Default: 500; Maximum: 1000.
|
|
5050
5091
|
* @type {number | bigint}
|
|
5051
5092
|
* @memberof AccountApiQueryCrossIsolatedMarginCapitalFlow
|
|
5052
5093
|
*/
|
|
@@ -5443,7 +5484,7 @@ interface GetInterestHistoryRequest {
|
|
|
5443
5484
|
*/
|
|
5444
5485
|
readonly isolatedSymbol?: string;
|
|
5445
5486
|
/**
|
|
5446
|
-
*
|
|
5487
|
+
* Only supports querying data from the past 90 days.
|
|
5447
5488
|
* @type {number | bigint}
|
|
5448
5489
|
* @memberof BorrowRepayApiGetInterestHistory
|
|
5449
5490
|
*/
|
|
@@ -5545,7 +5586,7 @@ interface QueryBorrowRepayRecordsInMarginAccountRequest {
|
|
|
5545
5586
|
*/
|
|
5546
5587
|
readonly txId?: number | bigint;
|
|
5547
5588
|
/**
|
|
5548
|
-
*
|
|
5589
|
+
* Only supports querying data from the past 90 days.
|
|
5549
5590
|
* @type {number | bigint}
|
|
5550
5591
|
* @memberof BorrowRepayApiQueryBorrowRepayRecordsInMarginAccount
|
|
5551
5592
|
*/
|
|
@@ -5593,7 +5634,7 @@ interface QueryMarginInterestRateHistoryRequest {
|
|
|
5593
5634
|
*/
|
|
5594
5635
|
readonly vipLevel?: number | bigint;
|
|
5595
5636
|
/**
|
|
5596
|
-
*
|
|
5637
|
+
* Only supports querying data from the past 90 days.
|
|
5597
5638
|
* @type {number | bigint}
|
|
5598
5639
|
* @memberof BorrowRepayApiQueryMarginInterestRateHistory
|
|
5599
5640
|
*/
|
|
@@ -5837,6 +5878,17 @@ interface MarketDataApiInterface {
|
|
|
5837
5878
|
* @memberof MarketDataApiInterface
|
|
5838
5879
|
*/
|
|
5839
5880
|
getListSchedule(requestParameters?: GetListScheduleRequest): Promise<RestApiResponse<GetListScheduleResponse>>;
|
|
5881
|
+
/**
|
|
5882
|
+
* Get Margin Asset Risk-Based Liquidation Ratio
|
|
5883
|
+
*
|
|
5884
|
+
* Weight: 1
|
|
5885
|
+
*
|
|
5886
|
+
* @summary Get Margin Asset Risk-Based Liquidation Ratio (MARKET_DATA)
|
|
5887
|
+
*
|
|
5888
|
+
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
5889
|
+
* @memberof MarketDataApiInterface
|
|
5890
|
+
*/
|
|
5891
|
+
getMarginAssetRiskBasedLiquidationRatio(): Promise<RestApiResponse<GetMarginAssetRiskBasedLiquidationRatioResponse>>;
|
|
5840
5892
|
/**
|
|
5841
5893
|
* Get isolated margin tier data collection with any tier as https://www.binance.com/en/margin-data
|
|
5842
5894
|
*
|
|
@@ -6101,6 +6153,18 @@ declare class MarketDataApi implements MarketDataApiInterface {
|
|
|
6101
6153
|
* @see {@link https://developers.binance.com/docs/margin_trading/market-data/Get-list-Schedule Binance API Documentation}
|
|
6102
6154
|
*/
|
|
6103
6155
|
getListSchedule(requestParameters?: GetListScheduleRequest): Promise<RestApiResponse<GetListScheduleResponse>>;
|
|
6156
|
+
/**
|
|
6157
|
+
* Get Margin Asset Risk-Based Liquidation Ratio
|
|
6158
|
+
*
|
|
6159
|
+
* Weight: 1
|
|
6160
|
+
*
|
|
6161
|
+
* @summary Get Margin Asset Risk-Based Liquidation Ratio (MARKET_DATA)
|
|
6162
|
+
* @returns {Promise<RestApiResponse<GetMarginAssetRiskBasedLiquidationRatioResponse>>}
|
|
6163
|
+
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
6164
|
+
* @memberof MarketDataApi
|
|
6165
|
+
* @see {@link https://developers.binance.com/docs/margin_trading/market-data/Get-Margin-Asset-Risk-Based-Liquidation-Ratio Binance API Documentation}
|
|
6166
|
+
*/
|
|
6167
|
+
getMarginAssetRiskBasedLiquidationRatio(): Promise<RestApiResponse<GetMarginAssetRiskBasedLiquidationRatioResponse>>;
|
|
6104
6168
|
/**
|
|
6105
6169
|
* Get isolated margin tier data collection with any tier as https://www.binance.com/en/margin-data
|
|
6106
6170
|
*
|
|
@@ -6737,7 +6801,7 @@ interface EditIpForSpecialKeyRequest {
|
|
|
6737
6801
|
*/
|
|
6738
6802
|
interface GetForceLiquidationRecordRequest {
|
|
6739
6803
|
/**
|
|
6740
|
-
*
|
|
6804
|
+
* Only supports querying data from the past 90 days.
|
|
6741
6805
|
* @type {number | bigint}
|
|
6742
6806
|
* @memberof TradeApiGetForceLiquidationRecord
|
|
6743
6807
|
*/
|
|
@@ -6803,7 +6867,7 @@ interface GetSmallLiabilityExchangeHistoryRequest {
|
|
|
6803
6867
|
*/
|
|
6804
6868
|
readonly size: number | bigint;
|
|
6805
6869
|
/**
|
|
6806
|
-
*
|
|
6870
|
+
* Only supports querying data from the past 90 days.
|
|
6807
6871
|
* @type {number | bigint}
|
|
6808
6872
|
* @memberof TradeApiGetSmallLiabilityExchangeHistory
|
|
6809
6873
|
*/
|
|
@@ -7541,13 +7605,13 @@ interface QueryMarginAccountsAllOcoRequest {
|
|
|
7541
7605
|
*/
|
|
7542
7606
|
readonly symbol?: string;
|
|
7543
7607
|
/**
|
|
7544
|
-
*
|
|
7608
|
+
* If `fromId` is set, data with `id` greater than `fromId` will be returned. Otherwise, the latest data will be returned.
|
|
7545
7609
|
* @type {number | bigint}
|
|
7546
7610
|
* @memberof TradeApiQueryMarginAccountsAllOco
|
|
7547
7611
|
*/
|
|
7548
7612
|
readonly fromId?: number | bigint;
|
|
7549
7613
|
/**
|
|
7550
|
-
*
|
|
7614
|
+
* Only supports querying data from the past 90 days.
|
|
7551
7615
|
* @type {number | bigint}
|
|
7552
7616
|
* @memberof TradeApiQueryMarginAccountsAllOco
|
|
7553
7617
|
*/
|
|
@@ -7559,7 +7623,7 @@ interface QueryMarginAccountsAllOcoRequest {
|
|
|
7559
7623
|
*/
|
|
7560
7624
|
readonly endTime?: number | bigint;
|
|
7561
7625
|
/**
|
|
7562
|
-
* Default
|
|
7626
|
+
* Limit on the number of data records returned per request. Default: 500; Maximum: 1000.
|
|
7563
7627
|
* @type {number | bigint}
|
|
7564
7628
|
* @memberof TradeApiQueryMarginAccountsAllOco
|
|
7565
7629
|
*/
|
|
@@ -7595,7 +7659,7 @@ interface QueryMarginAccountsAllOrdersRequest {
|
|
|
7595
7659
|
*/
|
|
7596
7660
|
readonly orderId?: number | bigint;
|
|
7597
7661
|
/**
|
|
7598
|
-
*
|
|
7662
|
+
* Only supports querying data from the past 90 days.
|
|
7599
7663
|
* @type {number | bigint}
|
|
7600
7664
|
* @memberof TradeApiQueryMarginAccountsAllOrders
|
|
7601
7665
|
*/
|
|
@@ -7607,7 +7671,7 @@ interface QueryMarginAccountsAllOrdersRequest {
|
|
|
7607
7671
|
*/
|
|
7608
7672
|
readonly endTime?: number | bigint;
|
|
7609
7673
|
/**
|
|
7610
|
-
* Default
|
|
7674
|
+
* Limit on the number of data records returned per request. Default: 500; Maximum: 1000.
|
|
7611
7675
|
* @type {number | bigint}
|
|
7612
7676
|
* @memberof TradeApiQueryMarginAccountsAllOrders
|
|
7613
7677
|
*/
|
|
@@ -7763,7 +7827,7 @@ interface QueryMarginAccountsTradeListRequest {
|
|
|
7763
7827
|
*/
|
|
7764
7828
|
readonly orderId?: number | bigint;
|
|
7765
7829
|
/**
|
|
7766
|
-
*
|
|
7830
|
+
* Only supports querying data from the past 90 days.
|
|
7767
7831
|
* @type {number | bigint}
|
|
7768
7832
|
* @memberof TradeApiQueryMarginAccountsTradeList
|
|
7769
7833
|
*/
|
|
@@ -7775,13 +7839,13 @@ interface QueryMarginAccountsTradeListRequest {
|
|
|
7775
7839
|
*/
|
|
7776
7840
|
readonly endTime?: number | bigint;
|
|
7777
7841
|
/**
|
|
7778
|
-
*
|
|
7842
|
+
* If `fromId` is set, data with `id` greater than `fromId` will be returned. Otherwise, the latest data will be returned.
|
|
7779
7843
|
* @type {number | bigint}
|
|
7780
7844
|
* @memberof TradeApiQueryMarginAccountsTradeList
|
|
7781
7845
|
*/
|
|
7782
7846
|
readonly fromId?: number | bigint;
|
|
7783
7847
|
/**
|
|
7784
|
-
* Default
|
|
7848
|
+
* Limit on the number of data records returned per request. Default: 500; Maximum: 1000.
|
|
7785
7849
|
* @type {number | bigint}
|
|
7786
7850
|
* @memberof TradeApiQueryMarginAccountsTradeList
|
|
7787
7851
|
*/
|
|
@@ -8350,7 +8414,7 @@ interface GetCrossMarginTransferHistoryRequest {
|
|
|
8350
8414
|
*/
|
|
8351
8415
|
readonly type?: string;
|
|
8352
8416
|
/**
|
|
8353
|
-
*
|
|
8417
|
+
* Only supports querying data from the past 90 days.
|
|
8354
8418
|
* @type {number | bigint}
|
|
8355
8419
|
* @memberof TransferApiGetCrossMarginTransferHistory
|
|
8356
8420
|
*/
|
|
@@ -8824,6 +8888,18 @@ declare class RestAPI {
|
|
|
8824
8888
|
* @see {@link https://developers.binance.com/docs/margin_trading/market-data/Get-list-Schedule Binance API Documentation}
|
|
8825
8889
|
*/
|
|
8826
8890
|
getListSchedule(requestParameters?: GetListScheduleRequest): Promise<RestApiResponse<GetListScheduleResponse>>;
|
|
8891
|
+
/**
|
|
8892
|
+
* Get Margin Asset Risk-Based Liquidation Ratio
|
|
8893
|
+
*
|
|
8894
|
+
* Weight: 1
|
|
8895
|
+
*
|
|
8896
|
+
* @summary Get Margin Asset Risk-Based Liquidation Ratio (MARKET_DATA)
|
|
8897
|
+
*
|
|
8898
|
+
* @returns {Promise<RestApiResponse<GetMarginAssetRiskBasedLiquidationRatioResponse>>}
|
|
8899
|
+
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
8900
|
+
* @see {@link https://developers.binance.com/docs/margin_trading/market-data/Get-Margin-Asset-Risk-Based-Liquidation-Ratio Binance API Documentation}
|
|
8901
|
+
*/
|
|
8902
|
+
getMarginAssetRiskBasedLiquidationRatio(): Promise<RestApiResponse<GetMarginAssetRiskBasedLiquidationRatioResponse>>;
|
|
8827
8903
|
/**
|
|
8828
8904
|
* Get isolated margin tier data collection with any tier as https://www.binance.com/en/margin-data
|
|
8829
8905
|
*
|
|
@@ -9351,7 +9427,7 @@ declare class RestAPI {
|
|
|
9351
9427
|
queryMaxTransferOutAmount(requestParameters: QueryMaxTransferOutAmountRequest): Promise<RestApiResponse<QueryMaxTransferOutAmountResponse>>;
|
|
9352
9428
|
}
|
|
9353
9429
|
declare namespace index_d_exports {
|
|
9354
|
-
export { AccountApi, AccountApiInterface, AdjustCrossMarginMaxLeverageRequest, AdjustCrossMarginMaxLeverageResponse, BorrowRepayApi, BorrowRepayApiInterface, CreateSpecialKeyRequest, CreateSpecialKeyResponse, CrossMarginCollateralRatioResponse, CrossMarginCollateralRatioResponseInner, CrossMarginCollateralRatioResponseInnerCollateralsInner, DeleteSpecialKeyRequest, DisableIsolatedMarginAccountRequest, DisableIsolatedMarginAccountResponse, EditIpForSpecialKeyRequest, EnableIsolatedMarginAccountRequest, EnableIsolatedMarginAccountResponse, GetAllCrossMarginPairsRequest, GetAllCrossMarginPairsResponse, GetAllCrossMarginPairsResponseInner, GetAllIsolatedMarginSymbolRequest, GetAllIsolatedMarginSymbolResponse, GetAllIsolatedMarginSymbolResponseInner, GetAllMarginAssetsRequest, GetAllMarginAssetsResponse, GetAllMarginAssetsResponseInner, GetBnbBurnStatusRequest, GetBnbBurnStatusResponse, GetCrossMarginTransferHistoryRequest, GetCrossMarginTransferHistoryResponse, GetCrossMarginTransferHistoryResponseRowsInner, GetDelistScheduleRequest, GetDelistScheduleResponse, GetDelistScheduleResponseInner, GetForceLiquidationRecordRequest, GetForceLiquidationRecordResponse, GetForceLiquidationRecordResponseRowsInner, GetFutureHourlyInterestRateRequest, GetFutureHourlyInterestRateResponse, GetFutureHourlyInterestRateResponseInner, GetInterestHistoryRequest, GetInterestHistoryResponse, GetInterestHistoryResponseRowsInner, GetLimitPricePairsResponse, GetListScheduleRequest, GetListScheduleResponse, GetListScheduleResponseInner, GetSmallLiabilityExchangeCoinListRequest, GetSmallLiabilityExchangeCoinListResponse, GetSmallLiabilityExchangeCoinListResponseInner, GetSmallLiabilityExchangeHistoryRequest, GetSmallLiabilityExchangeHistoryResponse, GetSmallLiabilityExchangeHistoryResponseRowsInner, GetSummaryOfMarginAccountRequest, GetSummaryOfMarginAccountResponse, KeepaliveUserDataStreamRequest, MarginAccountBorrowRepayRequest, MarginAccountBorrowRepayResponse, MarginAccountCancelAllOpenOrdersOnASymbolRequest, MarginAccountCancelAllOpenOrdersOnASymbolResponse, MarginAccountCancelAllOpenOrdersOnASymbolResponseInner, MarginAccountCancelAllOpenOrdersOnASymbolResponseInnerOrderReportsInner, MarginAccountCancelAllOpenOrdersOnASymbolResponseInnerOrdersInner, MarginAccountCancelOcoRequest, MarginAccountCancelOcoResponse, MarginAccountCancelOcoResponseOrderReportsInner, MarginAccountCancelOcoResponseOrdersInner, MarginAccountCancelOrderRequest, MarginAccountCancelOrderResponse, MarginAccountNewOcoNewOrderRespTypeEnum, MarginAccountNewOcoRequest, MarginAccountNewOcoResponse, MarginAccountNewOcoResponseOrderReportsInner, MarginAccountNewOcoResponseOrdersInner, MarginAccountNewOcoSideEnum, MarginAccountNewOrderNewOrderRespTypeEnum, MarginAccountNewOrderRequest, MarginAccountNewOrderResponse, MarginAccountNewOrderResponseFillsInner, MarginAccountNewOrderSideEnum, MarginAccountNewOrderTimeInForceEnum, MarginAccountNewOtoNewOrderRespTypeEnum, MarginAccountNewOtoRequest, MarginAccountNewOtoResponse, MarginAccountNewOtoResponseOrderReportsInner, MarginAccountNewOtoResponseOrdersInner, MarginAccountNewOtocoNewOrderRespTypeEnum, MarginAccountNewOtocoRequest, MarginAccountNewOtocoResponse, MarginAccountNewOtocoResponseOrderReportsInner, MarginAccountNewOtocoResponseOrdersInner, MarginManualLiquidationRequest, MarginManualLiquidationResponse, MarketDataApi, MarketDataApiInterface, QueryBorrowRepayRecordsInMarginAccountRequest, QueryBorrowRepayRecordsInMarginAccountResponse, QueryBorrowRepayRecordsInMarginAccountResponseRowsInner, QueryCrossIsolatedMarginCapitalFlowRequest, QueryCrossIsolatedMarginCapitalFlowResponse, QueryCrossIsolatedMarginCapitalFlowResponseInner, QueryCrossMarginAccountDetailsRequest, QueryCrossMarginAccountDetailsResponse, QueryCrossMarginAccountDetailsResponseUserAssetsInner, QueryCrossMarginFeeDataRequest, QueryCrossMarginFeeDataResponse, QueryCrossMarginFeeDataResponseInner, QueryCurrentMarginOrderCountUsageRequest, QueryCurrentMarginOrderCountUsageResponse, QueryCurrentMarginOrderCountUsageResponseInner, QueryEnabledIsolatedMarginAccountLimitRequest, QueryEnabledIsolatedMarginAccountLimitResponse, QueryIsolatedMarginAccountInfoRequest, QueryIsolatedMarginAccountInfoResponse, QueryIsolatedMarginAccountInfoResponseAssetsInner, QueryIsolatedMarginAccountInfoResponseAssetsInnerBaseAsset, QueryIsolatedMarginAccountInfoResponseAssetsInnerQuoteAsset, QueryIsolatedMarginFeeDataRequest, QueryIsolatedMarginFeeDataResponse, QueryIsolatedMarginFeeDataResponseInner, QueryIsolatedMarginFeeDataResponseInnerDataInner, QueryIsolatedMarginTierDataRequest, QueryIsolatedMarginTierDataResponse, QueryIsolatedMarginTierDataResponseInner, QueryLiabilityCoinLeverageBracketInCrossMarginProModeResponse, QueryLiabilityCoinLeverageBracketInCrossMarginProModeResponseInner, QueryLiabilityCoinLeverageBracketInCrossMarginProModeResponseInnerBracketsInner, QueryMarginAccountsAllOcoRequest, QueryMarginAccountsAllOcoResponse, QueryMarginAccountsAllOcoResponseInner, QueryMarginAccountsAllOcoResponseInnerOrdersInner, QueryMarginAccountsAllOrdersRequest, QueryMarginAccountsAllOrdersResponse, QueryMarginAccountsAllOrdersResponseInner, QueryMarginAccountsOcoRequest, QueryMarginAccountsOcoResponse, QueryMarginAccountsOcoResponseOrdersInner, QueryMarginAccountsOpenOcoRequest, QueryMarginAccountsOpenOcoResponse, QueryMarginAccountsOpenOcoResponseInner, QueryMarginAccountsOpenOcoResponseInnerOrdersInner, QueryMarginAccountsOpenOrdersRequest, QueryMarginAccountsOpenOrdersResponse, QueryMarginAccountsOpenOrdersResponseInner, QueryMarginAccountsOrderRequest, QueryMarginAccountsOrderResponse, QueryMarginAccountsTradeListRequest, QueryMarginAccountsTradeListResponse, QueryMarginAccountsTradeListResponseInner, QueryMarginAvailableInventoryRequest, QueryMarginAvailableInventoryResponse, QueryMarginAvailableInventoryResponseAssets, QueryMarginInterestRateHistoryRequest, QueryMarginInterestRateHistoryResponse, QueryMarginInterestRateHistoryResponseInner, QueryMarginPriceindexRequest, QueryMarginPriceindexResponse, QueryMaxBorrowRequest, QueryMaxBorrowResponse, QueryMaxTransferOutAmountRequest, QueryMaxTransferOutAmountResponse, QuerySpecialKeyListRequest, QuerySpecialKeyListResponse, QuerySpecialKeyListResponseInner, QuerySpecialKeyRequest, QuerySpecialKeyResponse, RestAPI, RiskDataStreamApi, RiskDataStreamApiInterface, SmallLiabilityExchangeRequest, StartUserDataStreamResponse, TradeApi, TradeApiInterface, TransferApi, TransferApiInterface };
|
|
9430
|
+
export { AccountApi, AccountApiInterface, AdjustCrossMarginMaxLeverageRequest, AdjustCrossMarginMaxLeverageResponse, BorrowRepayApi, BorrowRepayApiInterface, CreateSpecialKeyRequest, CreateSpecialKeyResponse, CrossMarginCollateralRatioResponse, CrossMarginCollateralRatioResponseInner, CrossMarginCollateralRatioResponseInnerCollateralsInner, DeleteSpecialKeyRequest, DisableIsolatedMarginAccountRequest, DisableIsolatedMarginAccountResponse, EditIpForSpecialKeyRequest, EnableIsolatedMarginAccountRequest, EnableIsolatedMarginAccountResponse, GetAllCrossMarginPairsRequest, GetAllCrossMarginPairsResponse, GetAllCrossMarginPairsResponseInner, GetAllIsolatedMarginSymbolRequest, GetAllIsolatedMarginSymbolResponse, GetAllIsolatedMarginSymbolResponseInner, GetAllMarginAssetsRequest, GetAllMarginAssetsResponse, GetAllMarginAssetsResponseInner, GetBnbBurnStatusRequest, GetBnbBurnStatusResponse, GetCrossMarginTransferHistoryRequest, GetCrossMarginTransferHistoryResponse, GetCrossMarginTransferHistoryResponseRowsInner, GetDelistScheduleRequest, GetDelistScheduleResponse, GetDelistScheduleResponseInner, GetForceLiquidationRecordRequest, GetForceLiquidationRecordResponse, GetForceLiquidationRecordResponseRowsInner, GetFutureHourlyInterestRateRequest, GetFutureHourlyInterestRateResponse, GetFutureHourlyInterestRateResponseInner, GetInterestHistoryRequest, GetInterestHistoryResponse, GetInterestHistoryResponseRowsInner, GetLimitPricePairsResponse, GetListScheduleRequest, GetListScheduleResponse, GetListScheduleResponseInner, GetMarginAssetRiskBasedLiquidationRatioResponse, GetMarginAssetRiskBasedLiquidationRatioResponseInner, GetSmallLiabilityExchangeCoinListRequest, GetSmallLiabilityExchangeCoinListResponse, GetSmallLiabilityExchangeCoinListResponseInner, GetSmallLiabilityExchangeHistoryRequest, GetSmallLiabilityExchangeHistoryResponse, GetSmallLiabilityExchangeHistoryResponseRowsInner, GetSummaryOfMarginAccountRequest, GetSummaryOfMarginAccountResponse, KeepaliveUserDataStreamRequest, MarginAccountBorrowRepayRequest, MarginAccountBorrowRepayResponse, MarginAccountCancelAllOpenOrdersOnASymbolRequest, MarginAccountCancelAllOpenOrdersOnASymbolResponse, MarginAccountCancelAllOpenOrdersOnASymbolResponseInner, MarginAccountCancelAllOpenOrdersOnASymbolResponseInnerOrderReportsInner, MarginAccountCancelAllOpenOrdersOnASymbolResponseInnerOrdersInner, MarginAccountCancelOcoRequest, MarginAccountCancelOcoResponse, MarginAccountCancelOcoResponseOrderReportsInner, MarginAccountCancelOcoResponseOrdersInner, MarginAccountCancelOrderRequest, MarginAccountCancelOrderResponse, MarginAccountNewOcoNewOrderRespTypeEnum, MarginAccountNewOcoRequest, MarginAccountNewOcoResponse, MarginAccountNewOcoResponseOrderReportsInner, MarginAccountNewOcoResponseOrdersInner, MarginAccountNewOcoSideEnum, MarginAccountNewOrderNewOrderRespTypeEnum, MarginAccountNewOrderRequest, MarginAccountNewOrderResponse, MarginAccountNewOrderResponseFillsInner, MarginAccountNewOrderSideEnum, MarginAccountNewOrderTimeInForceEnum, MarginAccountNewOtoNewOrderRespTypeEnum, MarginAccountNewOtoRequest, MarginAccountNewOtoResponse, MarginAccountNewOtoResponseOrderReportsInner, MarginAccountNewOtoResponseOrdersInner, MarginAccountNewOtocoNewOrderRespTypeEnum, MarginAccountNewOtocoRequest, MarginAccountNewOtocoResponse, MarginAccountNewOtocoResponseOrderReportsInner, MarginAccountNewOtocoResponseOrdersInner, MarginManualLiquidationRequest, MarginManualLiquidationResponse, MarketDataApi, MarketDataApiInterface, QueryBorrowRepayRecordsInMarginAccountRequest, QueryBorrowRepayRecordsInMarginAccountResponse, QueryBorrowRepayRecordsInMarginAccountResponseRowsInner, QueryCrossIsolatedMarginCapitalFlowRequest, QueryCrossIsolatedMarginCapitalFlowResponse, QueryCrossIsolatedMarginCapitalFlowResponseInner, QueryCrossMarginAccountDetailsRequest, QueryCrossMarginAccountDetailsResponse, QueryCrossMarginAccountDetailsResponseUserAssetsInner, QueryCrossMarginFeeDataRequest, QueryCrossMarginFeeDataResponse, QueryCrossMarginFeeDataResponseInner, QueryCurrentMarginOrderCountUsageRequest, QueryCurrentMarginOrderCountUsageResponse, QueryCurrentMarginOrderCountUsageResponseInner, QueryEnabledIsolatedMarginAccountLimitRequest, QueryEnabledIsolatedMarginAccountLimitResponse, QueryIsolatedMarginAccountInfoRequest, QueryIsolatedMarginAccountInfoResponse, QueryIsolatedMarginAccountInfoResponseAssetsInner, QueryIsolatedMarginAccountInfoResponseAssetsInnerBaseAsset, QueryIsolatedMarginAccountInfoResponseAssetsInnerQuoteAsset, QueryIsolatedMarginFeeDataRequest, QueryIsolatedMarginFeeDataResponse, QueryIsolatedMarginFeeDataResponseInner, QueryIsolatedMarginFeeDataResponseInnerDataInner, QueryIsolatedMarginTierDataRequest, QueryIsolatedMarginTierDataResponse, QueryIsolatedMarginTierDataResponseInner, QueryLiabilityCoinLeverageBracketInCrossMarginProModeResponse, QueryLiabilityCoinLeverageBracketInCrossMarginProModeResponseInner, QueryLiabilityCoinLeverageBracketInCrossMarginProModeResponseInnerBracketsInner, QueryMarginAccountsAllOcoRequest, QueryMarginAccountsAllOcoResponse, QueryMarginAccountsAllOcoResponseInner, QueryMarginAccountsAllOcoResponseInnerOrdersInner, QueryMarginAccountsAllOrdersRequest, QueryMarginAccountsAllOrdersResponse, QueryMarginAccountsAllOrdersResponseInner, QueryMarginAccountsOcoRequest, QueryMarginAccountsOcoResponse, QueryMarginAccountsOcoResponseOrdersInner, QueryMarginAccountsOpenOcoRequest, QueryMarginAccountsOpenOcoResponse, QueryMarginAccountsOpenOcoResponseInner, QueryMarginAccountsOpenOcoResponseInnerOrdersInner, QueryMarginAccountsOpenOrdersRequest, QueryMarginAccountsOpenOrdersResponse, QueryMarginAccountsOpenOrdersResponseInner, QueryMarginAccountsOrderRequest, QueryMarginAccountsOrderResponse, QueryMarginAccountsTradeListRequest, QueryMarginAccountsTradeListResponse, QueryMarginAccountsTradeListResponseInner, QueryMarginAvailableInventoryRequest, QueryMarginAvailableInventoryResponse, QueryMarginAvailableInventoryResponseAssets, QueryMarginInterestRateHistoryRequest, QueryMarginInterestRateHistoryResponse, QueryMarginInterestRateHistoryResponseInner, QueryMarginPriceindexRequest, QueryMarginPriceindexResponse, QueryMaxBorrowRequest, QueryMaxBorrowResponse, QueryMaxTransferOutAmountRequest, QueryMaxTransferOutAmountResponse, QuerySpecialKeyListRequest, QuerySpecialKeyListResponse, QuerySpecialKeyListResponseInner, QuerySpecialKeyRequest, QuerySpecialKeyResponse, RestAPI, RiskDataStreamApi, RiskDataStreamApiInterface, SmallLiabilityExchangeRequest, StartUserDataStreamResponse, TradeApi, TradeApiInterface, TransferApi, TransferApiInterface };
|
|
9355
9431
|
}
|
|
9356
9432
|
//#endregion
|
|
9357
9433
|
//#region src/websocket-streams/types/balanceupdate.d.ts
|
package/dist/index.js
CHANGED
|
@@ -14,7 +14,7 @@ let __binance_common = require("@binance/common");
|
|
|
14
14
|
|
|
15
15
|
//#region package.json
|
|
16
16
|
var name = "@binance/margin-trading";
|
|
17
|
-
var version = "
|
|
17
|
+
var version = "11.0.0";
|
|
18
18
|
|
|
19
19
|
//#endregion
|
|
20
20
|
//#region src/rest-api/modules/account-api.ts
|
|
@@ -786,6 +786,19 @@ const MarketDataApiAxiosParamCreator = function(configuration) {
|
|
|
786
786
|
timeUnit: _timeUnit
|
|
787
787
|
};
|
|
788
788
|
},
|
|
789
|
+
getMarginAssetRiskBasedLiquidationRatio: async () => {
|
|
790
|
+
const localVarQueryParameter = {};
|
|
791
|
+
const localVarBodyParameter = {};
|
|
792
|
+
let _timeUnit;
|
|
793
|
+
if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
|
|
794
|
+
return {
|
|
795
|
+
endpoint: "/sapi/v1/margin/risk-based-liquidation-ratio",
|
|
796
|
+
method: "GET",
|
|
797
|
+
queryParams: localVarQueryParameter,
|
|
798
|
+
bodyParams: localVarBodyParameter,
|
|
799
|
+
timeUnit: _timeUnit
|
|
800
|
+
};
|
|
801
|
+
},
|
|
789
802
|
queryIsolatedMarginTierData: async (symbol, tier, recvWindow) => {
|
|
790
803
|
(0, __binance_common.assertParamExists)("queryIsolatedMarginTierData", "symbol", symbol);
|
|
791
804
|
const localVarQueryParameter = {};
|
|
@@ -973,6 +986,21 @@ var MarketDataApi = class {
|
|
|
973
986
|
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: false });
|
|
974
987
|
}
|
|
975
988
|
/**
|
|
989
|
+
* Get Margin Asset Risk-Based Liquidation Ratio
|
|
990
|
+
*
|
|
991
|
+
* Weight: 1
|
|
992
|
+
*
|
|
993
|
+
* @summary Get Margin Asset Risk-Based Liquidation Ratio (MARKET_DATA)
|
|
994
|
+
* @returns {Promise<RestApiResponse<GetMarginAssetRiskBasedLiquidationRatioResponse>>}
|
|
995
|
+
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
996
|
+
* @memberof MarketDataApi
|
|
997
|
+
* @see {@link https://developers.binance.com/docs/margin_trading/market-data/Get-Margin-Asset-Risk-Based-Liquidation-Ratio Binance API Documentation}
|
|
998
|
+
*/
|
|
999
|
+
async getMarginAssetRiskBasedLiquidationRatio() {
|
|
1000
|
+
const localVarAxiosArgs = await this.localVarAxiosParamCreator.getMarginAssetRiskBasedLiquidationRatio();
|
|
1001
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: false });
|
|
1002
|
+
}
|
|
1003
|
+
/**
|
|
976
1004
|
* Get isolated margin tier data collection with any tier as https://www.binance.com/en/margin-data
|
|
977
1005
|
*
|
|
978
1006
|
* Weight: 1(IP)
|
|
@@ -2793,6 +2821,20 @@ var RestAPI = class {
|
|
|
2793
2821
|
return this.marketDataApi.getListSchedule(requestParameters);
|
|
2794
2822
|
}
|
|
2795
2823
|
/**
|
|
2824
|
+
* Get Margin Asset Risk-Based Liquidation Ratio
|
|
2825
|
+
*
|
|
2826
|
+
* Weight: 1
|
|
2827
|
+
*
|
|
2828
|
+
* @summary Get Margin Asset Risk-Based Liquidation Ratio (MARKET_DATA)
|
|
2829
|
+
*
|
|
2830
|
+
* @returns {Promise<RestApiResponse<GetMarginAssetRiskBasedLiquidationRatioResponse>>}
|
|
2831
|
+
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
2832
|
+
* @see {@link https://developers.binance.com/docs/margin_trading/market-data/Get-Margin-Asset-Risk-Based-Liquidation-Ratio Binance API Documentation}
|
|
2833
|
+
*/
|
|
2834
|
+
getMarginAssetRiskBasedLiquidationRatio() {
|
|
2835
|
+
return this.marketDataApi.getMarginAssetRiskBasedLiquidationRatio();
|
|
2836
|
+
}
|
|
2837
|
+
/**
|
|
2796
2838
|
* Get isolated margin tier data collection with any tier as https://www.binance.com/en/margin-data
|
|
2797
2839
|
*
|
|
2798
2840
|
* Weight: 1(IP)
|