@binance/margin-trading 11.0.0 → 12.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 +250 -16
- package/dist/index.d.ts +250 -16
- package/dist/index.js +92 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +92 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -952,6 +952,39 @@ interface GetMarginAssetRiskBasedLiquidationRatioResponseInner {
|
|
|
952
952
|
*/
|
|
953
953
|
interface GetMarginAssetRiskBasedLiquidationRatioResponse extends Array<GetMarginAssetRiskBasedLiquidationRatioResponseInner> {}
|
|
954
954
|
//#endregion
|
|
955
|
+
//#region src/rest-api/types/get-margin-restricted-assets-response.d.ts
|
|
956
|
+
/**
|
|
957
|
+
* Binance Margin Trading REST API
|
|
958
|
+
*
|
|
959
|
+
* OpenAPI Specification for the Binance Margin Trading REST API
|
|
960
|
+
*
|
|
961
|
+
* The version of the OpenAPI document: 1.0.0
|
|
962
|
+
*
|
|
963
|
+
*
|
|
964
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
965
|
+
* https://openapi-generator.tech
|
|
966
|
+
* Do not edit the class manually.
|
|
967
|
+
*/
|
|
968
|
+
/**
|
|
969
|
+
*
|
|
970
|
+
* @export
|
|
971
|
+
* @interface GetMarginRestrictedAssetsResponse
|
|
972
|
+
*/
|
|
973
|
+
interface GetMarginRestrictedAssetsResponse {
|
|
974
|
+
/**
|
|
975
|
+
*
|
|
976
|
+
* @type {Array<string>}
|
|
977
|
+
* @memberof GetMarginRestrictedAssetsResponse
|
|
978
|
+
*/
|
|
979
|
+
openLongRestrictedAsset?: Array<string>;
|
|
980
|
+
/**
|
|
981
|
+
*
|
|
982
|
+
* @type {Array<string>}
|
|
983
|
+
* @memberof GetMarginRestrictedAssetsResponse
|
|
984
|
+
*/
|
|
985
|
+
maxCollateralExceededAsset?: Array<string>;
|
|
986
|
+
}
|
|
987
|
+
//#endregion
|
|
955
988
|
//#region src/rest-api/types/get-small-liability-exchange-coin-list-response-inner.d.ts
|
|
956
989
|
/**
|
|
957
990
|
* Binance Margin Trading REST API
|
|
@@ -4691,6 +4724,95 @@ interface QueryMaxTransferOutAmountResponse {
|
|
|
4691
4724
|
amount?: string;
|
|
4692
4725
|
}
|
|
4693
4726
|
//#endregion
|
|
4727
|
+
//#region src/rest-api/types/query-prevented-matches-response-inner.d.ts
|
|
4728
|
+
/**
|
|
4729
|
+
* Binance Margin Trading REST API
|
|
4730
|
+
*
|
|
4731
|
+
* OpenAPI Specification for the Binance Margin Trading REST API
|
|
4732
|
+
*
|
|
4733
|
+
* The version of the OpenAPI document: 1.0.0
|
|
4734
|
+
*
|
|
4735
|
+
*
|
|
4736
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
4737
|
+
* https://openapi-generator.tech
|
|
4738
|
+
* Do not edit the class manually.
|
|
4739
|
+
*/
|
|
4740
|
+
/**
|
|
4741
|
+
*
|
|
4742
|
+
* @export
|
|
4743
|
+
* @interface QueryPreventedMatchesResponseInner
|
|
4744
|
+
*/
|
|
4745
|
+
interface QueryPreventedMatchesResponseInner {
|
|
4746
|
+
/**
|
|
4747
|
+
*
|
|
4748
|
+
* @type {string}
|
|
4749
|
+
* @memberof QueryPreventedMatchesResponseInner
|
|
4750
|
+
*/
|
|
4751
|
+
symbol?: string;
|
|
4752
|
+
/**
|
|
4753
|
+
*
|
|
4754
|
+
* @type {number | bigint}
|
|
4755
|
+
* @memberof QueryPreventedMatchesResponseInner
|
|
4756
|
+
*/
|
|
4757
|
+
preventedMatchId?: number | bigint;
|
|
4758
|
+
/**
|
|
4759
|
+
*
|
|
4760
|
+
* @type {number | bigint}
|
|
4761
|
+
* @memberof QueryPreventedMatchesResponseInner
|
|
4762
|
+
*/
|
|
4763
|
+
takerOrderId?: number | bigint;
|
|
4764
|
+
/**
|
|
4765
|
+
*
|
|
4766
|
+
* @type {string}
|
|
4767
|
+
* @memberof QueryPreventedMatchesResponseInner
|
|
4768
|
+
*/
|
|
4769
|
+
makerSymbol?: string;
|
|
4770
|
+
/**
|
|
4771
|
+
*
|
|
4772
|
+
* @type {number | bigint}
|
|
4773
|
+
* @memberof QueryPreventedMatchesResponseInner
|
|
4774
|
+
*/
|
|
4775
|
+
makerOrderId?: number | bigint;
|
|
4776
|
+
/**
|
|
4777
|
+
*
|
|
4778
|
+
* @type {number | bigint}
|
|
4779
|
+
* @memberof QueryPreventedMatchesResponseInner
|
|
4780
|
+
*/
|
|
4781
|
+
tradeGroupId?: number | bigint;
|
|
4782
|
+
/**
|
|
4783
|
+
*
|
|
4784
|
+
* @type {string}
|
|
4785
|
+
* @memberof QueryPreventedMatchesResponseInner
|
|
4786
|
+
*/
|
|
4787
|
+
selfTradePreventionMode?: string;
|
|
4788
|
+
/**
|
|
4789
|
+
*
|
|
4790
|
+
* @type {string}
|
|
4791
|
+
* @memberof QueryPreventedMatchesResponseInner
|
|
4792
|
+
*/
|
|
4793
|
+
price?: string;
|
|
4794
|
+
/**
|
|
4795
|
+
*
|
|
4796
|
+
* @type {string}
|
|
4797
|
+
* @memberof QueryPreventedMatchesResponseInner
|
|
4798
|
+
*/
|
|
4799
|
+
makerPreventedQuantity?: string;
|
|
4800
|
+
/**
|
|
4801
|
+
*
|
|
4802
|
+
* @type {number | bigint}
|
|
4803
|
+
* @memberof QueryPreventedMatchesResponseInner
|
|
4804
|
+
*/
|
|
4805
|
+
transactTime?: number | bigint;
|
|
4806
|
+
}
|
|
4807
|
+
//#endregion
|
|
4808
|
+
//#region src/rest-api/types/query-prevented-matches-response.d.ts
|
|
4809
|
+
/**
|
|
4810
|
+
*
|
|
4811
|
+
* @export
|
|
4812
|
+
* @interface QueryPreventedMatchesResponse
|
|
4813
|
+
*/
|
|
4814
|
+
interface QueryPreventedMatchesResponse extends Array<QueryPreventedMatchesResponseInner> {}
|
|
4815
|
+
//#endregion
|
|
4694
4816
|
//#region src/rest-api/types/query-special-key-list-response-inner.d.ts
|
|
4695
4817
|
/**
|
|
4696
4818
|
* Binance Margin Trading REST API
|
|
@@ -5889,6 +6011,17 @@ interface MarketDataApiInterface {
|
|
|
5889
6011
|
* @memberof MarketDataApiInterface
|
|
5890
6012
|
*/
|
|
5891
6013
|
getMarginAssetRiskBasedLiquidationRatio(): Promise<RestApiResponse<GetMarginAssetRiskBasedLiquidationRatioResponse>>;
|
|
6014
|
+
/**
|
|
6015
|
+
* Get Margin Restricted Assets
|
|
6016
|
+
*
|
|
6017
|
+
* Weight: 1
|
|
6018
|
+
*
|
|
6019
|
+
* @summary Get Margin Restricted Assets (MARKET_DATA)
|
|
6020
|
+
*
|
|
6021
|
+
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
6022
|
+
* @memberof MarketDataApiInterface
|
|
6023
|
+
*/
|
|
6024
|
+
getMarginRestrictedAssets(): Promise<RestApiResponse<GetMarginRestrictedAssetsResponse>>;
|
|
5892
6025
|
/**
|
|
5893
6026
|
* Get isolated margin tier data collection with any tier as https://www.binance.com/en/margin-data
|
|
5894
6027
|
*
|
|
@@ -6165,6 +6298,18 @@ declare class MarketDataApi implements MarketDataApiInterface {
|
|
|
6165
6298
|
* @see {@link https://developers.binance.com/docs/margin_trading/market-data/Get-Margin-Asset-Risk-Based-Liquidation-Ratio Binance API Documentation}
|
|
6166
6299
|
*/
|
|
6167
6300
|
getMarginAssetRiskBasedLiquidationRatio(): Promise<RestApiResponse<GetMarginAssetRiskBasedLiquidationRatioResponse>>;
|
|
6301
|
+
/**
|
|
6302
|
+
* Get Margin Restricted Assets
|
|
6303
|
+
*
|
|
6304
|
+
* Weight: 1
|
|
6305
|
+
*
|
|
6306
|
+
* @summary Get Margin Restricted Assets (MARKET_DATA)
|
|
6307
|
+
* @returns {Promise<RestApiResponse<GetMarginRestrictedAssetsResponse>>}
|
|
6308
|
+
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
6309
|
+
* @memberof MarketDataApi
|
|
6310
|
+
* @see {@link https://developers.binance.com/docs/margin_trading/market-data/Get-Margin-Restricted-Assets Binance API Documentation}
|
|
6311
|
+
*/
|
|
6312
|
+
getMarginRestrictedAssets(): Promise<RestApiResponse<GetMarginRestrictedAssetsResponse>>;
|
|
6168
6313
|
/**
|
|
6169
6314
|
* Get isolated margin tier data collection with any tier as https://www.binance.com/en/margin-data
|
|
6170
6315
|
*
|
|
@@ -6662,6 +6807,17 @@ interface TradeApiInterface {
|
|
|
6662
6807
|
* @memberof TradeApiInterface
|
|
6663
6808
|
*/
|
|
6664
6809
|
queryMarginAccountsTradeList(requestParameters: QueryMarginAccountsTradeListRequest): Promise<RestApiResponse<QueryMarginAccountsTradeListResponse>>;
|
|
6810
|
+
/**
|
|
6811
|
+
*
|
|
6812
|
+
* Weight: 10(IP)
|
|
6813
|
+
*
|
|
6814
|
+
* @summary Query Prevented Matches(USER_DATA)
|
|
6815
|
+
* @param {QueryPreventedMatchesRequest} requestParameters Request parameters.
|
|
6816
|
+
*
|
|
6817
|
+
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
6818
|
+
* @memberof TradeApiInterface
|
|
6819
|
+
*/
|
|
6820
|
+
queryPreventedMatches(requestParameters: QueryPreventedMatchesRequest): Promise<RestApiResponse<QueryPreventedMatchesResponse>>;
|
|
6665
6821
|
/**
|
|
6666
6822
|
* Query Special Key Information.
|
|
6667
6823
|
*
|
|
@@ -6897,7 +7053,7 @@ interface MarginAccountCancelAllOpenOrdersOnASymbolRequest {
|
|
|
6897
7053
|
*/
|
|
6898
7054
|
readonly symbol: string;
|
|
6899
7055
|
/**
|
|
6900
|
-
*
|
|
7056
|
+
* For isolated margin or not, "TRUE", "FALSE", default "FALSE"
|
|
6901
7057
|
* @type {string}
|
|
6902
7058
|
* @memberof TradeApiMarginAccountCancelAllOpenOrdersOnASymbol
|
|
6903
7059
|
*/
|
|
@@ -6921,7 +7077,7 @@ interface MarginAccountCancelOcoRequest {
|
|
|
6921
7077
|
*/
|
|
6922
7078
|
readonly symbol: string;
|
|
6923
7079
|
/**
|
|
6924
|
-
*
|
|
7080
|
+
* For isolated margin or not, "TRUE", "FALSE", default "FALSE"
|
|
6925
7081
|
* @type {string}
|
|
6926
7082
|
* @memberof TradeApiMarginAccountCancelOco
|
|
6927
7083
|
*/
|
|
@@ -6963,7 +7119,7 @@ interface MarginAccountCancelOrderRequest {
|
|
|
6963
7119
|
*/
|
|
6964
7120
|
readonly symbol: string;
|
|
6965
7121
|
/**
|
|
6966
|
-
*
|
|
7122
|
+
* For isolated margin or not, "TRUE", "FALSE", default "FALSE"
|
|
6967
7123
|
* @type {string}
|
|
6968
7124
|
* @memberof TradeApiMarginAccountCancelOrder
|
|
6969
7125
|
*/
|
|
@@ -7029,7 +7185,7 @@ interface MarginAccountNewOcoRequest {
|
|
|
7029
7185
|
*/
|
|
7030
7186
|
readonly stopPrice: number;
|
|
7031
7187
|
/**
|
|
7032
|
-
*
|
|
7188
|
+
* For isolated margin or not, "TRUE", "FALSE", default "FALSE"
|
|
7033
7189
|
* @type {string}
|
|
7034
7190
|
* @memberof TradeApiMarginAccountNewOco
|
|
7035
7191
|
*/
|
|
@@ -7131,7 +7287,7 @@ interface MarginAccountNewOrderRequest {
|
|
|
7131
7287
|
*/
|
|
7132
7288
|
readonly type: string;
|
|
7133
7289
|
/**
|
|
7134
|
-
*
|
|
7290
|
+
* For isolated margin or not, "TRUE", "FALSE", default "FALSE"
|
|
7135
7291
|
* @type {string}
|
|
7136
7292
|
* @memberof TradeApiMarginAccountNewOrder
|
|
7137
7293
|
*/
|
|
@@ -7269,7 +7425,7 @@ interface MarginAccountNewOtoRequest {
|
|
|
7269
7425
|
*/
|
|
7270
7426
|
readonly pendingQuantity: number;
|
|
7271
7427
|
/**
|
|
7272
|
-
*
|
|
7428
|
+
* For isolated margin or not, "TRUE", "FALSE", default "FALSE"
|
|
7273
7429
|
* @type {string}
|
|
7274
7430
|
* @memberof TradeApiMarginAccountNewOto
|
|
7275
7431
|
*/
|
|
@@ -7407,7 +7563,7 @@ interface MarginAccountNewOtocoRequest {
|
|
|
7407
7563
|
*/
|
|
7408
7564
|
readonly pendingAboveType: string;
|
|
7409
7565
|
/**
|
|
7410
|
-
*
|
|
7566
|
+
* For isolated margin or not, "TRUE", "FALSE", default "FALSE"
|
|
7411
7567
|
* @type {string}
|
|
7412
7568
|
* @memberof TradeApiMarginAccountNewOtoco
|
|
7413
7569
|
*/
|
|
@@ -7569,7 +7725,7 @@ interface MarginManualLiquidationRequest {
|
|
|
7569
7725
|
*/
|
|
7570
7726
|
interface QueryCurrentMarginOrderCountUsageRequest {
|
|
7571
7727
|
/**
|
|
7572
|
-
*
|
|
7728
|
+
* For isolated margin or not, "TRUE", "FALSE", default "FALSE"
|
|
7573
7729
|
* @type {string}
|
|
7574
7730
|
* @memberof TradeApiQueryCurrentMarginOrderCountUsage
|
|
7575
7731
|
*/
|
|
@@ -7593,7 +7749,7 @@ interface QueryCurrentMarginOrderCountUsageRequest {
|
|
|
7593
7749
|
*/
|
|
7594
7750
|
interface QueryMarginAccountsAllOcoRequest {
|
|
7595
7751
|
/**
|
|
7596
|
-
*
|
|
7752
|
+
* For isolated margin or not, "TRUE", "FALSE", default "FALSE"
|
|
7597
7753
|
* @type {string}
|
|
7598
7754
|
* @memberof TradeApiQueryMarginAccountsAllOco
|
|
7599
7755
|
*/
|
|
@@ -7647,7 +7803,7 @@ interface QueryMarginAccountsAllOrdersRequest {
|
|
|
7647
7803
|
*/
|
|
7648
7804
|
readonly symbol: string;
|
|
7649
7805
|
/**
|
|
7650
|
-
*
|
|
7806
|
+
* For isolated margin or not, "TRUE", "FALSE", default "FALSE"
|
|
7651
7807
|
* @type {string}
|
|
7652
7808
|
* @memberof TradeApiQueryMarginAccountsAllOrders
|
|
7653
7809
|
*/
|
|
@@ -7689,7 +7845,7 @@ interface QueryMarginAccountsAllOrdersRequest {
|
|
|
7689
7845
|
*/
|
|
7690
7846
|
interface QueryMarginAccountsOcoRequest {
|
|
7691
7847
|
/**
|
|
7692
|
-
*
|
|
7848
|
+
* For isolated margin or not, "TRUE", "FALSE", default "FALSE"
|
|
7693
7849
|
* @type {string}
|
|
7694
7850
|
* @memberof TradeApiQueryMarginAccountsOco
|
|
7695
7851
|
*/
|
|
@@ -7725,7 +7881,7 @@ interface QueryMarginAccountsOcoRequest {
|
|
|
7725
7881
|
*/
|
|
7726
7882
|
interface QueryMarginAccountsOpenOcoRequest {
|
|
7727
7883
|
/**
|
|
7728
|
-
*
|
|
7884
|
+
* For isolated margin or not, "TRUE", "FALSE", default "FALSE"
|
|
7729
7885
|
* @type {string}
|
|
7730
7886
|
* @memberof TradeApiQueryMarginAccountsOpenOco
|
|
7731
7887
|
*/
|
|
@@ -7755,7 +7911,7 @@ interface QueryMarginAccountsOpenOrdersRequest {
|
|
|
7755
7911
|
*/
|
|
7756
7912
|
readonly symbol?: string;
|
|
7757
7913
|
/**
|
|
7758
|
-
*
|
|
7914
|
+
* For isolated margin or not, "TRUE", "FALSE", default "FALSE"
|
|
7759
7915
|
* @type {string}
|
|
7760
7916
|
* @memberof TradeApiQueryMarginAccountsOpenOrders
|
|
7761
7917
|
*/
|
|
@@ -7779,7 +7935,7 @@ interface QueryMarginAccountsOrderRequest {
|
|
|
7779
7935
|
*/
|
|
7780
7936
|
readonly symbol: string;
|
|
7781
7937
|
/**
|
|
7782
|
-
*
|
|
7938
|
+
* For isolated margin or not, "TRUE", "FALSE", default "FALSE"
|
|
7783
7939
|
* @type {string}
|
|
7784
7940
|
* @memberof TradeApiQueryMarginAccountsOrder
|
|
7785
7941
|
*/
|
|
@@ -7815,7 +7971,7 @@ interface QueryMarginAccountsTradeListRequest {
|
|
|
7815
7971
|
*/
|
|
7816
7972
|
readonly symbol: string;
|
|
7817
7973
|
/**
|
|
7818
|
-
*
|
|
7974
|
+
* For isolated margin or not, "TRUE", "FALSE", default "FALSE"
|
|
7819
7975
|
* @type {string}
|
|
7820
7976
|
* @memberof TradeApiQueryMarginAccountsTradeList
|
|
7821
7977
|
*/
|
|
@@ -7857,6 +8013,48 @@ interface QueryMarginAccountsTradeListRequest {
|
|
|
7857
8013
|
*/
|
|
7858
8014
|
readonly recvWindow?: number | bigint;
|
|
7859
8015
|
}
|
|
8016
|
+
/**
|
|
8017
|
+
* Request parameters for queryPreventedMatches operation in TradeApi.
|
|
8018
|
+
* @interface QueryPreventedMatchesRequest
|
|
8019
|
+
*/
|
|
8020
|
+
interface QueryPreventedMatchesRequest {
|
|
8021
|
+
/**
|
|
8022
|
+
*
|
|
8023
|
+
* @type {string}
|
|
8024
|
+
* @memberof TradeApiQueryPreventedMatches
|
|
8025
|
+
*/
|
|
8026
|
+
readonly symbol: string;
|
|
8027
|
+
/**
|
|
8028
|
+
*
|
|
8029
|
+
* @type {number | bigint}
|
|
8030
|
+
* @memberof TradeApiQueryPreventedMatches
|
|
8031
|
+
*/
|
|
8032
|
+
readonly preventedMatchId?: number | bigint;
|
|
8033
|
+
/**
|
|
8034
|
+
*
|
|
8035
|
+
* @type {number | bigint}
|
|
8036
|
+
* @memberof TradeApiQueryPreventedMatches
|
|
8037
|
+
*/
|
|
8038
|
+
readonly orderId?: number | bigint;
|
|
8039
|
+
/**
|
|
8040
|
+
*
|
|
8041
|
+
* @type {number | bigint}
|
|
8042
|
+
* @memberof TradeApiQueryPreventedMatches
|
|
8043
|
+
*/
|
|
8044
|
+
readonly fromPreventedMatchId?: number | bigint;
|
|
8045
|
+
/**
|
|
8046
|
+
* No more than 60000
|
|
8047
|
+
* @type {number | bigint}
|
|
8048
|
+
* @memberof TradeApiQueryPreventedMatches
|
|
8049
|
+
*/
|
|
8050
|
+
readonly recvWindow?: number | bigint;
|
|
8051
|
+
/**
|
|
8052
|
+
* For isolated margin or not, "TRUE", "FALSE", default "FALSE"
|
|
8053
|
+
* @type {string}
|
|
8054
|
+
* @memberof TradeApiQueryPreventedMatches
|
|
8055
|
+
*/
|
|
8056
|
+
readonly isIsolated?: string;
|
|
8057
|
+
}
|
|
7860
8058
|
/**
|
|
7861
8059
|
* Request parameters for querySpecialKey operation in TradeApi.
|
|
7862
8060
|
* @interface QuerySpecialKeyRequest
|
|
@@ -8279,6 +8477,18 @@ declare class TradeApi implements TradeApiInterface {
|
|
|
8279
8477
|
* @see {@link https://developers.binance.com/docs/margin_trading/trade/Query-Margin-Account-Trade-List Binance API Documentation}
|
|
8280
8478
|
*/
|
|
8281
8479
|
queryMarginAccountsTradeList(requestParameters: QueryMarginAccountsTradeListRequest): Promise<RestApiResponse<QueryMarginAccountsTradeListResponse>>;
|
|
8480
|
+
/**
|
|
8481
|
+
*
|
|
8482
|
+
* Weight: 10(IP)
|
|
8483
|
+
*
|
|
8484
|
+
* @summary Query Prevented Matches(USER_DATA)
|
|
8485
|
+
* @param {QueryPreventedMatchesRequest} requestParameters Request parameters.
|
|
8486
|
+
* @returns {Promise<RestApiResponse<QueryPreventedMatchesResponse>>}
|
|
8487
|
+
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
8488
|
+
* @memberof TradeApi
|
|
8489
|
+
* @see {@link https://developers.binance.com/docs/margin_trading/trade/Query-Margin-Prevented-Matches Binance API Documentation}
|
|
8490
|
+
*/
|
|
8491
|
+
queryPreventedMatches(requestParameters: QueryPreventedMatchesRequest): Promise<RestApiResponse<QueryPreventedMatchesResponse>>;
|
|
8282
8492
|
/**
|
|
8283
8493
|
* Query Special Key Information.
|
|
8284
8494
|
*
|
|
@@ -8900,6 +9110,18 @@ declare class RestAPI {
|
|
|
8900
9110
|
* @see {@link https://developers.binance.com/docs/margin_trading/market-data/Get-Margin-Asset-Risk-Based-Liquidation-Ratio Binance API Documentation}
|
|
8901
9111
|
*/
|
|
8902
9112
|
getMarginAssetRiskBasedLiquidationRatio(): Promise<RestApiResponse<GetMarginAssetRiskBasedLiquidationRatioResponse>>;
|
|
9113
|
+
/**
|
|
9114
|
+
* Get Margin Restricted Assets
|
|
9115
|
+
*
|
|
9116
|
+
* Weight: 1
|
|
9117
|
+
*
|
|
9118
|
+
* @summary Get Margin Restricted Assets (MARKET_DATA)
|
|
9119
|
+
*
|
|
9120
|
+
* @returns {Promise<RestApiResponse<GetMarginRestrictedAssetsResponse>>}
|
|
9121
|
+
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
9122
|
+
* @see {@link https://developers.binance.com/docs/margin_trading/market-data/Get-Margin-Restricted-Assets Binance API Documentation}
|
|
9123
|
+
*/
|
|
9124
|
+
getMarginRestrictedAssets(): Promise<RestApiResponse<GetMarginRestrictedAssetsResponse>>;
|
|
8903
9125
|
/**
|
|
8904
9126
|
* Get isolated margin tier data collection with any tier as https://www.binance.com/en/margin-data
|
|
8905
9127
|
*
|
|
@@ -9348,6 +9570,18 @@ declare class RestAPI {
|
|
|
9348
9570
|
* @see {@link https://developers.binance.com/docs/margin_trading/trade/Query-Margin-Account-Trade-List Binance API Documentation}
|
|
9349
9571
|
*/
|
|
9350
9572
|
queryMarginAccountsTradeList(requestParameters: QueryMarginAccountsTradeListRequest): Promise<RestApiResponse<QueryMarginAccountsTradeListResponse>>;
|
|
9573
|
+
/**
|
|
9574
|
+
*
|
|
9575
|
+
* Weight: 10(IP)
|
|
9576
|
+
*
|
|
9577
|
+
* @summary Query Prevented Matches(USER_DATA)
|
|
9578
|
+
* @param {QueryPreventedMatchesRequest} requestParameters Request parameters.
|
|
9579
|
+
*
|
|
9580
|
+
* @returns {Promise<RestApiResponse<QueryPreventedMatchesResponse>>}
|
|
9581
|
+
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
9582
|
+
* @see {@link https://developers.binance.com/docs/margin_trading/trade/Query-Margin-Prevented-Matches Binance API Documentation}
|
|
9583
|
+
*/
|
|
9584
|
+
queryPreventedMatches(requestParameters: QueryPreventedMatchesRequest): Promise<RestApiResponse<QueryPreventedMatchesResponse>>;
|
|
9351
9585
|
/**
|
|
9352
9586
|
* Query Special Key Information.
|
|
9353
9587
|
*
|
|
@@ -9427,7 +9661,7 @@ declare class RestAPI {
|
|
|
9427
9661
|
queryMaxTransferOutAmount(requestParameters: QueryMaxTransferOutAmountRequest): Promise<RestApiResponse<QueryMaxTransferOutAmountResponse>>;
|
|
9428
9662
|
}
|
|
9429
9663
|
declare namespace index_d_exports {
|
|
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 };
|
|
9664
|
+
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, GetMarginRestrictedAssetsResponse, 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, QueryPreventedMatchesRequest, QueryPreventedMatchesResponse, QueryPreventedMatchesResponseInner, QuerySpecialKeyListRequest, QuerySpecialKeyListResponse, QuerySpecialKeyListResponseInner, QuerySpecialKeyRequest, QuerySpecialKeyResponse, RestAPI, RiskDataStreamApi, RiskDataStreamApiInterface, SmallLiabilityExchangeRequest, StartUserDataStreamResponse, TradeApi, TradeApiInterface, TransferApi, TransferApiInterface };
|
|
9431
9665
|
}
|
|
9432
9666
|
//#endregion
|
|
9433
9667
|
//#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 = "12.0.0";
|
|
18
18
|
|
|
19
19
|
//#endregion
|
|
20
20
|
//#region src/rest-api/modules/account-api.ts
|
|
@@ -799,6 +799,19 @@ const MarketDataApiAxiosParamCreator = function(configuration) {
|
|
|
799
799
|
timeUnit: _timeUnit
|
|
800
800
|
};
|
|
801
801
|
},
|
|
802
|
+
getMarginRestrictedAssets: async () => {
|
|
803
|
+
const localVarQueryParameter = {};
|
|
804
|
+
const localVarBodyParameter = {};
|
|
805
|
+
let _timeUnit;
|
|
806
|
+
if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
|
|
807
|
+
return {
|
|
808
|
+
endpoint: "/sapi/v1/margin/restricted-asset",
|
|
809
|
+
method: "GET",
|
|
810
|
+
queryParams: localVarQueryParameter,
|
|
811
|
+
bodyParams: localVarBodyParameter,
|
|
812
|
+
timeUnit: _timeUnit
|
|
813
|
+
};
|
|
814
|
+
},
|
|
802
815
|
queryIsolatedMarginTierData: async (symbol, tier, recvWindow) => {
|
|
803
816
|
(0, __binance_common.assertParamExists)("queryIsolatedMarginTierData", "symbol", symbol);
|
|
804
817
|
const localVarQueryParameter = {};
|
|
@@ -1001,6 +1014,21 @@ var MarketDataApi = class {
|
|
|
1001
1014
|
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: false });
|
|
1002
1015
|
}
|
|
1003
1016
|
/**
|
|
1017
|
+
* Get Margin Restricted Assets
|
|
1018
|
+
*
|
|
1019
|
+
* Weight: 1
|
|
1020
|
+
*
|
|
1021
|
+
* @summary Get Margin Restricted Assets (MARKET_DATA)
|
|
1022
|
+
* @returns {Promise<RestApiResponse<GetMarginRestrictedAssetsResponse>>}
|
|
1023
|
+
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
1024
|
+
* @memberof MarketDataApi
|
|
1025
|
+
* @see {@link https://developers.binance.com/docs/margin_trading/market-data/Get-Margin-Restricted-Assets Binance API Documentation}
|
|
1026
|
+
*/
|
|
1027
|
+
async getMarginRestrictedAssets() {
|
|
1028
|
+
const localVarAxiosArgs = await this.localVarAxiosParamCreator.getMarginRestrictedAssets();
|
|
1029
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: false });
|
|
1030
|
+
}
|
|
1031
|
+
/**
|
|
1004
1032
|
* Get isolated margin tier data collection with any tier as https://www.binance.com/en/margin-data
|
|
1005
1033
|
*
|
|
1006
1034
|
* Weight: 1(IP)
|
|
@@ -1695,6 +1723,26 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
1695
1723
|
timeUnit: _timeUnit
|
|
1696
1724
|
};
|
|
1697
1725
|
},
|
|
1726
|
+
queryPreventedMatches: async (symbol, preventedMatchId, orderId, fromPreventedMatchId, recvWindow, isIsolated) => {
|
|
1727
|
+
(0, __binance_common.assertParamExists)("queryPreventedMatches", "symbol", symbol);
|
|
1728
|
+
const localVarQueryParameter = {};
|
|
1729
|
+
const localVarBodyParameter = {};
|
|
1730
|
+
if (symbol !== void 0 && symbol !== null) localVarQueryParameter["symbol"] = symbol;
|
|
1731
|
+
if (preventedMatchId !== void 0 && preventedMatchId !== null) localVarQueryParameter["preventedMatchId"] = preventedMatchId;
|
|
1732
|
+
if (orderId !== void 0 && orderId !== null) localVarQueryParameter["orderId"] = orderId;
|
|
1733
|
+
if (fromPreventedMatchId !== void 0 && fromPreventedMatchId !== null) localVarQueryParameter["fromPreventedMatchId"] = fromPreventedMatchId;
|
|
1734
|
+
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
1735
|
+
if (isIsolated !== void 0 && isIsolated !== null) localVarQueryParameter["isIsolated"] = isIsolated;
|
|
1736
|
+
let _timeUnit;
|
|
1737
|
+
if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
|
|
1738
|
+
return {
|
|
1739
|
+
endpoint: "/sapi/v1/margin/myPreventedMatches",
|
|
1740
|
+
method: "GET",
|
|
1741
|
+
queryParams: localVarQueryParameter,
|
|
1742
|
+
bodyParams: localVarBodyParameter,
|
|
1743
|
+
timeUnit: _timeUnit
|
|
1744
|
+
};
|
|
1745
|
+
},
|
|
1698
1746
|
querySpecialKey: async (symbol, recvWindow) => {
|
|
1699
1747
|
const localVarQueryParameter = {};
|
|
1700
1748
|
const localVarBodyParameter = {};
|
|
@@ -2179,6 +2227,21 @@ var TradeApi = class {
|
|
|
2179
2227
|
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
2180
2228
|
}
|
|
2181
2229
|
/**
|
|
2230
|
+
*
|
|
2231
|
+
* Weight: 10(IP)
|
|
2232
|
+
*
|
|
2233
|
+
* @summary Query Prevented Matches(USER_DATA)
|
|
2234
|
+
* @param {QueryPreventedMatchesRequest} requestParameters Request parameters.
|
|
2235
|
+
* @returns {Promise<RestApiResponse<QueryPreventedMatchesResponse>>}
|
|
2236
|
+
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
2237
|
+
* @memberof TradeApi
|
|
2238
|
+
* @see {@link https://developers.binance.com/docs/margin_trading/trade/Query-Margin-Prevented-Matches Binance API Documentation}
|
|
2239
|
+
*/
|
|
2240
|
+
async queryPreventedMatches(requestParameters) {
|
|
2241
|
+
const localVarAxiosArgs = await this.localVarAxiosParamCreator.queryPreventedMatches(requestParameters?.symbol, requestParameters?.preventedMatchId, requestParameters?.orderId, requestParameters?.fromPreventedMatchId, requestParameters?.recvWindow, requestParameters?.isIsolated);
|
|
2242
|
+
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
2243
|
+
}
|
|
2244
|
+
/**
|
|
2182
2245
|
* Query Special Key Information.
|
|
2183
2246
|
*
|
|
2184
2247
|
* This only applies to Special Key for Low Latency Trading.
|
|
@@ -2835,6 +2898,20 @@ var RestAPI = class {
|
|
|
2835
2898
|
return this.marketDataApi.getMarginAssetRiskBasedLiquidationRatio();
|
|
2836
2899
|
}
|
|
2837
2900
|
/**
|
|
2901
|
+
* Get Margin Restricted Assets
|
|
2902
|
+
*
|
|
2903
|
+
* Weight: 1
|
|
2904
|
+
*
|
|
2905
|
+
* @summary Get Margin Restricted Assets (MARKET_DATA)
|
|
2906
|
+
*
|
|
2907
|
+
* @returns {Promise<RestApiResponse<GetMarginRestrictedAssetsResponse>>}
|
|
2908
|
+
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
2909
|
+
* @see {@link https://developers.binance.com/docs/margin_trading/market-data/Get-Margin-Restricted-Assets Binance API Documentation}
|
|
2910
|
+
*/
|
|
2911
|
+
getMarginRestrictedAssets() {
|
|
2912
|
+
return this.marketDataApi.getMarginRestrictedAssets();
|
|
2913
|
+
}
|
|
2914
|
+
/**
|
|
2838
2915
|
* Get isolated margin tier data collection with any tier as https://www.binance.com/en/margin-data
|
|
2839
2916
|
*
|
|
2840
2917
|
* Weight: 1(IP)
|
|
@@ -3341,6 +3418,20 @@ var RestAPI = class {
|
|
|
3341
3418
|
return this.tradeApi.queryMarginAccountsTradeList(requestParameters);
|
|
3342
3419
|
}
|
|
3343
3420
|
/**
|
|
3421
|
+
*
|
|
3422
|
+
* Weight: 10(IP)
|
|
3423
|
+
*
|
|
3424
|
+
* @summary Query Prevented Matches(USER_DATA)
|
|
3425
|
+
* @param {QueryPreventedMatchesRequest} requestParameters Request parameters.
|
|
3426
|
+
*
|
|
3427
|
+
* @returns {Promise<RestApiResponse<QueryPreventedMatchesResponse>>}
|
|
3428
|
+
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
3429
|
+
* @see {@link https://developers.binance.com/docs/margin_trading/trade/Query-Margin-Prevented-Matches Binance API Documentation}
|
|
3430
|
+
*/
|
|
3431
|
+
queryPreventedMatches(requestParameters) {
|
|
3432
|
+
return this.tradeApi.queryPreventedMatches(requestParameters);
|
|
3433
|
+
}
|
|
3434
|
+
/**
|
|
3344
3435
|
* Query Special Key Information.
|
|
3345
3436
|
*
|
|
3346
3437
|
* This only applies to Special Key for Low Latency Trading.
|