ccxt 4.4.70 → 4.4.71
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 -8
- package/dist/ccxt.browser.min.js +7 -7
- package/dist/cjs/ccxt.js +1 -6
- package/dist/cjs/src/abstract/poloniexfutures.js +1 -1
- package/dist/cjs/src/base/Exchange.js +22 -0
- package/dist/cjs/src/binance.js +106 -101
- package/dist/cjs/src/bingx.js +64 -42
- package/dist/cjs/src/bitget.js +1 -5
- package/dist/cjs/src/bitmart.js +15 -1
- package/dist/cjs/src/bitopro.js +1 -0
- package/dist/cjs/src/bitrue.js +1 -0
- package/dist/cjs/src/cex.js +1 -0
- package/dist/cjs/src/coinbaseexchange.js +1 -0
- package/dist/cjs/src/deribit.js +1 -0
- package/dist/cjs/src/hashkey.js +4 -2
- package/dist/cjs/src/kraken.js +83 -6
- package/dist/cjs/src/kucoin.js +4 -2
- package/dist/cjs/src/mexc.js +8 -4
- package/dist/cjs/src/okx.js +58 -46
- package/dist/cjs/src/poloniex.js +1311 -81
- package/dist/cjs/src/poloniexfutures.js +1 -1
- package/dist/cjs/src/pro/binance.js +94 -94
- package/dist/cjs/src/pro/bingx.js +63 -52
- package/dist/cjs/src/pro/poloniexfutures.js +1 -1
- package/dist/cjs/src/whitebit.js +4 -2
- package/js/ccxt.d.ts +3 -9
- package/js/ccxt.js +2 -6
- package/js/src/abstract/bingx.d.ts +1 -0
- package/js/src/abstract/bitmart.d.ts +1 -0
- package/js/src/abstract/poloniex.d.ts +36 -0
- package/js/src/abstract/poloniexfutures.js +6 -0
- package/js/src/base/Exchange.d.ts +11 -2
- package/js/src/base/Exchange.js +22 -0
- package/js/src/base/types.d.ts +31 -0
- package/js/src/binance.d.ts +98 -97
- package/js/src/binance.js +106 -101
- package/js/src/bingx.js +64 -42
- package/js/src/bitget.js +1 -5
- package/js/src/bitmart.d.ts +1 -0
- package/js/src/bitmart.js +15 -1
- package/js/src/bitopro.js +1 -0
- package/js/src/bitrue.js +1 -0
- package/js/src/cex.js +1 -0
- package/js/src/coinbaseexchange.js +1 -0
- package/js/src/deribit.js +1 -0
- package/js/src/hashkey.js +4 -2
- package/js/src/kraken.d.ts +1 -0
- package/js/src/kraken.js +83 -6
- package/js/src/kucoin.js +4 -2
- package/js/src/mexc.js +8 -4
- package/js/src/okx.js +58 -46
- package/js/src/poloniex.d.ts +109 -1
- package/js/src/poloniex.js +1311 -81
- package/js/src/poloniexfutures.js +6 -0
- package/js/src/pro/binance.d.ts +94 -94
- package/js/src/pro/binance.js +94 -94
- package/js/src/pro/bingx.js +63 -52
- package/js/src/pro/poloniexfutures.js +6 -0
- package/js/src/whitebit.js +4 -2
- package/package.json +1 -1
package/js/src/binance.d.ts
CHANGED
|
@@ -19,9 +19,9 @@ export default class binance extends Exchange {
|
|
|
19
19
|
* @method
|
|
20
20
|
* @name binance#fetchTime
|
|
21
21
|
* @description fetches the current integer timestamp in milliseconds from the exchange server
|
|
22
|
-
* @see https://developers.binance.com/docs/binance-spot-api-docs/rest-api#check-server-time
|
|
22
|
+
* @see https://developers.binance.com/docs/binance-spot-api-docs/rest-api/general-endpoints#check-server-time // spot
|
|
23
23
|
* @see https://developers.binance.com/docs/derivatives/usds-margined-futures/market-data/rest-api/Check-Server-Time // swap
|
|
24
|
-
* @see https://developers.binance.com/docs/derivatives/coin-margined-futures/market-data/Check-Server-time
|
|
24
|
+
* @see https://developers.binance.com/docs/derivatives/coin-margined-futures/market-data/rest-api/Check-Server-time // future
|
|
25
25
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
26
26
|
* @param {string} [params.subType] "linear" or "inverse"
|
|
27
27
|
* @returns {int} the current integer timestamp in milliseconds from the exchange server
|
|
@@ -41,12 +41,12 @@ export default class binance extends Exchange {
|
|
|
41
41
|
* @method
|
|
42
42
|
* @name binance#fetchMarkets
|
|
43
43
|
* @description retrieves data on all markets for binance
|
|
44
|
-
* @see https://developers.binance.com/docs/binance-spot-api-docs/rest-api#exchange-information
|
|
44
|
+
* @see https://developers.binance.com/docs/binance-spot-api-docs/rest-api/general-endpoints#exchange-information // spot
|
|
45
45
|
* @see https://developers.binance.com/docs/derivatives/usds-margined-futures/market-data/rest-api/Exchange-Information // swap
|
|
46
|
-
* @see https://developers.binance.com/docs/derivatives/coin-margined-futures/market-data/Exchange-Information
|
|
46
|
+
* @see https://developers.binance.com/docs/derivatives/coin-margined-futures/market-data/rest-api/Exchange-Information // future
|
|
47
47
|
* @see https://developers.binance.com/docs/derivatives/option/market-data/Exchange-Information // option
|
|
48
|
-
* @see https://developers.binance.com/docs/margin_trading/market-data/Get-All-Cross-Margin-Pairs
|
|
49
|
-
* @see https://developers.binance.com/docs/margin_trading/market-data/Get-All-Isolated-Margin-Symbol
|
|
48
|
+
* @see https://developers.binance.com/docs/margin_trading/market-data/Get-All-Cross-Margin-Pairs // cross margin
|
|
49
|
+
* @see https://developers.binance.com/docs/margin_trading/market-data/Get-All-Isolated-Margin-Symbol // isolated margin
|
|
50
50
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
51
51
|
* @returns {object[]} an array of objects representing market data
|
|
52
52
|
*/
|
|
@@ -58,12 +58,12 @@ export default class binance extends Exchange {
|
|
|
58
58
|
* @method
|
|
59
59
|
* @name binance#fetchBalance
|
|
60
60
|
* @description query for balance and get the amount of funds available for trading or funds locked in orders
|
|
61
|
-
* @see https://developers.binance.com/docs/binance-spot-api-docs/rest-api#account-information-user_data
|
|
61
|
+
* @see https://developers.binance.com/docs/binance-spot-api-docs/rest-api/account-endpoints#account-information-user_data // spot
|
|
62
62
|
* @see https://developers.binance.com/docs/margin_trading/account/Query-Cross-Margin-Account-Details // cross margin
|
|
63
63
|
* @see https://developers.binance.com/docs/margin_trading/account/Query-Isolated-Margin-Account-Info // isolated margin
|
|
64
64
|
* @see https://developers.binance.com/docs/wallet/asset/funding-wallet // funding
|
|
65
65
|
* @see https://developers.binance.com/docs/derivatives/usds-margined-futures/account/rest-api/Futures-Account-Balance-V2 // swap
|
|
66
|
-
* @see https://developers.binance.com/docs/derivatives/coin-margined-futures/account/Futures-Account-Balance
|
|
66
|
+
* @see https://developers.binance.com/docs/derivatives/coin-margined-futures/account/rest-api/Futures-Account-Balance // future
|
|
67
67
|
* @see https://developers.binance.com/docs/derivatives/option/account/Option-Account-Information // option
|
|
68
68
|
* @see https://developers.binance.com/docs/derivatives/portfolio-margin/account/Account-Balance // portfolio margin
|
|
69
69
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
@@ -79,9 +79,9 @@ export default class binance extends Exchange {
|
|
|
79
79
|
* @method
|
|
80
80
|
* @name binance#fetchOrderBook
|
|
81
81
|
* @description fetches information on open orders with bid (buy) and ask (sell) prices, volumes and other data
|
|
82
|
-
* @see https://developers.binance.com/docs/binance-spot-api-docs/rest-api#order-book
|
|
82
|
+
* @see https://developers.binance.com/docs/binance-spot-api-docs/rest-api/market-data-endpoints#order-book // spot
|
|
83
83
|
* @see https://developers.binance.com/docs/derivatives/usds-margined-futures/market-data/rest-api/Order-Book // swap
|
|
84
|
-
* @see https://developers.binance.com/docs/derivatives/coin-margined-futures/market-data/Order-Book
|
|
84
|
+
* @see https://developers.binance.com/docs/derivatives/coin-margined-futures/market-data/rest-api/Order-Book // future
|
|
85
85
|
* @see https://developers.binance.com/docs/derivatives/option/market-data/Order-Book // option
|
|
86
86
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
87
87
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
@@ -109,10 +109,10 @@ export default class binance extends Exchange {
|
|
|
109
109
|
* @method
|
|
110
110
|
* @name binance#fetchTicker
|
|
111
111
|
* @description fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
|
112
|
-
* @see https://developers.binance.com/docs/binance-spot-api-docs/rest-api#24hr-ticker-price-change-statistics
|
|
113
|
-
* @see https://developers.binance.com/docs/binance-spot-api-docs/rest-api#rolling-window-price-change-statistics
|
|
112
|
+
* @see https://developers.binance.com/docs/binance-spot-api-docs/rest-api/market-data-endpoints#24hr-ticker-price-change-statistics // spot
|
|
113
|
+
* @see https://developers.binance.com/docs/binance-spot-api-docs/rest-api/market-data-endpoints#rolling-window-price-change-statistics // spot
|
|
114
114
|
* @see https://developers.binance.com/docs/derivatives/usds-margined-futures/market-data/rest-api/24hr-Ticker-Price-Change-Statistics // swap
|
|
115
|
-
* @see https://developers.binance.com/docs/derivatives/coin-margined-futures/market-data/24hr-Ticker-Price-Change-Statistics
|
|
115
|
+
* @see https://developers.binance.com/docs/derivatives/coin-margined-futures/market-data/rest-api/24hr-Ticker-Price-Change-Statistics // future
|
|
116
116
|
* @see https://developers.binance.com/docs/derivatives/option/market-data/24hr-Ticker-Price-Change-Statistics // option
|
|
117
117
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
118
118
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
@@ -124,9 +124,9 @@ export default class binance extends Exchange {
|
|
|
124
124
|
* @method
|
|
125
125
|
* @name binance#fetchBidsAsks
|
|
126
126
|
* @description fetches the bid and ask price and volume for multiple markets
|
|
127
|
-
* @see https://developers.binance.com/docs/binance-spot-api-docs/rest-api#symbol-order-book-ticker
|
|
127
|
+
* @see https://developers.binance.com/docs/binance-spot-api-docs/rest-api/market-data-endpoints#symbol-order-book-ticker // spot
|
|
128
128
|
* @see https://developers.binance.com/docs/derivatives/usds-margined-futures/market-data/rest-api/Symbol-Order-Book-Ticker // swap
|
|
129
|
-
* @see https://developers.binance.com/docs/derivatives/coin-margined-futures/market-data/Symbol-Order-Book-Ticker
|
|
129
|
+
* @see https://developers.binance.com/docs/derivatives/coin-margined-futures/market-data/rest-api/Symbol-Order-Book-Ticker // future
|
|
130
130
|
* @param {string[]|undefined} symbols unified symbols of the markets to fetch the bids and asks for, all markets are returned if not assigned
|
|
131
131
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
132
132
|
* @param {string} [params.subType] "linear" or "inverse"
|
|
@@ -137,9 +137,9 @@ export default class binance extends Exchange {
|
|
|
137
137
|
* @method
|
|
138
138
|
* @name binance#fetchLastPrices
|
|
139
139
|
* @description fetches the last price for multiple markets
|
|
140
|
-
* @see https://developers.binance.com/docs/binance-spot-api-docs/rest-api#symbol-price-ticker
|
|
140
|
+
* @see https://developers.binance.com/docs/binance-spot-api-docs/rest-api/market-data-endpoints#symbol-price-ticker // spot
|
|
141
141
|
* @see https://developers.binance.com/docs/derivatives/usds-margined-futures/market-data/rest-api/Symbol-Price-Ticker // swap
|
|
142
|
-
* @see https://developers.binance.com/docs/derivatives/coin-margined-futures/market-data/Symbol-Price-Ticker
|
|
142
|
+
* @see https://developers.binance.com/docs/derivatives/coin-margined-futures/market-data/rest-api/Symbol-Price-Ticker // future
|
|
143
143
|
* @param {string[]|undefined} symbols unified symbols of the markets to fetch the last prices
|
|
144
144
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
145
145
|
* @param {string} [params.subType] "linear" or "inverse"
|
|
@@ -158,9 +158,9 @@ export default class binance extends Exchange {
|
|
|
158
158
|
* @method
|
|
159
159
|
* @name binance#fetchTickers
|
|
160
160
|
* @description fetches price tickers for multiple markets, statistical information calculated over the past 24 hours for each market
|
|
161
|
-
* @see https://developers.binance.com/docs/binance-spot-api-docs/rest-api#24hr-ticker-price-change-statistics
|
|
161
|
+
* @see https://developers.binance.com/docs/binance-spot-api-docs/rest-api/market-data-endpoints#24hr-ticker-price-change-statistics // spot
|
|
162
162
|
* @see https://developers.binance.com/docs/derivatives/usds-margined-futures/market-data/rest-api/24hr-Ticker-Price-Change-Statistics // swap
|
|
163
|
-
* @see https://developers.binance.com/docs/derivatives/coin-margined-futures/market-data/24hr-Ticker-Price-Change-Statistics
|
|
163
|
+
* @see https://developers.binance.com/docs/derivatives/coin-margined-futures/market-data/rest-api/24hr-Ticker-Price-Change-Statistics // future
|
|
164
164
|
* @see https://developers.binance.com/docs/derivatives/option/market-data/24hr-Ticker-Price-Change-Statistics // option
|
|
165
165
|
* @param {string[]} [symbols] unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
|
|
166
166
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
@@ -173,8 +173,8 @@ export default class binance extends Exchange {
|
|
|
173
173
|
* @method
|
|
174
174
|
* @name binance#fetchMarkPrice
|
|
175
175
|
* @description fetches mark price for the market
|
|
176
|
-
* @see https://binance
|
|
177
|
-
* @see https://binance
|
|
176
|
+
* @see https://developers.binance.com/docs/derivatives/coin-margined-futures/market-data/rest-api/Index-Price-and-Mark-Price
|
|
177
|
+
* @see https://developers.binance.com/docs/derivatives/usds-margined-futures/market-data/rest-api/Mark-Price
|
|
178
178
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
179
179
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
180
180
|
* @param {string} [params.subType] "linear" or "inverse"
|
|
@@ -185,8 +185,8 @@ export default class binance extends Exchange {
|
|
|
185
185
|
* @method
|
|
186
186
|
* @name binance#fetchMarkPrices
|
|
187
187
|
* @description fetches mark prices for multiple markets
|
|
188
|
-
* @see https://binance
|
|
189
|
-
* @see https://binance
|
|
188
|
+
* @see https://developers.binance.com/docs/derivatives/coin-margined-futures/market-data/rest-api/Index-Price-and-Mark-Price
|
|
189
|
+
* @see https://developers.binance.com/docs/derivatives/usds-margined-futures/market-data/rest-api/Mark-Price
|
|
190
190
|
* @param {string[]} [symbols] unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
|
|
191
191
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
192
192
|
* @param {string} [params.subType] "linear" or "inverse"
|
|
@@ -198,16 +198,16 @@ export default class binance extends Exchange {
|
|
|
198
198
|
* @method
|
|
199
199
|
* @name binance#fetchOHLCV
|
|
200
200
|
* @description fetches historical candlestick data containing the open, high, low, and close price, and the volume of a market
|
|
201
|
-
* @see https://developers.binance.com/docs/binance-spot-api-docs/rest-api#klinecandlestick-data
|
|
201
|
+
* @see https://developers.binance.com/docs/binance-spot-api-docs/rest-api/market-data-endpoints#klinecandlestick-data
|
|
202
202
|
* @see https://developers.binance.com/docs/derivatives/option/market-data/Kline-Candlestick-Data
|
|
203
203
|
* @see https://developers.binance.com/docs/derivatives/usds-margined-futures/market-data/rest-api/Kline-Candlestick-Data
|
|
204
204
|
* @see https://developers.binance.com/docs/derivatives/usds-margined-futures/market-data/rest-api/Index-Price-Kline-Candlestick-Data
|
|
205
205
|
* @see https://developers.binance.com/docs/derivatives/usds-margined-futures/market-data/rest-api/Mark-Price-Kline-Candlestick-Data
|
|
206
206
|
* @see https://developers.binance.com/docs/derivatives/usds-margined-futures/market-data/rest-api/Premium-Index-Kline-Data
|
|
207
|
-
* @see https://developers.binance.com/docs/derivatives/coin-margined-futures/market-data/Kline-Candlestick-Data
|
|
208
|
-
* @see https://developers.binance.com/docs/derivatives/coin-margined-futures/market-data/Index-Price-Kline-Candlestick-Data
|
|
209
|
-
* @see https://developers.binance.com/docs/derivatives/coin-margined-futures/market-data/Mark-Price-Kline-Candlestick-Data
|
|
210
|
-
* @see https://developers.binance.com/docs/derivatives/coin-margined-futures/market-data/Premium-Index-Kline-Data
|
|
207
|
+
* @see https://developers.binance.com/docs/derivatives/coin-margined-futures/market-data/rest-api/Kline-Candlestick-Data
|
|
208
|
+
* @see https://developers.binance.com/docs/derivatives/coin-margined-futures/market-data/rest-api/Index-Price-Kline-Candlestick-Data
|
|
209
|
+
* @see https://developers.binance.com/docs/derivatives/coin-margined-futures/market-data/rest-api/Mark-Price-Kline-Candlestick-Data
|
|
210
|
+
* @see https://developers.binance.com/docs/derivatives/coin-margined-futures/market-data/rest-api/Premium-Index-Kline-Data
|
|
211
211
|
* @param {string} symbol unified symbol of the market to fetch OHLCV data for
|
|
212
212
|
* @param {string} timeframe the length of time each candle represents
|
|
213
213
|
* @param {int} [since] timestamp in ms of the earliest candle to fetch
|
|
@@ -225,17 +225,17 @@ export default class binance extends Exchange {
|
|
|
225
225
|
* @name binance#fetchTrades
|
|
226
226
|
* @description get the list of most recent trades for a particular symbol
|
|
227
227
|
* Default fetchTradesMethod
|
|
228
|
-
* @see https://developers.binance.com/docs/binance-spot-api-docs/rest-api#compressedaggregate-trades-list
|
|
228
|
+
* @see https://developers.binance.com/docs/binance-spot-api-docs/rest-api/market-data-endpoints#compressedaggregate-trades-list // publicGetAggTrades (spot)
|
|
229
229
|
* @see https://developers.binance.com/docs/derivatives/usds-margined-futures/market-data/rest-api/Compressed-Aggregate-Trades-List // fapiPublicGetAggTrades (swap)
|
|
230
|
-
* @see https://developers.binance.com/docs/derivatives/coin-margined-futures/market-data/Compressed-Aggregate-Trades-List
|
|
230
|
+
* @see https://developers.binance.com/docs/derivatives/coin-margined-futures/market-data/rest-api/Compressed-Aggregate-Trades-List // dapiPublicGetAggTrades (future)
|
|
231
231
|
* @see https://developers.binance.com/docs/derivatives/option/market-data/Recent-Trades-List // eapiPublicGetTrades (option)
|
|
232
232
|
* Other fetchTradesMethod
|
|
233
|
-
* @see https://developers.binance.com/docs/binance-spot-api-docs/rest-api#recent-trades-list
|
|
233
|
+
* @see https://developers.binance.com/docs/binance-spot-api-docs/rest-api/market-data-endpoints#recent-trades-list // publicGetTrades (spot)
|
|
234
234
|
* @see https://developers.binance.com/docs/derivatives/usds-margined-futures/market-data/rest-api/Recent-Trades-List // fapiPublicGetTrades (swap)
|
|
235
|
-
* @see https://developers.binance.com/docs/derivatives/coin-margined-futures/market-data/Recent-Trades-List
|
|
236
|
-
* @see https://developers.binance.com/docs/binance-spot-api-docs/rest-api#old-trade-lookup
|
|
235
|
+
* @see https://developers.binance.com/docs/derivatives/coin-margined-futures/market-data/rest-api/Recent-Trades-List // dapiPublicGetTrades (future)
|
|
236
|
+
* @see https://developers.binance.com/docs/binance-spot-api-docs/rest-api/market-data-endpoints#old-trade-lookup // publicGetHistoricalTrades (spot)
|
|
237
237
|
* @see https://developers.binance.com/docs/derivatives/usds-margined-futures/market-data/rest-api/Old-Trades-Lookup // fapiPublicGetHistoricalTrades (swap)
|
|
238
|
-
* @see https://developers.binance.com/docs/derivatives/coin-margined-futures/market-data/Old-Trades-Lookup
|
|
238
|
+
* @see https://developers.binance.com/docs/derivatives/coin-margined-futures/market-data/rest-api/Old-Trades-Lookup // dapiPublicGetHistoricalTrades (future)
|
|
239
239
|
* @see https://developers.binance.com/docs/derivatives/option/market-data/Old-Trades-Lookup // eapiPublicGetHistoricalTrades (option)
|
|
240
240
|
* @param {string} symbol unified symbol of the market to fetch trades for
|
|
241
241
|
* @param {int} [since] only used when fetchTradesMethod is 'publicGetAggTrades', 'fapiPublicGetAggTrades', or 'dapiPublicGetAggTrades'
|
|
@@ -255,7 +255,7 @@ export default class binance extends Exchange {
|
|
|
255
255
|
* @name binance#editSpotOrder
|
|
256
256
|
* @ignore
|
|
257
257
|
* @description edit a trade order
|
|
258
|
-
* @see https://developers.binance.com/docs/binance-spot-api-docs/rest-api#cancel-an-existing-order-and-send-a-new-order-trade
|
|
258
|
+
* @see https://developers.binance.com/docs/binance-spot-api-docs/rest-api/trading-endpoints#cancel-an-existing-order-and-send-a-new-order-trade
|
|
259
259
|
* @param {string} id cancel order id
|
|
260
260
|
* @param {string} symbol unified symbol of the market to create an order in
|
|
261
261
|
* @param {string} type 'market' or 'limit' or 'STOP_LOSS' or 'STOP_LOSS_LIMIT' or 'TAKE_PROFIT' or 'TAKE_PROFIT_LIMIT' or 'STOP'
|
|
@@ -274,7 +274,7 @@ export default class binance extends Exchange {
|
|
|
274
274
|
* @name binance#editContractOrder
|
|
275
275
|
* @description edit a trade order
|
|
276
276
|
* @see https://developers.binance.com/docs/derivatives/usds-margined-futures/trade/rest-api/Modify-Order
|
|
277
|
-
* @see https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/Modify-Order
|
|
277
|
+
* @see https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/rest-api/Modify-Order
|
|
278
278
|
* @see https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Modify-UM-Order
|
|
279
279
|
* @see https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Modify-CM-Order
|
|
280
280
|
* @param {string} id cancel order id
|
|
@@ -292,9 +292,9 @@ export default class binance extends Exchange {
|
|
|
292
292
|
* @method
|
|
293
293
|
* @name binance#editOrder
|
|
294
294
|
* @description edit a trade order
|
|
295
|
-
* @see https://developers.binance.com/docs/binance-spot-api-docs/rest-api#cancel-an-existing-order-and-send-a-new-order-trade
|
|
295
|
+
* @see https://developers.binance.com/docs/binance-spot-api-docs/rest-api/trading-endpoints#cancel-an-existing-order-and-send-a-new-order-trade
|
|
296
296
|
* @see https://developers.binance.com/docs/derivatives/usds-margined-futures/trade/rest-api/Modify-Order
|
|
297
|
-
* @see https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/Modify-Order
|
|
297
|
+
* @see https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/rest-api/Modify-Order
|
|
298
298
|
* @param {string} id cancel order id
|
|
299
299
|
* @param {string} symbol unified symbol of the market to create an order in
|
|
300
300
|
* @param {string} type 'market' or 'limit'
|
|
@@ -310,7 +310,7 @@ export default class binance extends Exchange {
|
|
|
310
310
|
* @name binance#editOrders
|
|
311
311
|
* @description edit a list of trade orders
|
|
312
312
|
* @see https://developers.binance.com/docs/derivatives/usds-margined-futures/trade/rest-api/Modify-Multiple-Orders
|
|
313
|
-
* @see https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/Modify-Multiple-Orders
|
|
313
|
+
* @see https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/rest-api/Modify-Multiple-Orders
|
|
314
314
|
* @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
|
|
315
315
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
316
316
|
* @returns {object} an [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
@@ -322,7 +322,7 @@ export default class binance extends Exchange {
|
|
|
322
322
|
* @method
|
|
323
323
|
* @name binance#createOrders
|
|
324
324
|
* @description *contract only* create a list of trade orders
|
|
325
|
-
* @see https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/Place-Multiple-Orders
|
|
325
|
+
* @see https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/rest-api/Place-Multiple-Orders
|
|
326
326
|
* @see https://developers.binance.com/docs/derivatives/usds-margined-futures/trade/rest-api/Place-Multiple-Orders
|
|
327
327
|
* @see https://developers.binance.com/docs/derivatives/option/trade/Place-Multiple-Orders
|
|
328
328
|
* @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
|
|
@@ -335,12 +335,12 @@ export default class binance extends Exchange {
|
|
|
335
335
|
* @name binance#createOrder
|
|
336
336
|
* @description create a trade order
|
|
337
337
|
* @see https://developers.binance.com/docs/binance-spot-api-docs/rest-api/trading-endpoints#new-order-trade
|
|
338
|
-
* @see https://developers.binance.com/docs/binance-spot-api-docs/rest-api/
|
|
338
|
+
* @see https://developers.binance.com/docs/binance-spot-api-docs/testnet/rest-api/trading-endpoints#test-new-order-trade
|
|
339
339
|
* @see https://developers.binance.com/docs/derivatives/usds-margined-futures/trade/rest-api/New-Order
|
|
340
|
-
* @see https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/
|
|
340
|
+
* @see https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/rest-api
|
|
341
341
|
* @see https://developers.binance.com/docs/derivatives/option/trade/New-Order
|
|
342
|
-
* @see https://developers.binance.com/docs/binance-spot-api-docs/rest-api#sor
|
|
343
|
-
* @see https://developers.binance.com/docs/binance-spot-api-docs/rest-api#
|
|
342
|
+
* @see https://developers.binance.com/docs/binance-spot-api-docs/rest-api/trading-endpoints#sor
|
|
343
|
+
* @see https://developers.binance.com/docs/binance-spot-api-docs/testnet/rest-api/trading-endpoints#sor
|
|
344
344
|
* @see https://developers.binance.com/docs/derivatives/portfolio-margin/trade/New-UM-Order
|
|
345
345
|
* @see https://developers.binance.com/docs/derivatives/portfolio-margin/trade/New-CM-Order
|
|
346
346
|
* @see https://developers.binance.com/docs/derivatives/portfolio-margin/trade/New-Margin-Order
|
|
@@ -375,7 +375,7 @@ export default class binance extends Exchange {
|
|
|
375
375
|
* @method
|
|
376
376
|
* @name binance#createMarketOrderWithCost
|
|
377
377
|
* @description create a market order by providing the symbol, side and cost
|
|
378
|
-
* @see https://developers.binance.com/docs/binance-spot-api-docs/rest-api#new-order-trade
|
|
378
|
+
* @see https://developers.binance.com/docs/binance-spot-api-docs/rest-api/trading-endpoints#new-order-trade
|
|
379
379
|
* @param {string} symbol unified symbol of the market to create an order in
|
|
380
380
|
* @param {string} side 'buy' or 'sell'
|
|
381
381
|
* @param {float} cost how much you want to trade in units of the quote currency
|
|
@@ -387,7 +387,7 @@ export default class binance extends Exchange {
|
|
|
387
387
|
* @method
|
|
388
388
|
* @name binance#createMarketBuyOrderWithCost
|
|
389
389
|
* @description create a market buy order by providing the symbol and cost
|
|
390
|
-
* @see https://developers.binance.com/docs/binance-spot-api-docs/rest-api#new-order-trade
|
|
390
|
+
* @see https://developers.binance.com/docs/binance-spot-api-docs/rest-api/trading-endpoints#new-order-trade
|
|
391
391
|
* @param {string} symbol unified symbol of the market to create an order in
|
|
392
392
|
* @param {float} cost how much you want to trade in units of the quote currency
|
|
393
393
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
@@ -398,7 +398,7 @@ export default class binance extends Exchange {
|
|
|
398
398
|
* @method
|
|
399
399
|
* @name binance#createMarketSellOrderWithCost
|
|
400
400
|
* @description create a market sell order by providing the symbol and cost
|
|
401
|
-
* @see https://developers.binance.com/docs/binance-spot-api-docs/rest-api#new-order-trade
|
|
401
|
+
* @see https://developers.binance.com/docs/binance-spot-api-docs/rest-api/trading-endpoints#new-order-trade
|
|
402
402
|
* @param {string} symbol unified symbol of the market to create an order in
|
|
403
403
|
* @param {float} cost how much you want to trade in units of the quote currency
|
|
404
404
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
@@ -409,9 +409,9 @@ export default class binance extends Exchange {
|
|
|
409
409
|
* @method
|
|
410
410
|
* @name binance#fetchOrder
|
|
411
411
|
* @description fetches information on an order made by the user
|
|
412
|
-
* @see https://developers.binance.com/docs/binance-spot-api-docs/rest-api#query-order-user_data
|
|
412
|
+
* @see https://developers.binance.com/docs/binance-spot-api-docs/rest-api/trading-endpoints#query-order-user_data
|
|
413
413
|
* @see https://developers.binance.com/docs/derivatives/usds-margined-futures/trade/rest-api/Query-Order
|
|
414
|
-
* @see https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/Query-Order
|
|
414
|
+
* @see https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/rest-api/Query-Order
|
|
415
415
|
* @see https://developers.binance.com/docs/derivatives/option/trade/Query-Single-Order
|
|
416
416
|
* @see https://developers.binance.com/docs/margin_trading/trade/Query-Margin-Account-Order
|
|
417
417
|
* @see https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Query-UM-Order
|
|
@@ -428,9 +428,9 @@ export default class binance extends Exchange {
|
|
|
428
428
|
* @method
|
|
429
429
|
* @name binance#fetchOrders
|
|
430
430
|
* @description fetches information on multiple orders made by the user
|
|
431
|
-
* @see https://developers.binance.com/docs/binance-spot-api-docs/rest-api#all-orders-user_data
|
|
431
|
+
* @see https://developers.binance.com/docs/binance-spot-api-docs/rest-api/trading-endpoints#all-orders-user_data
|
|
432
432
|
* @see https://developers.binance.com/docs/derivatives/usds-margined-futures/trade/rest-api/All-Orders
|
|
433
|
-
* @see https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/All-Orders
|
|
433
|
+
* @see https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/rest-api/All-Orders
|
|
434
434
|
* @see https://developers.binance.com/docs/derivatives/option/trade/Query-Option-Order-History
|
|
435
435
|
* @see https://developers.binance.com/docs/margin_trading/trade/Query-Margin-Account-All-Orders
|
|
436
436
|
* @see https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Query-All-UM-Orders
|
|
@@ -453,9 +453,9 @@ export default class binance extends Exchange {
|
|
|
453
453
|
* @method
|
|
454
454
|
* @name binance#fetchOpenOrders
|
|
455
455
|
* @description fetch all unfilled currently open orders
|
|
456
|
-
* @see https://developers.binance.com/docs/binance-spot-api-docs/rest-api#current-open-orders-user_data
|
|
456
|
+
* @see https://developers.binance.com/docs/binance-spot-api-docs/rest-api/trading-endpoints#current-open-orders-user_data
|
|
457
457
|
* @see https://developers.binance.com/docs/derivatives/usds-margined-futures/trade/rest-api/Current-All-Open-Orders
|
|
458
|
-
* @see https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/Current-All-Open-Orders
|
|
458
|
+
* @see https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/rest-api/Current-All-Open-Orders
|
|
459
459
|
* @see https://developers.binance.com/docs/derivatives/option/trade/Query-Current-Open-Option-Orders
|
|
460
460
|
* @see https://developers.binance.com/docs/margin_trading/trade/Query-Margin-Account-Open-Orders
|
|
461
461
|
* @see https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Query-All-Current-UM-Open-Orders
|
|
@@ -478,7 +478,7 @@ export default class binance extends Exchange {
|
|
|
478
478
|
* @name binance#fetchOpenOrder
|
|
479
479
|
* @description fetch an open order by the id
|
|
480
480
|
* @see https://developers.binance.com/docs/derivatives/usds-margined-futures/trade/rest-api/Query-Current-Open-Order
|
|
481
|
-
* @see https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/Query-Current-Open-Order
|
|
481
|
+
* @see https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/rest-api/Query-Current-Open-Order
|
|
482
482
|
* @see https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Query-Current-UM-Open-Order
|
|
483
483
|
* @see https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Query-Current-UM-Open-Conditional-Order
|
|
484
484
|
* @see https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Query-Current-CM-Open-Order
|
|
@@ -495,9 +495,9 @@ export default class binance extends Exchange {
|
|
|
495
495
|
* @method
|
|
496
496
|
* @name binance#fetchClosedOrders
|
|
497
497
|
* @description fetches information on multiple closed orders made by the user
|
|
498
|
-
* @see https://developers.binance.com/docs/binance-spot-api-docs/rest-api#all-orders-user_data
|
|
498
|
+
* @see https://developers.binance.com/docs/binance-spot-api-docs/rest-api/trading-endpoints#all-orders-user_data
|
|
499
499
|
* @see https://developers.binance.com/docs/derivatives/usds-margined-futures/trade/rest-api/All-Orders
|
|
500
|
-
* @see https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/All-Orders
|
|
500
|
+
* @see https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/rest-api/All-Orders
|
|
501
501
|
* @see https://developers.binance.com/docs/derivatives/option/trade/Query-Option-Order-History
|
|
502
502
|
* @see https://developers.binance.com/docs/margin_trading/trade/Query-Margin-Account-All-Orders
|
|
503
503
|
* @see https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Query-All-UM-Orders
|
|
@@ -518,9 +518,9 @@ export default class binance extends Exchange {
|
|
|
518
518
|
* @method
|
|
519
519
|
* @name binance#fetchCanceledOrders
|
|
520
520
|
* @description fetches information on multiple canceled orders made by the user
|
|
521
|
-
* @see https://developers.binance.com/docs/binance-spot-api-docs/rest-api#all-orders-user_data
|
|
521
|
+
* @see https://developers.binance.com/docs/binance-spot-api-docs/rest-api/trading-endpoints#all-orders-user_data
|
|
522
522
|
* @see https://developers.binance.com/docs/derivatives/usds-margined-futures/trade/rest-api/All-Orders
|
|
523
|
-
* @see https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/All-Orders
|
|
523
|
+
* @see https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/rest-api/All-Orders
|
|
524
524
|
* @see https://developers.binance.com/docs/derivatives/option/trade/Query-Option-Order-History
|
|
525
525
|
* @see https://developers.binance.com/docs/margin_trading/trade/Query-Margin-Account-All-Orders
|
|
526
526
|
* @see https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Query-All-UM-Orders
|
|
@@ -541,9 +541,9 @@ export default class binance extends Exchange {
|
|
|
541
541
|
* @method
|
|
542
542
|
* @name binance#fetchCanceledAndClosedOrders
|
|
543
543
|
* @description fetches information on multiple canceled orders made by the user
|
|
544
|
-
* @see https://developers.binance.com/docs/binance-spot-api-docs/rest-api#all-orders-user_data
|
|
544
|
+
* @see https://developers.binance.com/docs/binance-spot-api-docs/rest-api/trading-endpoints#all-orders-user_data
|
|
545
545
|
* @see https://developers.binance.com/docs/derivatives/usds-margined-futures/trade/rest-api/All-Orders
|
|
546
|
-
* @see https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/All-Orders
|
|
546
|
+
* @see https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/rest-api/All-Orders
|
|
547
547
|
* @see https://developers.binance.com/docs/derivatives/option/trade/Query-Option-Order-History
|
|
548
548
|
* @see https://developers.binance.com/docs/margin_trading/trade/Query-Margin-Account-All-Orders
|
|
549
549
|
* @see https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Query-All-UM-Orders
|
|
@@ -564,9 +564,9 @@ export default class binance extends Exchange {
|
|
|
564
564
|
* @method
|
|
565
565
|
* @name binance#cancelOrder
|
|
566
566
|
* @description cancels an open order
|
|
567
|
-
* @see https://developers.binance.com/docs/binance-spot-api-docs/rest-api#cancel-order-trade
|
|
567
|
+
* @see https://developers.binance.com/docs/binance-spot-api-docs/rest-api/trading-endpoints#cancel-order-trade
|
|
568
568
|
* @see https://developers.binance.com/docs/derivatives/usds-margined-futures/trade/rest-api/Cancel-Order
|
|
569
|
-
* @see https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/Cancel-Order
|
|
569
|
+
* @see https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/rest-api/Cancel-Order
|
|
570
570
|
* @see https://developers.binance.com/docs/derivatives/option/trade/Cancel-Option-Order
|
|
571
571
|
* @see https://developers.binance.com/docs/margin_trading/trade/Margin-Account-Cancel-Order
|
|
572
572
|
* @see https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Cancel-UM-Order
|
|
@@ -586,8 +586,9 @@ export default class binance extends Exchange {
|
|
|
586
586
|
* @method
|
|
587
587
|
* @name binance#cancelAllOrders
|
|
588
588
|
* @description cancel all open orders in a market
|
|
589
|
-
* @see https://developers.binance.com/docs/binance-spot-api-docs/rest-api#cancel-all-open-orders-on-a-symbol-trade
|
|
589
|
+
* @see https://developers.binance.com/docs/binance-spot-api-docs/rest-api/trading-endpoints#cancel-all-open-orders-on-a-symbol-trade
|
|
590
590
|
* @see https://developers.binance.com/docs/derivatives/usds-margined-futures/trade/rest-api/Cancel-All-Open-Orders
|
|
591
|
+
* @see https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/rest-api/Cancel-All-Open-Orders
|
|
591
592
|
* @see https://developers.binance.com/docs/derivatives/option/trade/Cancel-all-Option-orders-on-specific-symbol
|
|
592
593
|
* @see https://developers.binance.com/docs/margin_trading/trade/Margin-Account-Cancel-All-Open-Orders
|
|
593
594
|
* @see https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Cancel-All-UM-Open-Orders
|
|
@@ -608,7 +609,7 @@ export default class binance extends Exchange {
|
|
|
608
609
|
* @name binance#cancelOrders
|
|
609
610
|
* @description cancel multiple orders
|
|
610
611
|
* @see https://developers.binance.com/docs/derivatives/usds-margined-futures/trade/rest-api/Cancel-Multiple-Orders
|
|
611
|
-
* @see https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/Cancel-Multiple-Orders
|
|
612
|
+
* @see https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/rest-api/Cancel-Multiple-Orders
|
|
612
613
|
* @param {string[]} ids order ids
|
|
613
614
|
* @param {string} [symbol] unified market symbol
|
|
614
615
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
@@ -623,9 +624,9 @@ export default class binance extends Exchange {
|
|
|
623
624
|
* @method
|
|
624
625
|
* @name binance#fetchOrderTrades
|
|
625
626
|
* @description fetch all the trades made from a single order
|
|
626
|
-
* @see https://developers.binance.com/docs/binance-spot-api-docs/rest-api#account-trade-list-user_data
|
|
627
|
+
* @see https://developers.binance.com/docs/binance-spot-api-docs/rest-api/account-endpoints#account-trade-list-user_data
|
|
627
628
|
* @see https://developers.binance.com/docs/derivatives/usds-margined-futures/trade/rest-api/Account-Trade-List
|
|
628
|
-
* @see https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/Account-Trade-List
|
|
629
|
+
* @see https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/rest-api/Account-Trade-List
|
|
629
630
|
* @see https://developers.binance.com/docs/margin_trading/trade/Query-Margin-Account-Trade-List
|
|
630
631
|
* @param {string} id order id
|
|
631
632
|
* @param {string} symbol unified market symbol
|
|
@@ -639,9 +640,9 @@ export default class binance extends Exchange {
|
|
|
639
640
|
* @method
|
|
640
641
|
* @name binance#fetchMyTrades
|
|
641
642
|
* @description fetch all trades made by the user
|
|
642
|
-
* @see https://developers.binance.com/docs/binance-spot-api-docs/rest-api#account-trade-list-user_data
|
|
643
|
+
* @see https://developers.binance.com/docs/binance-spot-api-docs/rest-api/account-endpoints#account-trade-list-user_data
|
|
643
644
|
* @see https://developers.binance.com/docs/derivatives/usds-margined-futures/trade/rest-api/Account-Trade-List
|
|
644
|
-
* @see https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/Account-Trade-List
|
|
645
|
+
* @see https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/rest-api/Account-Trade-List
|
|
645
646
|
* @see https://developers.binance.com/docs/margin_trading/trade/Query-Margin-Account-Trade-List
|
|
646
647
|
* @see https://developers.binance.com/docs/derivatives/option/trade/Account-Trade-List
|
|
647
648
|
* @see https://developers.binance.com/docs/derivatives/portfolio-margin/trade/UM-Account-Trade-List
|
|
@@ -820,7 +821,7 @@ export default class binance extends Exchange {
|
|
|
820
821
|
* @description fetch the trading fees for a market
|
|
821
822
|
* @see https://developers.binance.com/docs/wallet/asset/trade-fee
|
|
822
823
|
* @see https://developers.binance.com/docs/derivatives/usds-margined-futures/account/rest-api/User-Commission-Rate
|
|
823
|
-
* @see https://developers.binance.com/docs/derivatives/coin-margined-futures/account/User-Commission-Rate
|
|
824
|
+
* @see https://developers.binance.com/docs/derivatives/coin-margined-futures/account/rest-api/User-Commission-Rate
|
|
824
825
|
* @see https://developers.binance.com/docs/derivatives/portfolio-margin/account/Get-User-Commission-Rate-for-UM
|
|
825
826
|
* @see https://developers.binance.com/docs/derivatives/portfolio-margin/account/Get-User-Commission-Rate-for-CM
|
|
826
827
|
* @param {string} symbol unified market symbol
|
|
@@ -836,7 +837,7 @@ export default class binance extends Exchange {
|
|
|
836
837
|
* @description fetch the trading fees for multiple markets
|
|
837
838
|
* @see https://developers.binance.com/docs/wallet/asset/trade-fee
|
|
838
839
|
* @see https://developers.binance.com/docs/derivatives/usds-margined-futures/account/rest-api/Account-Information-V2
|
|
839
|
-
* @see https://developers.binance.com/docs/derivatives/coin-margined-futures/account/Account-Information
|
|
840
|
+
* @see https://developers.binance.com/docs/derivatives/coin-margined-futures/account/rest-api/Account-Information
|
|
840
841
|
* @see https://developers.binance.com/docs/derivatives/usds-margined-futures/account/rest-api/Account-Config
|
|
841
842
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
842
843
|
* @param {string} [params.subType] "linear" or "inverse"
|
|
@@ -862,7 +863,7 @@ export default class binance extends Exchange {
|
|
|
862
863
|
* @name binance#fetchFundingRate
|
|
863
864
|
* @description fetch the current funding rate
|
|
864
865
|
* @see https://developers.binance.com/docs/derivatives/usds-margined-futures/market-data/rest-api/Mark-Price
|
|
865
|
-
* @see https://developers.binance.com/docs/derivatives/coin-margined-futures/market-data/Index-Price-and-Mark-Price
|
|
866
|
+
* @see https://developers.binance.com/docs/derivatives/coin-margined-futures/market-data/rest-api/Index-Price-and-Mark-Price
|
|
866
867
|
* @param {string} symbol unified market symbol
|
|
867
868
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
868
869
|
* @returns {object} a [funding rate structure]{@link https://docs.ccxt.com/#/?id=funding-rate-structure}
|
|
@@ -873,7 +874,7 @@ export default class binance extends Exchange {
|
|
|
873
874
|
* @name binance#fetchFundingRateHistory
|
|
874
875
|
* @description fetches historical funding rate prices
|
|
875
876
|
* @see https://developers.binance.com/docs/derivatives/usds-margined-futures/market-data/rest-api/Get-Funding-Rate-History
|
|
876
|
-
* @see https://developers.binance.com/docs/derivatives/coin-margined-futures/market-data/Get-Funding-Rate-History-of-Perpetual-Futures
|
|
877
|
+
* @see https://developers.binance.com/docs/derivatives/coin-margined-futures/market-data/rest-api/Get-Funding-Rate-History-of-Perpetual-Futures
|
|
877
878
|
* @param {string} symbol unified symbol of the market to fetch the funding rate history for
|
|
878
879
|
* @param {int} [since] timestamp in ms of the earliest funding rate to fetch
|
|
879
880
|
* @param {int} [limit] the maximum amount of [funding rate structures]{@link https://docs.ccxt.com/#/?id=funding-rate-history-structure} to fetch
|
|
@@ -896,7 +897,7 @@ export default class binance extends Exchange {
|
|
|
896
897
|
* @name binance#fetchFundingRates
|
|
897
898
|
* @description fetch the funding rate for multiple markets
|
|
898
899
|
* @see https://developers.binance.com/docs/derivatives/usds-margined-futures/market-data/rest-api/Mark-Price
|
|
899
|
-
* @see https://developers.binance.com/docs/derivatives/coin-margined-futures/market-data/Index-Price-and-Mark-Price
|
|
900
|
+
* @see https://developers.binance.com/docs/derivatives/coin-margined-futures/market-data/rest-api/Index-Price-and-Mark-Price
|
|
900
901
|
* @param {string[]|undefined} symbols list of unified market symbols
|
|
901
902
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
902
903
|
* @param {string} [params.subType] "linear" or "inverse"
|
|
@@ -964,7 +965,7 @@ export default class binance extends Exchange {
|
|
|
964
965
|
* @name binance#fetchLeverageTiers
|
|
965
966
|
* @description retrieve information on the maximum leverage, and maintenance margin for trades of varying trade sizes
|
|
966
967
|
* @see https://developers.binance.com/docs/derivatives/usds-margined-futures/account/rest-api/Notional-and-Leverage-Brackets
|
|
967
|
-
* @see https://developers.binance.com/docs/derivatives/coin-margined-futures/account/Notional-Bracket-for-
|
|
968
|
+
* @see https://developers.binance.com/docs/derivatives/coin-margined-futures/account/rest-api/Notional-Bracket-for-Pair
|
|
968
969
|
* @see https://developers.binance.com/docs/derivatives/portfolio-margin/account/UM-Notional-and-Leverage-Brackets
|
|
969
970
|
* @see https://developers.binance.com/docs/derivatives/portfolio-margin/account/CM-Notional-and-Leverage-Brackets
|
|
970
971
|
* @param {string[]|undefined} symbols list of unified market symbols
|
|
@@ -1001,9 +1002,9 @@ export default class binance extends Exchange {
|
|
|
1001
1002
|
* @name binance#fetchPositions
|
|
1002
1003
|
* @description fetch all open positions
|
|
1003
1004
|
* @see https://developers.binance.com/docs/derivatives/usds-margined-futures/account/rest-api/Account-Information-V2
|
|
1004
|
-
* @see https://developers.binance.com/docs/derivatives/coin-margined-futures/account/Account-Information
|
|
1005
|
+
* @see https://developers.binance.com/docs/derivatives/coin-margined-futures/account/rest-api/Account-Information
|
|
1005
1006
|
* @see https://developers.binance.com/docs/derivatives/usds-margined-futures/trade/rest-api/Position-Information-V2
|
|
1006
|
-
* @see https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/Position-Information
|
|
1007
|
+
* @see https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/rest-api/Position-Information
|
|
1007
1008
|
* @see https://developers.binance.com/docs/derivatives/option/trade/Option-Position-Information
|
|
1008
1009
|
* @param {string[]} [symbols] list of unified market symbols
|
|
1009
1010
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
@@ -1019,9 +1020,9 @@ export default class binance extends Exchange {
|
|
|
1019
1020
|
* @ignore
|
|
1020
1021
|
* @description fetch account positions
|
|
1021
1022
|
* @see https://developers.binance.com/docs/derivatives/usds-margined-futures/account/rest-api/Account-Information-V2
|
|
1022
|
-
* @see https://developers.binance.com/docs/derivatives/coin-margined-futures/account/Account-Information
|
|
1023
|
+
* @see https://developers.binance.com/docs/derivatives/coin-margined-futures/account/rest-api/Account-Information
|
|
1023
1024
|
* @see https://developers.binance.com/docs/derivatives/usds-margined-futures/trade/rest-api/Position-Information-V2
|
|
1024
|
-
* @see https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/Position-Information
|
|
1025
|
+
* @see https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/rest-api/Position-Information
|
|
1025
1026
|
* @see https://developers.binance.com/docs/derivatives/usds-margined-futures/account/rest-api/Account-Information-V3
|
|
1026
1027
|
* @param {string[]} [symbols] list of unified market symbols
|
|
1027
1028
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
@@ -1038,7 +1039,7 @@ export default class binance extends Exchange {
|
|
|
1038
1039
|
* @ignore
|
|
1039
1040
|
* @description fetch positions risk
|
|
1040
1041
|
* @see https://developers.binance.com/docs/derivatives/usds-margined-futures/trade/rest-api/Position-Information-V2
|
|
1041
|
-
* @see https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/Position-Information
|
|
1042
|
+
* @see https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/rest-api/Position-Information
|
|
1042
1043
|
* @see https://developers.binance.com/docs/derivatives/portfolio-margin/account/Query-UM-Position-Information
|
|
1043
1044
|
* @see https://developers.binance.com/docs/derivatives/portfolio-margin/account/Query-CM-Position-Information
|
|
1044
1045
|
* @see https://developers.binance.com/docs/derivatives/usds-margined-futures/trade/rest-api/Position-Information-V3
|
|
@@ -1055,7 +1056,7 @@ export default class binance extends Exchange {
|
|
|
1055
1056
|
* @name binance#fetchFundingHistory
|
|
1056
1057
|
* @description fetch the history of funding payments paid and received on this account
|
|
1057
1058
|
* @see https://developers.binance.com/docs/derivatives/usds-margined-futures/account/rest-api/Get-Income-History
|
|
1058
|
-
* @see https://developers.binance.com/docs/derivatives/coin-margined-futures/account/Get-Income-History
|
|
1059
|
+
* @see https://developers.binance.com/docs/derivatives/coin-margined-futures/account/rest-api/Get-Income-History
|
|
1059
1060
|
* @see https://developers.binance.com/docs/derivatives/portfolio-margin/account/Get-UM-Income-History
|
|
1060
1061
|
* @see https://developers.binance.com/docs/derivatives/portfolio-margin/account/Get-CM-Income-History
|
|
1061
1062
|
* @param {string} symbol unified market symbol
|
|
@@ -1073,7 +1074,7 @@ export default class binance extends Exchange {
|
|
|
1073
1074
|
* @name binance#setLeverage
|
|
1074
1075
|
* @description set the level of leverage for a market
|
|
1075
1076
|
* @see https://developers.binance.com/docs/derivatives/usds-margined-futures/trade/rest-api/Change-Initial-Leverage
|
|
1076
|
-
* @see https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/Change-Initial-Leverage
|
|
1077
|
+
* @see https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/rest-api/Change-Initial-Leverage
|
|
1077
1078
|
* @see https://developers.binance.com/docs/derivatives/portfolio-margin/account/Change-UM-Initial-Leverage
|
|
1078
1079
|
* @see https://developers.binance.com/docs/derivatives/portfolio-margin/account/Change-CM-Initial-Leverage
|
|
1079
1080
|
* @param {float} leverage the rate of leverage
|
|
@@ -1088,7 +1089,7 @@ export default class binance extends Exchange {
|
|
|
1088
1089
|
* @name binance#setMarginMode
|
|
1089
1090
|
* @description set margin mode to 'cross' or 'isolated'
|
|
1090
1091
|
* @see https://developers.binance.com/docs/derivatives/usds-margined-futures/trade/rest-api/Change-Margin-Type
|
|
1091
|
-
* @see https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/Change-Margin-Type
|
|
1092
|
+
* @see https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/rest-api/Change-Margin-Type
|
|
1092
1093
|
* @param {string} marginMode 'cross' or 'isolated'
|
|
1093
1094
|
* @param {string} symbol unified market symbol
|
|
1094
1095
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
@@ -1100,7 +1101,7 @@ export default class binance extends Exchange {
|
|
|
1100
1101
|
* @name binance#setPositionMode
|
|
1101
1102
|
* @description set hedged to true or false for a market
|
|
1102
1103
|
* @see https://developers.binance.com/docs/derivatives/usds-margined-futures/trade/rest-api/Change-Position-Mode
|
|
1103
|
-
* @see https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/Change-Position-Mode
|
|
1104
|
+
* @see https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/rest-api/Change-Position-Mode
|
|
1104
1105
|
* @see https://developers.binance.com/docs/derivatives/portfolio-margin/account/Get-UM-Current-Position-Mode
|
|
1105
1106
|
* @see https://developers.binance.com/docs/derivatives/portfolio-margin/account/Get-CM-Current-Position-Mode
|
|
1106
1107
|
* @param {bool} hedged set to true to use dualSidePosition
|
|
@@ -1116,7 +1117,7 @@ export default class binance extends Exchange {
|
|
|
1116
1117
|
* @name binance#fetchLeverages
|
|
1117
1118
|
* @description fetch the set leverage for all markets
|
|
1118
1119
|
* @see https://developers.binance.com/docs/derivatives/usds-margined-futures/account/rest-api/Account-Information-V2
|
|
1119
|
-
* @see https://developers.binance.com/docs/derivatives/coin-margined-futures/account/Account-Information
|
|
1120
|
+
* @see https://developers.binance.com/docs/derivatives/coin-margined-futures/account/rest-api/Account-Information
|
|
1120
1121
|
* @see https://developers.binance.com/docs/derivatives/portfolio-margin/account/Get-UM-Account-Detail
|
|
1121
1122
|
* @see https://developers.binance.com/docs/derivatives/portfolio-margin/account/Get-CM-Account-Detail
|
|
1122
1123
|
* @see https://developers.binance.com/docs/derivatives/usds-margined-futures/account/rest-api/Symbol-Config
|
|
@@ -1176,7 +1177,7 @@ export default class binance extends Exchange {
|
|
|
1176
1177
|
* @description fetch the history of changes, actions done by the user or operations that altered the balance of the user
|
|
1177
1178
|
* @see https://developers.binance.com/docs/derivatives/option/account/Account-Funding-Flow
|
|
1178
1179
|
* @see https://developers.binance.com/docs/derivatives/usds-margined-futures/account/rest-api/Get-Income-History
|
|
1179
|
-
* @see https://developers.binance.com/docs/derivatives/coin-margined-futures/account/Get-Income-History
|
|
1180
|
+
* @see https://developers.binance.com/docs/derivatives/coin-margined-futures/account/rest-api/Get-Income-History
|
|
1180
1181
|
* @see https://developers.binance.com/docs/derivatives/portfolio-margin/account/Get-UM-Income-History
|
|
1181
1182
|
* @see https://developers.binance.com/docs/derivatives/portfolio-margin/account/Get-CM-Income-History
|
|
1182
1183
|
* @param {string} [code] unified currency code
|
|
@@ -1209,7 +1210,7 @@ export default class binance extends Exchange {
|
|
|
1209
1210
|
* @name binance#reduceMargin
|
|
1210
1211
|
* @description remove margin from a position
|
|
1211
1212
|
* @see https://developers.binance.com/docs/derivatives/usds-margined-futures/trade/rest-api/Modify-Isolated-Position-Margin
|
|
1212
|
-
* @see https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/Modify-Isolated-Position-Margin
|
|
1213
|
+
* @see https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/rest-api/Modify-Isolated-Position-Margin
|
|
1213
1214
|
* @param {string} symbol unified market symbol
|
|
1214
1215
|
* @param {float} amount the amount of margin to remove
|
|
1215
1216
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
@@ -1221,7 +1222,7 @@ export default class binance extends Exchange {
|
|
|
1221
1222
|
* @name binance#addMargin
|
|
1222
1223
|
* @description add margin
|
|
1223
1224
|
* @see https://developers.binance.com/docs/derivatives/usds-margined-futures/trade/rest-api/Modify-Isolated-Position-Margin
|
|
1224
|
-
* @see https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/Modify-Isolated-Position-Margin
|
|
1225
|
+
* @see https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/rest-api/Modify-Isolated-Position-Margin
|
|
1225
1226
|
* @param {string} symbol unified market symbol
|
|
1226
1227
|
* @param {float} amount amount of margin to add
|
|
1227
1228
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
@@ -1437,7 +1438,7 @@ export default class binance extends Exchange {
|
|
|
1437
1438
|
* @name binance#fetchOpenInterestHistory
|
|
1438
1439
|
* @description Retrieves the open interest history of a currency
|
|
1439
1440
|
* @see https://developers.binance.com/docs/derivatives/usds-margined-futures/market-data/rest-api/Open-Interest-Statistics
|
|
1440
|
-
* @see https://developers.binance.com/docs/derivatives/coin-margined-futures/market-data/Open-Interest-Statistics
|
|
1441
|
+
* @see https://developers.binance.com/docs/derivatives/coin-margined-futures/market-data/rest-api/Open-Interest-Statistics
|
|
1441
1442
|
* @param {string} symbol Unified CCXT market symbol
|
|
1442
1443
|
* @param {string} timeframe "5m","15m","30m","1h","2h","4h","6h","12h", or "1d"
|
|
1443
1444
|
* @param {int} [since] the time(ms) of the earliest record to retrieve as a unix timestamp
|
|
@@ -1453,7 +1454,7 @@ export default class binance extends Exchange {
|
|
|
1453
1454
|
* @name binance#fetchOpenInterest
|
|
1454
1455
|
* @description retrieves the open interest of a contract trading pair
|
|
1455
1456
|
* @see https://developers.binance.com/docs/derivatives/usds-margined-futures/market-data/rest-api/Open-Interest
|
|
1456
|
-
* @see https://developers.binance.com/docs/derivatives/coin-margined-futures/market-data/Open-Interest
|
|
1457
|
+
* @see https://developers.binance.com/docs/derivatives/coin-margined-futures/market-data/rest-api/Open-Interest
|
|
1457
1458
|
* @see https://developers.binance.com/docs/derivatives/option/market-data/Open-Interest
|
|
1458
1459
|
* @param {string} symbol unified CCXT market symbol
|
|
1459
1460
|
* @param {object} [params] exchange specific parameters
|
|
@@ -1467,7 +1468,7 @@ export default class binance extends Exchange {
|
|
|
1467
1468
|
* @description retrieves the users liquidated positions
|
|
1468
1469
|
* @see https://developers.binance.com/docs/margin_trading/trade/Get-Force-Liquidation-Record
|
|
1469
1470
|
* @see https://developers.binance.com/docs/derivatives/usds-margined-futures/trade/rest-api/Users-Force-Orders
|
|
1470
|
-
* @see https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/Users-Force-Orders
|
|
1471
|
+
* @see https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/rest-api/Users-Force-Orders
|
|
1471
1472
|
* @see https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Query-Users-UM-Force-Orders
|
|
1472
1473
|
* @see https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Query-Users-CM-Force-Orders
|
|
1473
1474
|
* @param {string} [symbol] unified CCXT market symbol
|
|
@@ -1500,7 +1501,7 @@ export default class binance extends Exchange {
|
|
|
1500
1501
|
* @name binance#fetchPositionMode
|
|
1501
1502
|
* @description fetchs the position mode, hedged or one way, hedged for binance is set identically for all linear markets or all inverse markets
|
|
1502
1503
|
* @see https://developers.binance.com/docs/derivatives/usds-margined-futures/account/rest-api/Get-Current-Position-Mode
|
|
1503
|
-
* @see https://developers.binance.com/docs/derivatives/coin-margined-futures/account/Get-Current-Position-Mode
|
|
1504
|
+
* @see https://developers.binance.com/docs/derivatives/coin-margined-futures/account/rest-api/Get-Current-Position-Mode
|
|
1504
1505
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
1505
1506
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1506
1507
|
* @param {string} [params.subType] "linear" or "inverse"
|
|
@@ -1514,7 +1515,7 @@ export default class binance extends Exchange {
|
|
|
1514
1515
|
* @method
|
|
1515
1516
|
* @name binance#fetchMarginModes
|
|
1516
1517
|
* @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
|
|
1517
|
-
* @see https://developers.binance.com/docs/derivatives/coin-margined-futures/account/Account-Information
|
|
1518
|
+
* @see https://developers.binance.com/docs/derivatives/coin-margined-futures/account/rest-api/Account-Information
|
|
1518
1519
|
* @see https://developers.binance.com/docs/derivatives/usds-margined-futures/account/rest-api/Account-Information-V2
|
|
1519
1520
|
* @see https://developers.binance.com/docs/derivatives/usds-margined-futures/account/rest-api/Symbol-Config
|
|
1520
1521
|
* @param {string[]} symbols unified market symbols
|
|
@@ -1528,7 +1529,7 @@ export default class binance extends Exchange {
|
|
|
1528
1529
|
* @name binance#fetchMarginMode
|
|
1529
1530
|
* @description fetches the margin mode of a specific symbol
|
|
1530
1531
|
* @see https://developers.binance.com/docs/derivatives/usds-margined-futures/account/rest-api/Symbol-Config
|
|
1531
|
-
* @see https://developers.binance.com/docs/derivatives/coin-margined-futures/account/Account-Information
|
|
1532
|
+
* @see https://developers.binance.com/docs/derivatives/coin-margined-futures/account/rest-api/Account-Information
|
|
1532
1533
|
* @param {string} symbol unified symbol of the market the order was made in
|
|
1533
1534
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1534
1535
|
* @param {string} [params.subType] "linear" or "inverse"
|
|
@@ -1552,7 +1553,7 @@ export default class binance extends Exchange {
|
|
|
1552
1553
|
* @name binance#fetchMarginAdjustmentHistory
|
|
1553
1554
|
* @description fetches the history of margin added or reduced from contract isolated positions
|
|
1554
1555
|
* @see https://developers.binance.com/docs/derivatives/usds-margined-futures/trade/rest-api/Get-Position-Margin-Change-History
|
|
1555
|
-
* @see https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/Get-Position-Margin-Change-History
|
|
1556
|
+
* @see https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/rest-api/Get-Position-Margin-Change-History
|
|
1556
1557
|
* @param {string} symbol unified market symbol
|
|
1557
1558
|
* @param {string} [type] "add" or "reduce"
|
|
1558
1559
|
* @param {int} [since] timestamp in ms of the earliest change to fetch
|
|
@@ -1626,8 +1627,8 @@ export default class binance extends Exchange {
|
|
|
1626
1627
|
* @method
|
|
1627
1628
|
* @name binance#fetchFundingIntervals
|
|
1628
1629
|
* @description fetch the funding rate interval for multiple markets
|
|
1629
|
-
* @see https://developers.binance.com/docs/derivatives/usds-margined-futures/market-data/rest-api/Get-Funding-Info
|
|
1630
|
-
* @see https://developers.binance.com/docs/derivatives/coin-margined-futures/market-data/Get-Funding-Info
|
|
1630
|
+
* @see https://developers.binance.com/docs/derivatives/usds-margined-futures/market-data/rest-api/Get-Funding-Rate-Info
|
|
1631
|
+
* @see https://developers.binance.com/docs/derivatives/coin-margined-futures/market-data/rest-api/Get-Funding-Info
|
|
1631
1632
|
* @param {string[]} [symbols] list of unified market symbols
|
|
1632
1633
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1633
1634
|
* @param {string} [params.subType] "linear" or "inverse"
|
|
@@ -1639,7 +1640,7 @@ export default class binance extends Exchange {
|
|
|
1639
1640
|
* @name binance#fetchLongShortRatioHistory
|
|
1640
1641
|
* @description fetches the long short ratio history for a unified market symbol
|
|
1641
1642
|
* @see https://developers.binance.com/docs/derivatives/usds-margined-futures/market-data/rest-api/Long-Short-Ratio
|
|
1642
|
-
* @see https://developers.binance.com/docs/derivatives/coin-margined-futures/market-data/Long-Short-Ratio
|
|
1643
|
+
* @see https://developers.binance.com/docs/derivatives/coin-margined-futures/market-data/rest-api/Long-Short-Ratio
|
|
1643
1644
|
* @param {string} symbol unified symbol of the market to fetch the long short ratio for
|
|
1644
1645
|
* @param {string} [timeframe] the period for the ratio, default is 24 hours
|
|
1645
1646
|
* @param {int} [since] the earliest time in ms to fetch ratios for
|