ccxt 4.3.49 → 4.3.51
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 +5 -5
- package/dist/ccxt.browser.min.js +2 -2
- package/dist/cjs/ccxt.js +1 -1
- package/dist/cjs/src/bigone.js +1 -1
- package/dist/cjs/src/binance.js +290 -329
- package/dist/cjs/src/binancecoinm.js +1 -0
- package/dist/cjs/src/binanceusdm.js +2 -0
- package/dist/cjs/src/bitget.js +1 -0
- package/dist/cjs/src/bybit.js +34 -0
- package/dist/cjs/src/exmo.js +1 -1
- package/dist/cjs/src/htx.js +10 -10
- package/dist/cjs/src/kucoin.js +4 -4
- package/dist/cjs/src/kucoinfutures.js +1 -1
- package/dist/cjs/src/pro/binance.js +36 -36
- package/dist/cjs/src/pro/binancecoinm.js +1 -0
- package/dist/cjs/src/pro/binanceusdm.js +2 -0
- package/dist/cjs/src/pro/gate.js +2 -2
- package/js/ccxt.d.ts +1 -1
- package/js/ccxt.js +1 -1
- package/js/src/bigone.js +1 -1
- package/js/src/binance.js +290 -329
- package/js/src/binancecoinm.js +1 -0
- package/js/src/binanceusdm.js +2 -0
- package/js/src/bitget.js +1 -0
- package/js/src/bybit.d.ts +1 -0
- package/js/src/bybit.js +34 -0
- package/js/src/exmo.js +1 -1
- package/js/src/htx.js +10 -10
- package/js/src/kucoin.js +4 -4
- package/js/src/kucoinfutures.js +1 -1
- package/js/src/pro/binance.js +36 -36
- package/js/src/pro/binancecoinm.js +1 -0
- package/js/src/pro/binanceusdm.js +2 -0
- package/js/src/pro/gate.js +2 -2
- package/package.json +1 -1
package/dist/cjs/src/binance.js
CHANGED
|
@@ -222,7 +222,7 @@ class binance extends binance$1 {
|
|
|
222
222
|
'discount': 0.1,
|
|
223
223
|
},
|
|
224
224
|
'doc': [
|
|
225
|
-
'https://binance
|
|
225
|
+
'https://developers.binance.com/en',
|
|
226
226
|
],
|
|
227
227
|
'api_management': 'https://www.binance.com/en/usercenter/settings/api-management',
|
|
228
228
|
'fees': 'https://www.binance.com/en/fee/schedule',
|
|
@@ -320,7 +320,6 @@ class binance extends binance$1 {
|
|
|
320
320
|
'futures/transfer': 1,
|
|
321
321
|
'futures/histDataLink': 0.1,
|
|
322
322
|
'rebate/taxQuery': 80.004,
|
|
323
|
-
// https://binance-docs.github.io/apidocs/spot/en/#withdraw-sapi
|
|
324
323
|
'capital/config/getall': 1,
|
|
325
324
|
'capital/deposit/address': 1,
|
|
326
325
|
'capital/deposit/address/list': 1,
|
|
@@ -2596,9 +2595,9 @@ class binance extends binance$1 {
|
|
|
2596
2595
|
* @method
|
|
2597
2596
|
* @name binance#fetchTime
|
|
2598
2597
|
* @description fetches the current integer timestamp in milliseconds from the exchange server
|
|
2599
|
-
* @see https://binance
|
|
2600
|
-
* @see https://binance
|
|
2601
|
-
* @see https://binance
|
|
2598
|
+
* @see https://developers.binance.com/docs/binance-spot-api-docs/rest-api#check-server-time // spot
|
|
2599
|
+
* @see https://developers.binance.com/docs/derivatives/usds-margined-futures/market-data/rest-api/Check-Server-Time // swap
|
|
2600
|
+
* @see https://developers.binance.com/docs/derivatives/coin-margined-futures/market-data/Check-Server-time // future
|
|
2602
2601
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2603
2602
|
* @param {string} [params.subType] "linear" or "inverse"
|
|
2604
2603
|
* @returns {int} the current integer timestamp in milliseconds from the exchange server
|
|
@@ -2625,7 +2624,7 @@ class binance extends binance$1 {
|
|
|
2625
2624
|
* @method
|
|
2626
2625
|
* @name binance#fetchCurrencies
|
|
2627
2626
|
* @description fetches all available currencies on an exchange
|
|
2628
|
-
* @see https://binance
|
|
2627
|
+
* @see https://developers.binance.com/docs/wallet/capital/all-coins-info
|
|
2629
2628
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2630
2629
|
* @returns {object} an associative dictionary of currencies
|
|
2631
2630
|
*/
|
|
@@ -2820,10 +2819,10 @@ class binance extends binance$1 {
|
|
|
2820
2819
|
* @method
|
|
2821
2820
|
* @name binance#fetchMarkets
|
|
2822
2821
|
* @description retrieves data on all markets for binance
|
|
2823
|
-
* @see https://binance
|
|
2824
|
-
* @see https://binance
|
|
2825
|
-
* @see https://binance
|
|
2826
|
-
* @see https://binance
|
|
2822
|
+
* @see https://developers.binance.com/docs/binance-spot-api-docs/rest-api#exchange-information // spot
|
|
2823
|
+
* @see https://developers.binance.com/docs/derivatives/usds-margined-futures/market-data/rest-api/Exchange-Information // swap
|
|
2824
|
+
* @see https://developers.binance.com/docs/derivatives/coin-margined-futures/market-data/Exchange-Information // future
|
|
2825
|
+
* @see https://developers.binance.com/docs/derivatives/option/market-data/Exchange-Information // option
|
|
2827
2826
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2828
2827
|
* @returns {object[]} an array of objects representing market data
|
|
2829
2828
|
*/
|
|
@@ -3377,21 +3376,20 @@ class binance extends binance$1 {
|
|
|
3377
3376
|
* @method
|
|
3378
3377
|
* @name binance#fetchBalance
|
|
3379
3378
|
* @description query for balance and get the amount of funds available for trading or funds locked in orders
|
|
3380
|
-
* @see https://binance
|
|
3381
|
-
* @see https://binance
|
|
3382
|
-
* @see https://binance
|
|
3383
|
-
* @see https://binance
|
|
3384
|
-
* @see https://binance
|
|
3385
|
-
* @see https://binance
|
|
3386
|
-
* @see https://binance
|
|
3387
|
-
* @see https://binance
|
|
3388
|
-
* @see https://binance-docs.github.io/apidocs/pm/en/#account-balance-user_data // portfolio margin
|
|
3379
|
+
* @see https://developers.binance.com/docs/binance-spot-api-docs/rest-api#account-information-user_data // spot
|
|
3380
|
+
* @see https://developers.binance.com/docs/margin_trading/account/Query-Cross-Margin-Account-Details // cross margin
|
|
3381
|
+
* @see https://developers.binance.com/docs/margin_trading/account/Query-Isolated-Margin-Account-Info // isolated margin
|
|
3382
|
+
* @see https://developers.binance.com/docs/wallet/asset/funding-wallet // funding
|
|
3383
|
+
* @see https://developers.binance.com/docs/derivatives/usds-margined-futures/account/rest-api/Futures-Account-Balance-V2 // swap
|
|
3384
|
+
* @see https://developers.binance.com/docs/derivatives/coin-margined-futures/account/Futures-Account-Balance // future
|
|
3385
|
+
* @see https://developers.binance.com/docs/derivatives/option/account/Option-Account-Information // option
|
|
3386
|
+
* @see https://developers.binance.com/docs/derivatives/portfolio-margin/account/Account-Balance // portfolio margin
|
|
3389
3387
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
3390
3388
|
* @param {string} [params.type] 'future', 'delivery', 'savings', 'funding', or 'spot' or 'papi'
|
|
3391
3389
|
* @param {string} [params.marginMode] 'cross' or 'isolated', for margin trading, uses this.options.defaultMarginMode if not passed, defaults to undefined/None/null
|
|
3392
3390
|
* @param {string[]|undefined} [params.symbols] unified market symbols, only used in isolated margin mode
|
|
3393
3391
|
* @param {boolean} [params.portfolioMargin] set to true if you would like to fetch the balance for a portfolio margin account
|
|
3394
|
-
* @param {string} [params.subType]
|
|
3392
|
+
* @param {string} [params.subType] 'linear' or 'inverse'
|
|
3395
3393
|
* @returns {object} a [balance structure]{@link https://docs.ccxt.com/#/?id=balance-structure}
|
|
3396
3394
|
*/
|
|
3397
3395
|
await this.loadMarkets();
|
|
@@ -3605,31 +3603,6 @@ class binance extends binance$1 {
|
|
|
3605
3603
|
// }
|
|
3606
3604
|
// ]
|
|
3607
3605
|
//
|
|
3608
|
-
// savings
|
|
3609
|
-
//
|
|
3610
|
-
// {
|
|
3611
|
-
// "totalAmountInBTC": "0.3172",
|
|
3612
|
-
// "totalAmountInUSDT": "10000",
|
|
3613
|
-
// "totalFixedAmountInBTC": "0.3172",
|
|
3614
|
-
// "totalFixedAmountInUSDT": "10000",
|
|
3615
|
-
// "totalFlexibleInBTC": "0",
|
|
3616
|
-
// "totalFlexibleInUSDT": "0",
|
|
3617
|
-
// "positionAmountVos": [
|
|
3618
|
-
// {
|
|
3619
|
-
// "asset": "USDT",
|
|
3620
|
-
// "amount": "10000",
|
|
3621
|
-
// "amountInBTC": "0.3172",
|
|
3622
|
-
// "amountInUSDT": "10000"
|
|
3623
|
-
// },
|
|
3624
|
-
// {
|
|
3625
|
-
// "asset": "BUSD",
|
|
3626
|
-
// "amount": "0",
|
|
3627
|
-
// "amountInBTC": "0",
|
|
3628
|
-
// "amountInUSDT": "0"
|
|
3629
|
-
// }
|
|
3630
|
-
// ]
|
|
3631
|
-
// }
|
|
3632
|
-
//
|
|
3633
3606
|
// binance pay
|
|
3634
3607
|
//
|
|
3635
3608
|
// [
|
|
@@ -3669,10 +3642,10 @@ class binance extends binance$1 {
|
|
|
3669
3642
|
* @method
|
|
3670
3643
|
* @name binance#fetchOrderBook
|
|
3671
3644
|
* @description fetches information on open orders with bid (buy) and ask (sell) prices, volumes and other data
|
|
3672
|
-
* @see https://binance
|
|
3673
|
-
* @see https://binance
|
|
3674
|
-
* @see https://binance
|
|
3675
|
-
* @see https://binance
|
|
3645
|
+
* @see https://developers.binance.com/docs/binance-spot-api-docs/rest-api#order-book // spot
|
|
3646
|
+
* @see https://developers.binance.com/docs/derivatives/usds-margined-futures/market-data/rest-api/Order-Book // swap
|
|
3647
|
+
* @see https://developers.binance.com/docs/derivatives/coin-margined-futures/market-data/Order-Book // future
|
|
3648
|
+
* @see https://developers.binance.com/docs/derivatives/option/market-data/Order-Book // option
|
|
3676
3649
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
3677
3650
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
3678
3651
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
@@ -3894,7 +3867,7 @@ class binance extends binance$1 {
|
|
|
3894
3867
|
* @method
|
|
3895
3868
|
* @name binance#fetchStatus
|
|
3896
3869
|
* @description the latest known information on the availability of the exchange API
|
|
3897
|
-
* @see https://binance
|
|
3870
|
+
* @see https://developers.binance.com/docs/wallet/others/system-status
|
|
3898
3871
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
3899
3872
|
* @returns {object} a [status structure]{@link https://docs.ccxt.com/#/?id=exchange-status-structure}
|
|
3900
3873
|
*/
|
|
@@ -3919,11 +3892,11 @@ class binance extends binance$1 {
|
|
|
3919
3892
|
* @method
|
|
3920
3893
|
* @name binance#fetchTicker
|
|
3921
3894
|
* @description fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
|
3922
|
-
* @see https://binance
|
|
3923
|
-
* @see https://binance
|
|
3924
|
-
* @see https://binance
|
|
3925
|
-
* @see https://binance
|
|
3926
|
-
* @see https://binance
|
|
3895
|
+
* @see https://developers.binance.com/docs/binance-spot-api-docs/rest-api#24hr-ticker-price-change-statistics // spot
|
|
3896
|
+
* @see https://developers.binance.com/docs/binance-spot-api-docs/rest-api#rolling-window-price-change-statistics // spot
|
|
3897
|
+
* @see https://developers.binance.com/docs/derivatives/usds-margined-futures/market-data/rest-api/24hr-Ticker-Price-Change-Statistics // swap
|
|
3898
|
+
* @see https://developers.binance.com/docs/derivatives/coin-margined-futures/market-data/24hr-Ticker-Price-Change-Statistics // future
|
|
3899
|
+
* @see https://developers.binance.com/docs/derivatives/option/market-data/24hr-Ticker-Price-Change-Statistics // option
|
|
3927
3900
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
3928
3901
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
3929
3902
|
* @param {boolean} [params.rolling] (spot only) default false, if true, uses the rolling 24 hour ticker endpoint /api/v3/ticker
|
|
@@ -3965,9 +3938,9 @@ class binance extends binance$1 {
|
|
|
3965
3938
|
* @method
|
|
3966
3939
|
* @name binance#fetchBidsAsks
|
|
3967
3940
|
* @description fetches the bid and ask price and volume for multiple markets
|
|
3968
|
-
* @see https://binance
|
|
3969
|
-
* @see https://binance
|
|
3970
|
-
* @see https://binance
|
|
3941
|
+
* @see https://developers.binance.com/docs/binance-spot-api-docs/rest-api#symbol-order-book-ticker // spot
|
|
3942
|
+
* @see https://developers.binance.com/docs/derivatives/usds-margined-futures/market-data/rest-api/Symbol-Order-Book-Ticker // swap
|
|
3943
|
+
* @see https://developers.binance.com/docs/derivatives/coin-margined-futures/market-data/Symbol-Order-Book-Ticker // future
|
|
3971
3944
|
* @param {string[]|undefined} symbols unified symbols of the markets to fetch the bids and asks for, all markets are returned if not assigned
|
|
3972
3945
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
3973
3946
|
* @param {string} [params.subType] "linear" or "inverse"
|
|
@@ -4004,9 +3977,9 @@ class binance extends binance$1 {
|
|
|
4004
3977
|
* @method
|
|
4005
3978
|
* @name binance#fetchLastPrices
|
|
4006
3979
|
* @description fetches the last price for multiple markets
|
|
4007
|
-
* @see https://binance
|
|
4008
|
-
* @see https://binance
|
|
4009
|
-
* @see https://binance
|
|
3980
|
+
* @see https://developers.binance.com/docs/binance-spot-api-docs/rest-api#symbol-price-ticker // spot
|
|
3981
|
+
* @see https://developers.binance.com/docs/derivatives/usds-margined-futures/market-data/rest-api/Symbol-Price-Ticker // swap
|
|
3982
|
+
* @see https://developers.binance.com/docs/derivatives/coin-margined-futures/market-data/Symbol-Price-Ticker // future
|
|
4010
3983
|
* @param {string[]|undefined} symbols unified symbols of the markets to fetch the last prices
|
|
4011
3984
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
4012
3985
|
* @param {string} [params.subType] "linear" or "inverse"
|
|
@@ -4109,10 +4082,10 @@ class binance extends binance$1 {
|
|
|
4109
4082
|
* @method
|
|
4110
4083
|
* @name binance#fetchTickers
|
|
4111
4084
|
* @description fetches price tickers for multiple markets, statistical information calculated over the past 24 hours for each market
|
|
4112
|
-
* @see https://binance
|
|
4113
|
-
* @see https://binance
|
|
4114
|
-
* @see https://binance
|
|
4115
|
-
* @see https://binance
|
|
4085
|
+
* @see https://developers.binance.com/docs/binance-spot-api-docs/rest-api#24hr-ticker-price-change-statistics // spot
|
|
4086
|
+
* @see https://developers.binance.com/docs/derivatives/usds-margined-futures/market-data/rest-api/24hr-Ticker-Price-Change-Statistics // swap
|
|
4087
|
+
* @see https://developers.binance.com/docs/derivatives/coin-margined-futures/market-data/24hr-Ticker-Price-Change-Statistics // future
|
|
4088
|
+
* @see https://developers.binance.com/docs/derivatives/option/market-data/24hr-Ticker-Price-Change-Statistics // option
|
|
4116
4089
|
* @param {string[]} [symbols] unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
|
|
4117
4090
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
4118
4091
|
* @param {string} [params.subType] "linear" or "inverse"
|
|
@@ -4216,14 +4189,16 @@ class binance extends binance$1 {
|
|
|
4216
4189
|
* @method
|
|
4217
4190
|
* @name binance#fetchOHLCV
|
|
4218
4191
|
* @description fetches historical candlestick data containing the open, high, low, and close price, and the volume of a market
|
|
4219
|
-
* @see https://binance
|
|
4220
|
-
* @see https://binance
|
|
4221
|
-
* @see https://binance
|
|
4222
|
-
* @see https://binance
|
|
4223
|
-
* @see https://binance
|
|
4224
|
-
* @see https://binance
|
|
4225
|
-
* @see https://binance
|
|
4226
|
-
* @see https://binance
|
|
4192
|
+
* @see https://developers.binance.com/docs/binance-spot-api-docs/rest-api#klinecandlestick-data
|
|
4193
|
+
* @see https://developers.binance.com/docs/derivatives/option/market-data/Kline-Candlestick-Data
|
|
4194
|
+
* @see https://developers.binance.com/docs/derivatives/usds-margined-futures/market-data/rest-api/Kline-Candlestick-Data
|
|
4195
|
+
* @see https://developers.binance.com/docs/derivatives/usds-margined-futures/market-data/rest-api/Index-Price-Kline-Candlestick-Data
|
|
4196
|
+
* @see https://developers.binance.com/docs/derivatives/usds-margined-futures/market-data/rest-api/Mark-Price-Kline-Candlestick-Data
|
|
4197
|
+
* @see https://developers.binance.com/docs/derivatives/usds-margined-futures/market-data/rest-api/Premium-Index-Kline-Data
|
|
4198
|
+
* @see https://developers.binance.com/docs/derivatives/coin-margined-futures/market-data/Kline-Candlestick-Data
|
|
4199
|
+
* @see https://developers.binance.com/docs/derivatives/coin-margined-futures/market-data/Index-Price-Kline-Candlestick-Data
|
|
4200
|
+
* @see https://developers.binance.com/docs/derivatives/coin-margined-futures/market-data/Mark-Price-Kline-Candlestick-Data
|
|
4201
|
+
* @see https://developers.binance.com/docs/derivatives/coin-margined-futures/market-data/Premium-Index-Kline-Data
|
|
4227
4202
|
* @param {string} symbol unified symbol of the market to fetch OHLCV data for
|
|
4228
4203
|
* @param {string} timeframe the length of time each candle represents
|
|
4229
4204
|
* @param {int} [since] timestamp in ms of the earliest candle to fetch
|
|
@@ -4231,7 +4206,7 @@ class binance extends binance$1 {
|
|
|
4231
4206
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
4232
4207
|
* @param {string} [params.price] "mark" or "index" for mark price and index price candles
|
|
4233
4208
|
* @param {int} [params.until] timestamp in ms of the latest candle to fetch
|
|
4234
|
-
* @param {boolean} [params.paginate] default false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the [
|
|
4209
|
+
* @param {boolean} [params.paginate] default false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the [available parameters](https://github.com/ccxt/ccxt/wiki/Manual#pagination-params)
|
|
4235
4210
|
* @returns {int[][]} A list of candles ordered as timestamp, open, high, low, close, volume
|
|
4236
4211
|
*/
|
|
4237
4212
|
await this.loadMarkets();
|
|
@@ -4408,7 +4383,6 @@ class binance extends binance$1 {
|
|
|
4408
4383
|
// }
|
|
4409
4384
|
//
|
|
4410
4385
|
// futures trades
|
|
4411
|
-
// https://binance-docs.github.io/apidocs/futures/en/#account-trade-list-user_data
|
|
4412
4386
|
//
|
|
4413
4387
|
// {
|
|
4414
4388
|
// "accountId": 20,
|
|
@@ -4622,18 +4596,18 @@ class binance extends binance$1 {
|
|
|
4622
4596
|
* @name binance#fetchTrades
|
|
4623
4597
|
* @description get the list of most recent trades for a particular symbol
|
|
4624
4598
|
* Default fetchTradesMethod
|
|
4625
|
-
* @see https://binance
|
|
4626
|
-
* @see https://binance
|
|
4627
|
-
* @see https://binance
|
|
4628
|
-
* @see https://binance
|
|
4599
|
+
* @see https://developers.binance.com/docs/binance-spot-api-docs/rest-api#compressedaggregate-trades-list // publicGetAggTrades (spot)
|
|
4600
|
+
* @see https://developers.binance.com/docs/derivatives/usds-margined-futures/market-data/rest-api/Compressed-Aggregate-Trades-List // fapiPublicGetAggTrades (swap)
|
|
4601
|
+
* @see https://developers.binance.com/docs/derivatives/coin-margined-futures/market-data/Compressed-Aggregate-Trades-List // dapiPublicGetAggTrades (future)
|
|
4602
|
+
* @see https://developers.binance.com/docs/derivatives/option/market-data/Recent-Trades-List // eapiPublicGetTrades (option)
|
|
4629
4603
|
* Other fetchTradesMethod
|
|
4630
|
-
* @see https://binance
|
|
4631
|
-
* @see https://binance
|
|
4632
|
-
* @see https://binance
|
|
4633
|
-
* @see https://binance
|
|
4634
|
-
* @see https://binance
|
|
4635
|
-
* @see https://binance
|
|
4636
|
-
* @see https://binance
|
|
4604
|
+
* @see https://developers.binance.com/docs/binance-spot-api-docs/rest-api#recent-trades-list // publicGetTrades (spot)
|
|
4605
|
+
* @see https://developers.binance.com/docs/derivatives/usds-margined-futures/market-data/rest-api/Recent-Trades-List // fapiPublicGetTrades (swap)
|
|
4606
|
+
* @see https://developers.binance.com/docs/derivatives/coin-margined-futures/market-data/Recent-Trades-List // dapiPublicGetTrades (future)
|
|
4607
|
+
* @see https://developers.binance.com/docs/binance-spot-api-docs/rest-api#old-trade-lookup // publicGetHistoricalTrades (spot)
|
|
4608
|
+
* @see https://developers.binance.com/docs/derivatives/usds-margined-futures/market-data/rest-api/Old-Trades-Lookup // fapiPublicGetHistoricalTrades (swap)
|
|
4609
|
+
* @see https://developers.binance.com/docs/derivatives/coin-margined-futures/market-data/Old-Trades-Lookup // dapiPublicGetHistoricalTrades (future)
|
|
4610
|
+
* @see https://developers.binance.com/docs/derivatives/option/market-data/Old-Trades-Lookup // eapiPublicGetHistoricalTrades (option)
|
|
4637
4611
|
* @param {string} symbol unified symbol of the market to fetch trades for
|
|
4638
4612
|
* @param {int} [since] only used when fetchTradesMethod is 'publicGetAggTrades', 'fapiPublicGetAggTrades', or 'dapiPublicGetAggTrades'
|
|
4639
4613
|
* @param {int} [limit] default 500, max 1000
|
|
@@ -4766,7 +4740,7 @@ class binance extends binance$1 {
|
|
|
4766
4740
|
* @name binance#editSpotOrder
|
|
4767
4741
|
* @ignore
|
|
4768
4742
|
* @description edit a trade order
|
|
4769
|
-
* @see https://binance
|
|
4743
|
+
* @see https://developers.binance.com/docs/binance-spot-api-docs/rest-api#cancel-an-existing-order-and-send-a-new-order-trade
|
|
4770
4744
|
* @param {string} id cancel order id
|
|
4771
4745
|
* @param {string} symbol unified symbol of the market to create an order in
|
|
4772
4746
|
* @param {string} type 'market' or 'limit' or 'STOP_LOSS' or 'STOP_LOSS_LIMIT' or 'TAKE_PROFIT' or 'TAKE_PROFIT_LIMIT' or 'STOP'
|
|
@@ -4989,8 +4963,8 @@ class binance extends binance$1 {
|
|
|
4989
4963
|
* @method
|
|
4990
4964
|
* @name binance#editContractOrder
|
|
4991
4965
|
* @description edit a trade order
|
|
4992
|
-
* @see https://binance
|
|
4993
|
-
* @see https://binance
|
|
4966
|
+
* @see https://developers.binance.com/docs/derivatives/usds-margined-futures/trade/rest-api/Modify-Order
|
|
4967
|
+
* @see https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/Modify-Order
|
|
4994
4968
|
* @param {string} id cancel order id
|
|
4995
4969
|
* @param {string} symbol unified symbol of the market to create an order in
|
|
4996
4970
|
* @param {string} type 'market' or 'limit'
|
|
@@ -5044,9 +5018,9 @@ class binance extends binance$1 {
|
|
|
5044
5018
|
* @method
|
|
5045
5019
|
* @name binance#editOrder
|
|
5046
5020
|
* @description edit a trade order
|
|
5047
|
-
* @see https://binance
|
|
5048
|
-
* @see https://binance
|
|
5049
|
-
* @see https://binance
|
|
5021
|
+
* @see https://developers.binance.com/docs/binance-spot-api-docs/rest-api#cancel-an-existing-order-and-send-a-new-order-trade
|
|
5022
|
+
* @see https://developers.binance.com/docs/derivatives/usds-margined-futures/trade/rest-api/Modify-Order
|
|
5023
|
+
* @see https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/Modify-Order
|
|
5050
5024
|
* @param {string} id cancel order id
|
|
5051
5025
|
* @param {string} symbol unified symbol of the market to create an order in
|
|
5052
5026
|
* @param {string} type 'market' or 'limit'
|
|
@@ -5653,7 +5627,9 @@ class binance extends binance$1 {
|
|
|
5653
5627
|
* @method
|
|
5654
5628
|
* @name binance#createOrders
|
|
5655
5629
|
* @description *contract only* create a list of trade orders
|
|
5656
|
-
* @see https://binance
|
|
5630
|
+
* @see https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/Place-Multiple-Orders
|
|
5631
|
+
* @see https://developers.binance.com/docs/derivatives/usds-margined-futures/trade/rest-api/Place-Multiple-Orders
|
|
5632
|
+
* @see https://developers.binance.com/docs/derivatives/option/trade/Place-Multiple-Orders
|
|
5657
5633
|
* @param {Array} orders list of orders to create, each object should contain the parameters required by createOrder, namely symbol, type, side, amount, price and params
|
|
5658
5634
|
* @returns {object} an [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
5659
5635
|
*/
|
|
@@ -5732,18 +5708,18 @@ class binance extends binance$1 {
|
|
|
5732
5708
|
* @method
|
|
5733
5709
|
* @name binance#createOrder
|
|
5734
5710
|
* @description create a trade order
|
|
5735
|
-
* @see https://binance
|
|
5736
|
-
* @see https://binance
|
|
5737
|
-
* @see https://binance
|
|
5738
|
-
* @see https://binance
|
|
5739
|
-
* @see https://binance
|
|
5740
|
-
* @see https://binance
|
|
5741
|
-
* @see https://binance
|
|
5742
|
-
* @see https://binance
|
|
5743
|
-
* @see https://binance
|
|
5744
|
-
* @see https://binance
|
|
5745
|
-
* @see https://binance
|
|
5746
|
-
* @see https://binance
|
|
5711
|
+
* @see https://developers.binance.com/docs/binance-spot-api-docs/rest-api#new-order-trade
|
|
5712
|
+
* @see https://developers.binance.com/docs/binance-spot-api-docs/rest-api#test-new-order-trade
|
|
5713
|
+
* @see https://developers.binance.com/docs/derivatives/usds-margined-futures/trade/rest-api/New-Order
|
|
5714
|
+
* @see https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/New-Order
|
|
5715
|
+
* @see https://developers.binance.com/docs/derivatives/option/trade/New-Order
|
|
5716
|
+
* @see https://developers.binance.com/docs/binance-spot-api-docs/rest-api#sor
|
|
5717
|
+
* @see https://developers.binance.com/docs/binance-spot-api-docs/rest-api#test-new-order-using-sor-trade
|
|
5718
|
+
* @see https://developers.binance.com/docs/derivatives/portfolio-margin/trade/New-UM-Order
|
|
5719
|
+
* @see https://developers.binance.com/docs/derivatives/portfolio-margin/trade/New-CM-Order
|
|
5720
|
+
* @see https://developers.binance.com/docs/derivatives/portfolio-margin/trade/New-Margin-Order
|
|
5721
|
+
* @see https://developers.binance.com/docs/derivatives/portfolio-margin/trade/New-UM-Conditional-Order
|
|
5722
|
+
* @see https://developers.binance.com/docs/derivatives/portfolio-margin/trade/New-CM-Conditional-Order
|
|
5747
5723
|
* @param {string} symbol unified symbol of the market to create an order in
|
|
5748
5724
|
* @param {string} type 'market' or 'limit' or 'STOP_LOSS' or 'STOP_LOSS_LIMIT' or 'TAKE_PROFIT' or 'TAKE_PROFIT_LIMIT' or 'STOP'
|
|
5749
5725
|
* @param {string} side 'buy' or 'sell'
|
|
@@ -5991,7 +5967,7 @@ class binance extends binance$1 {
|
|
|
5991
5967
|
postOnly = this.isPostOnly(isMarketOrder, initialUppercaseType === 'LIMIT_MAKER', params);
|
|
5992
5968
|
if (postOnly) {
|
|
5993
5969
|
if (!market['contract']) {
|
|
5994
|
-
uppercaseType = 'LIMIT_MAKER';
|
|
5970
|
+
uppercaseType = 'LIMIT_MAKER';
|
|
5995
5971
|
}
|
|
5996
5972
|
else {
|
|
5997
5973
|
request['timeInForce'] = 'GTX';
|
|
@@ -6149,7 +6125,7 @@ class binance extends binance$1 {
|
|
|
6149
6125
|
* @method
|
|
6150
6126
|
* @name binance#createMarketOrderWithCost
|
|
6151
6127
|
* @description create a market order by providing the symbol, side and cost
|
|
6152
|
-
* @see https://binance
|
|
6128
|
+
* @see https://developers.binance.com/docs/binance-spot-api-docs/rest-api#new-order-trade
|
|
6153
6129
|
* @param {string} symbol unified symbol of the market to create an order in
|
|
6154
6130
|
* @param {string} side 'buy' or 'sell'
|
|
6155
6131
|
* @param {float} cost how much you want to trade in units of the quote currency
|
|
@@ -6169,7 +6145,7 @@ class binance extends binance$1 {
|
|
|
6169
6145
|
* @method
|
|
6170
6146
|
* @name binance#createMarketBuyOrderWithCost
|
|
6171
6147
|
* @description create a market buy order by providing the symbol and cost
|
|
6172
|
-
* @see https://binance
|
|
6148
|
+
* @see https://developers.binance.com/docs/binance-spot-api-docs/rest-api#new-order-trade
|
|
6173
6149
|
* @param {string} symbol unified symbol of the market to create an order in
|
|
6174
6150
|
* @param {float} cost how much you want to trade in units of the quote currency
|
|
6175
6151
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
@@ -6188,7 +6164,7 @@ class binance extends binance$1 {
|
|
|
6188
6164
|
* @method
|
|
6189
6165
|
* @name binance#createMarketSellOrderWithCost
|
|
6190
6166
|
* @description create a market sell order by providing the symbol and cost
|
|
6191
|
-
* @see https://binance
|
|
6167
|
+
* @see https://developers.binance.com/docs/binance-spot-api-docs/rest-api#new-order-trade
|
|
6192
6168
|
* @param {string} symbol unified symbol of the market to create an order in
|
|
6193
6169
|
* @param {float} cost how much you want to trade in units of the quote currency
|
|
6194
6170
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
@@ -6207,14 +6183,13 @@ class binance extends binance$1 {
|
|
|
6207
6183
|
* @method
|
|
6208
6184
|
* @name binance#fetchOrder
|
|
6209
6185
|
* @description fetches information on an order made by the user
|
|
6210
|
-
* @see https://binance
|
|
6211
|
-
* @see https://binance
|
|
6212
|
-
* @see https://binance
|
|
6213
|
-
* @see https://binance
|
|
6214
|
-
* @see https://binance
|
|
6215
|
-
* @see https://binance
|
|
6216
|
-
* @see https://binance
|
|
6217
|
-
* @see https://binance-docs.github.io/apidocs/pm/en/#query-margin-account-order-user_data
|
|
6186
|
+
* @see https://developers.binance.com/docs/binance-spot-api-docs/rest-api#query-order-user_data
|
|
6187
|
+
* @see https://developers.binance.com/docs/derivatives/usds-margined-futures/trade/rest-api/Query-Order
|
|
6188
|
+
* @see https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/Query-Order
|
|
6189
|
+
* @see https://developers.binance.com/docs/derivatives/option/trade/Query-Single-Order
|
|
6190
|
+
* @see https://developers.binance.com/docs/margin_trading/trade/Query-Margin-Account-Order
|
|
6191
|
+
* @see https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Query-UM-Order
|
|
6192
|
+
* @see https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Query-CM-Order
|
|
6218
6193
|
* @param {string} id the order id
|
|
6219
6194
|
* @param {string} symbol unified symbol of the market the order was made in
|
|
6220
6195
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
@@ -6290,16 +6265,15 @@ class binance extends binance$1 {
|
|
|
6290
6265
|
* @method
|
|
6291
6266
|
* @name binance#fetchOrders
|
|
6292
6267
|
* @description fetches information on multiple orders made by the user
|
|
6293
|
-
* @see https://binance
|
|
6294
|
-
* @see https://binance
|
|
6295
|
-
* @see https://binance
|
|
6296
|
-
* @see https://binance
|
|
6297
|
-
* @see https://binance
|
|
6298
|
-
* @see https://binance
|
|
6299
|
-
* @see https://binance
|
|
6300
|
-
* @see https://binance
|
|
6301
|
-
* @see https://binance
|
|
6302
|
-
* @see https://binance-docs.github.io/apidocs/pm/en/#query-all-margin-account-orders-user_data
|
|
6268
|
+
* @see https://developers.binance.com/docs/binance-spot-api-docs/rest-api#all-orders-user_data
|
|
6269
|
+
* @see https://developers.binance.com/docs/derivatives/usds-margined-futures/trade/rest-api/All-Orders
|
|
6270
|
+
* @see https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/All-Orders
|
|
6271
|
+
* @see https://developers.binance.com/docs/derivatives/option/trade/Query-Option-Order-History
|
|
6272
|
+
* @see https://developers.binance.com/docs/margin_trading/trade/Query-Margin-Account-All-Orders
|
|
6273
|
+
* @see https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Query-All-UM-Orders
|
|
6274
|
+
* @see https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Query-All-CM-Orders
|
|
6275
|
+
* @see https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Query-All-UM-Conditional-Orders
|
|
6276
|
+
* @see https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Query-All-CM-Conditional-Orders
|
|
6303
6277
|
* @param {string} symbol unified market symbol of the market orders were made in
|
|
6304
6278
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
6305
6279
|
* @param {int} [limit] the maximum number of order structures to retrieve
|
|
@@ -6570,20 +6544,15 @@ class binance extends binance$1 {
|
|
|
6570
6544
|
* @method
|
|
6571
6545
|
* @name binance#fetchOpenOrders
|
|
6572
6546
|
* @description fetch all unfilled currently open orders
|
|
6573
|
-
* @see https://binance
|
|
6574
|
-
* @see https://binance
|
|
6575
|
-
* @see https://binance
|
|
6576
|
-
* @see https://binance
|
|
6577
|
-
* @see https://binance
|
|
6578
|
-
* @see https://binance
|
|
6579
|
-
* @see https://binance
|
|
6580
|
-
* @see https://binance
|
|
6581
|
-
* @see https://binance
|
|
6582
|
-
* @see https://binance-docs.github.io/apidocs/pm/en/#query-all-current-um-open-orders-user_data
|
|
6583
|
-
* @see https://binance-docs.github.io/apidocs/pm/en/#query-all-current-cm-open-orders-user_data
|
|
6584
|
-
* @see https://binance-docs.github.io/apidocs/pm/en/#query-all-current-um-open-conditional-orders-user_data
|
|
6585
|
-
* @see https://binance-docs.github.io/apidocs/pm/en/#query-all-current-cm-open-conditional-orders-user_data
|
|
6586
|
-
* @see https://binance-docs.github.io/apidocs/pm/en/#query-current-margin-open-order-user_data
|
|
6547
|
+
* @see https://developers.binance.com/docs/binance-spot-api-docs/rest-api#current-open-orders-user_data
|
|
6548
|
+
* @see https://developers.binance.com/docs/derivatives/usds-margined-futures/trade/rest-api/Current-All-Open-Orders
|
|
6549
|
+
* @see https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/Current-All-Open-Orders
|
|
6550
|
+
* @see https://developers.binance.com/docs/derivatives/option/trade/Query-Current-Open-Option-Orders
|
|
6551
|
+
* @see https://developers.binance.com/docs/margin_trading/trade/Query-Margin-Account-Open-Orders
|
|
6552
|
+
* @see https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Query-All-Current-UM-Open-Orders
|
|
6553
|
+
* @see https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Query-All-Current-UM-Open-Conditional-Orders
|
|
6554
|
+
* @see https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Query-All-Current-CM-Open-Orders
|
|
6555
|
+
* @see https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Query-All-Current-CM-Open-Conditional-Orders
|
|
6587
6556
|
* @param {string} symbol unified market symbol
|
|
6588
6557
|
* @param {int} [since] the earliest time in ms to fetch open orders for
|
|
6589
6558
|
* @param {int} [limit] the maximum number of open orders structures to retrieve
|
|
@@ -6683,12 +6652,12 @@ class binance extends binance$1 {
|
|
|
6683
6652
|
* @method
|
|
6684
6653
|
* @name binance#fetchOpenOrder
|
|
6685
6654
|
* @description fetch an open order by the id
|
|
6686
|
-
* @see https://binance
|
|
6687
|
-
* @see https://binance
|
|
6688
|
-
* @see https://binance
|
|
6689
|
-
* @see https://binance
|
|
6690
|
-
* @see https://binance
|
|
6691
|
-
* @see https://binance
|
|
6655
|
+
* @see https://developers.binance.com/docs/derivatives/usds-margined-futures/trade/rest-api/Query-Current-Open-Order
|
|
6656
|
+
* @see https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/Query-Current-Open-Order
|
|
6657
|
+
* @see https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Query-Current-UM-Open-Order
|
|
6658
|
+
* @see https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Query-Current-UM-Open-Conditional-Order
|
|
6659
|
+
* @see https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Query-Current-CM-Open-Order
|
|
6660
|
+
* @see https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Query-Current-CM-Open-Conditional-Order
|
|
6692
6661
|
* @param {string} id order id
|
|
6693
6662
|
* @param {string} symbol unified market symbol
|
|
6694
6663
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
@@ -6900,16 +6869,15 @@ class binance extends binance$1 {
|
|
|
6900
6869
|
* @method
|
|
6901
6870
|
* @name binance#fetchClosedOrders
|
|
6902
6871
|
* @description fetches information on multiple closed orders made by the user
|
|
6903
|
-
* @see https://binance
|
|
6904
|
-
* @see https://binance
|
|
6905
|
-
* @see https://binance
|
|
6906
|
-
* @see https://binance
|
|
6907
|
-
* @see https://binance
|
|
6908
|
-
* @see https://binance
|
|
6909
|
-
* @see https://binance
|
|
6910
|
-
* @see https://binance
|
|
6911
|
-
* @see https://binance
|
|
6912
|
-
* @see https://binance-docs.github.io/apidocs/pm/en/#query-all-margin-account-orders-user_data
|
|
6872
|
+
* @see https://developers.binance.com/docs/binance-spot-api-docs/rest-api#all-orders-user_data
|
|
6873
|
+
* @see https://developers.binance.com/docs/derivatives/usds-margined-futures/trade/rest-api/All-Orders
|
|
6874
|
+
* @see https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/All-Orders
|
|
6875
|
+
* @see https://developers.binance.com/docs/derivatives/option/trade/Query-Option-Order-History
|
|
6876
|
+
* @see https://developers.binance.com/docs/margin_trading/trade/Query-Margin-Account-All-Orders
|
|
6877
|
+
* @see https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Query-All-UM-Orders
|
|
6878
|
+
* @see https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Query-All-CM-Orders
|
|
6879
|
+
* @see https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Query-All-UM-Conditional-Orders
|
|
6880
|
+
* @see https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Query-All-CM-Conditional-Orders
|
|
6913
6881
|
* @param {string} symbol unified market symbol of the market orders were made in
|
|
6914
6882
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
6915
6883
|
* @param {int} [limit] the maximum number of order structures to retrieve
|
|
@@ -6931,14 +6899,15 @@ class binance extends binance$1 {
|
|
|
6931
6899
|
* @method
|
|
6932
6900
|
* @name binance#fetchCanceledOrders
|
|
6933
6901
|
* @description fetches information on multiple canceled orders made by the user
|
|
6934
|
-
* @see https://binance
|
|
6935
|
-
* @see https://binance
|
|
6936
|
-
* @see https://binance
|
|
6937
|
-
* @see https://binance
|
|
6938
|
-
* @see https://binance
|
|
6939
|
-
* @see https://binance
|
|
6940
|
-
* @see https://binance
|
|
6941
|
-
* @see https://binance
|
|
6902
|
+
* @see https://developers.binance.com/docs/binance-spot-api-docs/rest-api#all-orders-user_data
|
|
6903
|
+
* @see https://developers.binance.com/docs/derivatives/usds-margined-futures/trade/rest-api/All-Orders
|
|
6904
|
+
* @see https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/All-Orders
|
|
6905
|
+
* @see https://developers.binance.com/docs/derivatives/option/trade/Query-Option-Order-History
|
|
6906
|
+
* @see https://developers.binance.com/docs/margin_trading/trade/Query-Margin-Account-All-Orders
|
|
6907
|
+
* @see https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Query-All-UM-Orders
|
|
6908
|
+
* @see https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Query-All-CM-Orders
|
|
6909
|
+
* @see https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Query-All-UM-Conditional-Orders
|
|
6910
|
+
* @see https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Query-All-CM-Conditional-Orders
|
|
6942
6911
|
* @param {string} symbol unified market symbol of the market the orders were made in
|
|
6943
6912
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
6944
6913
|
* @param {int} [limit] the maximum number of order structures to retrieve
|
|
@@ -6960,14 +6929,15 @@ class binance extends binance$1 {
|
|
|
6960
6929
|
* @method
|
|
6961
6930
|
* @name binance#fetchCanceledAndClosedOrders
|
|
6962
6931
|
* @description fetches information on multiple canceled orders made by the user
|
|
6963
|
-
* @see https://binance
|
|
6964
|
-
* @see https://binance
|
|
6965
|
-
* @see https://binance
|
|
6966
|
-
* @see https://binance
|
|
6967
|
-
* @see https://binance
|
|
6968
|
-
* @see https://binance
|
|
6969
|
-
* @see https://binance
|
|
6970
|
-
* @see https://binance
|
|
6932
|
+
* @see https://developers.binance.com/docs/binance-spot-api-docs/rest-api#all-orders-user_data
|
|
6933
|
+
* @see https://developers.binance.com/docs/derivatives/usds-margined-futures/trade/rest-api/All-Orders
|
|
6934
|
+
* @see https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/All-Orders
|
|
6935
|
+
* @see https://developers.binance.com/docs/derivatives/option/trade/Query-Option-Order-History
|
|
6936
|
+
* @see https://developers.binance.com/docs/margin_trading/trade/Query-Margin-Account-All-Orders
|
|
6937
|
+
* @see https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Query-All-UM-Orders
|
|
6938
|
+
* @see https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Query-All-CM-Orders
|
|
6939
|
+
* @see https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Query-All-UM-Conditional-Orders
|
|
6940
|
+
* @see https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Query-All-CM-Conditional-Orders
|
|
6971
6941
|
* @param {string} symbol unified market symbol of the market the orders were made in
|
|
6972
6942
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
6973
6943
|
* @param {int} [limit] the maximum number of order structures to retrieve
|
|
@@ -6992,16 +6962,16 @@ class binance extends binance$1 {
|
|
|
6992
6962
|
* @method
|
|
6993
6963
|
* @name binance#cancelOrder
|
|
6994
6964
|
* @description cancels an open order
|
|
6995
|
-
* @see https://binance
|
|
6996
|
-
* @see https://binance
|
|
6997
|
-
* @see https://binance
|
|
6998
|
-
* @see https://binance
|
|
6999
|
-
* @see https://binance
|
|
7000
|
-
* @see https://binance
|
|
7001
|
-
* @see https://binance
|
|
7002
|
-
* @see https://binance
|
|
7003
|
-
* @see https://binance
|
|
7004
|
-
* @see https://binance
|
|
6965
|
+
* @see https://developers.binance.com/docs/binance-spot-api-docs/rest-api#cancel-order-trade
|
|
6966
|
+
* @see https://developers.binance.com/docs/derivatives/usds-margined-futures/trade/rest-api/Cancel-Order
|
|
6967
|
+
* @see https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/Cancel-Order
|
|
6968
|
+
* @see https://developers.binance.com/docs/derivatives/option/trade/Cancel-Option-Order
|
|
6969
|
+
* @see https://developers.binance.com/docs/margin_trading/trade/Margin-Account-Cancel-Order
|
|
6970
|
+
* @see https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Cancel-UM-Order
|
|
6971
|
+
* @see https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Cancel-CM-Order
|
|
6972
|
+
* @see https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Cancel-UM-Conditional-Order
|
|
6973
|
+
* @see https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Cancel-CM-Conditional-Order
|
|
6974
|
+
* @see https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Cancel-Margin-Account-Order
|
|
7005
6975
|
* @param {string} id order id
|
|
7006
6976
|
* @param {string} symbol unified symbol of the market the order was made in
|
|
7007
6977
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
@@ -7098,16 +7068,15 @@ class binance extends binance$1 {
|
|
|
7098
7068
|
* @method
|
|
7099
7069
|
* @name binance#cancelAllOrders
|
|
7100
7070
|
* @description cancel all open orders in a market
|
|
7101
|
-
* @see https://binance
|
|
7102
|
-
* @see https://binance
|
|
7103
|
-
* @see https://binance
|
|
7104
|
-
* @see https://binance
|
|
7105
|
-
* @see https://binance
|
|
7106
|
-
* @see https://binance
|
|
7107
|
-
* @see https://binance
|
|
7108
|
-
* @see https://binance
|
|
7109
|
-
* @see https://binance
|
|
7110
|
-
* @see https://binance-docs.github.io/apidocs/pm/en/#cancel-margin-account-all-open-orders-on-a-symbol-trade
|
|
7071
|
+
* @see https://developers.binance.com/docs/binance-spot-api-docs/rest-api#cancel-all-open-orders-on-a-symbol-trade
|
|
7072
|
+
* @see https://developers.binance.com/docs/derivatives/usds-margined-futures/trade/rest-api/Cancel-All-Open-Orders
|
|
7073
|
+
* @see https://developers.binance.com/docs/derivatives/option/trade/Cancel-all-Option-orders-on-specific-symbol
|
|
7074
|
+
* @see https://developers.binance.com/docs/margin_trading/trade/Margin-Account-Cancel-All-Open-Orders
|
|
7075
|
+
* @see https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Cancel-All-UM-Open-Orders
|
|
7076
|
+
* @see https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Cancel-All-UM-Open-Conditional-Orders
|
|
7077
|
+
* @see https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Cancel-All-CM-Open-Orders
|
|
7078
|
+
* @see https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Cancel-All-CM-Open-Conditional-Orders
|
|
7079
|
+
* @see https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Cancel-Margin-Account-All-Open-Orders-on-a-Symbol
|
|
7111
7080
|
* @param {string} symbol unified market symbol of the market to cancel orders in
|
|
7112
7081
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
7113
7082
|
* @param {string} [params.marginMode] 'cross' or 'isolated', for spot margin trading
|
|
@@ -7186,8 +7155,8 @@ class binance extends binance$1 {
|
|
|
7186
7155
|
* @method
|
|
7187
7156
|
* @name binance#cancelOrders
|
|
7188
7157
|
* @description cancel multiple orders
|
|
7189
|
-
* @see https://binance
|
|
7190
|
-
* @see https://binance
|
|
7158
|
+
* @see https://developers.binance.com/docs/derivatives/usds-margined-futures/trade/rest-api/Cancel-Multiple-Orders
|
|
7159
|
+
* @see https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/Cancel-Multiple-Orders
|
|
7191
7160
|
* @param {string[]} ids order ids
|
|
7192
7161
|
* @param {string} [symbol] unified market symbol
|
|
7193
7162
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
@@ -7258,10 +7227,10 @@ class binance extends binance$1 {
|
|
|
7258
7227
|
* @method
|
|
7259
7228
|
* @name binance#fetchOrderTrades
|
|
7260
7229
|
* @description fetch all the trades made from a single order
|
|
7261
|
-
* @see https://binance
|
|
7262
|
-
* @see https://binance
|
|
7263
|
-
* @see https://binance
|
|
7264
|
-
* @see https://binance
|
|
7230
|
+
* @see https://developers.binance.com/docs/binance-spot-api-docs/rest-api#account-trade-list-user_data
|
|
7231
|
+
* @see https://developers.binance.com/docs/derivatives/usds-margined-futures/trade/rest-api/Account-Trade-List
|
|
7232
|
+
* @see https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/Account-Trade-List
|
|
7233
|
+
* @see https://developers.binance.com/docs/margin_trading/trade/Query-Margin-Account-Trade-List
|
|
7265
7234
|
* @param {string} id order id
|
|
7266
7235
|
* @param {string} symbol unified market symbol
|
|
7267
7236
|
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
@@ -7289,13 +7258,13 @@ class binance extends binance$1 {
|
|
|
7289
7258
|
* @method
|
|
7290
7259
|
* @name binance#fetchMyTrades
|
|
7291
7260
|
* @description fetch all trades made by the user
|
|
7292
|
-
* @see https://binance
|
|
7293
|
-
* @see https://binance
|
|
7294
|
-
* @see https://binance
|
|
7295
|
-
* @see https://binance
|
|
7296
|
-
* @see https://binance
|
|
7297
|
-
* @see https://binance
|
|
7298
|
-
* @see https://binance
|
|
7261
|
+
* @see https://developers.binance.com/docs/binance-spot-api-docs/rest-api#account-trade-list-user_data
|
|
7262
|
+
* @see https://developers.binance.com/docs/derivatives/usds-margined-futures/trade/rest-api/Account-Trade-List
|
|
7263
|
+
* @see https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/Account-Trade-List
|
|
7264
|
+
* @see https://developers.binance.com/docs/margin_trading/trade/Query-Margin-Account-Trade-List
|
|
7265
|
+
* @see https://developers.binance.com/docs/derivatives/option/trade/Account-Trade-List
|
|
7266
|
+
* @see https://developers.binance.com/docs/derivatives/portfolio-margin/trade/UM-Account-Trade-List
|
|
7267
|
+
* @see https://developers.binance.com/docs/derivatives/portfolio-margin/trade/CM-Account-Trade-List
|
|
7299
7268
|
* @param {string} symbol unified market symbol
|
|
7300
7269
|
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
7301
7270
|
* @param {int} [limit] the maximum number of trades structures to retrieve
|
|
@@ -7324,7 +7293,6 @@ class binance extends binance$1 {
|
|
|
7324
7293
|
if (since !== undefined) {
|
|
7325
7294
|
const startTime = since;
|
|
7326
7295
|
request['startTime'] = startTime;
|
|
7327
|
-
// https://binance-docs.github.io/apidocs/futures/en/#account-trade-list-user_data
|
|
7328
7296
|
// If startTime and endTime are both not sent, then the last 7 days' data will be returned.
|
|
7329
7297
|
// The time between startTime and endTime cannot be longer than 7 days.
|
|
7330
7298
|
// The parameter fromId cannot be sent with startTime or endTime.
|
|
@@ -7525,7 +7493,7 @@ class binance extends binance$1 {
|
|
|
7525
7493
|
* @method
|
|
7526
7494
|
* @name binance#fetchMyDustTrades
|
|
7527
7495
|
* @description fetch all dust trades made by the user
|
|
7528
|
-
* @see https://binance
|
|
7496
|
+
* @see https://developers.binance.com/docs/wallet/asset/dust-log
|
|
7529
7497
|
* @param {string} symbol not used by binance fetchMyDustTrades ()
|
|
7530
7498
|
* @param {int} [since] the earliest time in ms to fetch my dust trades for
|
|
7531
7499
|
* @param {int} [limit] the maximum number of dust trades to retrieve
|
|
@@ -7669,17 +7637,16 @@ class binance extends binance$1 {
|
|
|
7669
7637
|
/**
|
|
7670
7638
|
* @method
|
|
7671
7639
|
* @name binance#fetchDeposits
|
|
7672
|
-
* @see https://binance-docs.github.io/apidocs/spot/en/#get-fiat-deposit-withdraw-history-user_data
|
|
7673
7640
|
* @description fetch all deposits made to an account
|
|
7674
|
-
* @see https://binance
|
|
7675
|
-
* @see https://binance
|
|
7641
|
+
* @see https://developers.binance.com/docs/wallet/capital/deposite-history
|
|
7642
|
+
* @see https://developers.binance.com/docs/fiat/rest-api/Get-Fiat-Deposit-Withdraw-History
|
|
7676
7643
|
* @param {string} code unified currency code
|
|
7677
7644
|
* @param {int} [since] the earliest time in ms to fetch deposits for
|
|
7678
7645
|
* @param {int} [limit] the maximum number of deposits structures to retrieve
|
|
7679
7646
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
7680
7647
|
* @param {bool} [params.fiat] if true, only fiat deposits will be returned
|
|
7681
7648
|
* @param {int} [params.until] the latest time in ms to fetch entries for
|
|
7682
|
-
* @param {boolean} [params.paginate] default false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the [
|
|
7649
|
+
* @param {boolean} [params.paginate] default false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the [available parameters](https://github.com/ccxt/ccxt/wiki/Manual#pagination-params)
|
|
7683
7650
|
* @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com/#/?id=transaction-structure}
|
|
7684
7651
|
*/
|
|
7685
7652
|
await this.loadMarkets();
|
|
@@ -7783,18 +7750,16 @@ class binance extends binance$1 {
|
|
|
7783
7750
|
/**
|
|
7784
7751
|
* @method
|
|
7785
7752
|
* @name binance#fetchWithdrawals
|
|
7786
|
-
* @see https://binance-docs.github.io/apidocs/spot/en/#get-fiat-deposit-withdraw-history-user_data
|
|
7787
|
-
* @see https://binance-docs.github.io/apidocs/spot/en/#withdraw-history-supporting-network-user_data
|
|
7788
7753
|
* @description fetch all withdrawals made from an account
|
|
7789
|
-
* @see https://binance
|
|
7790
|
-
* @see https://binance
|
|
7754
|
+
* @see https://developers.binance.com/docs/wallet/capital/withdraw-history
|
|
7755
|
+
* @see https://developers.binance.com/docs/fiat/rest-api/Get-Fiat-Deposit-Withdraw-History
|
|
7791
7756
|
* @param {string} code unified currency code
|
|
7792
7757
|
* @param {int} [since] the earliest time in ms to fetch withdrawals for
|
|
7793
7758
|
* @param {int} [limit] the maximum number of withdrawals structures to retrieve
|
|
7794
7759
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
7795
7760
|
* @param {bool} [params.fiat] if true, only fiat withdrawals will be returned
|
|
7796
7761
|
* @param {int} [params.until] the latest time in ms to fetch withdrawals for
|
|
7797
|
-
* @param {boolean} [params.paginate] default false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the [
|
|
7762
|
+
* @param {boolean} [params.paginate] default false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the [available parameters](https://github.com/ccxt/ccxt/wiki/Manual#pagination-params)
|
|
7798
7763
|
* @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com/#/?id=transaction-structure}
|
|
7799
7764
|
*/
|
|
7800
7765
|
await this.loadMarkets();
|
|
@@ -8223,7 +8188,7 @@ class binance extends binance$1 {
|
|
|
8223
8188
|
* @method
|
|
8224
8189
|
* @name binance#transfer
|
|
8225
8190
|
* @description transfer currency internally between wallets on the same account
|
|
8226
|
-
* @see https://binance
|
|
8191
|
+
* @see https://developers.binance.com/docs/wallet/asset/user-universal-transfer
|
|
8227
8192
|
* @param {string} code unified currency code
|
|
8228
8193
|
* @param {float} amount amount to transfer
|
|
8229
8194
|
* @param {string} fromAccount account to transfer from
|
|
@@ -8329,14 +8294,13 @@ class binance extends binance$1 {
|
|
|
8329
8294
|
* @method
|
|
8330
8295
|
* @name binance#fetchTransfers
|
|
8331
8296
|
* @description fetch a history of internal transfers made on an account
|
|
8332
|
-
* @see https://binance
|
|
8333
|
-
* @see https://binance-docs.github.io/apidocs/spot/en/#pay-endpoints
|
|
8297
|
+
* @see https://developers.binance.com/docs/wallet/asset/query-user-universal-transfer
|
|
8334
8298
|
* @param {string} code unified currency code of the currency transferred
|
|
8335
8299
|
* @param {int} [since] the earliest time in ms to fetch transfers for
|
|
8336
8300
|
* @param {int} [limit] the maximum number of transfers structures to retrieve
|
|
8337
8301
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
8338
8302
|
* @param {int} [params.until] the latest time in ms to fetch transfers for
|
|
8339
|
-
* @param {boolean} [params.paginate] default false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the [
|
|
8303
|
+
* @param {boolean} [params.paginate] default false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the [available parameters](https://github.com/ccxt/ccxt/wiki/Manual#pagination-params)
|
|
8340
8304
|
* @param {boolean} [params.internal] default false, when true will fetch pay trade history
|
|
8341
8305
|
* @returns {object[]} a list of [transfer structures]{@link https://docs.ccxt.com/#/?id=transfer-structure}
|
|
8342
8306
|
*/
|
|
@@ -8475,7 +8439,7 @@ class binance extends binance$1 {
|
|
|
8475
8439
|
* @method
|
|
8476
8440
|
* @name binance#fetchDepositAddress
|
|
8477
8441
|
* @description fetch the deposit address for a currency associated with this account
|
|
8478
|
-
* @see https://binance
|
|
8442
|
+
* @see https://developers.binance.com/docs/wallet/capital/deposite-address
|
|
8479
8443
|
* @param {string} code unified currency code
|
|
8480
8444
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
8481
8445
|
* @returns {object} an [address structure]{@link https://docs.ccxt.com/#/?id=address-structure}
|
|
@@ -8494,7 +8458,6 @@ class binance extends binance$1 {
|
|
|
8494
8458
|
params = this.omit(params, 'network');
|
|
8495
8459
|
}
|
|
8496
8460
|
// has support for the 'network' parameter
|
|
8497
|
-
// https://binance-docs.github.io/apidocs/spot/en/#deposit-address-supporting-network-user_data
|
|
8498
8461
|
const response = await this.sapiGetCapitalDepositAddress(this.extend(request, params));
|
|
8499
8462
|
//
|
|
8500
8463
|
// {
|
|
@@ -8551,7 +8514,7 @@ class binance extends binance$1 {
|
|
|
8551
8514
|
* @name binance#fetchTransactionFees
|
|
8552
8515
|
* @deprecated
|
|
8553
8516
|
* @description please use fetchDepositWithdrawFees instead
|
|
8554
|
-
* @see https://binance
|
|
8517
|
+
* @see https://developers.binance.com/docs/wallet/capital/all-coins-info
|
|
8555
8518
|
* @param {string[]|undefined} codes not used by binance fetchTransactionFees ()
|
|
8556
8519
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
8557
8520
|
* @returns {object[]} a list of [fee structures]{@link https://docs.ccxt.com/#/?id=fee-structure}
|
|
@@ -8665,7 +8628,7 @@ class binance extends binance$1 {
|
|
|
8665
8628
|
* @method
|
|
8666
8629
|
* @name binance#fetchDepositWithdrawFees
|
|
8667
8630
|
* @description fetch deposit and withdraw fees
|
|
8668
|
-
* @see https://binance
|
|
8631
|
+
* @see https://developers.binance.com/docs/wallet/capital/all-coins-info
|
|
8669
8632
|
* @param {string[]|undefined} codes not used by binance fetchDepositWithdrawFees ()
|
|
8670
8633
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
8671
8634
|
* @returns {object[]} a list of [fee structures]{@link https://docs.ccxt.com/#/?id=fee-structure}
|
|
@@ -8789,7 +8752,7 @@ class binance extends binance$1 {
|
|
|
8789
8752
|
* @method
|
|
8790
8753
|
* @name binance#withdraw
|
|
8791
8754
|
* @description make a withdrawal
|
|
8792
|
-
* @see https://binance
|
|
8755
|
+
* @see https://developers.binance.com/docs/wallet/capital/withdraw
|
|
8793
8756
|
* @param {string} code unified currency code
|
|
8794
8757
|
* @param {float} amount the amount to withdraw
|
|
8795
8758
|
* @param {string} address the address to withdraw to
|
|
@@ -8805,7 +8768,6 @@ class binance extends binance$1 {
|
|
|
8805
8768
|
'coin': currency['id'],
|
|
8806
8769
|
'address': address,
|
|
8807
8770
|
'amount': this.currencyToPrecision(code, amount),
|
|
8808
|
-
// https://binance-docs.github.io/apidocs/spot/en/#withdraw-sapi
|
|
8809
8771
|
// issue sapiGetCapitalConfigGetall () to get networks for withdrawing USDT ERC20 vs USDT Omni
|
|
8810
8772
|
// 'network': 'ETH', // 'BTC', 'TRX', etc, optional
|
|
8811
8773
|
};
|
|
@@ -8857,11 +8819,11 @@ class binance extends binance$1 {
|
|
|
8857
8819
|
* @method
|
|
8858
8820
|
* @name binance#fetchTradingFee
|
|
8859
8821
|
* @description fetch the trading fees for a market
|
|
8860
|
-
* @see https://binance
|
|
8861
|
-
* @see https://binance
|
|
8862
|
-
* @see https://binance
|
|
8863
|
-
* @see https://binance
|
|
8864
|
-
* @see https://binance
|
|
8822
|
+
* @see https://developers.binance.com/docs/wallet/asset/trade-fee
|
|
8823
|
+
* @see https://developers.binance.com/docs/derivatives/usds-margined-futures/account/rest-api/User-Commission-Rate
|
|
8824
|
+
* @see https://developers.binance.com/docs/derivatives/coin-margined-futures/account/User-Commission-Rate
|
|
8825
|
+
* @see https://developers.binance.com/docs/derivatives/portfolio-margin/account/Get-User-Commission-Rate-for-UM
|
|
8826
|
+
* @see https://developers.binance.com/docs/derivatives/portfolio-margin/account/Get-User-Commission-Rate-for-CM
|
|
8865
8827
|
* @param {string} symbol unified market symbol
|
|
8866
8828
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
8867
8829
|
* @param {boolean} [params.portfolioMargin] set to true if you would like to fetch trading fees in a portfolio margin account
|
|
@@ -8930,9 +8892,9 @@ class binance extends binance$1 {
|
|
|
8930
8892
|
* @method
|
|
8931
8893
|
* @name binance#fetchTradingFees
|
|
8932
8894
|
* @description fetch the trading fees for multiple markets
|
|
8933
|
-
* @see https://binance
|
|
8934
|
-
* @see https://binance
|
|
8935
|
-
* @see https://binance
|
|
8895
|
+
* @see https://developers.binance.com/docs/wallet/asset/trade-fee
|
|
8896
|
+
* @see https://developers.binance.com/docs/derivatives/usds-margined-futures/account/rest-api/Account-Information-V2
|
|
8897
|
+
* @see https://developers.binance.com/docs/derivatives/coin-margined-futures/account/Account-Information
|
|
8936
8898
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
8937
8899
|
* @param {string} [params.subType] "linear" or "inverse"
|
|
8938
8900
|
* @returns {object} a dictionary of [fee structures]{@link https://docs.ccxt.com/#/?id=fee-structure} indexed by market symbols
|
|
@@ -9110,7 +9072,7 @@ class binance extends binance$1 {
|
|
|
9110
9072
|
* @name binance#futuresTransfer
|
|
9111
9073
|
* @ignore
|
|
9112
9074
|
* @description transfer between futures account
|
|
9113
|
-
* @see https://binance
|
|
9075
|
+
* @see https://developers.binance.com/docs/derivatives/usds-margined-futures/account/rest-api/New-Future-Account-Transfer
|
|
9114
9076
|
* @param {string} code unified currency code
|
|
9115
9077
|
* @param {float} amount the amount to transfer
|
|
9116
9078
|
* @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
|
|
@@ -9141,8 +9103,8 @@ class binance extends binance$1 {
|
|
|
9141
9103
|
* @method
|
|
9142
9104
|
* @name binance#fetchFundingRate
|
|
9143
9105
|
* @description fetch the current funding rate
|
|
9144
|
-
* @see https://binance
|
|
9145
|
-
* @see https://binance
|
|
9106
|
+
* @see https://developers.binance.com/docs/derivatives/usds-margined-futures/market-data/rest-api/Mark-Price
|
|
9107
|
+
* @see https://developers.binance.com/docs/derivatives/coin-margined-futures/market-data/Index-Price-and-Mark-Price
|
|
9146
9108
|
* @param {string} symbol unified market symbol
|
|
9147
9109
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
9148
9110
|
* @returns {object} a [funding rate structure]{@link https://docs.ccxt.com/#/?id=funding-rate-structure}
|
|
@@ -9184,8 +9146,8 @@ class binance extends binance$1 {
|
|
|
9184
9146
|
* @method
|
|
9185
9147
|
* @name binance#fetchFundingRateHistory
|
|
9186
9148
|
* @description fetches historical funding rate prices
|
|
9187
|
-
* @see https://binance
|
|
9188
|
-
* @see https://binance
|
|
9149
|
+
* @see https://developers.binance.com/docs/derivatives/usds-margined-futures/market-data/rest-api/Get-Funding-Rate-History
|
|
9150
|
+
* @see https://developers.binance.com/docs/derivatives/coin-margined-futures/market-data/Get-Funding-Rate-History-of-Perpetual-Futures
|
|
9189
9151
|
* @param {string} symbol unified symbol of the market to fetch the funding rate history for
|
|
9190
9152
|
* @param {int} [since] timestamp in ms of the earliest funding rate to fetch
|
|
9191
9153
|
* @param {int} [limit] the maximum amount of [funding rate structures]{@link https://docs.ccxt.com/#/?id=funding-rate-history-structure} to fetch
|
|
@@ -9262,8 +9224,8 @@ class binance extends binance$1 {
|
|
|
9262
9224
|
* @method
|
|
9263
9225
|
* @name binance#fetchFundingRates
|
|
9264
9226
|
* @description fetch the funding rate for multiple markets
|
|
9265
|
-
* @see https://binance
|
|
9266
|
-
* @see https://binance
|
|
9227
|
+
* @see https://developers.binance.com/docs/derivatives/usds-margined-futures/market-data/rest-api/Mark-Price
|
|
9228
|
+
* @see https://developers.binance.com/docs/derivatives/coin-margined-futures/market-data/Index-Price-and-Mark-Price
|
|
9267
9229
|
* @param {string[]|undefined} symbols list of unified market symbols
|
|
9268
9230
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
9269
9231
|
* @param {string} [params.subType] "linear" or "inverse"
|
|
@@ -9883,10 +9845,10 @@ class binance extends binance$1 {
|
|
|
9883
9845
|
* @method
|
|
9884
9846
|
* @name binance#fetchLeverageTiers
|
|
9885
9847
|
* @description retrieve information on the maximum leverage, and maintenance margin for trades of varying trade sizes
|
|
9886
|
-
* @see https://binance
|
|
9887
|
-
* @see https://binance
|
|
9888
|
-
* @see https://binance
|
|
9889
|
-
* @see https://binance
|
|
9848
|
+
* @see https://developers.binance.com/docs/derivatives/usds-margined-futures/account/rest-api/Notional-and-Leverage-Brackets
|
|
9849
|
+
* @see https://developers.binance.com/docs/derivatives/coin-margined-futures/account/Notional-Bracket-for-Symbol
|
|
9850
|
+
* @see https://developers.binance.com/docs/derivatives/portfolio-margin/account/UM-Notional-and-Leverage-Brackets
|
|
9851
|
+
* @see https://developers.binance.com/docs/derivatives/portfolio-margin/account/CM-Notional-and-Leverage-Brackets
|
|
9890
9852
|
* @param {string[]|undefined} symbols list of unified market symbols
|
|
9891
9853
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
9892
9854
|
* @param {boolean} [params.portfolioMargin] set to true if you would like to fetch the leverage tiers for a portfolio margin account
|
|
@@ -10005,8 +9967,8 @@ class binance extends binance$1 {
|
|
|
10005
9967
|
/**
|
|
10006
9968
|
* @method
|
|
10007
9969
|
* @name binance#fetchPosition
|
|
10008
|
-
* @see https://binance-docs.github.io/apidocs/voptions/en/#option-position-information-user_data
|
|
10009
9970
|
* @description fetch data on an open position
|
|
9971
|
+
* @see https://developers.binance.com/docs/derivatives/option/trade/Option-Position-Information
|
|
10010
9972
|
* @param {string} symbol unified market symbol of the market the position is held in
|
|
10011
9973
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
10012
9974
|
* @returns {object} a [position structure]{@link https://docs.ccxt.com/#/?id=position-structure}
|
|
@@ -10049,8 +10011,8 @@ class binance extends binance$1 {
|
|
|
10049
10011
|
/**
|
|
10050
10012
|
* @method
|
|
10051
10013
|
* @name binance#fetchOptionPositions
|
|
10052
|
-
* @see https://binance-docs.github.io/apidocs/voptions/en/#option-position-information-user_data
|
|
10053
10014
|
* @description fetch data on open options positions
|
|
10015
|
+
* @see https://developers.binance.com/docs/derivatives/option/trade/Option-Position-Information
|
|
10054
10016
|
* @param {string[]|undefined} symbols list of unified market symbols
|
|
10055
10017
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
10056
10018
|
* @returns {object[]} a list of [position structures]{@link https://docs.ccxt.com/#/?id=position-structure}
|
|
@@ -10166,11 +10128,11 @@ class binance extends binance$1 {
|
|
|
10166
10128
|
* @method
|
|
10167
10129
|
* @name binance#fetchPositions
|
|
10168
10130
|
* @description fetch all open positions
|
|
10169
|
-
* @see https://binance
|
|
10170
|
-
* @see https://binance
|
|
10171
|
-
* @see https://binance
|
|
10172
|
-
* @see https://binance
|
|
10173
|
-
* @see https://binance
|
|
10131
|
+
* @see https://developers.binance.com/docs/derivatives/usds-margined-futures/account/rest-api/Account-Information-V2
|
|
10132
|
+
* @see https://developers.binance.com/docs/derivatives/coin-margined-futures/account/Account-Information
|
|
10133
|
+
* @see https://developers.binance.com/docs/derivatives/usds-margined-futures/trade/rest-api/Position-Information-V2
|
|
10134
|
+
* @see https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/Position-Information
|
|
10135
|
+
* @see https://developers.binance.com/docs/derivatives/option/trade/Option-Position-Information
|
|
10174
10136
|
* @param {string[]} [symbols] list of unified market symbols
|
|
10175
10137
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
10176
10138
|
* @param {string} [method] method name to call, "positionRisk", "account" or "option", default is "positionRisk"
|
|
@@ -10198,10 +10160,10 @@ class binance extends binance$1 {
|
|
|
10198
10160
|
* @name binance#fetchAccountPositions
|
|
10199
10161
|
* @ignore
|
|
10200
10162
|
* @description fetch account positions
|
|
10201
|
-
* @see https://binance
|
|
10202
|
-
* @see https://binance
|
|
10203
|
-
* @see https://binance
|
|
10204
|
-
* @see https://binance
|
|
10163
|
+
* @see https://developers.binance.com/docs/derivatives/usds-margined-futures/account/rest-api/Account-Information-V2
|
|
10164
|
+
* @see https://developers.binance.com/docs/derivatives/coin-margined-futures/account/Account-Information
|
|
10165
|
+
* @see https://developers.binance.com/docs/derivatives/usds-margined-futures/trade/rest-api/Position-Information-V2
|
|
10166
|
+
* @see https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/Position-Information
|
|
10205
10167
|
* @param {string[]} [symbols] list of unified market symbols
|
|
10206
10168
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
10207
10169
|
* @param {boolean} [params.portfolioMargin] set to true if you would like to fetch positions in a portfolio margin account
|
|
@@ -10255,10 +10217,10 @@ class binance extends binance$1 {
|
|
|
10255
10217
|
* @name binance#fetchPositionsRisk
|
|
10256
10218
|
* @ignore
|
|
10257
10219
|
* @description fetch positions risk
|
|
10258
|
-
* @see https://binance
|
|
10259
|
-
* @see https://binance
|
|
10260
|
-
* @see https://binance
|
|
10261
|
-
* @see https://binance
|
|
10220
|
+
* @see https://developers.binance.com/docs/derivatives/usds-margined-futures/trade/rest-api/Position-Information-V2
|
|
10221
|
+
* @see https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/Position-Information
|
|
10222
|
+
* @see https://developers.binance.com/docs/derivatives/portfolio-margin/account/Query-UM-Position-Information
|
|
10223
|
+
* @see https://developers.binance.com/docs/derivatives/portfolio-margin/account/Query-CM-Position-Information
|
|
10262
10224
|
* @param {string[]|undefined} symbols list of unified market symbols
|
|
10263
10225
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
10264
10226
|
* @param {boolean} [params.portfolioMargin] set to true if you would like to fetch positions for a portfolio margin account
|
|
@@ -10412,10 +10374,10 @@ class binance extends binance$1 {
|
|
|
10412
10374
|
* @method
|
|
10413
10375
|
* @name binance#fetchFundingHistory
|
|
10414
10376
|
* @description fetch the history of funding payments paid and received on this account
|
|
10415
|
-
* @see https://binance
|
|
10416
|
-
* @see https://binance
|
|
10417
|
-
* @see https://binance
|
|
10418
|
-
* @see https://binance
|
|
10377
|
+
* @see https://developers.binance.com/docs/derivatives/usds-margined-futures/account/rest-api/Get-Income-History
|
|
10378
|
+
* @see https://developers.binance.com/docs/derivatives/coin-margined-futures/account/Get-Income-History
|
|
10379
|
+
* @see https://developers.binance.com/docs/derivatives/portfolio-margin/account/Get-UM-Income-History
|
|
10380
|
+
* @see https://developers.binance.com/docs/derivatives/portfolio-margin/account/Get-CM-Income-History
|
|
10419
10381
|
* @param {string} symbol unified market symbol
|
|
10420
10382
|
* @param {int} [since] the earliest time in ms to fetch funding history for
|
|
10421
10383
|
* @param {int} [limit] the maximum number of funding history structures to retrieve
|
|
@@ -10478,10 +10440,10 @@ class binance extends binance$1 {
|
|
|
10478
10440
|
* @method
|
|
10479
10441
|
* @name binance#setLeverage
|
|
10480
10442
|
* @description set the level of leverage for a market
|
|
10481
|
-
* @see https://binance
|
|
10482
|
-
* @see https://binance
|
|
10483
|
-
* @see https://binance
|
|
10484
|
-
* @see https://binance
|
|
10443
|
+
* @see https://developers.binance.com/docs/derivatives/usds-margined-futures/trade/rest-api/Change-Initial-Leverage
|
|
10444
|
+
* @see https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/Change-Initial-Leverage
|
|
10445
|
+
* @see https://developers.binance.com/docs/derivatives/portfolio-margin/account/Change-UM-Initial-Leverage
|
|
10446
|
+
* @see https://developers.binance.com/docs/derivatives/portfolio-margin/account/Change-CM-Initial-Leverage
|
|
10485
10447
|
* @param {float} leverage the rate of leverage
|
|
10486
10448
|
* @param {string} symbol unified market symbol
|
|
10487
10449
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
@@ -10531,8 +10493,8 @@ class binance extends binance$1 {
|
|
|
10531
10493
|
* @method
|
|
10532
10494
|
* @name binance#setMarginMode
|
|
10533
10495
|
* @description set margin mode to 'cross' or 'isolated'
|
|
10534
|
-
* @see https://binance
|
|
10535
|
-
* @see https://binance
|
|
10496
|
+
* @see https://developers.binance.com/docs/derivatives/usds-margined-futures/trade/rest-api/Change-Margin-Type
|
|
10497
|
+
* @see https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/Change-Margin-Type
|
|
10536
10498
|
* @param {string} marginMode 'cross' or 'isolated'
|
|
10537
10499
|
* @param {string} symbol unified market symbol
|
|
10538
10500
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
@@ -10599,10 +10561,10 @@ class binance extends binance$1 {
|
|
|
10599
10561
|
* @method
|
|
10600
10562
|
* @name binance#setPositionMode
|
|
10601
10563
|
* @description set hedged to true or false for a market
|
|
10602
|
-
* @see https://binance
|
|
10603
|
-
* @see https://binance
|
|
10604
|
-
* @see https://binance
|
|
10605
|
-
* @see https://binance
|
|
10564
|
+
* @see https://developers.binance.com/docs/derivatives/usds-margined-futures/trade/rest-api/Change-Position-Mode
|
|
10565
|
+
* @see https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/Change-Position-Mode
|
|
10566
|
+
* @see https://developers.binance.com/docs/derivatives/portfolio-margin/account/Get-UM-Current-Position-Mode
|
|
10567
|
+
* @see https://developers.binance.com/docs/derivatives/portfolio-margin/account/Get-CM-Current-Position-Mode
|
|
10606
10568
|
* @param {bool} hedged set to true to use dualSidePosition
|
|
10607
10569
|
* @param {string} symbol not used by binance setPositionMode ()
|
|
10608
10570
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
@@ -10660,10 +10622,10 @@ class binance extends binance$1 {
|
|
|
10660
10622
|
* @method
|
|
10661
10623
|
* @name binance#fetchLeverages
|
|
10662
10624
|
* @description fetch the set leverage for all markets
|
|
10663
|
-
* @see https://binance
|
|
10664
|
-
* @see https://binance
|
|
10665
|
-
* @see https://binance
|
|
10666
|
-
* @see https://binance
|
|
10625
|
+
* @see https://developers.binance.com/docs/derivatives/usds-margined-futures/account/rest-api/Account-Information-V2
|
|
10626
|
+
* @see https://developers.binance.com/docs/derivatives/coin-margined-futures/account/Account-Information
|
|
10627
|
+
* @see https://developers.binance.com/docs/derivatives/portfolio-margin/account/Get-UM-Account-Detail
|
|
10628
|
+
* @see https://developers.binance.com/docs/derivatives/portfolio-margin/account/Get-CM-Account-Detail
|
|
10667
10629
|
* @param {string[]} [symbols] a list of unified market symbols
|
|
10668
10630
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
10669
10631
|
* @param {string} [params.subType] "linear" or "inverse"
|
|
@@ -10734,7 +10696,7 @@ class binance extends binance$1 {
|
|
|
10734
10696
|
* @method
|
|
10735
10697
|
* @name binance#fetchSettlementHistory
|
|
10736
10698
|
* @description fetches historical settlement records
|
|
10737
|
-
* @see https://binance
|
|
10699
|
+
* @see https://developers.binance.com/docs/derivatives/option/market-data/Historical-Exercise-Records
|
|
10738
10700
|
* @param {string} symbol unified market symbol of the settlement history
|
|
10739
10701
|
* @param {int} [since] timestamp in ms
|
|
10740
10702
|
* @param {int} [limit] number of records, default 100, max 100
|
|
@@ -10780,7 +10742,7 @@ class binance extends binance$1 {
|
|
|
10780
10742
|
* @method
|
|
10781
10743
|
* @name binance#fetchMySettlementHistory
|
|
10782
10744
|
* @description fetches historical settlement records of the user
|
|
10783
|
-
* @see https://binance
|
|
10745
|
+
* @see https://developers.binance.com/docs/derivatives/option/trade/User-Exercise-Record
|
|
10784
10746
|
* @param {string} symbol unified market symbol of the settlement history
|
|
10785
10747
|
* @param {int} [since] timestamp in ms
|
|
10786
10748
|
* @param {int} [limit] number of records
|
|
@@ -10929,11 +10891,11 @@ class binance extends binance$1 {
|
|
|
10929
10891
|
* @method
|
|
10930
10892
|
* @name binance#fetchLedger
|
|
10931
10893
|
* @description fetch the history of changes, actions done by the user or operations that altered the balance of the user
|
|
10932
|
-
* @see https://binance
|
|
10933
|
-
* @see https://binance
|
|
10934
|
-
* @see https://binance
|
|
10935
|
-
* @see https://binance
|
|
10936
|
-
* @see https://binance
|
|
10894
|
+
* @see https://developers.binance.com/docs/derivatives/option/account/Account-Funding-Flow
|
|
10895
|
+
* @see https://developers.binance.com/docs/derivatives/usds-margined-futures/account/rest-api/Get-Income-History
|
|
10896
|
+
* @see https://developers.binance.com/docs/derivatives/coin-margined-futures/account/Get-Income-History
|
|
10897
|
+
* @see https://developers.binance.com/docs/derivatives/portfolio-margin/account/Get-UM-Income-History
|
|
10898
|
+
* @see https://developers.binance.com/docs/derivatives/portfolio-margin/account/Get-CM-Income-History
|
|
10937
10899
|
* @param {string} code unified currency code
|
|
10938
10900
|
* @param {int} [since] timestamp in ms of the earliest ledger entry
|
|
10939
10901
|
* @param {int} [limit] max number of ledger entrys to return
|
|
@@ -11459,9 +11421,9 @@ class binance extends binance$1 {
|
|
|
11459
11421
|
/**
|
|
11460
11422
|
* @method
|
|
11461
11423
|
* @name binance#reduceMargin
|
|
11462
|
-
* @see https://binance-docs.github.io/apidocs/delivery/en/#modify-isolated-position-margin-trade
|
|
11463
|
-
* @see https://binance-docs.github.io/apidocs/futures/en/#modify-isolated-position-margin-trade
|
|
11464
11424
|
* @description remove margin from a position
|
|
11425
|
+
* @see https://developers.binance.com/docs/derivatives/usds-margined-futures/trade/rest-api/Modify-Isolated-Position-Margin
|
|
11426
|
+
* @see https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/Modify-Isolated-Position-Margin
|
|
11465
11427
|
* @param {string} symbol unified market symbol
|
|
11466
11428
|
* @param {float} amount the amount of margin to remove
|
|
11467
11429
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
@@ -11473,9 +11435,9 @@ class binance extends binance$1 {
|
|
|
11473
11435
|
/**
|
|
11474
11436
|
* @method
|
|
11475
11437
|
* @name binance#addMargin
|
|
11476
|
-
* @see https://binance-docs.github.io/apidocs/delivery/en/#modify-isolated-position-margin-trade
|
|
11477
|
-
* @see https://binance-docs.github.io/apidocs/futures/en/#modify-isolated-position-margin-trade
|
|
11478
11438
|
* @description add margin
|
|
11439
|
+
* @see https://developers.binance.com/docs/derivatives/usds-margined-futures/trade/rest-api/Modify-Isolated-Position-Margin
|
|
11440
|
+
* @see https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/Modify-Isolated-Position-Margin
|
|
11479
11441
|
* @param {string} symbol unified market symbol
|
|
11480
11442
|
* @param {float} amount amount of margin to add
|
|
11481
11443
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
@@ -11488,7 +11450,7 @@ class binance extends binance$1 {
|
|
|
11488
11450
|
* @method
|
|
11489
11451
|
* @name binance#fetchCrossBorrowRate
|
|
11490
11452
|
* @description fetch the rate of interest to borrow a currency for margin trading
|
|
11491
|
-
* @see https://binance
|
|
11453
|
+
* @see https://developers.binance.com/docs/margin_trading/borrow-and-repay/Query-Margin-Interest-Rate-History
|
|
11492
11454
|
* @param {string} code unified currency code
|
|
11493
11455
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
11494
11456
|
* @returns {object} a [borrow rate structure]{@link https://docs.ccxt.com/#/?id=borrow-rate-structure}
|
|
@@ -11518,7 +11480,7 @@ class binance extends binance$1 {
|
|
|
11518
11480
|
* @method
|
|
11519
11481
|
* @name binance#fetchIsolatedBorrowRate
|
|
11520
11482
|
* @description fetch the rate of interest to borrow a currency for margin trading
|
|
11521
|
-
* @see https://binance
|
|
11483
|
+
* @see https://developers.binance.com/docs/margin_trading/account/Query-Isolated-Margin-Fee-Data
|
|
11522
11484
|
* @param {string} symbol unified market symbol
|
|
11523
11485
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
11524
11486
|
*
|
|
@@ -11537,7 +11499,7 @@ class binance extends binance$1 {
|
|
|
11537
11499
|
* @method
|
|
11538
11500
|
* @name binance#fetchIsolatedBorrowRates
|
|
11539
11501
|
* @description fetch the borrow interest rates of all currencies
|
|
11540
|
-
* @see https://binance
|
|
11502
|
+
* @see https://developers.binance.com/docs/margin_trading/account/Query-Isolated-Margin-Fee-Data
|
|
11541
11503
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
11542
11504
|
* @param {object} [params.symbol] unified market symbol
|
|
11543
11505
|
*
|
|
@@ -11582,7 +11544,7 @@ class binance extends binance$1 {
|
|
|
11582
11544
|
* @method
|
|
11583
11545
|
* @name binance#fetchBorrowRateHistory
|
|
11584
11546
|
* @description retrieves a history of a currencies borrow interest rate at specific time slots
|
|
11585
|
-
* @see https://binance
|
|
11547
|
+
* @see https://developers.binance.com/docs/margin_trading/borrow-and-repay/Query-Margin-Interest-Rate-History
|
|
11586
11548
|
* @param {string} code unified currency code
|
|
11587
11549
|
* @param {int} [since] timestamp for the earliest borrow rate
|
|
11588
11550
|
* @param {int} [limit] the maximum number of [borrow rate structures]{@link https://docs.ccxt.com/#/?id=borrow-rate-structure} to retrieve
|
|
@@ -11693,7 +11655,7 @@ class binance extends binance$1 {
|
|
|
11693
11655
|
* @method
|
|
11694
11656
|
* @name binance#createGiftCode
|
|
11695
11657
|
* @description create gift code
|
|
11696
|
-
* @see https://binance
|
|
11658
|
+
* @see https://developers.binance.com/docs/gift_card/market-data/Create-a-single-token-gift-card
|
|
11697
11659
|
* @param {string} code gift code
|
|
11698
11660
|
* @param {float} amount amount of currency for the gift
|
|
11699
11661
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
@@ -11731,7 +11693,7 @@ class binance extends binance$1 {
|
|
|
11731
11693
|
* @method
|
|
11732
11694
|
* @name binance#redeemGiftCode
|
|
11733
11695
|
* @description redeem gift code
|
|
11734
|
-
* @see https://binance
|
|
11696
|
+
* @see https://developers.binance.com/docs/gift_card/market-data/Redeem-a-Binance-Gift-Card
|
|
11735
11697
|
* @param {string} giftcardCode
|
|
11736
11698
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
11737
11699
|
* @returns {object} response from the exchange
|
|
@@ -11758,7 +11720,7 @@ class binance extends binance$1 {
|
|
|
11758
11720
|
* @method
|
|
11759
11721
|
* @name binance#verifyGiftCode
|
|
11760
11722
|
* @description verify gift code
|
|
11761
|
-
* @see https://binance
|
|
11723
|
+
* @see https://developers.binance.com/docs/gift_card/market-data/Verify-Binance-Gift-Card-by-Gift-Card-Number
|
|
11762
11724
|
* @param {string} id reference number id
|
|
11763
11725
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
11764
11726
|
* @returns {object} response from the exchange
|
|
@@ -11782,8 +11744,8 @@ class binance extends binance$1 {
|
|
|
11782
11744
|
* @method
|
|
11783
11745
|
* @name binance#fetchBorrowInterest
|
|
11784
11746
|
* @description fetch the interest owed by the user for borrowing currency for margin trading
|
|
11785
|
-
* @see https://binance
|
|
11786
|
-
* @see https://binance
|
|
11747
|
+
* @see https://developers.binance.com/docs/margin_trading/borrow-and-repay/Get-Interest-History
|
|
11748
|
+
* @see https://developers.binance.com/docs/derivatives/portfolio-margin/account/Get-Margin-BorrowLoan-Interest-History
|
|
11787
11749
|
* @param {string} [code] unified currency code
|
|
11788
11750
|
* @param {string} [symbol] unified market symbol when fetch interest in isolated markets
|
|
11789
11751
|
* @param {int} [since] the earliest time in ms to fetch borrrow interest for
|
|
@@ -11881,8 +11843,8 @@ class binance extends binance$1 {
|
|
|
11881
11843
|
* @method
|
|
11882
11844
|
* @name binance#repayCrossMargin
|
|
11883
11845
|
* @description repay borrowed margin and interest
|
|
11884
|
-
* @see https://binance
|
|
11885
|
-
* @see https://binance
|
|
11846
|
+
* @see https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Margin-Account-Repay
|
|
11847
|
+
* @see https://developers.binance.com/docs/margin_trading/borrow-and-repay/Margin-Account-Borrow-Repay
|
|
11886
11848
|
* @param {string} code unified currency code of the currency to repay
|
|
11887
11849
|
* @param {float} amount the amount to repay
|
|
11888
11850
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
@@ -11919,7 +11881,7 @@ class binance extends binance$1 {
|
|
|
11919
11881
|
* @method
|
|
11920
11882
|
* @name binance#repayIsolatedMargin
|
|
11921
11883
|
* @description repay borrowed margin and interest
|
|
11922
|
-
* @see https://binance
|
|
11884
|
+
* @see https://developers.binance.com/docs/margin_trading/borrow-and-repay/Margin-Account-Borrow-Repay
|
|
11923
11885
|
* @param {string} symbol unified market symbol, required for isolated margin
|
|
11924
11886
|
* @param {string} code unified currency code of the currency to repay
|
|
11925
11887
|
* @param {float} amount the amount to repay
|
|
@@ -11950,8 +11912,8 @@ class binance extends binance$1 {
|
|
|
11950
11912
|
* @method
|
|
11951
11913
|
* @name binance#borrowCrossMargin
|
|
11952
11914
|
* @description create a loan to borrow margin
|
|
11953
|
-
* @see https://binance
|
|
11954
|
-
* @see https://binance
|
|
11915
|
+
* @see https://developers.binance.com/docs/margin_trading/borrow-and-repay/Margin-Account-Borrow-Repay
|
|
11916
|
+
* @see https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Margin-Account-Borrow
|
|
11955
11917
|
* @param {string} code unified currency code of the currency to borrow
|
|
11956
11918
|
* @param {float} amount the amount to borrow
|
|
11957
11919
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
@@ -11988,7 +11950,7 @@ class binance extends binance$1 {
|
|
|
11988
11950
|
* @method
|
|
11989
11951
|
* @name binance#borrowIsolatedMargin
|
|
11990
11952
|
* @description create a loan to borrow margin
|
|
11991
|
-
* @see https://binance
|
|
11953
|
+
* @see https://developers.binance.com/docs/margin_trading/borrow-and-repay/Margin-Account-Borrow-Repay
|
|
11992
11954
|
* @param {string} symbol unified market symbol, required for isolated margin
|
|
11993
11955
|
* @param {string} code unified currency code of the currency to borrow
|
|
11994
11956
|
* @param {float} amount the amount to borrow
|
|
@@ -12036,8 +11998,8 @@ class binance extends binance$1 {
|
|
|
12036
11998
|
* @method
|
|
12037
11999
|
* @name binance#fetchOpenInterestHistory
|
|
12038
12000
|
* @description Retrieves the open interest history of a currency
|
|
12039
|
-
* @see https://binance
|
|
12040
|
-
* @see https://binance
|
|
12001
|
+
* @see https://developers.binance.com/docs/derivatives/usds-margined-futures/market-data/rest-api/Open-Interest-Statistics
|
|
12002
|
+
* @see https://developers.binance.com/docs/derivatives/coin-margined-futures/market-data/Open-Interest-Statistics
|
|
12041
12003
|
* @param {string} symbol Unified CCXT market symbol
|
|
12042
12004
|
* @param {string} timeframe "5m","15m","30m","1h","2h","4h","6h","12h", or "1d"
|
|
12043
12005
|
* @param {int} [since] the time(ms) of the earliest record to retrieve as a unix timestamp
|
|
@@ -12109,9 +12071,9 @@ class binance extends binance$1 {
|
|
|
12109
12071
|
* @method
|
|
12110
12072
|
* @name binance#fetchOpenInterest
|
|
12111
12073
|
* @description retrieves the open interest of a contract trading pair
|
|
12112
|
-
* @see https://binance
|
|
12113
|
-
* @see https://binance
|
|
12114
|
-
* @see https://binance
|
|
12074
|
+
* @see https://developers.binance.com/docs/derivatives/usds-margined-futures/market-data/rest-api/Open-Interest
|
|
12075
|
+
* @see https://developers.binance.com/docs/derivatives/coin-margined-futures/market-data/Open-Interest
|
|
12076
|
+
* @see https://developers.binance.com/docs/derivatives/option/market-data/Open-Interest
|
|
12115
12077
|
* @param {string} symbol unified CCXT market symbol
|
|
12116
12078
|
* @param {object} [params] exchange specific parameters
|
|
12117
12079
|
* @returns {object} an open interest structure{@link https://docs.ccxt.com/#/?id=open-interest-structure}
|
|
@@ -12203,12 +12165,11 @@ class binance extends binance$1 {
|
|
|
12203
12165
|
* @method
|
|
12204
12166
|
* @name binance#fetchMyLiquidations
|
|
12205
12167
|
* @description retrieves the users liquidated positions
|
|
12206
|
-
* @see https://binance
|
|
12207
|
-
* @see https://binance
|
|
12208
|
-
* @see https://binance
|
|
12209
|
-
* @see https://binance
|
|
12210
|
-
* @see https://binance
|
|
12211
|
-
* @see https://binance-docs.github.io/apidocs/pm/en/#query-user-39-s-cm-force-orders-user_data
|
|
12168
|
+
* @see https://developers.binance.com/docs/margin_trading/trade/Get-Force-Liquidation-Record
|
|
12169
|
+
* @see https://developers.binance.com/docs/derivatives/usds-margined-futures/trade/rest-api/Users-Force-Orders
|
|
12170
|
+
* @see https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/Users-Force-Orders
|
|
12171
|
+
* @see https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Query-Users-UM-Force-Orders
|
|
12172
|
+
* @see https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Query-Users-CM-Force-Orders
|
|
12212
12173
|
* @param {string} [symbol] unified CCXT market symbol
|
|
12213
12174
|
* @param {int} [since] the earliest time in ms to fetch liquidations for
|
|
12214
12175
|
* @param {int} [limit] the maximum number of liquidation structures to retrieve
|
|
@@ -12454,7 +12415,7 @@ class binance extends binance$1 {
|
|
|
12454
12415
|
* @method
|
|
12455
12416
|
* @name binance#fetchGreeks
|
|
12456
12417
|
* @description fetches an option contracts greeks, financial metrics used to measure the factors that affect the price of an options contract
|
|
12457
|
-
* @see https://binance
|
|
12418
|
+
* @see https://developers.binance.com/docs/derivatives/option/market-data/Option-Mark-Price
|
|
12458
12419
|
* @param {string} symbol unified symbol of the market to fetch greeks for
|
|
12459
12420
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
12460
12421
|
* @returns {object} a [greeks structure]{@link https://docs.ccxt.com/#/?id=greeks-structure}
|
|
@@ -12542,6 +12503,8 @@ class binance extends binance$1 {
|
|
|
12542
12503
|
* @method
|
|
12543
12504
|
* @name binance#fetchPositionMode
|
|
12544
12505
|
* @description fetchs the position mode, hedged or one way, hedged for binance is set identically for all linear markets or all inverse markets
|
|
12506
|
+
* @see https://developers.binance.com/docs/derivatives/usds-margined-futures/account/rest-api/Get-Current-Position-Mode
|
|
12507
|
+
* @see https://developers.binance.com/docs/derivatives/coin-margined-futures/account/Get-Current-Position-Mode
|
|
12545
12508
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
12546
12509
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
12547
12510
|
* @param {string} [params.subType] "linear" or "inverse"
|
|
@@ -12579,7 +12542,8 @@ class binance extends binance$1 {
|
|
|
12579
12542
|
* @method
|
|
12580
12543
|
* @name binance#fetchMarginMode
|
|
12581
12544
|
* @description fetches margin modes ("isolated" or "cross") that the market for the symbol in in, with symbol=undefined all markets for a subType (linear/inverse) are returned
|
|
12582
|
-
* @see https://binance
|
|
12545
|
+
* @see https://developers.binance.com/docs/derivatives/coin-margined-futures/account/Account-Information
|
|
12546
|
+
* @see https://developers.binance.com/docs/derivatives/usds-margined-futures/account/rest-api/Account-Information-V2
|
|
12583
12547
|
* @param {string} symbol unified symbol of the market the order was made in
|
|
12584
12548
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
12585
12549
|
* @param {string} [params.subType] "linear" or "inverse"
|
|
@@ -12733,7 +12697,7 @@ class binance extends binance$1 {
|
|
|
12733
12697
|
* @method
|
|
12734
12698
|
* @name binance#fetchOption
|
|
12735
12699
|
* @description fetches option data that is commonly found in an option chain
|
|
12736
|
-
* @see https://binance
|
|
12700
|
+
* @see https://developers.binance.com/docs/derivatives/option/market-data/24hr-Ticker-Price-Change-Statistics
|
|
12737
12701
|
* @param {string} symbol unified market symbol
|
|
12738
12702
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
12739
12703
|
* @returns {object} an [option chain structure]{@link https://docs.ccxt.com/#/?id=option-chain-structure}
|
|
@@ -12820,8 +12784,8 @@ class binance extends binance$1 {
|
|
|
12820
12784
|
/**
|
|
12821
12785
|
* @method
|
|
12822
12786
|
* @description fetches the history of margin added or reduced from contract isolated positions
|
|
12823
|
-
* @see https://binance
|
|
12824
|
-
* @see https://binance
|
|
12787
|
+
* @see https://developers.binance.com/docs/derivatives/usds-margined-futures/trade/rest-api/Get-Position-Margin-Change-History
|
|
12788
|
+
* @see https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/Get-Position-Margin-Change-History
|
|
12825
12789
|
* @param {string} symbol unified market symbol
|
|
12826
12790
|
* @param {string} [type] "add" or "reduce"
|
|
12827
12791
|
* @param {int} [since] timestamp in ms of the earliest change to fetch
|
|
@@ -12885,7 +12849,7 @@ class binance extends binance$1 {
|
|
|
12885
12849
|
* @method
|
|
12886
12850
|
* @name binance#fetchConvertCurrencies
|
|
12887
12851
|
* @description fetches all available currencies that can be converted
|
|
12888
|
-
* @see https://binance
|
|
12852
|
+
* @see https://developers.binance.com/docs/convert/market-data/Query-order-quantity-precision-per-asset
|
|
12889
12853
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
12890
12854
|
* @returns {object} an associative dictionary of currencies
|
|
12891
12855
|
*/
|
|
@@ -12940,7 +12904,7 @@ class binance extends binance$1 {
|
|
|
12940
12904
|
* @method
|
|
12941
12905
|
* @name binance#fetchConvertQuote
|
|
12942
12906
|
* @description fetch a quote for converting from one currency to another
|
|
12943
|
-
* @see https://binance
|
|
12907
|
+
* @see https://developers.binance.com/docs/convert/trade/Send-quote-request
|
|
12944
12908
|
* @param {string} fromCode the currency that you want to sell and convert from
|
|
12945
12909
|
* @param {string} toCode the currency that you want to buy and convert into
|
|
12946
12910
|
* @param {float} amount how much you want to trade in units of the from currency
|
|
@@ -12977,8 +12941,7 @@ class binance extends binance$1 {
|
|
|
12977
12941
|
* @method
|
|
12978
12942
|
* @name binance#createConvertTrade
|
|
12979
12943
|
* @description convert from one currency to another
|
|
12980
|
-
* @see https://binance
|
|
12981
|
-
* @see https://binance-docs.github.io/apidocs/spot/en/#accept-quote-trade
|
|
12944
|
+
* @see https://developers.binance.com/docs/convert/trade/Accept-Quote
|
|
12982
12945
|
* @param {string} id the id of the trade that you want to make
|
|
12983
12946
|
* @param {string} fromCode the currency that you want to sell and convert from
|
|
12984
12947
|
* @param {string} toCode the currency that you want to buy and convert into
|
|
@@ -13025,8 +12988,7 @@ class binance extends binance$1 {
|
|
|
13025
12988
|
* @method
|
|
13026
12989
|
* @name binance#fetchConvertTrade
|
|
13027
12990
|
* @description fetch the data for a conversion trade
|
|
13028
|
-
* @see https://binance
|
|
13029
|
-
* @see https://binance-docs.github.io/apidocs/spot/en/#order-status-user_data
|
|
12991
|
+
* @see https://developers.binance.com/docs/convert/trade/Order-Status
|
|
13030
12992
|
* @param {string} id the id of the trade that you want to fetch
|
|
13031
12993
|
* @param {string} [code] the unified currency code of the conversion trade
|
|
13032
12994
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
@@ -13104,8 +13066,7 @@ class binance extends binance$1 {
|
|
|
13104
13066
|
* @method
|
|
13105
13067
|
* @name binance#fetchConvertTradeHistory
|
|
13106
13068
|
* @description fetch the users history of conversion trades
|
|
13107
|
-
* @see https://binance
|
|
13108
|
-
* @see https://binance-docs.github.io/apidocs/spot/en/#get-convert-trade-history-user_data
|
|
13069
|
+
* @see https://developers.binance.com/docs/convert/trade/Get-Convert-Trade-History
|
|
13109
13070
|
* @param {string} [code] the unified currency code
|
|
13110
13071
|
* @param {int} [since] the earliest time in ms to fetch conversions for
|
|
13111
13072
|
* @param {int} [limit] the maximum number of conversion structures to retrieve
|