@binance/margin-trading 7.0.1 → 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 +2 -2
package/dist/index.js
CHANGED
|
@@ -44,7 +44,7 @@ var import_common11 = require("@binance/common");
|
|
|
44
44
|
|
|
45
45
|
// package.json
|
|
46
46
|
var name = "@binance/margin-trading";
|
|
47
|
-
var version = "
|
|
47
|
+
var version = "8.0.0";
|
|
48
48
|
|
|
49
49
|
// src/rest-api/index.ts
|
|
50
50
|
var rest_api_exports = {};
|
|
@@ -1903,9 +1903,19 @@ var import_common5 = require("@binance/common");
|
|
|
1903
1903
|
var TradeApiAxiosParamCreator = function(configuration) {
|
|
1904
1904
|
return {
|
|
1905
1905
|
/**
|
|
1906
|
-
*
|
|
1906
|
+
* - 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.
|
|
1907
|
+
* - If you are VIP level 3 or below, please contact your VIP manager for eligibility criterias.**
|
|
1907
1908
|
*
|
|
1908
|
-
**
|
|
1909
|
+
**Supported Products:**
|
|
1910
|
+
*
|
|
1911
|
+
* - Cross Margin
|
|
1912
|
+
* - Isolated Margin
|
|
1913
|
+
* - Portfolio Margin Pro
|
|
1914
|
+
* - Cross Margin Pro (Additional agreement required and subject to meeting eligibility criteria)
|
|
1915
|
+
*
|
|
1916
|
+
**Unsupported Products:**
|
|
1917
|
+
*
|
|
1918
|
+
* - Portfolio Margin
|
|
1909
1919
|
*
|
|
1910
1920
|
* We support several types of API keys:
|
|
1911
1921
|
*
|
|
@@ -1915,10 +1925,6 @@ var TradeApiAxiosParamCreator = function(configuration) {
|
|
|
1915
1925
|
*
|
|
1916
1926
|
* 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) .
|
|
1917
1927
|
*
|
|
1918
|
-
* 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
|
|
1919
|
-
*
|
|
1920
|
-
* You need to enable Permits “Enable Spot & Margin Trading” option for the API Key which requests this endpoint.
|
|
1921
|
-
*
|
|
1922
1928
|
* Weight: 1(UID)
|
|
1923
1929
|
*
|
|
1924
1930
|
* @summary Create Special Key(Low-Latency Trading)(TRADE)
|
|
@@ -3225,9 +3231,19 @@ var TradeApi = class {
|
|
|
3225
3231
|
this.localVarAxiosParamCreator = TradeApiAxiosParamCreator(configuration);
|
|
3226
3232
|
}
|
|
3227
3233
|
/**
|
|
3228
|
-
*
|
|
3234
|
+
* - 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.
|
|
3235
|
+
* - If you are VIP level 3 or below, please contact your VIP manager for eligibility criterias.**
|
|
3236
|
+
*
|
|
3237
|
+
**Supported Products:**
|
|
3238
|
+
*
|
|
3239
|
+
* - Cross Margin
|
|
3240
|
+
* - Isolated Margin
|
|
3241
|
+
* - Portfolio Margin Pro
|
|
3242
|
+
* - Cross Margin Pro (Additional agreement required and subject to meeting eligibility criteria)
|
|
3229
3243
|
*
|
|
3230
|
-
**
|
|
3244
|
+
**Unsupported Products:**
|
|
3245
|
+
*
|
|
3246
|
+
* - Portfolio Margin
|
|
3231
3247
|
*
|
|
3232
3248
|
* We support several types of API keys:
|
|
3233
3249
|
*
|
|
@@ -3237,10 +3253,6 @@ var TradeApi = class {
|
|
|
3237
3253
|
*
|
|
3238
3254
|
* 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) .
|
|
3239
3255
|
*
|
|
3240
|
-
* 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
|
|
3241
|
-
*
|
|
3242
|
-
* You need to enable Permits “Enable Spot & Margin Trading” option for the API Key which requests this endpoint.
|
|
3243
|
-
*
|
|
3244
3256
|
* Weight: 1(UID)
|
|
3245
3257
|
*
|
|
3246
3258
|
* @summary Create Special Key(Low-Latency Trading)(TRADE)
|
|
@@ -4129,6 +4141,7 @@ var TradeDataStreamApiAxiosParamCreator = function(configuration) {
|
|
|
4129
4141
|
* @param {string} symbol
|
|
4130
4142
|
* @param {string} listenkey
|
|
4131
4143
|
*
|
|
4144
|
+
* @deprecated
|
|
4132
4145
|
* @throws {RequiredError}
|
|
4133
4146
|
*/
|
|
4134
4147
|
closeIsolatedMarginUserDataStream: async (symbol, listenkey) => {
|
|
@@ -4158,6 +4171,7 @@ var TradeDataStreamApiAxiosParamCreator = function(configuration) {
|
|
|
4158
4171
|
* @summary Close Margin User Data Stream (USER_STREAM)
|
|
4159
4172
|
* @param {string} listenkey
|
|
4160
4173
|
*
|
|
4174
|
+
* @deprecated
|
|
4161
4175
|
* @throws {RequiredError}
|
|
4162
4176
|
*/
|
|
4163
4177
|
closeMarginUserDataStream: async (listenkey) => {
|
|
@@ -4184,6 +4198,7 @@ var TradeDataStreamApiAxiosParamCreator = function(configuration) {
|
|
|
4184
4198
|
* @param {string} symbol
|
|
4185
4199
|
* @param {string} listenKey
|
|
4186
4200
|
*
|
|
4201
|
+
* @deprecated
|
|
4187
4202
|
* @throws {RequiredError}
|
|
4188
4203
|
*/
|
|
4189
4204
|
keepaliveIsolatedMarginUserDataStream: async (symbol, listenKey) => {
|
|
@@ -4213,6 +4228,7 @@ var TradeDataStreamApiAxiosParamCreator = function(configuration) {
|
|
|
4213
4228
|
* @summary Keepalive Margin User Data Stream (USER_STREAM)
|
|
4214
4229
|
* @param {string} listenKey
|
|
4215
4230
|
*
|
|
4231
|
+
* @deprecated
|
|
4216
4232
|
* @throws {RequiredError}
|
|
4217
4233
|
*/
|
|
4218
4234
|
keepaliveMarginUserDataStream: async (listenKey) => {
|
|
@@ -4238,6 +4254,7 @@ var TradeDataStreamApiAxiosParamCreator = function(configuration) {
|
|
|
4238
4254
|
* @summary Start Isolated Margin User Data Stream (USER_STREAM)
|
|
4239
4255
|
* @param {string} symbol
|
|
4240
4256
|
*
|
|
4257
|
+
* @deprecated
|
|
4241
4258
|
* @throws {RequiredError}
|
|
4242
4259
|
*/
|
|
4243
4260
|
startIsolatedMarginUserDataStream: async (symbol) => {
|
|
@@ -4262,6 +4279,7 @@ var TradeDataStreamApiAxiosParamCreator = function(configuration) {
|
|
|
4262
4279
|
*
|
|
4263
4280
|
* @summary Start Margin User Data Stream (USER_STREAM)
|
|
4264
4281
|
*
|
|
4282
|
+
* @deprecated
|
|
4265
4283
|
* @throws {RequiredError}
|
|
4266
4284
|
*/
|
|
4267
4285
|
startMarginUserDataStream: async () => {
|
|
@@ -4648,6 +4666,7 @@ var RestAPI = class {
|
|
|
4648
4666
|
*
|
|
4649
4667
|
* @summary Adjust cross margin max leverage (USER_DATA)
|
|
4650
4668
|
* @param {AdjustCrossMarginMaxLeverageRequest} requestParameters Request parameters.
|
|
4669
|
+
*
|
|
4651
4670
|
* @returns {Promise<RestApiResponse<AdjustCrossMarginMaxLeverageResponse>>}
|
|
4652
4671
|
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
4653
4672
|
* @see {@link https://developers.binance.com/docs/margin_trading/account/Adjust-cross-margin-max-leverage Binance API Documentation}
|
|
@@ -4663,6 +4682,7 @@ var RestAPI = class {
|
|
|
4663
4682
|
*
|
|
4664
4683
|
* @summary Disable Isolated Margin Account (TRADE)
|
|
4665
4684
|
* @param {DisableIsolatedMarginAccountRequest} requestParameters Request parameters.
|
|
4685
|
+
*
|
|
4666
4686
|
* @returns {Promise<RestApiResponse<DisableIsolatedMarginAccountResponse>>}
|
|
4667
4687
|
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
4668
4688
|
* @see {@link https://developers.binance.com/docs/margin_trading/account/Disable-Isolated-Margin-Account Binance API Documentation}
|
|
@@ -4677,6 +4697,7 @@ var RestAPI = class {
|
|
|
4677
4697
|
*
|
|
4678
4698
|
* @summary Enable Isolated Margin Account (TRADE)
|
|
4679
4699
|
* @param {EnableIsolatedMarginAccountRequest} requestParameters Request parameters.
|
|
4700
|
+
*
|
|
4680
4701
|
* @returns {Promise<RestApiResponse<EnableIsolatedMarginAccountResponse>>}
|
|
4681
4702
|
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
4682
4703
|
* @see {@link https://developers.binance.com/docs/margin_trading/account/Enable-Isolated-Margin-Account Binance API Documentation}
|
|
@@ -4691,6 +4712,7 @@ var RestAPI = class {
|
|
|
4691
4712
|
*
|
|
4692
4713
|
* @summary Get BNB Burn Status (USER_DATA)
|
|
4693
4714
|
* @param {GetBnbBurnStatusRequest} requestParameters Request parameters.
|
|
4715
|
+
*
|
|
4694
4716
|
* @returns {Promise<RestApiResponse<GetBnbBurnStatusResponse>>}
|
|
4695
4717
|
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
4696
4718
|
* @see {@link https://developers.binance.com/docs/margin_trading/account/Get-BNB-Burn-Status Binance API Documentation}
|
|
@@ -4705,6 +4727,7 @@ var RestAPI = class {
|
|
|
4705
4727
|
*
|
|
4706
4728
|
* @summary Get Summary of Margin account (USER_DATA)
|
|
4707
4729
|
* @param {GetSummaryOfMarginAccountRequest} requestParameters Request parameters.
|
|
4730
|
+
*
|
|
4708
4731
|
* @returns {Promise<RestApiResponse<GetSummaryOfMarginAccountResponse>>}
|
|
4709
4732
|
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
4710
4733
|
* @see {@link https://developers.binance.com/docs/margin_trading/account/Get-Summary-of-Margin-account Binance API Documentation}
|
|
@@ -4719,6 +4742,7 @@ var RestAPI = class {
|
|
|
4719
4742
|
*
|
|
4720
4743
|
* @summary Query Cross Isolated Margin Capital Flow (USER_DATA)
|
|
4721
4744
|
* @param {QueryCrossIsolatedMarginCapitalFlowRequest} requestParameters Request parameters.
|
|
4745
|
+
*
|
|
4722
4746
|
* @returns {Promise<RestApiResponse<QueryCrossIsolatedMarginCapitalFlowResponse>>}
|
|
4723
4747
|
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
4724
4748
|
* @see {@link https://developers.binance.com/docs/margin_trading/account/Query-Cross-Isolated-Margin-Capital-Flow Binance API Documentation}
|
|
@@ -4733,6 +4757,7 @@ var RestAPI = class {
|
|
|
4733
4757
|
*
|
|
4734
4758
|
* @summary Query Cross Margin Account Details (USER_DATA)
|
|
4735
4759
|
* @param {QueryCrossMarginAccountDetailsRequest} requestParameters Request parameters.
|
|
4760
|
+
*
|
|
4736
4761
|
* @returns {Promise<RestApiResponse<QueryCrossMarginAccountDetailsResponse>>}
|
|
4737
4762
|
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
4738
4763
|
* @see {@link https://developers.binance.com/docs/margin_trading/account/Query-Cross-Margin-Account-Details Binance API Documentation}
|
|
@@ -4747,6 +4772,7 @@ var RestAPI = class {
|
|
|
4747
4772
|
*
|
|
4748
4773
|
* @summary Query Cross Margin Fee Data (USER_DATA)
|
|
4749
4774
|
* @param {QueryCrossMarginFeeDataRequest} requestParameters Request parameters.
|
|
4775
|
+
*
|
|
4750
4776
|
* @returns {Promise<RestApiResponse<QueryCrossMarginFeeDataResponse>>}
|
|
4751
4777
|
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
4752
4778
|
* @see {@link https://developers.binance.com/docs/margin_trading/account/Query-Cross-Margin-Fee-Data Binance API Documentation}
|
|
@@ -4761,6 +4787,7 @@ var RestAPI = class {
|
|
|
4761
4787
|
*
|
|
4762
4788
|
* @summary Query Enabled Isolated Margin Account Limit (USER_DATA)
|
|
4763
4789
|
* @param {QueryEnabledIsolatedMarginAccountLimitRequest} requestParameters Request parameters.
|
|
4790
|
+
*
|
|
4764
4791
|
* @returns {Promise<RestApiResponse<QueryEnabledIsolatedMarginAccountLimitResponse>>}
|
|
4765
4792
|
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
4766
4793
|
* @see {@link https://developers.binance.com/docs/margin_trading/account/Query-Enabled-Isolated-Margin-Account-Limit Binance API Documentation}
|
|
@@ -4778,6 +4805,7 @@ var RestAPI = class {
|
|
|
4778
4805
|
*
|
|
4779
4806
|
* @summary Query Isolated Margin Account Info (USER_DATA)
|
|
4780
4807
|
* @param {QueryIsolatedMarginAccountInfoRequest} requestParameters Request parameters.
|
|
4808
|
+
*
|
|
4781
4809
|
* @returns {Promise<RestApiResponse<QueryIsolatedMarginAccountInfoResponse>>}
|
|
4782
4810
|
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
4783
4811
|
* @see {@link https://developers.binance.com/docs/margin_trading/account/Query-Isolated-Margin-Account-Info Binance API Documentation}
|
|
@@ -4792,6 +4820,7 @@ var RestAPI = class {
|
|
|
4792
4820
|
*
|
|
4793
4821
|
* @summary Query Isolated Margin Fee Data (USER_DATA)
|
|
4794
4822
|
* @param {QueryIsolatedMarginFeeDataRequest} requestParameters Request parameters.
|
|
4823
|
+
*
|
|
4795
4824
|
* @returns {Promise<RestApiResponse<QueryIsolatedMarginFeeDataResponse>>}
|
|
4796
4825
|
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
4797
4826
|
* @see {@link https://developers.binance.com/docs/margin_trading/account/Query-Isolated-Margin-Fee-Data Binance API Documentation}
|
|
@@ -4806,6 +4835,7 @@ var RestAPI = class {
|
|
|
4806
4835
|
*
|
|
4807
4836
|
* @summary Get future hourly interest rate (USER_DATA)
|
|
4808
4837
|
* @param {GetFutureHourlyInterestRateRequest} requestParameters Request parameters.
|
|
4838
|
+
*
|
|
4809
4839
|
* @returns {Promise<RestApiResponse<GetFutureHourlyInterestRateResponse>>}
|
|
4810
4840
|
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
4811
4841
|
* @see {@link https://developers.binance.com/docs/margin_trading/borrow-and-repay/Get-a-future-hourly-interest-rate Binance API Documentation}
|
|
@@ -4833,6 +4863,7 @@ var RestAPI = class {
|
|
|
4833
4863
|
*
|
|
4834
4864
|
* @summary Get Interest History (USER_DATA)
|
|
4835
4865
|
* @param {GetInterestHistoryRequest} requestParameters Request parameters.
|
|
4866
|
+
*
|
|
4836
4867
|
* @returns {Promise<RestApiResponse<GetInterestHistoryResponse>>}
|
|
4837
4868
|
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
4838
4869
|
* @see {@link https://developers.binance.com/docs/margin_trading/borrow-and-repay/Get-Interest-History Binance API Documentation}
|
|
@@ -4847,6 +4878,7 @@ var RestAPI = class {
|
|
|
4847
4878
|
*
|
|
4848
4879
|
* @summary Margin account borrow/repay(MARGIN)
|
|
4849
4880
|
* @param {MarginAccountBorrowRepayRequest} requestParameters Request parameters.
|
|
4881
|
+
*
|
|
4850
4882
|
* @returns {Promise<RestApiResponse<MarginAccountBorrowRepayResponse>>}
|
|
4851
4883
|
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
4852
4884
|
* @see {@link https://developers.binance.com/docs/margin_trading/borrow-and-repay/Margin-account-borrow-repay Binance API Documentation}
|
|
@@ -4866,6 +4898,7 @@ var RestAPI = class {
|
|
|
4866
4898
|
*
|
|
4867
4899
|
* @summary Query borrow/repay records in Margin account(USER_DATA)
|
|
4868
4900
|
* @param {QueryBorrowRepayRecordsInMarginAccountRequest} requestParameters Request parameters.
|
|
4901
|
+
*
|
|
4869
4902
|
* @returns {Promise<RestApiResponse<QueryBorrowRepayRecordsInMarginAccountResponse>>}
|
|
4870
4903
|
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
4871
4904
|
* @see {@link https://developers.binance.com/docs/margin_trading/borrow-and-repay/Query-Borrow-Repay Binance API Documentation}
|
|
@@ -4880,6 +4913,7 @@ var RestAPI = class {
|
|
|
4880
4913
|
*
|
|
4881
4914
|
* @summary Query Margin Interest Rate History (USER_DATA)
|
|
4882
4915
|
* @param {QueryMarginInterestRateHistoryRequest} requestParameters Request parameters.
|
|
4916
|
+
*
|
|
4883
4917
|
* @returns {Promise<RestApiResponse<QueryMarginInterestRateHistoryResponse>>}
|
|
4884
4918
|
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
4885
4919
|
* @see {@link https://developers.binance.com/docs/margin_trading/borrow-and-repay/Query-Margin-Interest-Rate-History Binance API Documentation}
|
|
@@ -4897,6 +4931,7 @@ var RestAPI = class {
|
|
|
4897
4931
|
*
|
|
4898
4932
|
* @summary Query Max Borrow (USER_DATA)
|
|
4899
4933
|
* @param {QueryMaxBorrowRequest} requestParameters Request parameters.
|
|
4934
|
+
*
|
|
4900
4935
|
* @returns {Promise<RestApiResponse<QueryMaxBorrowResponse>>}
|
|
4901
4936
|
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
4902
4937
|
* @see {@link https://developers.binance.com/docs/margin_trading/borrow-and-repay/Query-Max-Borrow Binance API Documentation}
|
|
@@ -4910,6 +4945,7 @@ var RestAPI = class {
|
|
|
4910
4945
|
* Weight: 100(IP)
|
|
4911
4946
|
*
|
|
4912
4947
|
* @summary Cross margin collateral ratio (MARKET_DATA)
|
|
4948
|
+
*
|
|
4913
4949
|
* @returns {Promise<RestApiResponse<CrossMarginCollateralRatioResponse>>}
|
|
4914
4950
|
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
4915
4951
|
* @see {@link https://developers.binance.com/docs/margin_trading/market-data/Cross-margin-collateral-ratio Binance API Documentation}
|
|
@@ -4924,6 +4960,7 @@ var RestAPI = class {
|
|
|
4924
4960
|
*
|
|
4925
4961
|
* @summary Get All Cross Margin Pairs (MARKET_DATA)
|
|
4926
4962
|
* @param {GetAllCrossMarginPairsRequest} requestParameters Request parameters.
|
|
4963
|
+
*
|
|
4927
4964
|
* @returns {Promise<RestApiResponse<GetAllCrossMarginPairsResponse>>}
|
|
4928
4965
|
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
4929
4966
|
* @see {@link https://developers.binance.com/docs/margin_trading/market-data/Get-All-Cross-Margin-Pairs Binance API Documentation}
|
|
@@ -4938,6 +4975,7 @@ var RestAPI = class {
|
|
|
4938
4975
|
*
|
|
4939
4976
|
* @summary Get All Isolated Margin Symbol(MARKET_DATA)
|
|
4940
4977
|
* @param {GetAllIsolatedMarginSymbolRequest} requestParameters Request parameters.
|
|
4978
|
+
*
|
|
4941
4979
|
* @returns {Promise<RestApiResponse<GetAllIsolatedMarginSymbolResponse>>}
|
|
4942
4980
|
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
4943
4981
|
* @see {@link https://developers.binance.com/docs/margin_trading/market-data/Get-All-Isolated-Margin-Symbol Binance API Documentation}
|
|
@@ -4952,6 +4990,7 @@ var RestAPI = class {
|
|
|
4952
4990
|
*
|
|
4953
4991
|
* @summary Get All Margin Assets (MARKET_DATA)
|
|
4954
4992
|
* @param {GetAllMarginAssetsRequest} requestParameters Request parameters.
|
|
4993
|
+
*
|
|
4955
4994
|
* @returns {Promise<RestApiResponse<GetAllMarginAssetsResponse>>}
|
|
4956
4995
|
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
4957
4996
|
* @see {@link https://developers.binance.com/docs/margin_trading/market-data/Get-All-Margin-Assets Binance API Documentation}
|
|
@@ -4966,6 +5005,7 @@ var RestAPI = class {
|
|
|
4966
5005
|
*
|
|
4967
5006
|
* @summary Get Delist Schedule (MARKET_DATA)
|
|
4968
5007
|
* @param {GetDelistScheduleRequest} requestParameters Request parameters.
|
|
5008
|
+
*
|
|
4969
5009
|
* @returns {Promise<RestApiResponse<GetDelistScheduleResponse>>}
|
|
4970
5010
|
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
4971
5011
|
* @see {@link https://developers.binance.com/docs/margin_trading/market-data/Get-Delist-Schedule Binance API Documentation}
|
|
@@ -4984,6 +5024,7 @@ var RestAPI = class {
|
|
|
4984
5024
|
* Weight: 1
|
|
4985
5025
|
*
|
|
4986
5026
|
* @summary Get Limit Price Pairs(MARKET_DATA)
|
|
5027
|
+
*
|
|
4987
5028
|
* @returns {Promise<RestApiResponse<GetLimitPricePairsResponse>>}
|
|
4988
5029
|
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
4989
5030
|
* @see {@link https://developers.binance.com/docs/margin_trading/market-data/Get-Limit-Price-Pairs Binance API Documentation}
|
|
@@ -4998,6 +5039,7 @@ var RestAPI = class {
|
|
|
4998
5039
|
*
|
|
4999
5040
|
* @summary Get list Schedule (MARKET_DATA)
|
|
5000
5041
|
* @param {GetListScheduleRequest} requestParameters Request parameters.
|
|
5042
|
+
*
|
|
5001
5043
|
* @returns {Promise<RestApiResponse<GetListScheduleResponse>>}
|
|
5002
5044
|
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
5003
5045
|
* @see {@link https://developers.binance.com/docs/margin_trading/market-data/Get-list-Schedule Binance API Documentation}
|
|
@@ -5012,6 +5054,7 @@ var RestAPI = class {
|
|
|
5012
5054
|
*
|
|
5013
5055
|
* @summary Query Isolated Margin Tier Data (USER_DATA)
|
|
5014
5056
|
* @param {QueryIsolatedMarginTierDataRequest} requestParameters Request parameters.
|
|
5057
|
+
*
|
|
5015
5058
|
* @returns {Promise<RestApiResponse<QueryIsolatedMarginTierDataResponse>>}
|
|
5016
5059
|
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
5017
5060
|
* @see {@link https://developers.binance.com/docs/margin_trading/market-data/Query-Isolated-Margin-Tier-Data Binance API Documentation}
|
|
@@ -5025,6 +5068,7 @@ var RestAPI = class {
|
|
|
5025
5068
|
* Weight: 1
|
|
5026
5069
|
*
|
|
5027
5070
|
* @summary Query Liability Coin Leverage Bracket in Cross Margin Pro Mode(MARKET_DATA)
|
|
5071
|
+
*
|
|
5028
5072
|
* @returns {Promise<RestApiResponse<QueryLiabilityCoinLeverageBracketInCrossMarginProModeResponse>>}
|
|
5029
5073
|
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
5030
5074
|
* @see {@link https://developers.binance.com/docs/margin_trading/market-data/Query-Liability-Coin-Leverage-Bracket-in-Cross-Margin-Pro-Mode Binance API Documentation}
|
|
@@ -5039,6 +5083,7 @@ var RestAPI = class {
|
|
|
5039
5083
|
*
|
|
5040
5084
|
* @summary Query Margin Available Inventory(USER_DATA)
|
|
5041
5085
|
* @param {QueryMarginAvailableInventoryRequest} requestParameters Request parameters.
|
|
5086
|
+
*
|
|
5042
5087
|
* @returns {Promise<RestApiResponse<QueryMarginAvailableInventoryResponse>>}
|
|
5043
5088
|
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
5044
5089
|
* @see {@link https://developers.binance.com/docs/margin_trading/market-data/Query-margin-avaliable-inventory Binance API Documentation}
|
|
@@ -5053,6 +5098,7 @@ var RestAPI = class {
|
|
|
5053
5098
|
*
|
|
5054
5099
|
* @summary Query Margin PriceIndex (MARKET_DATA)
|
|
5055
5100
|
* @param {QueryMarginPriceindexRequest} requestParameters Request parameters.
|
|
5101
|
+
*
|
|
5056
5102
|
* @returns {Promise<RestApiResponse<QueryMarginPriceindexResponse>>}
|
|
5057
5103
|
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
5058
5104
|
* @see {@link https://developers.binance.com/docs/margin_trading/market-data/Query-Margin-PriceIndex Binance API Documentation}
|
|
@@ -5066,6 +5112,7 @@ var RestAPI = class {
|
|
|
5066
5112
|
* Weight: 3000
|
|
5067
5113
|
*
|
|
5068
5114
|
* @summary Close User Data Stream (USER_STREAM)
|
|
5115
|
+
*
|
|
5069
5116
|
* @returns {Promise<RestApiResponse<void>>}
|
|
5070
5117
|
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
5071
5118
|
* @see {@link https://developers.binance.com/docs/margin_trading/risk-data-stream/Close-User-Data-Stream Binance API Documentation}
|
|
@@ -5080,6 +5127,7 @@ var RestAPI = class {
|
|
|
5080
5127
|
*
|
|
5081
5128
|
* @summary Keepalive User Data Stream (USER_STREAM)
|
|
5082
5129
|
* @param {KeepaliveUserDataStreamRequest} requestParameters Request parameters.
|
|
5130
|
+
*
|
|
5083
5131
|
* @returns {Promise<RestApiResponse<void>>}
|
|
5084
5132
|
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
5085
5133
|
* @see {@link https://developers.binance.com/docs/margin_trading/risk-data-stream/Keepalive-User-Data-Stream Binance API Documentation}
|
|
@@ -5093,6 +5141,7 @@ var RestAPI = class {
|
|
|
5093
5141
|
* Weight: 1
|
|
5094
5142
|
*
|
|
5095
5143
|
* @summary Start User Data Stream (USER_STREAM)
|
|
5144
|
+
*
|
|
5096
5145
|
* @returns {Promise<RestApiResponse<StartUserDataStreamResponse>>}
|
|
5097
5146
|
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
5098
5147
|
* @see {@link https://developers.binance.com/docs/margin_trading/risk-data-stream/Start-User-Data-Stream Binance API Documentation}
|
|
@@ -5101,9 +5150,19 @@ var RestAPI = class {
|
|
|
5101
5150
|
return this.riskDataStreamApi.startUserDataStream();
|
|
5102
5151
|
}
|
|
5103
5152
|
/**
|
|
5104
|
-
*
|
|
5153
|
+
* - 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.
|
|
5154
|
+
* - If you are VIP level 3 or below, please contact your VIP manager for eligibility criterias.**
|
|
5105
5155
|
*
|
|
5106
|
-
**
|
|
5156
|
+
**Supported Products:**
|
|
5157
|
+
*
|
|
5158
|
+
* - Cross Margin
|
|
5159
|
+
* - Isolated Margin
|
|
5160
|
+
* - Portfolio Margin Pro
|
|
5161
|
+
* - Cross Margin Pro (Additional agreement required and subject to meeting eligibility criteria)
|
|
5162
|
+
*
|
|
5163
|
+
**Unsupported Products:**
|
|
5164
|
+
*
|
|
5165
|
+
* - Portfolio Margin
|
|
5107
5166
|
*
|
|
5108
5167
|
* We support several types of API keys:
|
|
5109
5168
|
*
|
|
@@ -5113,14 +5172,11 @@ var RestAPI = class {
|
|
|
5113
5172
|
*
|
|
5114
5173
|
* 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) .
|
|
5115
5174
|
*
|
|
5116
|
-
* 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
|
|
5117
|
-
*
|
|
5118
|
-
* You need to enable Permits “Enable Spot & Margin Trading” option for the API Key which requests this endpoint.
|
|
5119
|
-
*
|
|
5120
5175
|
* Weight: 1(UID)
|
|
5121
5176
|
*
|
|
5122
5177
|
* @summary Create Special Key(Low-Latency Trading)(TRADE)
|
|
5123
5178
|
* @param {CreateSpecialKeyRequest} requestParameters Request parameters.
|
|
5179
|
+
*
|
|
5124
5180
|
* @returns {Promise<RestApiResponse<CreateSpecialKeyResponse>>}
|
|
5125
5181
|
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
5126
5182
|
* @see {@link https://developers.binance.com/docs/margin_trading/trade/Create-Special-Key-of-Low-Latency-Trading Binance API Documentation}
|
|
@@ -5139,6 +5195,7 @@ var RestAPI = class {
|
|
|
5139
5195
|
*
|
|
5140
5196
|
* @summary Delete Special Key(Low-Latency Trading)(TRADE)
|
|
5141
5197
|
* @param {DeleteSpecialKeyRequest} requestParameters Request parameters.
|
|
5198
|
+
*
|
|
5142
5199
|
* @returns {Promise<RestApiResponse<void>>}
|
|
5143
5200
|
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
5144
5201
|
* @see {@link https://developers.binance.com/docs/margin_trading/trade/Delete-Special-Key-of-Low-Latency-Trading Binance API Documentation}
|
|
@@ -5155,6 +5212,7 @@ var RestAPI = class {
|
|
|
5155
5212
|
*
|
|
5156
5213
|
* @summary Edit ip for Special Key(Low-Latency Trading)(TRADE)
|
|
5157
5214
|
* @param {EditIpForSpecialKeyRequest} requestParameters Request parameters.
|
|
5215
|
+
*
|
|
5158
5216
|
* @returns {Promise<RestApiResponse<void>>}
|
|
5159
5217
|
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
5160
5218
|
* @see {@link https://developers.binance.com/docs/margin_trading/trade/Edit-ip-for-Special-Key-of-Low-Latency-Trading Binance API Documentation}
|
|
@@ -5171,6 +5229,7 @@ var RestAPI = class {
|
|
|
5171
5229
|
*
|
|
5172
5230
|
* @summary Get Force Liquidation Record (USER_DATA)
|
|
5173
5231
|
* @param {GetForceLiquidationRecordRequest} requestParameters Request parameters.
|
|
5232
|
+
*
|
|
5174
5233
|
* @returns {Promise<RestApiResponse<GetForceLiquidationRecordResponse>>}
|
|
5175
5234
|
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
5176
5235
|
* @see {@link https://developers.binance.com/docs/margin_trading/trade/Get-Force-Liquidation-Record Binance API Documentation}
|
|
@@ -5185,6 +5244,7 @@ var RestAPI = class {
|
|
|
5185
5244
|
*
|
|
5186
5245
|
* @summary Get Small Liability Exchange Coin List (USER_DATA)
|
|
5187
5246
|
* @param {GetSmallLiabilityExchangeCoinListRequest} requestParameters Request parameters.
|
|
5247
|
+
*
|
|
5188
5248
|
* @returns {Promise<RestApiResponse<GetSmallLiabilityExchangeCoinListResponse>>}
|
|
5189
5249
|
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
5190
5250
|
* @see {@link https://developers.binance.com/docs/margin_trading/trade/Get-Small-Liability-Exchange-Coin-List Binance API Documentation}
|
|
@@ -5199,6 +5259,7 @@ var RestAPI = class {
|
|
|
5199
5259
|
*
|
|
5200
5260
|
* @summary Get Small Liability Exchange History (USER_DATA)
|
|
5201
5261
|
* @param {GetSmallLiabilityExchangeHistoryRequest} requestParameters Request parameters.
|
|
5262
|
+
*
|
|
5202
5263
|
* @returns {Promise<RestApiResponse<GetSmallLiabilityExchangeHistoryResponse>>}
|
|
5203
5264
|
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
5204
5265
|
* @see {@link https://developers.binance.com/docs/margin_trading/trade/Get-Small-Liability-Exchange-History Binance API Documentation}
|
|
@@ -5214,6 +5275,7 @@ var RestAPI = class {
|
|
|
5214
5275
|
*
|
|
5215
5276
|
* @summary Margin Account Cancel all Open Orders on a Symbol (TRADE)
|
|
5216
5277
|
* @param {MarginAccountCancelAllOpenOrdersOnASymbolRequest} requestParameters Request parameters.
|
|
5278
|
+
*
|
|
5217
5279
|
* @returns {Promise<RestApiResponse<MarginAccountCancelAllOpenOrdersOnASymbolResponse>>}
|
|
5218
5280
|
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
5219
5281
|
* @see {@link https://developers.binance.com/docs/margin_trading/trade/Margin-Account-Cancel-All-Open-Orders Binance API Documentation}
|
|
@@ -5230,6 +5292,7 @@ var RestAPI = class {
|
|
|
5230
5292
|
*
|
|
5231
5293
|
* @summary Margin Account Cancel OCO (TRADE)
|
|
5232
5294
|
* @param {MarginAccountCancelOcoRequest} requestParameters Request parameters.
|
|
5295
|
+
*
|
|
5233
5296
|
* @returns {Promise<RestApiResponse<MarginAccountCancelOcoResponse>>}
|
|
5234
5297
|
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
5235
5298
|
* @see {@link https://developers.binance.com/docs/margin_trading/trade/Margin-Account-Cancel-OCO Binance API Documentation}
|
|
@@ -5246,6 +5309,7 @@ var RestAPI = class {
|
|
|
5246
5309
|
*
|
|
5247
5310
|
* @summary Margin Account Cancel Order (TRADE)
|
|
5248
5311
|
* @param {MarginAccountCancelOrderRequest} requestParameters Request parameters.
|
|
5312
|
+
*
|
|
5249
5313
|
* @returns {Promise<RestApiResponse<MarginAccountCancelOrderResponse>>}
|
|
5250
5314
|
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
5251
5315
|
* @see {@link https://developers.binance.com/docs/margin_trading/trade/Margin-Account-Cancel-Order Binance API Documentation}
|
|
@@ -5262,6 +5326,7 @@ var RestAPI = class {
|
|
|
5262
5326
|
*
|
|
5263
5327
|
* @summary Margin Account New OCO (TRADE)
|
|
5264
5328
|
* @param {MarginAccountNewOcoRequest} requestParameters Request parameters.
|
|
5329
|
+
*
|
|
5265
5330
|
* @returns {Promise<RestApiResponse<MarginAccountNewOcoResponse>>}
|
|
5266
5331
|
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
5267
5332
|
* @see {@link https://developers.binance.com/docs/margin_trading/trade/Margin-Account-New-OCO Binance API Documentation}
|
|
@@ -5278,6 +5343,7 @@ var RestAPI = class {
|
|
|
5278
5343
|
*
|
|
5279
5344
|
* @summary Margin Account New Order (TRADE)
|
|
5280
5345
|
* @param {MarginAccountNewOrderRequest} requestParameters Request parameters.
|
|
5346
|
+
*
|
|
5281
5347
|
* @returns {Promise<RestApiResponse<MarginAccountNewOrderResponse>>}
|
|
5282
5348
|
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
5283
5349
|
* @see {@link https://developers.binance.com/docs/margin_trading/trade/Margin-Account-New-Order Binance API Documentation}
|
|
@@ -5302,6 +5368,7 @@ var RestAPI = class {
|
|
|
5302
5368
|
*
|
|
5303
5369
|
* @summary Margin Account New OTO (TRADE)
|
|
5304
5370
|
* @param {MarginAccountNewOtoRequest} requestParameters Request parameters.
|
|
5371
|
+
*
|
|
5305
5372
|
* @returns {Promise<RestApiResponse<MarginAccountNewOtoResponse>>}
|
|
5306
5373
|
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
5307
5374
|
* @see {@link https://developers.binance.com/docs/margin_trading/trade/Margin-Account-New-OTO Binance API Documentation}
|
|
@@ -5326,6 +5393,7 @@ var RestAPI = class {
|
|
|
5326
5393
|
*
|
|
5327
5394
|
* @summary Margin Account New OTOCO (TRADE)
|
|
5328
5395
|
* @param {MarginAccountNewOtocoRequest} requestParameters Request parameters.
|
|
5396
|
+
*
|
|
5329
5397
|
* @returns {Promise<RestApiResponse<MarginAccountNewOtocoResponse>>}
|
|
5330
5398
|
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
5331
5399
|
* @see {@link https://developers.binance.com/docs/margin_trading/trade/Margin-Account-New-OTOCO Binance API Documentation}
|
|
@@ -5343,6 +5411,7 @@ var RestAPI = class {
|
|
|
5343
5411
|
*
|
|
5344
5412
|
* @summary Margin Manual Liquidation(MARGIN)
|
|
5345
5413
|
* @param {MarginManualLiquidationRequest} requestParameters Request parameters.
|
|
5414
|
+
*
|
|
5346
5415
|
* @returns {Promise<RestApiResponse<MarginManualLiquidationResponse>>}
|
|
5347
5416
|
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
5348
5417
|
* @see {@link https://developers.binance.com/docs/margin_trading/trade/Margin-Manual-Liquidation Binance API Documentation}
|
|
@@ -5357,6 +5426,7 @@ var RestAPI = class {
|
|
|
5357
5426
|
*
|
|
5358
5427
|
* @summary Query Current Margin Order Count Usage (TRADE)
|
|
5359
5428
|
* @param {QueryCurrentMarginOrderCountUsageRequest} requestParameters Request parameters.
|
|
5429
|
+
*
|
|
5360
5430
|
* @returns {Promise<RestApiResponse<QueryCurrentMarginOrderCountUsageResponse>>}
|
|
5361
5431
|
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
5362
5432
|
* @see {@link https://developers.binance.com/docs/margin_trading/trade/Query-Current-Margin-Order-Count-Usage Binance API Documentation}
|
|
@@ -5371,6 +5441,7 @@ var RestAPI = class {
|
|
|
5371
5441
|
*
|
|
5372
5442
|
* @summary Query Margin Account\'s all OCO (USER_DATA)
|
|
5373
5443
|
* @param {QueryMarginAccountsAllOcoRequest} requestParameters Request parameters.
|
|
5444
|
+
*
|
|
5374
5445
|
* @returns {Promise<RestApiResponse<QueryMarginAccountsAllOcoResponse>>}
|
|
5375
5446
|
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
5376
5447
|
* @see {@link https://developers.binance.com/docs/margin_trading/trade/Query-Margin-Account-all-OCO Binance API Documentation}
|
|
@@ -5389,6 +5460,7 @@ var RestAPI = class {
|
|
|
5389
5460
|
*
|
|
5390
5461
|
* @summary Query Margin Account\'s All Orders (USER_DATA)
|
|
5391
5462
|
* @param {QueryMarginAccountsAllOrdersRequest} requestParameters Request parameters.
|
|
5463
|
+
*
|
|
5392
5464
|
* @returns {Promise<RestApiResponse<QueryMarginAccountsAllOrdersResponse>>}
|
|
5393
5465
|
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
5394
5466
|
* @see {@link https://developers.binance.com/docs/margin_trading/trade/Query-Margin-Account-All-Orders Binance API Documentation}
|
|
@@ -5403,6 +5475,7 @@ var RestAPI = class {
|
|
|
5403
5475
|
*
|
|
5404
5476
|
* @summary Query Margin Account\'s OCO (USER_DATA)
|
|
5405
5477
|
* @param {QueryMarginAccountsOcoRequest} requestParameters Request parameters.
|
|
5478
|
+
*
|
|
5406
5479
|
* @returns {Promise<RestApiResponse<QueryMarginAccountsOcoResponse>>}
|
|
5407
5480
|
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
5408
5481
|
* @see {@link https://developers.binance.com/docs/margin_trading/trade/Query-Margin-Account-OCO Binance API Documentation}
|
|
@@ -5417,6 +5490,7 @@ var RestAPI = class {
|
|
|
5417
5490
|
*
|
|
5418
5491
|
* @summary Query Margin Account\'s Open OCO (USER_DATA)
|
|
5419
5492
|
* @param {QueryMarginAccountsOpenOcoRequest} requestParameters Request parameters.
|
|
5493
|
+
*
|
|
5420
5494
|
* @returns {Promise<RestApiResponse<QueryMarginAccountsOpenOcoResponse>>}
|
|
5421
5495
|
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
5422
5496
|
* @see {@link https://developers.binance.com/docs/margin_trading/trade/Query-Margin-Account-Open-OCO Binance API Documentation}
|
|
@@ -5435,6 +5509,7 @@ var RestAPI = class {
|
|
|
5435
5509
|
*
|
|
5436
5510
|
* @summary Query Margin Account\'s Open Orders (USER_DATA)
|
|
5437
5511
|
* @param {QueryMarginAccountsOpenOrdersRequest} requestParameters Request parameters.
|
|
5512
|
+
*
|
|
5438
5513
|
* @returns {Promise<RestApiResponse<QueryMarginAccountsOpenOrdersResponse>>}
|
|
5439
5514
|
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
5440
5515
|
* @see {@link https://developers.binance.com/docs/margin_trading/trade/Query-Margin-Account-Open-Orders Binance API Documentation}
|
|
@@ -5452,6 +5527,7 @@ var RestAPI = class {
|
|
|
5452
5527
|
*
|
|
5453
5528
|
* @summary Query Margin Account\'s Order (USER_DATA)
|
|
5454
5529
|
* @param {QueryMarginAccountsOrderRequest} requestParameters Request parameters.
|
|
5530
|
+
*
|
|
5455
5531
|
* @returns {Promise<RestApiResponse<QueryMarginAccountsOrderResponse>>}
|
|
5456
5532
|
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
5457
5533
|
* @see {@link https://developers.binance.com/docs/margin_trading/trade/Query-Margin-Account-Order Binance API Documentation}
|
|
@@ -5469,6 +5545,7 @@ var RestAPI = class {
|
|
|
5469
5545
|
*
|
|
5470
5546
|
* @summary Query Margin Account\'s Trade List (USER_DATA)
|
|
5471
5547
|
* @param {QueryMarginAccountsTradeListRequest} requestParameters Request parameters.
|
|
5548
|
+
*
|
|
5472
5549
|
* @returns {Promise<RestApiResponse<QueryMarginAccountsTradeListResponse>>}
|
|
5473
5550
|
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
5474
5551
|
* @see {@link https://developers.binance.com/docs/margin_trading/trade/Query-Margin-Account-Trade-List Binance API Documentation}
|
|
@@ -5485,6 +5562,7 @@ var RestAPI = class {
|
|
|
5485
5562
|
*
|
|
5486
5563
|
* @summary Query Special key(Low Latency Trading)(TRADE)
|
|
5487
5564
|
* @param {QuerySpecialKeyRequest} requestParameters Request parameters.
|
|
5565
|
+
*
|
|
5488
5566
|
* @returns {Promise<RestApiResponse<QuerySpecialKeyResponse>>}
|
|
5489
5567
|
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
5490
5568
|
* @see {@link https://developers.binance.com/docs/margin_trading/trade/Query-Special-Key-of-Low-Latency-Trading Binance API Documentation}
|
|
@@ -5499,6 +5577,7 @@ var RestAPI = class {
|
|
|
5499
5577
|
*
|
|
5500
5578
|
* @summary Query Special key List(Low Latency Trading)(TRADE)
|
|
5501
5579
|
* @param {QuerySpecialKeyListRequest} requestParameters Request parameters.
|
|
5580
|
+
*
|
|
5502
5581
|
* @returns {Promise<RestApiResponse<QuerySpecialKeyListResponse>>}
|
|
5503
5582
|
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
5504
5583
|
* @see {@link https://developers.binance.com/docs/margin_trading/trade/Query-Special-Key-List-of-Low-Latency-Trading Binance API Documentation}
|
|
@@ -5517,6 +5596,7 @@ var RestAPI = class {
|
|
|
5517
5596
|
*
|
|
5518
5597
|
* @summary Small Liability Exchange (MARGIN)
|
|
5519
5598
|
* @param {SmallLiabilityExchangeRequest} requestParameters Request parameters.
|
|
5599
|
+
*
|
|
5520
5600
|
* @returns {Promise<RestApiResponse<void>>}
|
|
5521
5601
|
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
5522
5602
|
* @see {@link https://developers.binance.com/docs/margin_trading/trade/Small-Liability-Exchange Binance API Documentation}
|
|
@@ -5531,6 +5611,7 @@ var RestAPI = class {
|
|
|
5531
5611
|
*
|
|
5532
5612
|
* @summary Close Isolated Margin User Data Stream (USER_STREAM)
|
|
5533
5613
|
* @param {CloseIsolatedMarginUserDataStreamRequest} requestParameters Request parameters.
|
|
5614
|
+
* @deprecated
|
|
5534
5615
|
* @returns {Promise<RestApiResponse<void>>}
|
|
5535
5616
|
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
5536
5617
|
* @see {@link https://developers.binance.com/docs/margin_trading/trade-data-stream/Close-Isolated-Margin-User-Data-Stream Binance API Documentation}
|
|
@@ -5545,6 +5626,7 @@ var RestAPI = class {
|
|
|
5545
5626
|
*
|
|
5546
5627
|
* @summary Close Margin User Data Stream (USER_STREAM)
|
|
5547
5628
|
* @param {CloseMarginUserDataStreamRequest} requestParameters Request parameters.
|
|
5629
|
+
* @deprecated
|
|
5548
5630
|
* @returns {Promise<RestApiResponse<void>>}
|
|
5549
5631
|
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
5550
5632
|
* @see {@link https://developers.binance.com/docs/margin_trading/trade-data-stream/Close-Margin-User-Data-Stream Binance API Documentation}
|
|
@@ -5559,6 +5641,7 @@ var RestAPI = class {
|
|
|
5559
5641
|
*
|
|
5560
5642
|
* @summary Keepalive Isolated Margin User Data Stream (USER_STREAM)
|
|
5561
5643
|
* @param {KeepaliveIsolatedMarginUserDataStreamRequest} requestParameters Request parameters.
|
|
5644
|
+
* @deprecated
|
|
5562
5645
|
* @returns {Promise<RestApiResponse<void>>}
|
|
5563
5646
|
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
5564
5647
|
* @see {@link https://developers.binance.com/docs/margin_trading/trade-data-stream/Keepalive-Isolated-Margin-User-Data-Stream Binance API Documentation}
|
|
@@ -5573,6 +5656,7 @@ var RestAPI = class {
|
|
|
5573
5656
|
*
|
|
5574
5657
|
* @summary Keepalive Margin User Data Stream (USER_STREAM)
|
|
5575
5658
|
* @param {KeepaliveMarginUserDataStreamRequest} requestParameters Request parameters.
|
|
5659
|
+
* @deprecated
|
|
5576
5660
|
* @returns {Promise<RestApiResponse<void>>}
|
|
5577
5661
|
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
5578
5662
|
* @see {@link https://developers.binance.com/docs/margin_trading/trade-data-stream/Keepalive-Margin-User-Data-Stream Binance API Documentation}
|
|
@@ -5587,6 +5671,7 @@ var RestAPI = class {
|
|
|
5587
5671
|
*
|
|
5588
5672
|
* @summary Start Isolated Margin User Data Stream (USER_STREAM)
|
|
5589
5673
|
* @param {StartIsolatedMarginUserDataStreamRequest} requestParameters Request parameters.
|
|
5674
|
+
* @deprecated
|
|
5590
5675
|
* @returns {Promise<RestApiResponse<StartIsolatedMarginUserDataStreamResponse>>}
|
|
5591
5676
|
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
5592
5677
|
* @see {@link https://developers.binance.com/docs/margin_trading/trade-data-stream/Start-Isolated-Margin-User-Data-Stream Binance API Documentation}
|
|
@@ -5600,6 +5685,7 @@ var RestAPI = class {
|
|
|
5600
5685
|
* Weight: 1
|
|
5601
5686
|
*
|
|
5602
5687
|
* @summary Start Margin User Data Stream (USER_STREAM)
|
|
5688
|
+
* @deprecated
|
|
5603
5689
|
* @returns {Promise<RestApiResponse<StartMarginUserDataStreamResponse>>}
|
|
5604
5690
|
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
5605
5691
|
* @see {@link https://developers.binance.com/docs/margin_trading/trade-data-stream/Start-Margin-User-Data-Stream Binance API Documentation}
|
|
@@ -5618,6 +5704,7 @@ var RestAPI = class {
|
|
|
5618
5704
|
*
|
|
5619
5705
|
* @summary Get Cross Margin Transfer History (USER_DATA)
|
|
5620
5706
|
* @param {GetCrossMarginTransferHistoryRequest} requestParameters Request parameters.
|
|
5707
|
+
*
|
|
5621
5708
|
* @returns {Promise<RestApiResponse<GetCrossMarginTransferHistoryResponse>>}
|
|
5622
5709
|
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
5623
5710
|
* @see {@link https://developers.binance.com/docs/margin_trading/transfer/Get-Cross-Margin-Transfer-History Binance API Documentation}
|
|
@@ -5634,6 +5721,7 @@ var RestAPI = class {
|
|
|
5634
5721
|
*
|
|
5635
5722
|
* @summary Query Max Transfer-Out Amount (USER_DATA)
|
|
5636
5723
|
* @param {QueryMaxTransferOutAmountRequest} requestParameters Request parameters.
|
|
5724
|
+
*
|
|
5637
5725
|
* @returns {Promise<RestApiResponse<QueryMaxTransferOutAmountResponse>>}
|
|
5638
5726
|
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
5639
5727
|
* @see {@link https://developers.binance.com/docs/margin_trading/transfer/Query-Max-Transfer-Out-Amount Binance API Documentation}
|