@binance/margin-trading 7.0.2 → 8.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 +106 -18
- package/dist/index.d.ts +106 -18
- package/dist/index.js +107 -19
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +107 -19
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -6850,9 +6850,19 @@ declare class RiskDataStreamApi implements RiskDataStreamApiInterface {
|
|
|
6850
6850
|
*/
|
|
6851
6851
|
interface TradeApiInterface {
|
|
6852
6852
|
/**
|
|
6853
|
-
*
|
|
6853
|
+
* - Binance Margin offers low-latency trading through a [special key](https://www.binance.com/en/support/faq/frequently-asked-questions-on-margin-special-api-key-3208663e900d4d2e9fec4140e1832f4e), available exclusively to users with VIP level 4 or higher.
|
|
6854
|
+
* - If you are VIP level 3 or below, please contact your VIP manager for eligibility criterias.**
|
|
6854
6855
|
*
|
|
6855
|
-
**
|
|
6856
|
+
**Supported Products:**
|
|
6857
|
+
*
|
|
6858
|
+
* - Cross Margin
|
|
6859
|
+
* - Isolated Margin
|
|
6860
|
+
* - Portfolio Margin Pro
|
|
6861
|
+
* - Cross Margin Pro (Additional agreement required and subject to meeting eligibility criteria)
|
|
6862
|
+
*
|
|
6863
|
+
**Unsupported Products:**
|
|
6864
|
+
*
|
|
6865
|
+
* - Portfolio Margin
|
|
6856
6866
|
*
|
|
6857
6867
|
* We support several types of API keys:
|
|
6858
6868
|
*
|
|
@@ -6862,10 +6872,6 @@ interface TradeApiInterface {
|
|
|
6862
6872
|
*
|
|
6863
6873
|
* We recommend to **use Ed25519 API keys** as it should provide the best performance and security out of all supported key types. We accept PKCS#8 (BEGIN PUBLIC KEY). For how to generate an RSA key pair to send API requests on Binance. Please refer to the document below [FAQ](https://www.binance.com/en/support/faq/how-to-generate-an-rsa-key-pair-to-send-api-requests-on-binance-2b79728f331e43079b27440d9d15c5db) .
|
|
6864
6874
|
*
|
|
6865
|
-
* Read [REST API](https://github.com/binance/binance-spot-api-docs/blob/master/rest-api.md#signed-trade-and-user_data-endpoint-security) or [WebSocket API](https://github.com/binance/binance-spot-api-docs/blob/master/web-socket-api.md#request-security) documentation to learn how to use different API keys
|
|
6866
|
-
*
|
|
6867
|
-
* You need to enable Permits “Enable Spot & Margin Trading” option for the API Key which requests this endpoint.
|
|
6868
|
-
*
|
|
6869
6875
|
* Weight: 1(UID)
|
|
6870
6876
|
*
|
|
6871
6877
|
* @summary Create Special Key(Low-Latency Trading)(TRADE)
|
|
@@ -8439,9 +8445,19 @@ declare class TradeApi implements TradeApiInterface {
|
|
|
8439
8445
|
private localVarAxiosParamCreator;
|
|
8440
8446
|
constructor(configuration: ConfigurationRestAPI);
|
|
8441
8447
|
/**
|
|
8442
|
-
*
|
|
8448
|
+
* - Binance Margin offers low-latency trading through a [special key](https://www.binance.com/en/support/faq/frequently-asked-questions-on-margin-special-api-key-3208663e900d4d2e9fec4140e1832f4e), available exclusively to users with VIP level 4 or higher.
|
|
8449
|
+
* - If you are VIP level 3 or below, please contact your VIP manager for eligibility criterias.**
|
|
8450
|
+
*
|
|
8451
|
+
**Supported Products:**
|
|
8452
|
+
*
|
|
8453
|
+
* - Cross Margin
|
|
8454
|
+
* - Isolated Margin
|
|
8455
|
+
* - Portfolio Margin Pro
|
|
8456
|
+
* - Cross Margin Pro (Additional agreement required and subject to meeting eligibility criteria)
|
|
8443
8457
|
*
|
|
8444
|
-
**
|
|
8458
|
+
**Unsupported Products:**
|
|
8459
|
+
*
|
|
8460
|
+
* - Portfolio Margin
|
|
8445
8461
|
*
|
|
8446
8462
|
* We support several types of API keys:
|
|
8447
8463
|
*
|
|
@@ -8451,10 +8467,6 @@ declare class TradeApi implements TradeApiInterface {
|
|
|
8451
8467
|
*
|
|
8452
8468
|
* We recommend to **use Ed25519 API keys** as it should provide the best performance and security out of all supported key types. We accept PKCS#8 (BEGIN PUBLIC KEY). For how to generate an RSA key pair to send API requests on Binance. Please refer to the document below [FAQ](https://www.binance.com/en/support/faq/how-to-generate-an-rsa-key-pair-to-send-api-requests-on-binance-2b79728f331e43079b27440d9d15c5db) .
|
|
8453
8469
|
*
|
|
8454
|
-
* Read [REST API](https://github.com/binance/binance-spot-api-docs/blob/master/rest-api.md#signed-trade-and-user_data-endpoint-security) or [WebSocket API](https://github.com/binance/binance-spot-api-docs/blob/master/web-socket-api.md#request-security) documentation to learn how to use different API keys
|
|
8455
|
-
*
|
|
8456
|
-
* You need to enable Permits “Enable Spot & Margin Trading” option for the API Key which requests this endpoint.
|
|
8457
|
-
*
|
|
8458
8470
|
* Weight: 1(UID)
|
|
8459
8471
|
*
|
|
8460
8472
|
* @summary Create Special Key(Low-Latency Trading)(TRADE)
|
|
@@ -8898,6 +8910,7 @@ interface TradeDataStreamApiInterface {
|
|
|
8898
8910
|
* @summary Close Isolated Margin User Data Stream (USER_STREAM)
|
|
8899
8911
|
* @param {CloseIsolatedMarginUserDataStreamRequest} requestParameters Request parameters.
|
|
8900
8912
|
*
|
|
8913
|
+
* @deprecated
|
|
8901
8914
|
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
8902
8915
|
* @memberof TradeDataStreamApiInterface
|
|
8903
8916
|
*/
|
|
@@ -8910,6 +8923,7 @@ interface TradeDataStreamApiInterface {
|
|
|
8910
8923
|
* @summary Close Margin User Data Stream (USER_STREAM)
|
|
8911
8924
|
* @param {CloseMarginUserDataStreamRequest} requestParameters Request parameters.
|
|
8912
8925
|
*
|
|
8926
|
+
* @deprecated
|
|
8913
8927
|
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
8914
8928
|
* @memberof TradeDataStreamApiInterface
|
|
8915
8929
|
*/
|
|
@@ -8922,6 +8936,7 @@ interface TradeDataStreamApiInterface {
|
|
|
8922
8936
|
* @summary Keepalive Isolated Margin User Data Stream (USER_STREAM)
|
|
8923
8937
|
* @param {KeepaliveIsolatedMarginUserDataStreamRequest} requestParameters Request parameters.
|
|
8924
8938
|
*
|
|
8939
|
+
* @deprecated
|
|
8925
8940
|
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
8926
8941
|
* @memberof TradeDataStreamApiInterface
|
|
8927
8942
|
*/
|
|
@@ -8934,6 +8949,7 @@ interface TradeDataStreamApiInterface {
|
|
|
8934
8949
|
* @summary Keepalive Margin User Data Stream (USER_STREAM)
|
|
8935
8950
|
* @param {KeepaliveMarginUserDataStreamRequest} requestParameters Request parameters.
|
|
8936
8951
|
*
|
|
8952
|
+
* @deprecated
|
|
8937
8953
|
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
8938
8954
|
* @memberof TradeDataStreamApiInterface
|
|
8939
8955
|
*/
|
|
@@ -8946,6 +8962,7 @@ interface TradeDataStreamApiInterface {
|
|
|
8946
8962
|
* @summary Start Isolated Margin User Data Stream (USER_STREAM)
|
|
8947
8963
|
* @param {StartIsolatedMarginUserDataStreamRequest} requestParameters Request parameters.
|
|
8948
8964
|
*
|
|
8965
|
+
* @deprecated
|
|
8949
8966
|
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
8950
8967
|
* @memberof TradeDataStreamApiInterface
|
|
8951
8968
|
*/
|
|
@@ -8957,6 +8974,7 @@ interface TradeDataStreamApiInterface {
|
|
|
8957
8974
|
*
|
|
8958
8975
|
* @summary Start Margin User Data Stream (USER_STREAM)
|
|
8959
8976
|
*
|
|
8977
|
+
* @deprecated
|
|
8960
8978
|
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
8961
8979
|
* @memberof TradeDataStreamApiInterface
|
|
8962
8980
|
*/
|
|
@@ -9340,6 +9358,7 @@ declare class RestAPI {
|
|
|
9340
9358
|
*
|
|
9341
9359
|
* @summary Adjust cross margin max leverage (USER_DATA)
|
|
9342
9360
|
* @param {AdjustCrossMarginMaxLeverageRequest} requestParameters Request parameters.
|
|
9361
|
+
*
|
|
9343
9362
|
* @returns {Promise<RestApiResponse<AdjustCrossMarginMaxLeverageResponse>>}
|
|
9344
9363
|
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
9345
9364
|
* @see {@link https://developers.binance.com/docs/margin_trading/account/Adjust-cross-margin-max-leverage Binance API Documentation}
|
|
@@ -9353,6 +9372,7 @@ declare class RestAPI {
|
|
|
9353
9372
|
*
|
|
9354
9373
|
* @summary Disable Isolated Margin Account (TRADE)
|
|
9355
9374
|
* @param {DisableIsolatedMarginAccountRequest} requestParameters Request parameters.
|
|
9375
|
+
*
|
|
9356
9376
|
* @returns {Promise<RestApiResponse<DisableIsolatedMarginAccountResponse>>}
|
|
9357
9377
|
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
9358
9378
|
* @see {@link https://developers.binance.com/docs/margin_trading/account/Disable-Isolated-Margin-Account Binance API Documentation}
|
|
@@ -9365,6 +9385,7 @@ declare class RestAPI {
|
|
|
9365
9385
|
*
|
|
9366
9386
|
* @summary Enable Isolated Margin Account (TRADE)
|
|
9367
9387
|
* @param {EnableIsolatedMarginAccountRequest} requestParameters Request parameters.
|
|
9388
|
+
*
|
|
9368
9389
|
* @returns {Promise<RestApiResponse<EnableIsolatedMarginAccountResponse>>}
|
|
9369
9390
|
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
9370
9391
|
* @see {@link https://developers.binance.com/docs/margin_trading/account/Enable-Isolated-Margin-Account Binance API Documentation}
|
|
@@ -9377,6 +9398,7 @@ declare class RestAPI {
|
|
|
9377
9398
|
*
|
|
9378
9399
|
* @summary Get BNB Burn Status (USER_DATA)
|
|
9379
9400
|
* @param {GetBnbBurnStatusRequest} requestParameters Request parameters.
|
|
9401
|
+
*
|
|
9380
9402
|
* @returns {Promise<RestApiResponse<GetBnbBurnStatusResponse>>}
|
|
9381
9403
|
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
9382
9404
|
* @see {@link https://developers.binance.com/docs/margin_trading/account/Get-BNB-Burn-Status Binance API Documentation}
|
|
@@ -9389,6 +9411,7 @@ declare class RestAPI {
|
|
|
9389
9411
|
*
|
|
9390
9412
|
* @summary Get Summary of Margin account (USER_DATA)
|
|
9391
9413
|
* @param {GetSummaryOfMarginAccountRequest} requestParameters Request parameters.
|
|
9414
|
+
*
|
|
9392
9415
|
* @returns {Promise<RestApiResponse<GetSummaryOfMarginAccountResponse>>}
|
|
9393
9416
|
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
9394
9417
|
* @see {@link https://developers.binance.com/docs/margin_trading/account/Get-Summary-of-Margin-account Binance API Documentation}
|
|
@@ -9401,6 +9424,7 @@ declare class RestAPI {
|
|
|
9401
9424
|
*
|
|
9402
9425
|
* @summary Query Cross Isolated Margin Capital Flow (USER_DATA)
|
|
9403
9426
|
* @param {QueryCrossIsolatedMarginCapitalFlowRequest} requestParameters Request parameters.
|
|
9427
|
+
*
|
|
9404
9428
|
* @returns {Promise<RestApiResponse<QueryCrossIsolatedMarginCapitalFlowResponse>>}
|
|
9405
9429
|
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
9406
9430
|
* @see {@link https://developers.binance.com/docs/margin_trading/account/Query-Cross-Isolated-Margin-Capital-Flow Binance API Documentation}
|
|
@@ -9413,6 +9437,7 @@ declare class RestAPI {
|
|
|
9413
9437
|
*
|
|
9414
9438
|
* @summary Query Cross Margin Account Details (USER_DATA)
|
|
9415
9439
|
* @param {QueryCrossMarginAccountDetailsRequest} requestParameters Request parameters.
|
|
9440
|
+
*
|
|
9416
9441
|
* @returns {Promise<RestApiResponse<QueryCrossMarginAccountDetailsResponse>>}
|
|
9417
9442
|
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
9418
9443
|
* @see {@link https://developers.binance.com/docs/margin_trading/account/Query-Cross-Margin-Account-Details Binance API Documentation}
|
|
@@ -9425,6 +9450,7 @@ declare class RestAPI {
|
|
|
9425
9450
|
*
|
|
9426
9451
|
* @summary Query Cross Margin Fee Data (USER_DATA)
|
|
9427
9452
|
* @param {QueryCrossMarginFeeDataRequest} requestParameters Request parameters.
|
|
9453
|
+
*
|
|
9428
9454
|
* @returns {Promise<RestApiResponse<QueryCrossMarginFeeDataResponse>>}
|
|
9429
9455
|
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
9430
9456
|
* @see {@link https://developers.binance.com/docs/margin_trading/account/Query-Cross-Margin-Fee-Data Binance API Documentation}
|
|
@@ -9437,6 +9463,7 @@ declare class RestAPI {
|
|
|
9437
9463
|
*
|
|
9438
9464
|
* @summary Query Enabled Isolated Margin Account Limit (USER_DATA)
|
|
9439
9465
|
* @param {QueryEnabledIsolatedMarginAccountLimitRequest} requestParameters Request parameters.
|
|
9466
|
+
*
|
|
9440
9467
|
* @returns {Promise<RestApiResponse<QueryEnabledIsolatedMarginAccountLimitResponse>>}
|
|
9441
9468
|
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
9442
9469
|
* @see {@link https://developers.binance.com/docs/margin_trading/account/Query-Enabled-Isolated-Margin-Account-Limit Binance API Documentation}
|
|
@@ -9452,6 +9479,7 @@ declare class RestAPI {
|
|
|
9452
9479
|
*
|
|
9453
9480
|
* @summary Query Isolated Margin Account Info (USER_DATA)
|
|
9454
9481
|
* @param {QueryIsolatedMarginAccountInfoRequest} requestParameters Request parameters.
|
|
9482
|
+
*
|
|
9455
9483
|
* @returns {Promise<RestApiResponse<QueryIsolatedMarginAccountInfoResponse>>}
|
|
9456
9484
|
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
9457
9485
|
* @see {@link https://developers.binance.com/docs/margin_trading/account/Query-Isolated-Margin-Account-Info Binance API Documentation}
|
|
@@ -9464,6 +9492,7 @@ declare class RestAPI {
|
|
|
9464
9492
|
*
|
|
9465
9493
|
* @summary Query Isolated Margin Fee Data (USER_DATA)
|
|
9466
9494
|
* @param {QueryIsolatedMarginFeeDataRequest} requestParameters Request parameters.
|
|
9495
|
+
*
|
|
9467
9496
|
* @returns {Promise<RestApiResponse<QueryIsolatedMarginFeeDataResponse>>}
|
|
9468
9497
|
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
9469
9498
|
* @see {@link https://developers.binance.com/docs/margin_trading/account/Query-Isolated-Margin-Fee-Data Binance API Documentation}
|
|
@@ -9476,6 +9505,7 @@ declare class RestAPI {
|
|
|
9476
9505
|
*
|
|
9477
9506
|
* @summary Get future hourly interest rate (USER_DATA)
|
|
9478
9507
|
* @param {GetFutureHourlyInterestRateRequest} requestParameters Request parameters.
|
|
9508
|
+
*
|
|
9479
9509
|
* @returns {Promise<RestApiResponse<GetFutureHourlyInterestRateResponse>>}
|
|
9480
9510
|
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
9481
9511
|
* @see {@link https://developers.binance.com/docs/margin_trading/borrow-and-repay/Get-a-future-hourly-interest-rate Binance API Documentation}
|
|
@@ -9501,6 +9531,7 @@ declare class RestAPI {
|
|
|
9501
9531
|
*
|
|
9502
9532
|
* @summary Get Interest History (USER_DATA)
|
|
9503
9533
|
* @param {GetInterestHistoryRequest} requestParameters Request parameters.
|
|
9534
|
+
*
|
|
9504
9535
|
* @returns {Promise<RestApiResponse<GetInterestHistoryResponse>>}
|
|
9505
9536
|
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
9506
9537
|
* @see {@link https://developers.binance.com/docs/margin_trading/borrow-and-repay/Get-Interest-History Binance API Documentation}
|
|
@@ -9513,6 +9544,7 @@ declare class RestAPI {
|
|
|
9513
9544
|
*
|
|
9514
9545
|
* @summary Margin account borrow/repay(MARGIN)
|
|
9515
9546
|
* @param {MarginAccountBorrowRepayRequest} requestParameters Request parameters.
|
|
9547
|
+
*
|
|
9516
9548
|
* @returns {Promise<RestApiResponse<MarginAccountBorrowRepayResponse>>}
|
|
9517
9549
|
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
9518
9550
|
* @see {@link https://developers.binance.com/docs/margin_trading/borrow-and-repay/Margin-account-borrow-repay Binance API Documentation}
|
|
@@ -9530,6 +9562,7 @@ declare class RestAPI {
|
|
|
9530
9562
|
*
|
|
9531
9563
|
* @summary Query borrow/repay records in Margin account(USER_DATA)
|
|
9532
9564
|
* @param {QueryBorrowRepayRecordsInMarginAccountRequest} requestParameters Request parameters.
|
|
9565
|
+
*
|
|
9533
9566
|
* @returns {Promise<RestApiResponse<QueryBorrowRepayRecordsInMarginAccountResponse>>}
|
|
9534
9567
|
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
9535
9568
|
* @see {@link https://developers.binance.com/docs/margin_trading/borrow-and-repay/Query-Borrow-Repay Binance API Documentation}
|
|
@@ -9542,6 +9575,7 @@ declare class RestAPI {
|
|
|
9542
9575
|
*
|
|
9543
9576
|
* @summary Query Margin Interest Rate History (USER_DATA)
|
|
9544
9577
|
* @param {QueryMarginInterestRateHistoryRequest} requestParameters Request parameters.
|
|
9578
|
+
*
|
|
9545
9579
|
* @returns {Promise<RestApiResponse<QueryMarginInterestRateHistoryResponse>>}
|
|
9546
9580
|
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
9547
9581
|
* @see {@link https://developers.binance.com/docs/margin_trading/borrow-and-repay/Query-Margin-Interest-Rate-History Binance API Documentation}
|
|
@@ -9557,6 +9591,7 @@ declare class RestAPI {
|
|
|
9557
9591
|
*
|
|
9558
9592
|
* @summary Query Max Borrow (USER_DATA)
|
|
9559
9593
|
* @param {QueryMaxBorrowRequest} requestParameters Request parameters.
|
|
9594
|
+
*
|
|
9560
9595
|
* @returns {Promise<RestApiResponse<QueryMaxBorrowResponse>>}
|
|
9561
9596
|
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
9562
9597
|
* @see {@link https://developers.binance.com/docs/margin_trading/borrow-and-repay/Query-Max-Borrow Binance API Documentation}
|
|
@@ -9568,6 +9603,7 @@ declare class RestAPI {
|
|
|
9568
9603
|
* Weight: 100(IP)
|
|
9569
9604
|
*
|
|
9570
9605
|
* @summary Cross margin collateral ratio (MARKET_DATA)
|
|
9606
|
+
*
|
|
9571
9607
|
* @returns {Promise<RestApiResponse<CrossMarginCollateralRatioResponse>>}
|
|
9572
9608
|
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
9573
9609
|
* @see {@link https://developers.binance.com/docs/margin_trading/market-data/Cross-margin-collateral-ratio Binance API Documentation}
|
|
@@ -9580,6 +9616,7 @@ declare class RestAPI {
|
|
|
9580
9616
|
*
|
|
9581
9617
|
* @summary Get All Cross Margin Pairs (MARKET_DATA)
|
|
9582
9618
|
* @param {GetAllCrossMarginPairsRequest} requestParameters Request parameters.
|
|
9619
|
+
*
|
|
9583
9620
|
* @returns {Promise<RestApiResponse<GetAllCrossMarginPairsResponse>>}
|
|
9584
9621
|
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
9585
9622
|
* @see {@link https://developers.binance.com/docs/margin_trading/market-data/Get-All-Cross-Margin-Pairs Binance API Documentation}
|
|
@@ -9592,6 +9629,7 @@ declare class RestAPI {
|
|
|
9592
9629
|
*
|
|
9593
9630
|
* @summary Get All Isolated Margin Symbol(MARKET_DATA)
|
|
9594
9631
|
* @param {GetAllIsolatedMarginSymbolRequest} requestParameters Request parameters.
|
|
9632
|
+
*
|
|
9595
9633
|
* @returns {Promise<RestApiResponse<GetAllIsolatedMarginSymbolResponse>>}
|
|
9596
9634
|
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
9597
9635
|
* @see {@link https://developers.binance.com/docs/margin_trading/market-data/Get-All-Isolated-Margin-Symbol Binance API Documentation}
|
|
@@ -9604,6 +9642,7 @@ declare class RestAPI {
|
|
|
9604
9642
|
*
|
|
9605
9643
|
* @summary Get All Margin Assets (MARKET_DATA)
|
|
9606
9644
|
* @param {GetAllMarginAssetsRequest} requestParameters Request parameters.
|
|
9645
|
+
*
|
|
9607
9646
|
* @returns {Promise<RestApiResponse<GetAllMarginAssetsResponse>>}
|
|
9608
9647
|
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
9609
9648
|
* @see {@link https://developers.binance.com/docs/margin_trading/market-data/Get-All-Margin-Assets Binance API Documentation}
|
|
@@ -9616,6 +9655,7 @@ declare class RestAPI {
|
|
|
9616
9655
|
*
|
|
9617
9656
|
* @summary Get Delist Schedule (MARKET_DATA)
|
|
9618
9657
|
* @param {GetDelistScheduleRequest} requestParameters Request parameters.
|
|
9658
|
+
*
|
|
9619
9659
|
* @returns {Promise<RestApiResponse<GetDelistScheduleResponse>>}
|
|
9620
9660
|
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
9621
9661
|
* @see {@link https://developers.binance.com/docs/margin_trading/market-data/Get-Delist-Schedule Binance API Documentation}
|
|
@@ -9632,6 +9672,7 @@ declare class RestAPI {
|
|
|
9632
9672
|
* Weight: 1
|
|
9633
9673
|
*
|
|
9634
9674
|
* @summary Get Limit Price Pairs(MARKET_DATA)
|
|
9675
|
+
*
|
|
9635
9676
|
* @returns {Promise<RestApiResponse<GetLimitPricePairsResponse>>}
|
|
9636
9677
|
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
9637
9678
|
* @see {@link https://developers.binance.com/docs/margin_trading/market-data/Get-Limit-Price-Pairs Binance API Documentation}
|
|
@@ -9644,6 +9685,7 @@ declare class RestAPI {
|
|
|
9644
9685
|
*
|
|
9645
9686
|
* @summary Get list Schedule (MARKET_DATA)
|
|
9646
9687
|
* @param {GetListScheduleRequest} requestParameters Request parameters.
|
|
9688
|
+
*
|
|
9647
9689
|
* @returns {Promise<RestApiResponse<GetListScheduleResponse>>}
|
|
9648
9690
|
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
9649
9691
|
* @see {@link https://developers.binance.com/docs/margin_trading/market-data/Get-list-Schedule Binance API Documentation}
|
|
@@ -9656,6 +9698,7 @@ declare class RestAPI {
|
|
|
9656
9698
|
*
|
|
9657
9699
|
* @summary Query Isolated Margin Tier Data (USER_DATA)
|
|
9658
9700
|
* @param {QueryIsolatedMarginTierDataRequest} requestParameters Request parameters.
|
|
9701
|
+
*
|
|
9659
9702
|
* @returns {Promise<RestApiResponse<QueryIsolatedMarginTierDataResponse>>}
|
|
9660
9703
|
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
9661
9704
|
* @see {@link https://developers.binance.com/docs/margin_trading/market-data/Query-Isolated-Margin-Tier-Data Binance API Documentation}
|
|
@@ -9667,6 +9710,7 @@ declare class RestAPI {
|
|
|
9667
9710
|
* Weight: 1
|
|
9668
9711
|
*
|
|
9669
9712
|
* @summary Query Liability Coin Leverage Bracket in Cross Margin Pro Mode(MARKET_DATA)
|
|
9713
|
+
*
|
|
9670
9714
|
* @returns {Promise<RestApiResponse<QueryLiabilityCoinLeverageBracketInCrossMarginProModeResponse>>}
|
|
9671
9715
|
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
9672
9716
|
* @see {@link https://developers.binance.com/docs/margin_trading/market-data/Query-Liability-Coin-Leverage-Bracket-in-Cross-Margin-Pro-Mode Binance API Documentation}
|
|
@@ -9679,6 +9723,7 @@ declare class RestAPI {
|
|
|
9679
9723
|
*
|
|
9680
9724
|
* @summary Query Margin Available Inventory(USER_DATA)
|
|
9681
9725
|
* @param {QueryMarginAvailableInventoryRequest} requestParameters Request parameters.
|
|
9726
|
+
*
|
|
9682
9727
|
* @returns {Promise<RestApiResponse<QueryMarginAvailableInventoryResponse>>}
|
|
9683
9728
|
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
9684
9729
|
* @see {@link https://developers.binance.com/docs/margin_trading/market-data/Query-margin-avaliable-inventory Binance API Documentation}
|
|
@@ -9691,6 +9736,7 @@ declare class RestAPI {
|
|
|
9691
9736
|
*
|
|
9692
9737
|
* @summary Query Margin PriceIndex (MARKET_DATA)
|
|
9693
9738
|
* @param {QueryMarginPriceindexRequest} requestParameters Request parameters.
|
|
9739
|
+
*
|
|
9694
9740
|
* @returns {Promise<RestApiResponse<QueryMarginPriceindexResponse>>}
|
|
9695
9741
|
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
9696
9742
|
* @see {@link https://developers.binance.com/docs/margin_trading/market-data/Query-Margin-PriceIndex Binance API Documentation}
|
|
@@ -9702,6 +9748,7 @@ declare class RestAPI {
|
|
|
9702
9748
|
* Weight: 3000
|
|
9703
9749
|
*
|
|
9704
9750
|
* @summary Close User Data Stream (USER_STREAM)
|
|
9751
|
+
*
|
|
9705
9752
|
* @returns {Promise<RestApiResponse<void>>}
|
|
9706
9753
|
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
9707
9754
|
* @see {@link https://developers.binance.com/docs/margin_trading/risk-data-stream/Close-User-Data-Stream Binance API Documentation}
|
|
@@ -9714,6 +9761,7 @@ declare class RestAPI {
|
|
|
9714
9761
|
*
|
|
9715
9762
|
* @summary Keepalive User Data Stream (USER_STREAM)
|
|
9716
9763
|
* @param {KeepaliveUserDataStreamRequest} requestParameters Request parameters.
|
|
9764
|
+
*
|
|
9717
9765
|
* @returns {Promise<RestApiResponse<void>>}
|
|
9718
9766
|
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
9719
9767
|
* @see {@link https://developers.binance.com/docs/margin_trading/risk-data-stream/Keepalive-User-Data-Stream Binance API Documentation}
|
|
@@ -9725,15 +9773,26 @@ declare class RestAPI {
|
|
|
9725
9773
|
* Weight: 1
|
|
9726
9774
|
*
|
|
9727
9775
|
* @summary Start User Data Stream (USER_STREAM)
|
|
9776
|
+
*
|
|
9728
9777
|
* @returns {Promise<RestApiResponse<StartUserDataStreamResponse>>}
|
|
9729
9778
|
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
9730
9779
|
* @see {@link https://developers.binance.com/docs/margin_trading/risk-data-stream/Start-User-Data-Stream Binance API Documentation}
|
|
9731
9780
|
*/
|
|
9732
9781
|
startUserDataStream(): Promise<RestApiResponse<StartUserDataStreamResponse>>;
|
|
9733
9782
|
/**
|
|
9734
|
-
*
|
|
9783
|
+
* - Binance Margin offers low-latency trading through a [special key](https://www.binance.com/en/support/faq/frequently-asked-questions-on-margin-special-api-key-3208663e900d4d2e9fec4140e1832f4e), available exclusively to users with VIP level 4 or higher.
|
|
9784
|
+
* - If you are VIP level 3 or below, please contact your VIP manager for eligibility criterias.**
|
|
9735
9785
|
*
|
|
9736
|
-
**
|
|
9786
|
+
**Supported Products:**
|
|
9787
|
+
*
|
|
9788
|
+
* - Cross Margin
|
|
9789
|
+
* - Isolated Margin
|
|
9790
|
+
* - Portfolio Margin Pro
|
|
9791
|
+
* - Cross Margin Pro (Additional agreement required and subject to meeting eligibility criteria)
|
|
9792
|
+
*
|
|
9793
|
+
**Unsupported Products:**
|
|
9794
|
+
*
|
|
9795
|
+
* - Portfolio Margin
|
|
9737
9796
|
*
|
|
9738
9797
|
* We support several types of API keys:
|
|
9739
9798
|
*
|
|
@@ -9743,14 +9802,11 @@ declare class RestAPI {
|
|
|
9743
9802
|
*
|
|
9744
9803
|
* We recommend to **use Ed25519 API keys** as it should provide the best performance and security out of all supported key types. We accept PKCS#8 (BEGIN PUBLIC KEY). For how to generate an RSA key pair to send API requests on Binance. Please refer to the document below [FAQ](https://www.binance.com/en/support/faq/how-to-generate-an-rsa-key-pair-to-send-api-requests-on-binance-2b79728f331e43079b27440d9d15c5db) .
|
|
9745
9804
|
*
|
|
9746
|
-
* Read [REST API](https://github.com/binance/binance-spot-api-docs/blob/master/rest-api.md#signed-trade-and-user_data-endpoint-security) or [WebSocket API](https://github.com/binance/binance-spot-api-docs/blob/master/web-socket-api.md#request-security) documentation to learn how to use different API keys
|
|
9747
|
-
*
|
|
9748
|
-
* You need to enable Permits “Enable Spot & Margin Trading” option for the API Key which requests this endpoint.
|
|
9749
|
-
*
|
|
9750
9805
|
* Weight: 1(UID)
|
|
9751
9806
|
*
|
|
9752
9807
|
* @summary Create Special Key(Low-Latency Trading)(TRADE)
|
|
9753
9808
|
* @param {CreateSpecialKeyRequest} requestParameters Request parameters.
|
|
9809
|
+
*
|
|
9754
9810
|
* @returns {Promise<RestApiResponse<CreateSpecialKeyResponse>>}
|
|
9755
9811
|
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
9756
9812
|
* @see {@link https://developers.binance.com/docs/margin_trading/trade/Create-Special-Key-of-Low-Latency-Trading Binance API Documentation}
|
|
@@ -9767,6 +9823,7 @@ declare class RestAPI {
|
|
|
9767
9823
|
*
|
|
9768
9824
|
* @summary Delete Special Key(Low-Latency Trading)(TRADE)
|
|
9769
9825
|
* @param {DeleteSpecialKeyRequest} requestParameters Request parameters.
|
|
9826
|
+
*
|
|
9770
9827
|
* @returns {Promise<RestApiResponse<void>>}
|
|
9771
9828
|
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
9772
9829
|
* @see {@link https://developers.binance.com/docs/margin_trading/trade/Delete-Special-Key-of-Low-Latency-Trading Binance API Documentation}
|
|
@@ -9781,6 +9838,7 @@ declare class RestAPI {
|
|
|
9781
9838
|
*
|
|
9782
9839
|
* @summary Edit ip for Special Key(Low-Latency Trading)(TRADE)
|
|
9783
9840
|
* @param {EditIpForSpecialKeyRequest} requestParameters Request parameters.
|
|
9841
|
+
*
|
|
9784
9842
|
* @returns {Promise<RestApiResponse<void>>}
|
|
9785
9843
|
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
9786
9844
|
* @see {@link https://developers.binance.com/docs/margin_trading/trade/Edit-ip-for-Special-Key-of-Low-Latency-Trading Binance API Documentation}
|
|
@@ -9795,6 +9853,7 @@ declare class RestAPI {
|
|
|
9795
9853
|
*
|
|
9796
9854
|
* @summary Get Force Liquidation Record (USER_DATA)
|
|
9797
9855
|
* @param {GetForceLiquidationRecordRequest} requestParameters Request parameters.
|
|
9856
|
+
*
|
|
9798
9857
|
* @returns {Promise<RestApiResponse<GetForceLiquidationRecordResponse>>}
|
|
9799
9858
|
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
9800
9859
|
* @see {@link https://developers.binance.com/docs/margin_trading/trade/Get-Force-Liquidation-Record Binance API Documentation}
|
|
@@ -9807,6 +9866,7 @@ declare class RestAPI {
|
|
|
9807
9866
|
*
|
|
9808
9867
|
* @summary Get Small Liability Exchange Coin List (USER_DATA)
|
|
9809
9868
|
* @param {GetSmallLiabilityExchangeCoinListRequest} requestParameters Request parameters.
|
|
9869
|
+
*
|
|
9810
9870
|
* @returns {Promise<RestApiResponse<GetSmallLiabilityExchangeCoinListResponse>>}
|
|
9811
9871
|
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
9812
9872
|
* @see {@link https://developers.binance.com/docs/margin_trading/trade/Get-Small-Liability-Exchange-Coin-List Binance API Documentation}
|
|
@@ -9819,6 +9879,7 @@ declare class RestAPI {
|
|
|
9819
9879
|
*
|
|
9820
9880
|
* @summary Get Small Liability Exchange History (USER_DATA)
|
|
9821
9881
|
* @param {GetSmallLiabilityExchangeHistoryRequest} requestParameters Request parameters.
|
|
9882
|
+
*
|
|
9822
9883
|
* @returns {Promise<RestApiResponse<GetSmallLiabilityExchangeHistoryResponse>>}
|
|
9823
9884
|
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
9824
9885
|
* @see {@link https://developers.binance.com/docs/margin_trading/trade/Get-Small-Liability-Exchange-History Binance API Documentation}
|
|
@@ -9832,6 +9893,7 @@ declare class RestAPI {
|
|
|
9832
9893
|
*
|
|
9833
9894
|
* @summary Margin Account Cancel all Open Orders on a Symbol (TRADE)
|
|
9834
9895
|
* @param {MarginAccountCancelAllOpenOrdersOnASymbolRequest} requestParameters Request parameters.
|
|
9896
|
+
*
|
|
9835
9897
|
* @returns {Promise<RestApiResponse<MarginAccountCancelAllOpenOrdersOnASymbolResponse>>}
|
|
9836
9898
|
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
9837
9899
|
* @see {@link https://developers.binance.com/docs/margin_trading/trade/Margin-Account-Cancel-All-Open-Orders Binance API Documentation}
|
|
@@ -9846,6 +9908,7 @@ declare class RestAPI {
|
|
|
9846
9908
|
*
|
|
9847
9909
|
* @summary Margin Account Cancel OCO (TRADE)
|
|
9848
9910
|
* @param {MarginAccountCancelOcoRequest} requestParameters Request parameters.
|
|
9911
|
+
*
|
|
9849
9912
|
* @returns {Promise<RestApiResponse<MarginAccountCancelOcoResponse>>}
|
|
9850
9913
|
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
9851
9914
|
* @see {@link https://developers.binance.com/docs/margin_trading/trade/Margin-Account-Cancel-OCO Binance API Documentation}
|
|
@@ -9860,6 +9923,7 @@ declare class RestAPI {
|
|
|
9860
9923
|
*
|
|
9861
9924
|
* @summary Margin Account Cancel Order (TRADE)
|
|
9862
9925
|
* @param {MarginAccountCancelOrderRequest} requestParameters Request parameters.
|
|
9926
|
+
*
|
|
9863
9927
|
* @returns {Promise<RestApiResponse<MarginAccountCancelOrderResponse>>}
|
|
9864
9928
|
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
9865
9929
|
* @see {@link https://developers.binance.com/docs/margin_trading/trade/Margin-Account-Cancel-Order Binance API Documentation}
|
|
@@ -9874,6 +9938,7 @@ declare class RestAPI {
|
|
|
9874
9938
|
*
|
|
9875
9939
|
* @summary Margin Account New OCO (TRADE)
|
|
9876
9940
|
* @param {MarginAccountNewOcoRequest} requestParameters Request parameters.
|
|
9941
|
+
*
|
|
9877
9942
|
* @returns {Promise<RestApiResponse<MarginAccountNewOcoResponse>>}
|
|
9878
9943
|
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
9879
9944
|
* @see {@link https://developers.binance.com/docs/margin_trading/trade/Margin-Account-New-OCO Binance API Documentation}
|
|
@@ -9888,6 +9953,7 @@ declare class RestAPI {
|
|
|
9888
9953
|
*
|
|
9889
9954
|
* @summary Margin Account New Order (TRADE)
|
|
9890
9955
|
* @param {MarginAccountNewOrderRequest} requestParameters Request parameters.
|
|
9956
|
+
*
|
|
9891
9957
|
* @returns {Promise<RestApiResponse<MarginAccountNewOrderResponse>>}
|
|
9892
9958
|
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
9893
9959
|
* @see {@link https://developers.binance.com/docs/margin_trading/trade/Margin-Account-New-Order Binance API Documentation}
|
|
@@ -9910,6 +9976,7 @@ declare class RestAPI {
|
|
|
9910
9976
|
*
|
|
9911
9977
|
* @summary Margin Account New OTO (TRADE)
|
|
9912
9978
|
* @param {MarginAccountNewOtoRequest} requestParameters Request parameters.
|
|
9979
|
+
*
|
|
9913
9980
|
* @returns {Promise<RestApiResponse<MarginAccountNewOtoResponse>>}
|
|
9914
9981
|
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
9915
9982
|
* @see {@link https://developers.binance.com/docs/margin_trading/trade/Margin-Account-New-OTO Binance API Documentation}
|
|
@@ -9932,6 +9999,7 @@ declare class RestAPI {
|
|
|
9932
9999
|
*
|
|
9933
10000
|
* @summary Margin Account New OTOCO (TRADE)
|
|
9934
10001
|
* @param {MarginAccountNewOtocoRequest} requestParameters Request parameters.
|
|
10002
|
+
*
|
|
9935
10003
|
* @returns {Promise<RestApiResponse<MarginAccountNewOtocoResponse>>}
|
|
9936
10004
|
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
9937
10005
|
* @see {@link https://developers.binance.com/docs/margin_trading/trade/Margin-Account-New-OTOCO Binance API Documentation}
|
|
@@ -9947,6 +10015,7 @@ declare class RestAPI {
|
|
|
9947
10015
|
*
|
|
9948
10016
|
* @summary Margin Manual Liquidation(MARGIN)
|
|
9949
10017
|
* @param {MarginManualLiquidationRequest} requestParameters Request parameters.
|
|
10018
|
+
*
|
|
9950
10019
|
* @returns {Promise<RestApiResponse<MarginManualLiquidationResponse>>}
|
|
9951
10020
|
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
9952
10021
|
* @see {@link https://developers.binance.com/docs/margin_trading/trade/Margin-Manual-Liquidation Binance API Documentation}
|
|
@@ -9959,6 +10028,7 @@ declare class RestAPI {
|
|
|
9959
10028
|
*
|
|
9960
10029
|
* @summary Query Current Margin Order Count Usage (TRADE)
|
|
9961
10030
|
* @param {QueryCurrentMarginOrderCountUsageRequest} requestParameters Request parameters.
|
|
10031
|
+
*
|
|
9962
10032
|
* @returns {Promise<RestApiResponse<QueryCurrentMarginOrderCountUsageResponse>>}
|
|
9963
10033
|
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
9964
10034
|
* @see {@link https://developers.binance.com/docs/margin_trading/trade/Query-Current-Margin-Order-Count-Usage Binance API Documentation}
|
|
@@ -9971,6 +10041,7 @@ declare class RestAPI {
|
|
|
9971
10041
|
*
|
|
9972
10042
|
* @summary Query Margin Account\'s all OCO (USER_DATA)
|
|
9973
10043
|
* @param {QueryMarginAccountsAllOcoRequest} requestParameters Request parameters.
|
|
10044
|
+
*
|
|
9974
10045
|
* @returns {Promise<RestApiResponse<QueryMarginAccountsAllOcoResponse>>}
|
|
9975
10046
|
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
9976
10047
|
* @see {@link https://developers.binance.com/docs/margin_trading/trade/Query-Margin-Account-all-OCO Binance API Documentation}
|
|
@@ -9987,6 +10058,7 @@ declare class RestAPI {
|
|
|
9987
10058
|
*
|
|
9988
10059
|
* @summary Query Margin Account\'s All Orders (USER_DATA)
|
|
9989
10060
|
* @param {QueryMarginAccountsAllOrdersRequest} requestParameters Request parameters.
|
|
10061
|
+
*
|
|
9990
10062
|
* @returns {Promise<RestApiResponse<QueryMarginAccountsAllOrdersResponse>>}
|
|
9991
10063
|
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
9992
10064
|
* @see {@link https://developers.binance.com/docs/margin_trading/trade/Query-Margin-Account-All-Orders Binance API Documentation}
|
|
@@ -9999,6 +10071,7 @@ declare class RestAPI {
|
|
|
9999
10071
|
*
|
|
10000
10072
|
* @summary Query Margin Account\'s OCO (USER_DATA)
|
|
10001
10073
|
* @param {QueryMarginAccountsOcoRequest} requestParameters Request parameters.
|
|
10074
|
+
*
|
|
10002
10075
|
* @returns {Promise<RestApiResponse<QueryMarginAccountsOcoResponse>>}
|
|
10003
10076
|
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
10004
10077
|
* @see {@link https://developers.binance.com/docs/margin_trading/trade/Query-Margin-Account-OCO Binance API Documentation}
|
|
@@ -10011,6 +10084,7 @@ declare class RestAPI {
|
|
|
10011
10084
|
*
|
|
10012
10085
|
* @summary Query Margin Account\'s Open OCO (USER_DATA)
|
|
10013
10086
|
* @param {QueryMarginAccountsOpenOcoRequest} requestParameters Request parameters.
|
|
10087
|
+
*
|
|
10014
10088
|
* @returns {Promise<RestApiResponse<QueryMarginAccountsOpenOcoResponse>>}
|
|
10015
10089
|
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
10016
10090
|
* @see {@link https://developers.binance.com/docs/margin_trading/trade/Query-Margin-Account-Open-OCO Binance API Documentation}
|
|
@@ -10027,6 +10101,7 @@ declare class RestAPI {
|
|
|
10027
10101
|
*
|
|
10028
10102
|
* @summary Query Margin Account\'s Open Orders (USER_DATA)
|
|
10029
10103
|
* @param {QueryMarginAccountsOpenOrdersRequest} requestParameters Request parameters.
|
|
10104
|
+
*
|
|
10030
10105
|
* @returns {Promise<RestApiResponse<QueryMarginAccountsOpenOrdersResponse>>}
|
|
10031
10106
|
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
10032
10107
|
* @see {@link https://developers.binance.com/docs/margin_trading/trade/Query-Margin-Account-Open-Orders Binance API Documentation}
|
|
@@ -10042,6 +10117,7 @@ declare class RestAPI {
|
|
|
10042
10117
|
*
|
|
10043
10118
|
* @summary Query Margin Account\'s Order (USER_DATA)
|
|
10044
10119
|
* @param {QueryMarginAccountsOrderRequest} requestParameters Request parameters.
|
|
10120
|
+
*
|
|
10045
10121
|
* @returns {Promise<RestApiResponse<QueryMarginAccountsOrderResponse>>}
|
|
10046
10122
|
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
10047
10123
|
* @see {@link https://developers.binance.com/docs/margin_trading/trade/Query-Margin-Account-Order Binance API Documentation}
|
|
@@ -10057,6 +10133,7 @@ declare class RestAPI {
|
|
|
10057
10133
|
*
|
|
10058
10134
|
* @summary Query Margin Account\'s Trade List (USER_DATA)
|
|
10059
10135
|
* @param {QueryMarginAccountsTradeListRequest} requestParameters Request parameters.
|
|
10136
|
+
*
|
|
10060
10137
|
* @returns {Promise<RestApiResponse<QueryMarginAccountsTradeListResponse>>}
|
|
10061
10138
|
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
10062
10139
|
* @see {@link https://developers.binance.com/docs/margin_trading/trade/Query-Margin-Account-Trade-List Binance API Documentation}
|
|
@@ -10071,6 +10148,7 @@ declare class RestAPI {
|
|
|
10071
10148
|
*
|
|
10072
10149
|
* @summary Query Special key(Low Latency Trading)(TRADE)
|
|
10073
10150
|
* @param {QuerySpecialKeyRequest} requestParameters Request parameters.
|
|
10151
|
+
*
|
|
10074
10152
|
* @returns {Promise<RestApiResponse<QuerySpecialKeyResponse>>}
|
|
10075
10153
|
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
10076
10154
|
* @see {@link https://developers.binance.com/docs/margin_trading/trade/Query-Special-Key-of-Low-Latency-Trading Binance API Documentation}
|
|
@@ -10083,6 +10161,7 @@ declare class RestAPI {
|
|
|
10083
10161
|
*
|
|
10084
10162
|
* @summary Query Special key List(Low Latency Trading)(TRADE)
|
|
10085
10163
|
* @param {QuerySpecialKeyListRequest} requestParameters Request parameters.
|
|
10164
|
+
*
|
|
10086
10165
|
* @returns {Promise<RestApiResponse<QuerySpecialKeyListResponse>>}
|
|
10087
10166
|
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
10088
10167
|
* @see {@link https://developers.binance.com/docs/margin_trading/trade/Query-Special-Key-List-of-Low-Latency-Trading Binance API Documentation}
|
|
@@ -10099,6 +10178,7 @@ declare class RestAPI {
|
|
|
10099
10178
|
*
|
|
10100
10179
|
* @summary Small Liability Exchange (MARGIN)
|
|
10101
10180
|
* @param {SmallLiabilityExchangeRequest} requestParameters Request parameters.
|
|
10181
|
+
*
|
|
10102
10182
|
* @returns {Promise<RestApiResponse<void>>}
|
|
10103
10183
|
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
10104
10184
|
* @see {@link https://developers.binance.com/docs/margin_trading/trade/Small-Liability-Exchange Binance API Documentation}
|
|
@@ -10111,6 +10191,7 @@ declare class RestAPI {
|
|
|
10111
10191
|
*
|
|
10112
10192
|
* @summary Close Isolated Margin User Data Stream (USER_STREAM)
|
|
10113
10193
|
* @param {CloseIsolatedMarginUserDataStreamRequest} requestParameters Request parameters.
|
|
10194
|
+
* @deprecated
|
|
10114
10195
|
* @returns {Promise<RestApiResponse<void>>}
|
|
10115
10196
|
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
10116
10197
|
* @see {@link https://developers.binance.com/docs/margin_trading/trade-data-stream/Close-Isolated-Margin-User-Data-Stream Binance API Documentation}
|
|
@@ -10123,6 +10204,7 @@ declare class RestAPI {
|
|
|
10123
10204
|
*
|
|
10124
10205
|
* @summary Close Margin User Data Stream (USER_STREAM)
|
|
10125
10206
|
* @param {CloseMarginUserDataStreamRequest} requestParameters Request parameters.
|
|
10207
|
+
* @deprecated
|
|
10126
10208
|
* @returns {Promise<RestApiResponse<void>>}
|
|
10127
10209
|
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
10128
10210
|
* @see {@link https://developers.binance.com/docs/margin_trading/trade-data-stream/Close-Margin-User-Data-Stream Binance API Documentation}
|
|
@@ -10135,6 +10217,7 @@ declare class RestAPI {
|
|
|
10135
10217
|
*
|
|
10136
10218
|
* @summary Keepalive Isolated Margin User Data Stream (USER_STREAM)
|
|
10137
10219
|
* @param {KeepaliveIsolatedMarginUserDataStreamRequest} requestParameters Request parameters.
|
|
10220
|
+
* @deprecated
|
|
10138
10221
|
* @returns {Promise<RestApiResponse<void>>}
|
|
10139
10222
|
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
10140
10223
|
* @see {@link https://developers.binance.com/docs/margin_trading/trade-data-stream/Keepalive-Isolated-Margin-User-Data-Stream Binance API Documentation}
|
|
@@ -10147,6 +10230,7 @@ declare class RestAPI {
|
|
|
10147
10230
|
*
|
|
10148
10231
|
* @summary Keepalive Margin User Data Stream (USER_STREAM)
|
|
10149
10232
|
* @param {KeepaliveMarginUserDataStreamRequest} requestParameters Request parameters.
|
|
10233
|
+
* @deprecated
|
|
10150
10234
|
* @returns {Promise<RestApiResponse<void>>}
|
|
10151
10235
|
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
10152
10236
|
* @see {@link https://developers.binance.com/docs/margin_trading/trade-data-stream/Keepalive-Margin-User-Data-Stream Binance API Documentation}
|
|
@@ -10159,6 +10243,7 @@ declare class RestAPI {
|
|
|
10159
10243
|
*
|
|
10160
10244
|
* @summary Start Isolated Margin User Data Stream (USER_STREAM)
|
|
10161
10245
|
* @param {StartIsolatedMarginUserDataStreamRequest} requestParameters Request parameters.
|
|
10246
|
+
* @deprecated
|
|
10162
10247
|
* @returns {Promise<RestApiResponse<StartIsolatedMarginUserDataStreamResponse>>}
|
|
10163
10248
|
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
10164
10249
|
* @see {@link https://developers.binance.com/docs/margin_trading/trade-data-stream/Start-Isolated-Margin-User-Data-Stream Binance API Documentation}
|
|
@@ -10170,6 +10255,7 @@ declare class RestAPI {
|
|
|
10170
10255
|
* Weight: 1
|
|
10171
10256
|
*
|
|
10172
10257
|
* @summary Start Margin User Data Stream (USER_STREAM)
|
|
10258
|
+
* @deprecated
|
|
10173
10259
|
* @returns {Promise<RestApiResponse<StartMarginUserDataStreamResponse>>}
|
|
10174
10260
|
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
10175
10261
|
* @see {@link https://developers.binance.com/docs/margin_trading/trade-data-stream/Start-Margin-User-Data-Stream Binance API Documentation}
|
|
@@ -10186,6 +10272,7 @@ declare class RestAPI {
|
|
|
10186
10272
|
*
|
|
10187
10273
|
* @summary Get Cross Margin Transfer History (USER_DATA)
|
|
10188
10274
|
* @param {GetCrossMarginTransferHistoryRequest} requestParameters Request parameters.
|
|
10275
|
+
*
|
|
10189
10276
|
* @returns {Promise<RestApiResponse<GetCrossMarginTransferHistoryResponse>>}
|
|
10190
10277
|
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
10191
10278
|
* @see {@link https://developers.binance.com/docs/margin_trading/transfer/Get-Cross-Margin-Transfer-History Binance API Documentation}
|
|
@@ -10200,6 +10287,7 @@ declare class RestAPI {
|
|
|
10200
10287
|
*
|
|
10201
10288
|
* @summary Query Max Transfer-Out Amount (USER_DATA)
|
|
10202
10289
|
* @param {QueryMaxTransferOutAmountRequest} requestParameters Request parameters.
|
|
10290
|
+
*
|
|
10203
10291
|
* @returns {Promise<RestApiResponse<QueryMaxTransferOutAmountResponse>>}
|
|
10204
10292
|
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
10205
10293
|
* @see {@link https://developers.binance.com/docs/margin_trading/transfer/Query-Max-Transfer-Out-Amount Binance API Documentation}
|