ccxt 4.1.1 → 4.1.3
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/README.md +3 -3
- package/dist/ccxt.browser.js +545 -159
- package/dist/ccxt.browser.min.js +2 -2
- package/dist/cjs/ccxt.js +1 -1
- package/dist/cjs/src/base/Exchange.js +6 -0
- package/dist/cjs/src/binance.js +84 -0
- package/dist/cjs/src/bingx.js +140 -124
- package/dist/cjs/src/bitget.js +1 -1
- package/dist/cjs/src/bitmart.js +176 -0
- package/dist/cjs/src/bitrue.js +1 -1
- package/dist/cjs/src/bybit.js +27 -8
- package/dist/cjs/src/coinbasepro.js +1 -0
- package/dist/cjs/src/deribit.js +1 -1
- package/dist/cjs/src/okx.js +27 -11
- package/dist/cjs/src/pro/binance.js +11 -5
- package/dist/cjs/src/pro/coinbasepro.js +70 -8
- package/js/ccxt.d.ts +1 -1
- package/js/ccxt.js +1 -1
- package/js/src/abstract/coinbaseprime.d.ts +1 -0
- package/js/src/abstract/coinbasepro.d.ts +1 -0
- package/js/src/base/Exchange.d.ts +2 -0
- package/js/src/base/Exchange.js +6 -0
- package/js/src/binance.js +84 -0
- package/js/src/bingx.js +140 -124
- package/js/src/bitget.js +1 -1
- package/js/src/bitmart.d.ts +3 -0
- package/js/src/bitmart.js +176 -0
- package/js/src/bitrue.js +1 -1
- package/js/src/bybit.js +27 -8
- package/js/src/coinbasepro.js +1 -0
- package/js/src/deribit.js +1 -1
- package/js/src/okx.js +27 -11
- package/js/src/pro/binance.js +11 -5
- package/js/src/pro/coinbasepro.d.ts +3 -24
- package/js/src/pro/coinbasepro.js +70 -8
- package/package.json +1 -1
- package/skip-tests.json +6 -1
package/dist/cjs/ccxt.js
CHANGED
|
@@ -179,7 +179,7 @@ var woo$1 = require('./src/pro/woo.js');
|
|
|
179
179
|
|
|
180
180
|
//-----------------------------------------------------------------------------
|
|
181
181
|
// this is updated by vss.js when building
|
|
182
|
-
const version = '4.1.
|
|
182
|
+
const version = '4.1.3';
|
|
183
183
|
Exchange["default"].ccxtVersion = version;
|
|
184
184
|
const exchanges = {
|
|
185
185
|
'ace': ace,
|
|
@@ -1310,6 +1310,12 @@ class Exchange {
|
|
|
1310
1310
|
async watchTradesForSymbols(symbols, since = undefined, limit = undefined, params = {}) {
|
|
1311
1311
|
throw new errors.NotSupported(this.id + ' watchTradesForSymbols() is not supported yet');
|
|
1312
1312
|
}
|
|
1313
|
+
async watchMyTradesForSymbols(symbols, since = undefined, limit = undefined, params = {}) {
|
|
1314
|
+
throw new errors.NotSupported(this.id + ' watchMyTradesForSymbols() is not supported yet');
|
|
1315
|
+
}
|
|
1316
|
+
async watchOrdersForSymbols(symbols, since = undefined, limit = undefined, params = {}) {
|
|
1317
|
+
throw new errors.NotSupported(this.id + ' watchOrdersForSymbols() is not supported yet');
|
|
1318
|
+
}
|
|
1313
1319
|
async watchOHLCVForSymbols(symbolsAndTimeframes, since = undefined, limit = undefined, params = {}) {
|
|
1314
1320
|
throw new errors.NotSupported(this.id + ' watchOHLCVForSymbols() is not supported yet');
|
|
1315
1321
|
}
|
package/dist/cjs/src/binance.js
CHANGED
|
@@ -3306,6 +3306,14 @@ class binance extends binance$1 {
|
|
|
3306
3306
|
* @method
|
|
3307
3307
|
* @name binance#fetchOHLCV
|
|
3308
3308
|
* @description fetches historical candlestick data containing the open, high, low, and close price, and the volume of a market
|
|
3309
|
+
* @see https://binance-docs.github.io/apidocs/spot/en/#kline-candlestick-data
|
|
3310
|
+
* @see https://binance-docs.github.io/apidocs/voptions/en/#kline-candlestick-data
|
|
3311
|
+
* @see https://binance-docs.github.io/apidocs/futures/en/#index-price-kline-candlestick-data
|
|
3312
|
+
* @see https://binance-docs.github.io/apidocs/futures/en/#mark-price-kline-candlestick-data
|
|
3313
|
+
* @see https://binance-docs.github.io/apidocs/futures/en/#kline-candlestick-data
|
|
3314
|
+
* @see https://binance-docs.github.io/apidocs/delivery/en/#index-price-kline-candlestick-data
|
|
3315
|
+
* @see https://binance-docs.github.io/apidocs/delivery/en/#mark-price-kline-candlestick-data
|
|
3316
|
+
* @see https://binance-docs.github.io/apidocs/delivery/en/#kline-candlestick-data
|
|
3309
3317
|
* @param {string} symbol unified symbol of the market to fetch OHLCV data for
|
|
3310
3318
|
* @param {string} timeframe the length of time each candle represents
|
|
3311
3319
|
* @param {int} [since] timestamp in ms of the earliest candle to fetch
|
|
@@ -4621,6 +4629,11 @@ class binance extends binance$1 {
|
|
|
4621
4629
|
* @method
|
|
4622
4630
|
* @name binance#fetchOrder
|
|
4623
4631
|
* @description fetches information on an order made by the user
|
|
4632
|
+
* @see https://binance-docs.github.io/apidocs/spot/en/#query-order-user_data
|
|
4633
|
+
* @see https://binance-docs.github.io/apidocs/futures/en/#query-order-user_data
|
|
4634
|
+
* @see https://binance-docs.github.io/apidocs/delivery/en/#query-order-user_data
|
|
4635
|
+
* @see https://binance-docs.github.io/apidocs/voptions/en/#query-single-order-trade
|
|
4636
|
+
* @see https://binance-docs.github.io/apidocs/spot/en/#query-margin-account-39-s-order-user_data
|
|
4624
4637
|
* @param {string} symbol unified symbol of the market the order was made in
|
|
4625
4638
|
* @param {object} [params] extra parameters specific to the binance api endpoint
|
|
4626
4639
|
* @param {string} [params.marginMode] 'cross' or 'isolated', for spot margin trading
|
|
@@ -4672,6 +4685,11 @@ class binance extends binance$1 {
|
|
|
4672
4685
|
* @method
|
|
4673
4686
|
* @name binance#fetchOrders
|
|
4674
4687
|
* @description fetches information on multiple orders made by the user
|
|
4688
|
+
* @see https://binance-docs.github.io/apidocs/spot/en/#all-orders-user_data
|
|
4689
|
+
* @see https://binance-docs.github.io/apidocs/futures/en/#all-orders-user_data
|
|
4690
|
+
* @see https://binance-docs.github.io/apidocs/delivery/en/#all-orders-user_data
|
|
4691
|
+
* @see https://binance-docs.github.io/apidocs/voptions/en/#query-option-order-history-trade
|
|
4692
|
+
* @see https://binance-docs.github.io/apidocs/spot/en/#query-margin-account-39-s-all-orders-user_data
|
|
4675
4693
|
* @param {string} symbol unified market symbol of the market orders were made in
|
|
4676
4694
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
4677
4695
|
* @param {int} [limit] the maximum number of order structures to retrieve
|
|
@@ -4792,6 +4810,11 @@ class binance extends binance$1 {
|
|
|
4792
4810
|
* @method
|
|
4793
4811
|
* @name binance#fetchOpenOrders
|
|
4794
4812
|
* @description fetch all unfilled currently open orders
|
|
4813
|
+
* @see https://binance-docs.github.io/apidocs/spot/en/#current-open-orders-user_data
|
|
4814
|
+
* @see https://binance-docs.github.io/apidocs/futures/en/#current-all-open-orders-user_data
|
|
4815
|
+
* @see https://binance-docs.github.io/apidocs/delivery/en/#current-all-open-orders-user_data
|
|
4816
|
+
* @see https://binance-docs.github.io/apidocs/voptions/en/#query-current-open-option-orders-user_data
|
|
4817
|
+
* @see https://binance-docs.github.io/apidocs/spot/en/#query-margin-account-39-s-open-orders-user_data
|
|
4795
4818
|
* @param {string} symbol unified market symbol
|
|
4796
4819
|
* @param {int} [since] the earliest time in ms to fetch open orders for
|
|
4797
4820
|
* @param {int} [limit] the maximum number of open orders structures to retrieve
|
|
@@ -4859,6 +4882,11 @@ class binance extends binance$1 {
|
|
|
4859
4882
|
* @method
|
|
4860
4883
|
* @name binance#fetchClosedOrders
|
|
4861
4884
|
* @description fetches information on multiple closed orders made by the user
|
|
4885
|
+
* @see https://binance-docs.github.io/apidocs/spot/en/#all-orders-user_data
|
|
4886
|
+
* @see https://binance-docs.github.io/apidocs/futures/en/#all-orders-user_data
|
|
4887
|
+
* @see https://binance-docs.github.io/apidocs/delivery/en/#all-orders-user_data
|
|
4888
|
+
* @see https://binance-docs.github.io/apidocs/voptions/en/#query-option-order-history-trade
|
|
4889
|
+
* @see https://binance-docs.github.io/apidocs/spot/en/#query-margin-account-39-s-all-orders-user_data
|
|
4862
4890
|
* @param {string} symbol unified market symbol of the market orders were made in
|
|
4863
4891
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
4864
4892
|
* @param {int} [limit] the maximum number of order structures to retrieve
|
|
@@ -4898,6 +4926,11 @@ class binance extends binance$1 {
|
|
|
4898
4926
|
* @method
|
|
4899
4927
|
* @name binance#cancelOrder
|
|
4900
4928
|
* @description cancels an open order
|
|
4929
|
+
* @see https://binance-docs.github.io/apidocs/spot/en/#cancel-order-trade
|
|
4930
|
+
* @see https://binance-docs.github.io/apidocs/futures/en/#cancel-order-trade
|
|
4931
|
+
* @see https://binance-docs.github.io/apidocs/delivery/en/#cancel-order-trade
|
|
4932
|
+
* @see https://binance-docs.github.io/apidocs/voptions/en/#cancel-option-order-trade
|
|
4933
|
+
* @see https://binance-docs.github.io/apidocs/spot/en/#margin-account-cancel-order-trade
|
|
4901
4934
|
* @param {string} id order id
|
|
4902
4935
|
* @param {string} symbol unified symbol of the market the order was made in
|
|
4903
4936
|
* @param {object} [params] extra parameters specific to the binance api endpoint
|
|
@@ -5000,6 +5033,7 @@ class binance extends binance$1 {
|
|
|
5000
5033
|
* @name binance#cancelOrders
|
|
5001
5034
|
* @description cancel multiple orders
|
|
5002
5035
|
* @see https://binance-docs.github.io/apidocs/futures/en/#cancel-multiple-orders-trade
|
|
5036
|
+
* @see https://binance-docs.github.io/apidocs/delivery/en/#cancel-multiple-orders-trade
|
|
5003
5037
|
* @param {[string]} ids order ids
|
|
5004
5038
|
* @param {string} [symbol] unified market symbol
|
|
5005
5039
|
* @param {object} [params] extra parameters specific to the bingx api endpoint
|
|
@@ -5068,6 +5102,10 @@ class binance extends binance$1 {
|
|
|
5068
5102
|
* @method
|
|
5069
5103
|
* @name binance#fetchOrderTrades
|
|
5070
5104
|
* @description fetch all the trades made from a single order
|
|
5105
|
+
* @see https://binance-docs.github.io/apidocs/spot/en/#account-trade-list-user_data
|
|
5106
|
+
* @see https://binance-docs.github.io/apidocs/futures/en/#account-trade-list-user_data
|
|
5107
|
+
* @see https://binance-docs.github.io/apidocs/delivery/en/#account-trade-list-user_data
|
|
5108
|
+
* @see https://binance-docs.github.io/apidocs/spot/en/#query-margin-account-39-s-trade-list-user_data
|
|
5071
5109
|
* @param {string} id order id
|
|
5072
5110
|
* @param {string} symbol unified market symbol
|
|
5073
5111
|
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
@@ -5095,6 +5133,10 @@ class binance extends binance$1 {
|
|
|
5095
5133
|
* @method
|
|
5096
5134
|
* @name binance#fetchMyTrades
|
|
5097
5135
|
* @description fetch all trades made by the user
|
|
5136
|
+
* @see https://binance-docs.github.io/apidocs/spot/en/#account-trade-list-user_data
|
|
5137
|
+
* @see https://binance-docs.github.io/apidocs/futures/en/#account-trade-list-user_data
|
|
5138
|
+
* @see https://binance-docs.github.io/apidocs/delivery/en/#account-trade-list-user_data
|
|
5139
|
+
* @see https://binance-docs.github.io/apidocs/spot/en/#query-margin-account-39-s-trade-list-user_data
|
|
5098
5140
|
* @param {string} symbol unified market symbol
|
|
5099
5141
|
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
5100
5142
|
* @param {int} [limit] the maximum number of trades structures to retrieve
|
|
@@ -5234,6 +5276,7 @@ class binance extends binance$1 {
|
|
|
5234
5276
|
* @method
|
|
5235
5277
|
* @name binance#fetchMyDustTrades
|
|
5236
5278
|
* @description fetch all dust trades made by the user
|
|
5279
|
+
* @see https://binance-docs.github.io/apidocs/spot/en/#dustlog-user_data
|
|
5237
5280
|
* @param {string} symbol not used by binance fetchMyDustTrades ()
|
|
5238
5281
|
* @param {int} [since] the earliest time in ms to fetch my dust trades for
|
|
5239
5282
|
* @param {int} [limit] the maximum number of dust trades to retrieve
|
|
@@ -5372,6 +5415,8 @@ class binance extends binance$1 {
|
|
|
5372
5415
|
* @method
|
|
5373
5416
|
* @name binance#fetchDeposits
|
|
5374
5417
|
* @description fetch all deposits made to an account
|
|
5418
|
+
* @see https://binance-docs.github.io/apidocs/spot/en/#get-fiat-deposit-withdraw-history-user_data
|
|
5419
|
+
* @see https://binance-docs.github.io/apidocs/spot/en/#deposit-history-supporting-network-user_data
|
|
5375
5420
|
* @param {string} code unified currency code
|
|
5376
5421
|
* @param {int} [since] the earliest time in ms to fetch deposits for
|
|
5377
5422
|
* @param {int} [limit] the maximum number of deposits structures to retrieve
|
|
@@ -5476,6 +5521,8 @@ class binance extends binance$1 {
|
|
|
5476
5521
|
* @method
|
|
5477
5522
|
* @name binance#fetchWithdrawals
|
|
5478
5523
|
* @description fetch all withdrawals made from an account
|
|
5524
|
+
* @see https://binance-docs.github.io/apidocs/spot/en/#get-fiat-deposit-withdraw-history-user_data
|
|
5525
|
+
* @see https://binance-docs.github.io/apidocs/spot/en/#withdraw-history-supporting-network-user_data
|
|
5479
5526
|
* @param {string} code unified currency code
|
|
5480
5527
|
* @param {int} [since] the earliest time in ms to fetch withdrawals for
|
|
5481
5528
|
* @param {int} [limit] the maximum number of withdrawals structures to retrieve
|
|
@@ -5940,6 +5987,7 @@ class binance extends binance$1 {
|
|
|
5940
5987
|
* @method
|
|
5941
5988
|
* @name binance#fetchTransfers
|
|
5942
5989
|
* @description fetch a history of internal transfers made on an account
|
|
5990
|
+
* @see https://binance-docs.github.io/apidocs/spot/en/#query-user-universal-transfer-history-user_data
|
|
5943
5991
|
* @param {string} code unified currency code of the currency transferred
|
|
5944
5992
|
* @param {int} [since] the earliest time in ms to fetch transfers for
|
|
5945
5993
|
* @param {int} [limit] the maximum number of transfers structures to retrieve
|
|
@@ -6003,6 +6051,7 @@ class binance extends binance$1 {
|
|
|
6003
6051
|
* @method
|
|
6004
6052
|
* @name binance#fetchDepositAddress
|
|
6005
6053
|
* @description fetch the deposit address for a currency associated with this account
|
|
6054
|
+
* @see https://binance-docs.github.io/apidocs/spot/en/#deposit-address-supporting-network-user_data
|
|
6006
6055
|
* @param {string} code unified currency code
|
|
6007
6056
|
* @param {object} [params] extra parameters specific to the binance api endpoint
|
|
6008
6057
|
* @returns {object} an [address structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#address-structure}
|
|
@@ -6078,6 +6127,7 @@ class binance extends binance$1 {
|
|
|
6078
6127
|
* @name binance#fetchTransactionFees
|
|
6079
6128
|
* @deprecated
|
|
6080
6129
|
* @description please use fetchDepositWithdrawFees instead
|
|
6130
|
+
* @see https://binance-docs.github.io/apidocs/spot/en/#all-coins-39-information-user_data
|
|
6081
6131
|
* @param {string[]|undefined} codes not used by binance fetchTransactionFees ()
|
|
6082
6132
|
* @param {object} [params] extra parameters specific to the binance api endpoint
|
|
6083
6133
|
* @returns {object[]} a list of [fee structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#fee-structure}
|
|
@@ -6191,6 +6241,7 @@ class binance extends binance$1 {
|
|
|
6191
6241
|
* @method
|
|
6192
6242
|
* @name binance#fetchDepositWithdrawFees
|
|
6193
6243
|
* @description fetch deposit and withdraw fees
|
|
6244
|
+
* @see https://binance-docs.github.io/apidocs/spot/en/#all-coins-39-information-user_data
|
|
6194
6245
|
* @param {string[]|undefined} codes not used by binance fetchDepositWithdrawFees ()
|
|
6195
6246
|
* @param {object} [params] extra parameters specific to the binance api endpoint
|
|
6196
6247
|
* @returns {object[]} a list of [fee structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#fee-structure}
|
|
@@ -6314,6 +6365,7 @@ class binance extends binance$1 {
|
|
|
6314
6365
|
* @method
|
|
6315
6366
|
* @name binance#withdraw
|
|
6316
6367
|
* @description make a withdrawal
|
|
6368
|
+
* @see https://binance-docs.github.io/apidocs/spot/en/#withdraw-user_data
|
|
6317
6369
|
* @param {string} code unified currency code
|
|
6318
6370
|
* @param {float} amount the amount to withdraw
|
|
6319
6371
|
* @param {string} address the address to withdraw to
|
|
@@ -6369,6 +6421,7 @@ class binance extends binance$1 {
|
|
|
6369
6421
|
* @method
|
|
6370
6422
|
* @name binance#fetchTradingFee
|
|
6371
6423
|
* @description fetch the trading fees for a market
|
|
6424
|
+
* @see https://binance-docs.github.io/apidocs/spot/en/#trade-fee-user_data
|
|
6372
6425
|
* @param {string} symbol unified market symbol
|
|
6373
6426
|
* @param {object} [params] extra parameters specific to the binance api endpoint
|
|
6374
6427
|
* @returns {object} a [fee structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#fee-structure}
|
|
@@ -6396,6 +6449,9 @@ class binance extends binance$1 {
|
|
|
6396
6449
|
* @method
|
|
6397
6450
|
* @name binance#fetchTradingFees
|
|
6398
6451
|
* @description fetch the trading fees for multiple markets
|
|
6452
|
+
* @see https://binance-docs.github.io/apidocs/spot/en/#trade-fee-user_data
|
|
6453
|
+
* @see https://binance-docs.github.io/apidocs/futures/en/#account-information-v2-user_data
|
|
6454
|
+
* @see https://binance-docs.github.io/apidocs/delivery/en/#account-information-user_data
|
|
6399
6455
|
* @param {object} [params] extra parameters specific to the binance api endpoint
|
|
6400
6456
|
* @returns {object} a dictionary of [fee structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#fee-structure} indexed by market symbols
|
|
6401
6457
|
*/
|
|
@@ -6573,6 +6629,7 @@ class binance extends binance$1 {
|
|
|
6573
6629
|
* @method
|
|
6574
6630
|
* @name binance#futuresTransfer
|
|
6575
6631
|
* @description transfer between futures account
|
|
6632
|
+
* @see https://binance-docs.github.io/apidocs/spot/en/#new-future-account-transfer-user_data
|
|
6576
6633
|
* @param {string} code unified currency code
|
|
6577
6634
|
* @param {float} amount the amount to transfer
|
|
6578
6635
|
* @param {string} type 1 - transfer from spot account to USDT-Ⓜ futures account, 2 - transfer from USDT-Ⓜ futures account to spot account, 3 - transfer from spot account to COIN-Ⓜ futures account, 4 - transfer from COIN-Ⓜ futures account to spot account
|
|
@@ -6603,6 +6660,8 @@ class binance extends binance$1 {
|
|
|
6603
6660
|
* @method
|
|
6604
6661
|
* @name binance#fetchFundingRate
|
|
6605
6662
|
* @description fetch the current funding rate
|
|
6663
|
+
* @see https://binance-docs.github.io/apidocs/futures/en/#mark-price
|
|
6664
|
+
* @see https://binance-docs.github.io/apidocs/delivery/en/#index-price-and-mark-price
|
|
6606
6665
|
* @param {string} symbol unified market symbol
|
|
6607
6666
|
* @param {object} [params] extra parameters specific to the binance api endpoint
|
|
6608
6667
|
* @returns {object} a [funding rate structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#funding-rate-structure}
|
|
@@ -6645,6 +6704,8 @@ class binance extends binance$1 {
|
|
|
6645
6704
|
* @method
|
|
6646
6705
|
* @name binance#fetchFundingRateHistory
|
|
6647
6706
|
* @description fetches historical funding rate prices
|
|
6707
|
+
* @see https://binance-docs.github.io/apidocs/futures/en/#get-funding-rate-history
|
|
6708
|
+
* @see https://binance-docs.github.io/apidocs/delivery/en/#get-funding-rate-history-of-perpetual-futures
|
|
6648
6709
|
* @param {string} symbol unified symbol of the market to fetch the funding rate history for
|
|
6649
6710
|
* @param {int} [since] timestamp in ms of the earliest funding rate to fetch
|
|
6650
6711
|
* @param {int} [limit] the maximum amount of [funding rate structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#funding-rate-history-structure} to fetch
|
|
@@ -6715,6 +6776,8 @@ class binance extends binance$1 {
|
|
|
6715
6776
|
* @method
|
|
6716
6777
|
* @name binance#fetchFundingRates
|
|
6717
6778
|
* @description fetch the funding rate for multiple markets
|
|
6779
|
+
* @see https://binance-docs.github.io/apidocs/futures/en/#mark-price
|
|
6780
|
+
* @see https://binance-docs.github.io/apidocs/delivery/en/#index-price-and-mark-price
|
|
6718
6781
|
* @param {string[]|undefined} symbols list of unified market symbols
|
|
6719
6782
|
* @param {object} [params] extra parameters specific to the binance api endpoint
|
|
6720
6783
|
* @returns {object} a dictionary of [funding rates structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#funding-rates-structure}, indexe by market symbols
|
|
@@ -7243,6 +7306,8 @@ class binance extends binance$1 {
|
|
|
7243
7306
|
* @method
|
|
7244
7307
|
* @name binance#fetchLeverageTiers
|
|
7245
7308
|
* @description retrieve information on the maximum leverage, and maintenance margin for trades of varying trade sizes
|
|
7309
|
+
* @see https://binance-docs.github.io/apidocs/futures/en/#notional-and-leverage-brackets-user_data
|
|
7310
|
+
* @see https://binance-docs.github.io/apidocs/delivery/en/#notional-bracket-for-symbol-user_data
|
|
7246
7311
|
* @param {string[]|undefined} symbols list of unified market symbols
|
|
7247
7312
|
* @param {object} [params] extra parameters specific to the binance api endpoint
|
|
7248
7313
|
* @returns {object} a dictionary of [leverage tiers structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#leverage-tiers-structure}, indexed by market symbols
|
|
@@ -7531,6 +7596,8 @@ class binance extends binance$1 {
|
|
|
7531
7596
|
* @method
|
|
7532
7597
|
* @name binance#fetchAccountPositions
|
|
7533
7598
|
* @description fetch account positions
|
|
7599
|
+
* @see https://binance-docs.github.io/apidocs/futures/en/#account-information-v2-user_data
|
|
7600
|
+
* @see https://binance-docs.github.io/apidocs/delivery/en/#account-information-user_data
|
|
7534
7601
|
* @param {string[]|undefined} symbols list of unified market symbols
|
|
7535
7602
|
* @param {object} [params] extra parameters specific to the binance api endpoint
|
|
7536
7603
|
* @returns {object} data on account positions
|
|
@@ -7568,6 +7635,7 @@ class binance extends binance$1 {
|
|
|
7568
7635
|
* @name binance#fetchPositionsRisk
|
|
7569
7636
|
* @description fetch positions risk
|
|
7570
7637
|
* @see https://binance-docs.github.io/apidocs/futures/en/#position-information-v2-user_data
|
|
7638
|
+
* @see https://binance-docs.github.io/apidocs/delivery/en/#position-information-user_data
|
|
7571
7639
|
* @param {string[]|undefined} symbols list of unified market symbols
|
|
7572
7640
|
* @param {object} [params] extra parameters specific to the binance api endpoint
|
|
7573
7641
|
* @returns {object} data on the positions risk
|
|
@@ -7664,6 +7732,8 @@ class binance extends binance$1 {
|
|
|
7664
7732
|
* @method
|
|
7665
7733
|
* @name binance#fetchFundingHistory
|
|
7666
7734
|
* @description fetch the history of funding payments paid and received on this account
|
|
7735
|
+
* @see https://binance-docs.github.io/apidocs/futures/en/#get-income-history-user_data
|
|
7736
|
+
* @see https://binance-docs.github.io/apidocs/delivery/en/#get-income-history-user_data
|
|
7667
7737
|
* @param {string} symbol unified market symbol
|
|
7668
7738
|
* @param {int} [since] the earliest time in ms to fetch funding history for
|
|
7669
7739
|
* @param {int} [limit] the maximum number of funding history structures to retrieve
|
|
@@ -7711,6 +7781,8 @@ class binance extends binance$1 {
|
|
|
7711
7781
|
* @method
|
|
7712
7782
|
* @name binance#setLeverage
|
|
7713
7783
|
* @description set the level of leverage for a market
|
|
7784
|
+
* @see https://binance-docs.github.io/apidocs/futures/en/#change-initial-leverage-trade
|
|
7785
|
+
* @see https://binance-docs.github.io/apidocs/delivery/en/#change-initial-leverage-trade
|
|
7714
7786
|
* @param {float} leverage the rate of leverage
|
|
7715
7787
|
* @param {string} symbol unified market symbol
|
|
7716
7788
|
* @param {object} [params] extra parameters specific to the binance api endpoint
|
|
@@ -7747,6 +7819,8 @@ class binance extends binance$1 {
|
|
|
7747
7819
|
* @method
|
|
7748
7820
|
* @name binance#setMarginMode
|
|
7749
7821
|
* @description set margin mode to 'cross' or 'isolated'
|
|
7822
|
+
* @see https://binance-docs.github.io/apidocs/futures/en/#change-margin-type-trade
|
|
7823
|
+
* @see https://binance-docs.github.io/apidocs/delivery/en/#change-margin-type-trade
|
|
7750
7824
|
* @param {string} marginMode 'cross' or 'isolated'
|
|
7751
7825
|
* @param {string} symbol unified market symbol
|
|
7752
7826
|
* @param {object} [params] extra parameters specific to the binance api endpoint
|
|
@@ -7815,6 +7889,8 @@ class binance extends binance$1 {
|
|
|
7815
7889
|
* @method
|
|
7816
7890
|
* @name binance#setPositionMode
|
|
7817
7891
|
* @description set hedged to true or false for a market
|
|
7892
|
+
* @see https://binance-docs.github.io/apidocs/futures/en/#change-position-mode-trade
|
|
7893
|
+
* @see https://binance-docs.github.io/apidocs/delivery/en/#change-position-mode-trade
|
|
7818
7894
|
* @param {bool} hedged set to true to use dualSidePosition
|
|
7819
7895
|
* @param {string} symbol not used by binance setPositionMode ()
|
|
7820
7896
|
* @param {object} [params] extra parameters specific to the binance api endpoint
|
|
@@ -8503,6 +8579,7 @@ class binance extends binance$1 {
|
|
|
8503
8579
|
* @method
|
|
8504
8580
|
* @name binance#fetchBorrowRate
|
|
8505
8581
|
* @description fetch the rate of interest to borrow a currency for margin trading
|
|
8582
|
+
* @see https://binance-docs.github.io/apidocs/spot/en/#query-margin-interest-rate-history-user_data
|
|
8506
8583
|
* @param {string} code unified currency code
|
|
8507
8584
|
* @param {object} [params] extra parameters specific to the binance api endpoint
|
|
8508
8585
|
* @returns {object} a [borrow rate structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#borrow-rate-structure}
|
|
@@ -8532,6 +8609,7 @@ class binance extends binance$1 {
|
|
|
8532
8609
|
* @method
|
|
8533
8610
|
* @name binance#fetchBorrowRateHistory
|
|
8534
8611
|
* @description retrieves a history of a currencies borrow interest rate at specific time slots
|
|
8612
|
+
* @see https://binance-docs.github.io/apidocs/spot/en/#query-margin-interest-rate-history-user_data
|
|
8535
8613
|
* @param {string} code unified currency code
|
|
8536
8614
|
* @param {int} [since] timestamp for the earliest borrow rate
|
|
8537
8615
|
* @param {int} [limit] the maximum number of [borrow rate structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#borrow-rate-structure} to retrieve
|
|
@@ -8605,6 +8683,7 @@ class binance extends binance$1 {
|
|
|
8605
8683
|
* @method
|
|
8606
8684
|
* @name binance#createGiftCode
|
|
8607
8685
|
* @description create gift code
|
|
8686
|
+
* @see https://binance-docs.github.io/apidocs/spot/en/#create-a-single-token-gift-card-user_data
|
|
8608
8687
|
* @param {string} code gift code
|
|
8609
8688
|
* @param {float} amount amount of currency for the gift
|
|
8610
8689
|
* @param {object} [params] extra parameters specific to the binance api endpoint
|
|
@@ -8642,6 +8721,7 @@ class binance extends binance$1 {
|
|
|
8642
8721
|
* @method
|
|
8643
8722
|
* @name binance#redeemGiftCode
|
|
8644
8723
|
* @description redeem gift code
|
|
8724
|
+
* @see https://binance-docs.github.io/apidocs/spot/en/#redeem-a-binance-gift-card-user_data
|
|
8645
8725
|
* @param {string} giftcardCode
|
|
8646
8726
|
* @param {object} [params] extra parameters specific to the binance api endpoint
|
|
8647
8727
|
* @returns {object} response from the exchange
|
|
@@ -8668,6 +8748,7 @@ class binance extends binance$1 {
|
|
|
8668
8748
|
* @method
|
|
8669
8749
|
* @name binance#verifyGiftCode
|
|
8670
8750
|
* @description verify gift code
|
|
8751
|
+
* @see https://binance-docs.github.io/apidocs/spot/en/#verify-binance-gift-card-by-gift-card-number-user_data
|
|
8671
8752
|
* @param {string} id reference number id
|
|
8672
8753
|
* @param {object} [params] extra parameters specific to the binance api endpoint
|
|
8673
8754
|
* @returns {object} response from the exchange
|
|
@@ -8691,6 +8772,7 @@ class binance extends binance$1 {
|
|
|
8691
8772
|
* @method
|
|
8692
8773
|
* @name binance#fetchBorrowInterest
|
|
8693
8774
|
* @description fetch the interest owed by the user for borrowing currency for margin trading
|
|
8775
|
+
* @see https://binance-docs.github.io/apidocs/spot/en/#get-interest-history-user_data
|
|
8694
8776
|
* @param {string} code unified currency code
|
|
8695
8777
|
* @param {string} symbol unified market symbol when fetch interest in isolated markets
|
|
8696
8778
|
* @param {int} [since] the earliest time in ms to fetch borrrow interest for
|
|
@@ -8843,6 +8925,8 @@ class binance extends binance$1 {
|
|
|
8843
8925
|
* @method
|
|
8844
8926
|
* @name binance#fetchOpenInterestHistory
|
|
8845
8927
|
* @description Retrieves the open interest history of a currency
|
|
8928
|
+
* @see https://binance-docs.github.io/apidocs/delivery/en/#open-interest-statistics
|
|
8929
|
+
* @see https://binance-docs.github.io/apidocs/futures/en/#open-interest-statistics
|
|
8846
8930
|
* @param {string} symbol Unified CCXT market symbol
|
|
8847
8931
|
* @param {string} timeframe "5m","15m","30m","1h","2h","4h","6h","12h", or "1d"
|
|
8848
8932
|
* @param {int} [since] the time(ms) of the earliest record to retrieve as a unix timestamp
|