ccxt 4.1.64 → 4.1.65
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -3
- package/dist/ccxt.browser.js +2558 -2534
- package/dist/ccxt.browser.min.js +2 -2
- package/dist/cjs/ccxt.js +1 -1
- package/dist/cjs/src/ace.js +13 -13
- package/dist/cjs/src/alpaca.js +10 -10
- package/dist/cjs/src/ascendex.js +33 -33
- package/dist/cjs/src/base/Exchange.js +6 -6
- package/dist/cjs/src/bigone.js +23 -23
- package/dist/cjs/src/binance.js +68 -68
- package/dist/cjs/src/binanceus.js +1 -0
- package/dist/cjs/src/bingx.js +33 -33
- package/dist/cjs/src/bit2c.js +11 -11
- package/dist/cjs/src/bitbank.js +14 -14
- package/dist/cjs/src/bitbns.js +15 -15
- package/dist/cjs/src/bitfinex.js +24 -24
- package/dist/cjs/src/bitfinex2.js +30 -30
- package/dist/cjs/src/bitflyer.js +17 -17
- package/dist/cjs/src/bitforex.js +12 -12
- package/dist/cjs/src/bitget.js +50 -50
- package/dist/cjs/src/bithumb.js +13 -13
- package/dist/cjs/src/bitmart.js +74 -59
- package/dist/cjs/src/bitmex.js +29 -28
- package/dist/cjs/src/bitopro.js +23 -23
- package/dist/cjs/src/bitpanda.js +25 -25
- package/dist/cjs/src/bitrue.js +26 -26
- package/dist/cjs/src/bitso.js +22 -22
- package/dist/cjs/src/bitstamp.js +24 -24
- package/dist/cjs/src/bittrex.js +31 -31
- package/dist/cjs/src/bitvavo.js +23 -23
- package/dist/cjs/src/bl3p.js +7 -7
- package/dist/cjs/src/blockchaincom.js +23 -23
- package/dist/cjs/src/btcalpha.js +17 -17
- package/dist/cjs/src/btcbox.js +9 -9
- package/dist/cjs/src/btcmarkets.js +19 -19
- package/dist/cjs/src/btcturk.js +13 -13
- package/dist/cjs/src/bybit.js +71 -67
- package/dist/cjs/src/cex.js +17 -17
- package/dist/cjs/src/coinbase.js +28 -28
- package/dist/cjs/src/coinbasepro.js +27 -27
- package/dist/cjs/src/coincheck.js +11 -11
- package/dist/cjs/src/coinex.js +42 -42
- package/dist/cjs/src/coinlist.js +29 -29
- package/dist/cjs/src/coinmate.js +14 -14
- package/dist/cjs/src/coinone.js +13 -13
- package/dist/cjs/src/coinsph.js +25 -25
- package/dist/cjs/src/coinspot.js +9 -9
- package/dist/cjs/src/cryptocom.js +33 -32
- package/dist/cjs/src/currencycom.js +24 -24
- package/dist/cjs/src/delta.js +29 -29
- package/dist/cjs/src/deribit.js +35 -35
- package/dist/cjs/src/digifinex.js +43 -43
- package/dist/cjs/src/exmo.js +30 -30
- package/dist/cjs/src/gate.js +39 -39
- package/dist/cjs/src/gemini.js +18 -18
- package/dist/cjs/src/hitbtc.js +40 -40
- package/dist/cjs/src/hollaex.js +26 -26
- package/dist/cjs/src/htx.js +48 -48
- package/dist/cjs/src/huobijp.js +24 -24
- package/dist/cjs/src/idex.js +23 -23
- package/dist/cjs/src/independentreserve.js +12 -12
- package/dist/cjs/src/indodax.js +16 -16
- package/dist/cjs/src/kraken.js +28 -28
- package/dist/cjs/src/krakenfutures.js +9 -9
- package/dist/cjs/src/kucoin.js +39 -39
- package/dist/cjs/src/kucoinfutures.js +24 -24
- package/dist/cjs/src/kuna.js +25 -25
- package/dist/cjs/src/latoken.js +20 -20
- package/dist/cjs/src/lbank.js +24 -24
- package/dist/cjs/src/luno.js +17 -17
- package/dist/cjs/src/lykke.js +18 -18
- package/dist/cjs/src/mercado.js +13 -13
- package/dist/cjs/src/mexc.js +47 -45
- package/dist/cjs/src/ndax.js +23 -23
- package/dist/cjs/src/novadax.js +23 -23
- package/dist/cjs/src/oceanex.js +19 -19
- package/dist/cjs/src/okcoin.js +25 -25
- package/dist/cjs/src/okx.js +53 -53
- package/dist/cjs/src/p2b.js +14 -14
- package/dist/cjs/src/paymium.js +10 -10
- package/dist/cjs/src/phemex.js +32 -32
- package/dist/cjs/src/poloniex.js +27 -27
- package/dist/cjs/src/poloniexfutures.js +21 -21
- package/dist/cjs/src/pro/alpaca.js +6 -6
- package/dist/cjs/src/pro/ascendex.js +5 -5
- package/dist/cjs/src/pro/binance.js +21 -21
- package/dist/cjs/src/pro/bingx.js +6 -6
- package/dist/cjs/src/pro/bitfinex.js +4 -4
- package/dist/cjs/src/pro/bitfinex2.js +7 -7
- package/dist/cjs/src/pro/bitget.js +12 -12
- package/dist/cjs/src/pro/bitmart.js +5 -5
- package/dist/cjs/src/pro/bitmex.js +8 -8
- package/dist/cjs/src/pro/bitopro.js +4 -4
- package/dist/cjs/src/pro/bitpanda.js +7 -7
- package/dist/cjs/src/pro/bitrue.js +2 -2
- package/dist/cjs/src/pro/bitstamp.js +3 -3
- package/dist/cjs/src/pro/bittrex.js +7 -7
- package/dist/cjs/src/pro/bitvavo.js +6 -6
- package/dist/cjs/src/pro/blockchaincom.js +6 -6
- package/dist/cjs/src/pro/bybit.js +12 -12
- package/dist/cjs/src/pro/cex.js +9 -9
- package/dist/cjs/src/pro/coinbase.js +6 -6
- package/dist/cjs/src/pro/coinbasepro.js +10 -10
- package/dist/cjs/src/pro/coinex.js +7 -7
- package/dist/cjs/src/pro/cryptocom.js +13 -13
- package/dist/cjs/src/pro/currencycom.js +5 -5
- package/dist/cjs/src/pro/deribit.js +7 -7
- package/dist/cjs/src/pro/exmo.js +5 -5
- package/dist/cjs/src/pro/gate.js +10 -10
- package/dist/cjs/src/pro/gemini.js +4 -4
- package/dist/cjs/src/pro/hitbtc.js +11 -11
- package/dist/cjs/src/pro/hollaex.js +5 -5
- package/dist/cjs/src/pro/htx.js +8 -8
- package/dist/cjs/src/pro/huobijp.js +4 -4
- package/dist/cjs/src/pro/idex.js +5 -5
- package/dist/cjs/src/pro/independentreserve.js +2 -2
- package/dist/cjs/src/pro/kraken.js +11 -11
- package/dist/cjs/src/pro/krakenfutures.js +8 -8
- package/dist/cjs/src/pro/kucoin.js +10 -10
- package/dist/cjs/src/pro/kucoinfutures.js +8 -8
- package/dist/cjs/src/pro/luno.js +4 -4
- package/dist/cjs/src/pro/mexc.js +7 -7
- package/dist/cjs/src/pro/ndax.js +4 -4
- package/dist/cjs/src/pro/okcoin.js +6 -6
- package/dist/cjs/src/pro/okx.js +16 -16
- package/dist/cjs/src/pro/phemex.js +7 -7
- package/dist/cjs/src/pro/poloniex.js +7 -7
- package/dist/cjs/src/pro/poloniexfutures.js +5 -5
- package/dist/cjs/src/pro/probit.js +6 -6
- package/dist/cjs/src/pro/upbit.js +3 -3
- package/dist/cjs/src/pro/wazirx.js +7 -7
- package/dist/cjs/src/pro/whitebit.js +7 -7
- package/dist/cjs/src/pro/woo.js +1 -1
- package/dist/cjs/src/probit.js +24 -24
- package/dist/cjs/src/tidex.js +15 -15
- package/dist/cjs/src/timex.js +19 -19
- package/dist/cjs/src/tokocrypto.js +21 -21
- package/dist/cjs/src/upbit.js +22 -22
- package/dist/cjs/src/wavesexchange.js +19 -19
- package/dist/cjs/src/wazirx.js +15 -15
- package/dist/cjs/src/whitebit.js +29 -29
- package/dist/cjs/src/woo.js +26 -26
- package/dist/cjs/src/yobit.js +17 -17
- package/dist/cjs/src/zaif.js +10 -10
- package/dist/cjs/src/zonda.js +16 -16
- package/js/ccxt.d.ts +1 -1
- package/js/ccxt.js +1 -1
- package/js/src/abstract/mexc.d.ts +2 -0
- package/js/src/ace.js +13 -13
- package/js/src/alpaca.js +10 -10
- package/js/src/ascendex.js +33 -33
- package/js/src/base/Exchange.js +6 -6
- package/js/src/bigone.js +23 -23
- package/js/src/binance.js +68 -68
- package/js/src/binanceus.js +1 -0
- package/js/src/bingx.js +33 -33
- package/js/src/bit2c.js +11 -11
- package/js/src/bitbank.js +14 -14
- package/js/src/bitbns.js +15 -15
- package/js/src/bitfinex.js +24 -24
- package/js/src/bitfinex2.js +30 -30
- package/js/src/bitflyer.js +17 -17
- package/js/src/bitforex.js +12 -12
- package/js/src/bitget.js +50 -50
- package/js/src/bithumb.js +13 -13
- package/js/src/bitmart.js +74 -59
- package/js/src/bitmex.js +29 -28
- package/js/src/bitopro.js +23 -23
- package/js/src/bitpanda.js +25 -25
- package/js/src/bitrue.js +26 -26
- package/js/src/bitso.js +22 -22
- package/js/src/bitstamp.js +24 -24
- package/js/src/bittrex.js +31 -31
- package/js/src/bitvavo.js +23 -23
- package/js/src/bl3p.js +7 -7
- package/js/src/blockchaincom.js +23 -23
- package/js/src/btcalpha.js +17 -17
- package/js/src/btcbox.js +9 -9
- package/js/src/btcmarkets.js +19 -19
- package/js/src/btcturk.js +13 -13
- package/js/src/bybit.js +71 -67
- package/js/src/cex.js +17 -17
- package/js/src/coinbase.js +28 -28
- package/js/src/coinbasepro.js +27 -27
- package/js/src/coincheck.js +11 -11
- package/js/src/coinex.js +42 -42
- package/js/src/coinlist.js +29 -29
- package/js/src/coinmate.js +14 -14
- package/js/src/coinone.js +13 -13
- package/js/src/coinsph.js +25 -25
- package/js/src/coinspot.js +9 -9
- package/js/src/cryptocom.js +33 -32
- package/js/src/currencycom.js +24 -24
- package/js/src/delta.js +29 -29
- package/js/src/deribit.js +35 -35
- package/js/src/digifinex.js +43 -43
- package/js/src/exmo.js +30 -30
- package/js/src/gate.js +39 -39
- package/js/src/gemini.js +18 -18
- package/js/src/hitbtc.js +40 -40
- package/js/src/hollaex.js +26 -26
- package/js/src/htx.js +48 -48
- package/js/src/huobijp.js +24 -24
- package/js/src/idex.js +23 -23
- package/js/src/independentreserve.js +12 -12
- package/js/src/indodax.js +16 -16
- package/js/src/kraken.js +28 -28
- package/js/src/krakenfutures.js +9 -9
- package/js/src/kucoin.js +39 -39
- package/js/src/kucoinfutures.js +24 -24
- package/js/src/kuna.js +25 -25
- package/js/src/latoken.js +20 -20
- package/js/src/lbank.js +24 -24
- package/js/src/luno.js +17 -17
- package/js/src/lykke.js +18 -18
- package/js/src/mercado.js +13 -13
- package/js/src/mexc.js +47 -45
- package/js/src/ndax.js +23 -23
- package/js/src/novadax.js +23 -23
- package/js/src/oceanex.js +19 -19
- package/js/src/okcoin.js +25 -25
- package/js/src/okx.js +53 -53
- package/js/src/p2b.js +14 -14
- package/js/src/paymium.js +10 -10
- package/js/src/phemex.js +32 -32
- package/js/src/poloniex.js +27 -27
- package/js/src/poloniexfutures.js +21 -21
- package/js/src/pro/alpaca.js +6 -6
- package/js/src/pro/ascendex.js +5 -5
- package/js/src/pro/binance.js +21 -21
- package/js/src/pro/bingx.js +6 -6
- package/js/src/pro/bitfinex.js +4 -4
- package/js/src/pro/bitfinex2.js +7 -7
- package/js/src/pro/bitget.js +12 -12
- package/js/src/pro/bitmart.js +5 -5
- package/js/src/pro/bitmex.js +8 -8
- package/js/src/pro/bitopro.js +4 -4
- package/js/src/pro/bitpanda.js +7 -7
- package/js/src/pro/bitrue.js +2 -2
- package/js/src/pro/bitstamp.js +3 -3
- package/js/src/pro/bittrex.js +7 -7
- package/js/src/pro/bitvavo.js +6 -6
- package/js/src/pro/blockchaincom.js +6 -6
- package/js/src/pro/bybit.js +12 -12
- package/js/src/pro/cex.js +9 -9
- package/js/src/pro/coinbase.js +6 -6
- package/js/src/pro/coinbasepro.js +10 -10
- package/js/src/pro/coinex.js +7 -7
- package/js/src/pro/cryptocom.js +13 -13
- package/js/src/pro/currencycom.js +5 -5
- package/js/src/pro/deribit.js +7 -7
- package/js/src/pro/exmo.js +5 -5
- package/js/src/pro/gate.js +10 -10
- package/js/src/pro/gemini.js +4 -4
- package/js/src/pro/hitbtc.js +11 -11
- package/js/src/pro/hollaex.js +5 -5
- package/js/src/pro/htx.js +8 -8
- package/js/src/pro/huobijp.js +4 -4
- package/js/src/pro/idex.js +5 -5
- package/js/src/pro/independentreserve.js +2 -2
- package/js/src/pro/kraken.js +11 -11
- package/js/src/pro/krakenfutures.js +8 -8
- package/js/src/pro/kucoin.js +10 -10
- package/js/src/pro/kucoinfutures.js +8 -8
- package/js/src/pro/luno.js +4 -4
- package/js/src/pro/mexc.js +7 -7
- package/js/src/pro/ndax.js +4 -4
- package/js/src/pro/okcoin.js +6 -6
- package/js/src/pro/okx.js +16 -16
- package/js/src/pro/phemex.js +7 -7
- package/js/src/pro/poloniex.js +7 -7
- package/js/src/pro/poloniexfutures.js +5 -5
- package/js/src/pro/probit.js +6 -6
- package/js/src/pro/upbit.js +3 -3
- package/js/src/pro/wazirx.js +7 -7
- package/js/src/pro/whitebit.js +7 -7
- package/js/src/pro/woo.js +1 -1
- package/js/src/probit.js +24 -24
- package/js/src/tidex.js +15 -15
- package/js/src/timex.js +19 -19
- package/js/src/tokocrypto.js +21 -21
- package/js/src/upbit.js +22 -22
- package/js/src/wavesexchange.js +19 -19
- package/js/src/wazirx.js +15 -15
- package/js/src/whitebit.js +29 -29
- package/js/src/woo.js +26 -26
- package/js/src/yobit.js +17 -17
- package/js/src/zaif.js +10 -10
- package/js/src/zonda.js +16 -16
- package/package.json +1 -1
package/dist/cjs/src/novadax.js
CHANGED
|
@@ -202,7 +202,7 @@ class novadax extends novadax$1 {
|
|
|
202
202
|
* @name novadax#fetchTime
|
|
203
203
|
* @description fetches the current integer timestamp in milliseconds from the exchange server
|
|
204
204
|
* @see https://doc.novadax.com/en-US/#get-current-system-time
|
|
205
|
-
* @param {object} [params] extra parameters specific to the
|
|
205
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
206
206
|
* @returns {int} the current integer timestamp in milliseconds from the exchange server
|
|
207
207
|
*/
|
|
208
208
|
const response = await this.publicGetCommonTimestamp(params);
|
|
@@ -221,7 +221,7 @@ class novadax extends novadax$1 {
|
|
|
221
221
|
* @name novadax#fetchMarkets
|
|
222
222
|
* @description retrieves data on all markets for novadax
|
|
223
223
|
* @see https://doc.novadax.com/en-US/#get-all-supported-trading-symbol
|
|
224
|
-
* @param {object} [params] extra parameters specific to the exchange
|
|
224
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
225
225
|
* @returns {object[]} an array of objects representing market data
|
|
226
226
|
*/
|
|
227
227
|
const response = await this.publicGetCommonSymbols(params);
|
|
@@ -359,7 +359,7 @@ class novadax extends novadax$1 {
|
|
|
359
359
|
* @description fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
|
360
360
|
* @see https://doc.novadax.com/en-US/#get-latest-ticker-for-specific-pair
|
|
361
361
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
362
|
-
* @param {object} [params] extra parameters specific to the
|
|
362
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
363
363
|
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
364
364
|
*/
|
|
365
365
|
await this.loadMarkets();
|
|
@@ -393,10 +393,10 @@ class novadax extends novadax$1 {
|
|
|
393
393
|
/**
|
|
394
394
|
* @method
|
|
395
395
|
* @name novadax#fetchTickers
|
|
396
|
-
* @description fetches price tickers for multiple markets, statistical
|
|
396
|
+
* @description fetches price tickers for multiple markets, statistical information calculated over the past 24 hours for each market
|
|
397
397
|
* @see https://doc.novadax.com/en-US/#get-latest-tickers-for-all-trading-pairs
|
|
398
398
|
* @param {string[]|undefined} symbols unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
|
|
399
|
-
* @param {object} [params] extra parameters specific to the
|
|
399
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
400
400
|
* @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
401
401
|
*/
|
|
402
402
|
await this.loadMarkets();
|
|
@@ -439,7 +439,7 @@ class novadax extends novadax$1 {
|
|
|
439
439
|
* @see https://doc.novadax.com/en-US/#get-market-depth
|
|
440
440
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
441
441
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
442
|
-
* @param {object} [params] extra parameters specific to the
|
|
442
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
443
443
|
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
|
|
444
444
|
*/
|
|
445
445
|
await this.loadMarkets();
|
|
@@ -561,7 +561,7 @@ class novadax extends novadax$1 {
|
|
|
561
561
|
* @param {string} symbol unified symbol of the market to fetch trades for
|
|
562
562
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
563
563
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
564
|
-
* @param {object} [params] extra parameters specific to the
|
|
564
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
565
565
|
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=public-trades}
|
|
566
566
|
*/
|
|
567
567
|
await this.loadMarkets();
|
|
@@ -597,7 +597,7 @@ class novadax extends novadax$1 {
|
|
|
597
597
|
* @param {string} timeframe the length of time each candle represents
|
|
598
598
|
* @param {int} [since] timestamp in ms of the earliest candle to fetch
|
|
599
599
|
* @param {int} [limit] the maximum amount of candles to fetch
|
|
600
|
-
* @param {object} [params] extra parameters specific to the
|
|
600
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
601
601
|
* @returns {int[][]} A list of candles ordered as timestamp, open, high, low, close, volume
|
|
602
602
|
*/
|
|
603
603
|
await this.loadMarkets();
|
|
@@ -693,7 +693,7 @@ class novadax extends novadax$1 {
|
|
|
693
693
|
* @name novadax#fetchBalance
|
|
694
694
|
* @description query for balance and get the amount of funds available for trading or funds locked in orders
|
|
695
695
|
* @see https://doc.novadax.com/en-US/#get-account-balance
|
|
696
|
-
* @param {object} [params] extra parameters specific to the
|
|
696
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
697
697
|
* @returns {object} a [balance structure]{@link https://docs.ccxt.com/#/?id=balance-structure}
|
|
698
698
|
*/
|
|
699
699
|
await this.loadMarkets();
|
|
@@ -725,7 +725,7 @@ class novadax extends novadax$1 {
|
|
|
725
725
|
* @param {string} side 'buy' or 'sell'
|
|
726
726
|
* @param {float} amount how much of currency you want to trade in units of base currency
|
|
727
727
|
* @param {float} [price] the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
|
|
728
|
-
* @param {object} [params] extra parameters specific to the
|
|
728
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
729
729
|
* @returns {object} an [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
730
730
|
*/
|
|
731
731
|
await this.loadMarkets();
|
|
@@ -822,7 +822,7 @@ class novadax extends novadax$1 {
|
|
|
822
822
|
* @see https://doc.novadax.com/en-US/#cancel-an-order
|
|
823
823
|
* @param {string} id order id
|
|
824
824
|
* @param {string} symbol not used by novadax cancelOrder ()
|
|
825
|
-
* @param {object} [params] extra parameters specific to the
|
|
825
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
826
826
|
* @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
827
827
|
*/
|
|
828
828
|
await this.loadMarkets();
|
|
@@ -849,7 +849,7 @@ class novadax extends novadax$1 {
|
|
|
849
849
|
* @description fetches information on an order made by the user
|
|
850
850
|
* @see https://doc.novadax.com/en-US/#get-order-details
|
|
851
851
|
* @param {string} symbol not used by novadax fetchOrder
|
|
852
|
-
* @param {object} [params] extra parameters specific to the
|
|
852
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
853
853
|
* @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
854
854
|
*/
|
|
855
855
|
await this.loadMarkets();
|
|
@@ -890,7 +890,7 @@ class novadax extends novadax$1 {
|
|
|
890
890
|
* @param {string} symbol unified market symbol of the market orders were made in
|
|
891
891
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
892
892
|
* @param {int} [limit] the maximum number of orde structures to retrieve
|
|
893
|
-
* @param {object} [params] extra parameters specific to the
|
|
893
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
894
894
|
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
895
895
|
*/
|
|
896
896
|
await this.loadMarkets();
|
|
@@ -950,7 +950,7 @@ class novadax extends novadax$1 {
|
|
|
950
950
|
* @param {string} symbol unified market symbol
|
|
951
951
|
* @param {int} [since] the earliest time in ms to fetch open orders for
|
|
952
952
|
* @param {int} [limit] the maximum number of open orders structures to retrieve
|
|
953
|
-
* @param {object} [params] extra parameters specific to the
|
|
953
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
954
954
|
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
955
955
|
*/
|
|
956
956
|
const request = {
|
|
@@ -967,7 +967,7 @@ class novadax extends novadax$1 {
|
|
|
967
967
|
* @param {string} symbol unified market symbol of the market orders were made in
|
|
968
968
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
969
969
|
* @param {int} [limit] the maximum number of orde structures to retrieve
|
|
970
|
-
* @param {object} [params] extra parameters specific to the
|
|
970
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
971
971
|
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
972
972
|
*/
|
|
973
973
|
const request = {
|
|
@@ -985,7 +985,7 @@ class novadax extends novadax$1 {
|
|
|
985
985
|
* @param {string} symbol unified market symbol
|
|
986
986
|
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
987
987
|
* @param {int} [limit] the maximum number of trades to retrieve
|
|
988
|
-
* @param {object} [params] extra parameters specific to the
|
|
988
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
989
989
|
* @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=trade-structure}
|
|
990
990
|
*/
|
|
991
991
|
await this.loadMarkets();
|
|
@@ -1117,7 +1117,7 @@ class novadax extends novadax$1 {
|
|
|
1117
1117
|
* @param {float} amount amount to transfer
|
|
1118
1118
|
* @param {string} fromAccount account to transfer from
|
|
1119
1119
|
* @param {string} toAccount account to transfer to
|
|
1120
|
-
* @param {object} [params] extra parameters specific to the
|
|
1120
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1121
1121
|
* @returns {object} a [transfer structure]{@link https://docs.ccxt.com/#/?id=transfer-structure}
|
|
1122
1122
|
*/
|
|
1123
1123
|
await this.loadMarkets();
|
|
@@ -1192,7 +1192,7 @@ class novadax extends novadax$1 {
|
|
|
1192
1192
|
* @param {float} amount the amount to withdraw
|
|
1193
1193
|
* @param {string} address the address to withdraw to
|
|
1194
1194
|
* @param {string} tag
|
|
1195
|
-
* @param {object} [params] extra parameters specific to the
|
|
1195
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1196
1196
|
* @returns {object} a [transaction structure]{@link https://docs.ccxt.com/#/?id=transaction-structure}
|
|
1197
1197
|
*/
|
|
1198
1198
|
[tag, params] = this.handleWithdrawTagAndParams(tag, params);
|
|
@@ -1222,7 +1222,7 @@ class novadax extends novadax$1 {
|
|
|
1222
1222
|
* @name novadax#fetchAccounts
|
|
1223
1223
|
* @description fetch all the accounts associated with a profile
|
|
1224
1224
|
* @see https://doc.novadax.com/en-US/#get-sub-account-list
|
|
1225
|
-
* @param {object} [params] extra parameters specific to the
|
|
1225
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1226
1226
|
* @returns {object} a dictionary of [account structures]{@link https://docs.ccxt.com/#/?id=account-structure} indexed by the account type
|
|
1227
1227
|
*/
|
|
1228
1228
|
const response = await this.privateGetAccountSubs(params);
|
|
@@ -1264,7 +1264,7 @@ class novadax extends novadax$1 {
|
|
|
1264
1264
|
* @param {string} code unified currency code
|
|
1265
1265
|
* @param {int} [since] the earliest time in ms to fetch deposits for
|
|
1266
1266
|
* @param {int} [limit] the maximum number of deposits structures to retrieve
|
|
1267
|
-
* @param {object} [params] extra parameters specific to the
|
|
1267
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1268
1268
|
* @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com/#/?id=transaction-structure}
|
|
1269
1269
|
*/
|
|
1270
1270
|
const request = {
|
|
@@ -1281,7 +1281,7 @@ class novadax extends novadax$1 {
|
|
|
1281
1281
|
* @param {string} code unified currency code
|
|
1282
1282
|
* @param {int} [since] the earliest time in ms to fetch withdrawals for
|
|
1283
1283
|
* @param {int} [limit] the maximum number of withdrawals structures to retrieve
|
|
1284
|
-
* @param {object} [params] extra parameters specific to the
|
|
1284
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1285
1285
|
* @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com/#/?id=transaction-structure}
|
|
1286
1286
|
*/
|
|
1287
1287
|
const request = {
|
|
@@ -1298,7 +1298,7 @@ class novadax extends novadax$1 {
|
|
|
1298
1298
|
* @param {string} [code] unified currency code for the currency of the deposit/withdrawals, default is undefined
|
|
1299
1299
|
* @param {int} [since] timestamp in ms of the earliest deposit/withdrawal, default is undefined
|
|
1300
1300
|
* @param {int} [limit] max number of deposit/withdrawals to return, default is undefined
|
|
1301
|
-
* @param {object} [params] extra parameters specific to the
|
|
1301
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1302
1302
|
* @returns {object} a list of [transaction structure]{@link https://docs.ccxt.com/#/?id=transaction-structure}
|
|
1303
1303
|
*/
|
|
1304
1304
|
await this.loadMarkets();
|
|
@@ -1437,7 +1437,7 @@ class novadax extends novadax$1 {
|
|
|
1437
1437
|
* @param {string} symbol unified market symbol
|
|
1438
1438
|
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
1439
1439
|
* @param {int} [limit] the maximum number of trades structures to retrieve
|
|
1440
|
-
* @param {object} [params] extra parameters specific to the
|
|
1440
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1441
1441
|
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=trade-structure}
|
|
1442
1442
|
*/
|
|
1443
1443
|
await this.loadMarkets();
|
package/dist/cjs/src/oceanex.js
CHANGED
|
@@ -152,7 +152,7 @@ class oceanex extends oceanex$1 {
|
|
|
152
152
|
* @name oceanex#fetchMarkets
|
|
153
153
|
* @description retrieves data on all markets for oceanex
|
|
154
154
|
* @see https://api.oceanex.pro/doc/v1/#markets-post
|
|
155
|
-
* @param {object} [params] extra parameters specific to the exchange
|
|
155
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
156
156
|
* @returns {object[]} an array of objects representing market data
|
|
157
157
|
*/
|
|
158
158
|
const request = { 'show_details': true };
|
|
@@ -239,7 +239,7 @@ class oceanex extends oceanex$1 {
|
|
|
239
239
|
* @description fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
|
240
240
|
* @see https://api.oceanex.pro/doc/v1/#ticker-post
|
|
241
241
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
242
|
-
* @param {object} [params] extra parameters specific to the
|
|
242
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
243
243
|
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
244
244
|
*/
|
|
245
245
|
await this.loadMarkets();
|
|
@@ -272,10 +272,10 @@ class oceanex extends oceanex$1 {
|
|
|
272
272
|
/**
|
|
273
273
|
* @method
|
|
274
274
|
* @name oceanex#fetchTickers
|
|
275
|
-
* @description fetches price tickers for multiple markets, statistical
|
|
275
|
+
* @description fetches price tickers for multiple markets, statistical information calculated over the past 24 hours for each market
|
|
276
276
|
* @see https://api.oceanex.pro/doc/v1/#multiple-tickers-post
|
|
277
277
|
* @param {string[]|undefined} symbols unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
|
|
278
|
-
* @param {object} [params] extra parameters specific to the
|
|
278
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
279
279
|
* @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
280
280
|
*/
|
|
281
281
|
await this.loadMarkets();
|
|
@@ -362,7 +362,7 @@ class oceanex extends oceanex$1 {
|
|
|
362
362
|
* @see https://api.oceanex.pro/doc/v1/#order-book-post
|
|
363
363
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
364
364
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
365
|
-
* @param {object} [params] extra parameters specific to the
|
|
365
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
366
366
|
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
|
|
367
367
|
*/
|
|
368
368
|
await this.loadMarkets();
|
|
@@ -405,7 +405,7 @@ class oceanex extends oceanex$1 {
|
|
|
405
405
|
* @see https://api.oceanex.pro/doc/v1/#multiple-order-books-post
|
|
406
406
|
* @param {string[]|undefined} symbols list of unified market symbols, all symbols fetched if undefined, default is undefined
|
|
407
407
|
* @param {int} [limit] max number of entries per orderbook to return, default is undefined
|
|
408
|
-
* @param {object} [params] extra parameters specific to the
|
|
408
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
409
409
|
* @returns {object} a dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbol
|
|
410
410
|
*/
|
|
411
411
|
await this.loadMarkets();
|
|
@@ -463,7 +463,7 @@ class oceanex extends oceanex$1 {
|
|
|
463
463
|
* @param {string} symbol unified symbol of the market to fetch trades for
|
|
464
464
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
465
465
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
466
|
-
* @param {object} [params] extra parameters specific to the
|
|
466
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
467
467
|
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=public-trades}
|
|
468
468
|
*/
|
|
469
469
|
await this.loadMarkets();
|
|
@@ -548,7 +548,7 @@ class oceanex extends oceanex$1 {
|
|
|
548
548
|
* @name oceanex#fetchTime
|
|
549
549
|
* @description fetches the current integer timestamp in milliseconds from the exchange server
|
|
550
550
|
* @see https://api.oceanex.pro/doc/v1/#api-server-time-post
|
|
551
|
-
* @param {object} [params] extra parameters specific to the
|
|
551
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
552
552
|
* @returns {int} the current integer timestamp in milliseconds from the exchange server
|
|
553
553
|
*/
|
|
554
554
|
const response = await this.publicGetTimestamp(params);
|
|
@@ -563,7 +563,7 @@ class oceanex extends oceanex$1 {
|
|
|
563
563
|
* @name oceanex#fetchTradingFees
|
|
564
564
|
* @description fetch the trading fees for multiple markets
|
|
565
565
|
* @see https://api.oceanex.pro/doc/v1/#trading-fees-post
|
|
566
|
-
* @param {object} [params] extra parameters specific to the
|
|
566
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
567
567
|
* @returns {object} a dictionary of [fee structures]{@link https://docs.ccxt.com/#/?id=fee-structure} indexed by market symbols
|
|
568
568
|
*/
|
|
569
569
|
const response = await this.publicGetFeesTrading(params);
|
|
@@ -610,7 +610,7 @@ class oceanex extends oceanex$1 {
|
|
|
610
610
|
* @name oceanex#fetchBalance
|
|
611
611
|
* @description query for balance and get the amount of funds available for trading or funds locked in orders
|
|
612
612
|
* @see https://api.oceanex.pro/doc/v1/#account-info-post
|
|
613
|
-
* @param {object} [params] extra parameters specific to the
|
|
613
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
614
614
|
* @returns {object} a [balance structure]{@link https://docs.ccxt.com/#/?id=balance-structure}
|
|
615
615
|
*/
|
|
616
616
|
await this.loadMarkets();
|
|
@@ -628,7 +628,7 @@ class oceanex extends oceanex$1 {
|
|
|
628
628
|
* @param {string} side 'buy' or 'sell'
|
|
629
629
|
* @param {float} amount how much of currency you want to trade in units of base currency
|
|
630
630
|
* @param {float} [price] the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
|
|
631
|
-
* @param {object} [params] extra parameters specific to the
|
|
631
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
632
632
|
* @returns {object} an [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
633
633
|
*/
|
|
634
634
|
await this.loadMarkets();
|
|
@@ -653,7 +653,7 @@ class oceanex extends oceanex$1 {
|
|
|
653
653
|
* @description fetches information on an order made by the user
|
|
654
654
|
* @see https://api.oceanex.pro/doc/v1/#order-status-get
|
|
655
655
|
* @param {string} symbol unified symbol of the market the order was made in
|
|
656
|
-
* @param {object} [params] extra parameters specific to the
|
|
656
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
657
657
|
* @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
658
658
|
*/
|
|
659
659
|
await this.loadMarkets();
|
|
@@ -687,7 +687,7 @@ class oceanex extends oceanex$1 {
|
|
|
687
687
|
* @param {string} symbol unified market symbol
|
|
688
688
|
* @param {int} [since] the earliest time in ms to fetch open orders for
|
|
689
689
|
* @param {int} [limit] the maximum number of open orders structures to retrieve
|
|
690
|
-
* @param {object} [params] extra parameters specific to the
|
|
690
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
691
691
|
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
692
692
|
*/
|
|
693
693
|
const request = {
|
|
@@ -704,7 +704,7 @@ class oceanex extends oceanex$1 {
|
|
|
704
704
|
* @param {string} symbol unified market symbol of the market orders were made in
|
|
705
705
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
706
706
|
* @param {int} [limit] the maximum number of orde structures to retrieve
|
|
707
|
-
* @param {object} [params] extra parameters specific to the
|
|
707
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
708
708
|
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
709
709
|
*/
|
|
710
710
|
const request = {
|
|
@@ -721,7 +721,7 @@ class oceanex extends oceanex$1 {
|
|
|
721
721
|
* @param {string} symbol unified market symbol of the market orders were made in
|
|
722
722
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
723
723
|
* @param {int} [limit] the maximum number of order structures to retrieve
|
|
724
|
-
* @param {object} [params] extra parameters specific to the
|
|
724
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
725
725
|
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
726
726
|
*/
|
|
727
727
|
if (symbol === undefined) {
|
|
@@ -778,7 +778,7 @@ class oceanex extends oceanex$1 {
|
|
|
778
778
|
* @param {string} timeframe the length of time each candle represents
|
|
779
779
|
* @param {int} [since] timestamp in ms of the earliest candle to fetch
|
|
780
780
|
* @param {int} [limit] the maximum amount of candles to fetch
|
|
781
|
-
* @param {object} [params] extra parameters specific to the
|
|
781
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
782
782
|
* @returns {int[][]} A list of candles ordered as timestamp, open, high, low, close, volume
|
|
783
783
|
*/
|
|
784
784
|
await this.loadMarkets();
|
|
@@ -868,7 +868,7 @@ class oceanex extends oceanex$1 {
|
|
|
868
868
|
* @see https://api.oceanex.pro/doc/v1/#cancel-order-post
|
|
869
869
|
* @param {string} id order id
|
|
870
870
|
* @param {string} symbol not used by oceanex cancelOrder ()
|
|
871
|
-
* @param {object} [params] extra parameters specific to the
|
|
871
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
872
872
|
* @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
873
873
|
*/
|
|
874
874
|
await this.loadMarkets();
|
|
@@ -884,7 +884,7 @@ class oceanex extends oceanex$1 {
|
|
|
884
884
|
* @see https://api.oceanex.pro/doc/v1/#cancel-multiple-orders-post
|
|
885
885
|
* @param {string[]} ids order ids
|
|
886
886
|
* @param {string} symbol not used by oceanex cancelOrders ()
|
|
887
|
-
* @param {object} [params] extra parameters specific to the
|
|
887
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
888
888
|
* @returns {object} an list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
889
889
|
*/
|
|
890
890
|
await this.loadMarkets();
|
|
@@ -899,7 +899,7 @@ class oceanex extends oceanex$1 {
|
|
|
899
899
|
* @description cancel all open orders
|
|
900
900
|
* @see https://api.oceanex.pro/doc/v1/#cancel-all-orders-post
|
|
901
901
|
* @param {string} symbol unified market symbol, only orders in the market of this symbol are cancelled when symbol is not undefined
|
|
902
|
-
* @param {object} [params] extra parameters specific to the
|
|
902
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
903
903
|
* @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
904
904
|
*/
|
|
905
905
|
await this.loadMarkets();
|
package/dist/cjs/src/okcoin.js
CHANGED
|
@@ -556,7 +556,7 @@ class okcoin extends okcoin$1 {
|
|
|
556
556
|
* @method
|
|
557
557
|
* @name okcoin#fetchTime
|
|
558
558
|
* @description fetches the current integer timestamp in milliseconds from the exchange server
|
|
559
|
-
* @param {object} [params] extra parameters specific to the
|
|
559
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
560
560
|
* @returns {int} the current integer timestamp in milliseconds from the exchange server
|
|
561
561
|
*/
|
|
562
562
|
const response = await this.publicGetPublicTime(params);
|
|
@@ -574,7 +574,7 @@ class okcoin extends okcoin$1 {
|
|
|
574
574
|
* @name okcoin#fetchMarkets
|
|
575
575
|
* @see https://www.okcoin.com/docs-v5/en/#rest-api-public-data-get-instruments
|
|
576
576
|
* @description retrieves data on all markets for okcoin
|
|
577
|
-
* @param {object} [params] extra parameters specific to the exchange
|
|
577
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
578
578
|
* @returns {object[]} an array of objects representing market data
|
|
579
579
|
*/
|
|
580
580
|
const request = {
|
|
@@ -680,7 +680,7 @@ class okcoin extends okcoin$1 {
|
|
|
680
680
|
* @method
|
|
681
681
|
* @name okcoin#fetchCurrencies
|
|
682
682
|
* @description fetches all available currencies on an exchange
|
|
683
|
-
* @param {object} [params] extra parameters specific to the
|
|
683
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
684
684
|
* @returns {object} an associative dictionary of currencies
|
|
685
685
|
*/
|
|
686
686
|
if (!this.checkRequiredCredentials(false)) {
|
|
@@ -775,7 +775,7 @@ class okcoin extends okcoin$1 {
|
|
|
775
775
|
* @description fetches information on open orders with bid (buy) and ask (sell) prices, volumes and other data
|
|
776
776
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
777
777
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
778
|
-
* @param {object} [params] extra parameters specific to the
|
|
778
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
779
779
|
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
|
|
780
780
|
*/
|
|
781
781
|
await this.loadMarkets();
|
|
@@ -876,7 +876,7 @@ class okcoin extends okcoin$1 {
|
|
|
876
876
|
* @see https://www.okcoin.com/docs-v5/en/#rest-api-market-data-get-ticker
|
|
877
877
|
* @description fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
|
878
878
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
879
|
-
* @param {object} [params] extra parameters specific to the
|
|
879
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
880
880
|
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
881
881
|
*/
|
|
882
882
|
await this.loadMarkets();
|
|
@@ -920,9 +920,9 @@ class okcoin extends okcoin$1 {
|
|
|
920
920
|
* @method
|
|
921
921
|
* @name okcoin#fetchTickers
|
|
922
922
|
* @see https://www.okcoin.com/docs-v5/en/#rest-api-market-data-get-tickers
|
|
923
|
-
* @description fetches price tickers for multiple markets, statistical
|
|
923
|
+
* @description fetches price tickers for multiple markets, statistical information calculated over the past 24 hours for each market
|
|
924
924
|
* @param {string[]|undefined} symbols unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
|
|
925
|
-
* @param {object} [params] extra parameters specific to the
|
|
925
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
926
926
|
* @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
927
927
|
*/
|
|
928
928
|
symbols = this.marketSymbols(symbols);
|
|
@@ -1019,7 +1019,7 @@ class okcoin extends okcoin$1 {
|
|
|
1019
1019
|
* @param {string} symbol unified symbol of the market to fetch trades for
|
|
1020
1020
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
1021
1021
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
1022
|
-
* @param {object} [params] extra parameters specific to the
|
|
1022
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1023
1023
|
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=public-trades}
|
|
1024
1024
|
*/
|
|
1025
1025
|
await this.loadMarkets();
|
|
@@ -1076,7 +1076,7 @@ class okcoin extends okcoin$1 {
|
|
|
1076
1076
|
* @param {string} timeframe the length of time each candle represents
|
|
1077
1077
|
* @param {int} [since] timestamp in ms of the earliest candle to fetch
|
|
1078
1078
|
* @param {int} [limit] the maximum amount of candles to fetch
|
|
1079
|
-
* @param {object} [params] extra parameters specific to the
|
|
1079
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1080
1080
|
* @returns {int[][]} A list of candles ordered as timestamp, open, high, low, close, volume
|
|
1081
1081
|
*/
|
|
1082
1082
|
await this.loadMarkets();
|
|
@@ -1169,7 +1169,7 @@ class okcoin extends okcoin$1 {
|
|
|
1169
1169
|
* @method
|
|
1170
1170
|
* @name okcoin#fetchBalance
|
|
1171
1171
|
* @description query for balance and get the amount of funds available for trading or funds locked in orders
|
|
1172
|
-
* @param {object} [params] extra parameters specific to the
|
|
1172
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1173
1173
|
* @returns {object} a [balance structure]{@link https://docs.ccxt.com/#/?id=balance-structure}
|
|
1174
1174
|
*/
|
|
1175
1175
|
await this.loadMarkets();
|
|
@@ -1267,7 +1267,7 @@ class okcoin extends okcoin$1 {
|
|
|
1267
1267
|
* @param {string} side 'buy' or 'sell'
|
|
1268
1268
|
* @param {float} amount how much of currency you want to trade in units of base currency
|
|
1269
1269
|
* @param {float} price the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
|
|
1270
|
-
* @param {object} [params] extra parameters specific to the
|
|
1270
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1271
1271
|
* @param {bool} [params.reduceOnly] MARGIN orders only, or swap/future orders in net mode
|
|
1272
1272
|
* @param {bool} [params.postOnly] true to place a post only order
|
|
1273
1273
|
* @param {float} [params.triggerPrice] conditional orders only, the price at which the order is to be triggered
|
|
@@ -1551,7 +1551,7 @@ class okcoin extends okcoin$1 {
|
|
|
1551
1551
|
* @description cancels an open order
|
|
1552
1552
|
* @param {string} id order id
|
|
1553
1553
|
* @param {string} symbol unified symbol of the market the order was made in
|
|
1554
|
-
* @param {object} [params] extra parameters specific to the
|
|
1554
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1555
1555
|
* @param {bool} [params.stop] True if cancel trigger or conditional orders
|
|
1556
1556
|
* @param {bool} [params.advanced] True if canceling advanced orders only
|
|
1557
1557
|
* @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
@@ -1611,7 +1611,7 @@ class okcoin extends okcoin$1 {
|
|
|
1611
1611
|
* @see https://www.okcoin.com/docs-v5/en/#rest-api-trade-cancel-advance-algo-order
|
|
1612
1612
|
* @param {string[]} ids order ids
|
|
1613
1613
|
* @param {string} symbol unified market symbol
|
|
1614
|
-
* @param {object} [params] extra parameters specific to the
|
|
1614
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1615
1615
|
* @returns {object} an list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1616
1616
|
*/
|
|
1617
1617
|
if (symbol === undefined) {
|
|
@@ -1904,7 +1904,7 @@ class okcoin extends okcoin$1 {
|
|
|
1904
1904
|
* @see https://www.okcoin.com/docs-v5/en/#rest-api-trade-get-algo-order-list
|
|
1905
1905
|
* @description fetches information on an order made by the user
|
|
1906
1906
|
* @param {string} symbol unified symbol of the market the order was made in
|
|
1907
|
-
* @param {object} [params] extra parameters specific to the
|
|
1907
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1908
1908
|
* @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1909
1909
|
*/
|
|
1910
1910
|
if (symbol === undefined) {
|
|
@@ -1957,7 +1957,7 @@ class okcoin extends okcoin$1 {
|
|
|
1957
1957
|
* @param {string} symbol unified market symbol
|
|
1958
1958
|
* @param {int} [since] the earliest time in ms to fetch open orders for
|
|
1959
1959
|
* @param {int} [limit] the maximum number of open orders structures to retrieve
|
|
1960
|
-
* @param {object} [params] extra parameters specific to the
|
|
1960
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1961
1961
|
* @param {bool} [params.stop] True if fetching trigger or conditional orders
|
|
1962
1962
|
* @param {string} [params.ordType] "conditional", "oco", "trigger", "move_order_stop", "iceberg", or "twap"
|
|
1963
1963
|
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
@@ -2006,7 +2006,7 @@ class okcoin extends okcoin$1 {
|
|
|
2006
2006
|
* @param {string} symbol unified market symbol of the market orders were made in
|
|
2007
2007
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
2008
2008
|
* @param {int} [limit] the maximum number of orde structures to retrieve
|
|
2009
|
-
* @param {object} [params] extra parameters specific to the
|
|
2009
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2010
2010
|
* @param {bool} [params.stop] True if fetching trigger or conditional orders
|
|
2011
2011
|
* @param {string} [params.ordType] "conditional", "oco", "trigger", "move_order_stop", "iceberg", or "twap"
|
|
2012
2012
|
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
@@ -2182,7 +2182,7 @@ class okcoin extends okcoin$1 {
|
|
|
2182
2182
|
* @description fetch the deposit address for a currency associated with this account
|
|
2183
2183
|
* @see https://www.okx.com/docs-v5/en/#funding-account-rest-api-get-deposit-address
|
|
2184
2184
|
* @param {string} code unified currency code
|
|
2185
|
-
* @param {object} [params] extra parameters specific to the
|
|
2185
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2186
2186
|
* @returns {object} an [address structure]{@link https://docs.ccxt.com/#/?id=address-structure}
|
|
2187
2187
|
*/
|
|
2188
2188
|
await this.loadMarkets();
|
|
@@ -2204,7 +2204,7 @@ class okcoin extends okcoin$1 {
|
|
|
2204
2204
|
* @description fetch a dictionary of addresses for a currency, indexed by network
|
|
2205
2205
|
* @see https://www.okx.com/docs-v5/en/#funding-account-rest-api-get-deposit-address
|
|
2206
2206
|
* @param {string} code unified currency code of the currency for the deposit address
|
|
2207
|
-
* @param {object} [params] extra parameters specific to the
|
|
2207
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2208
2208
|
* @returns {object} a dictionary of [address structures]{@link https://docs.ccxt.com/#/?id=address-structure} indexed by the network
|
|
2209
2209
|
*/
|
|
2210
2210
|
await this.loadMarkets();
|
|
@@ -2249,7 +2249,7 @@ class okcoin extends okcoin$1 {
|
|
|
2249
2249
|
* @param {float} amount amount to transfer
|
|
2250
2250
|
* @param {string} fromAccount account to transfer from
|
|
2251
2251
|
* @param {string} toAccount account to transfer to
|
|
2252
|
-
* @param {object} [params] extra parameters specific to the
|
|
2252
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2253
2253
|
* @returns {object} a [transfer structure]{@link https://docs.ccxt.com/#/?id=transfer-structure}
|
|
2254
2254
|
*/
|
|
2255
2255
|
await this.loadMarkets();
|
|
@@ -2393,7 +2393,7 @@ class okcoin extends okcoin$1 {
|
|
|
2393
2393
|
* @param {float} amount the amount to withdraw
|
|
2394
2394
|
* @param {string} address the address to withdraw to
|
|
2395
2395
|
* @param {string} tag
|
|
2396
|
-
* @param {object} [params] extra parameters specific to the
|
|
2396
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2397
2397
|
* @returns {object} a [transaction structure]{@link https://docs.ccxt.com/#/?id=transaction-structure}
|
|
2398
2398
|
*/
|
|
2399
2399
|
[tag, params] = this.handleWithdrawTagAndParams(tag, params);
|
|
@@ -2452,7 +2452,7 @@ class okcoin extends okcoin$1 {
|
|
|
2452
2452
|
* @param {string} code unified currency code
|
|
2453
2453
|
* @param {int} [since] the earliest time in ms to fetch deposits for
|
|
2454
2454
|
* @param {int} [limit] the maximum number of deposits structures to retrieve
|
|
2455
|
-
* @param {object} [params] extra parameters specific to the
|
|
2455
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2456
2456
|
* @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com/#/?id=transaction-structure}
|
|
2457
2457
|
*/
|
|
2458
2458
|
await this.loadMarkets();
|
|
@@ -2526,7 +2526,7 @@ class okcoin extends okcoin$1 {
|
|
|
2526
2526
|
* @param {string} code unified currency code
|
|
2527
2527
|
* @param {int} [since] the earliest time in ms to fetch withdrawals for
|
|
2528
2528
|
* @param {int} [limit] the maximum number of withdrawals structures to retrieve
|
|
2529
|
-
* @param {object} [params] extra parameters specific to the
|
|
2529
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2530
2530
|
* @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com/#/?id=transaction-structure}
|
|
2531
2531
|
*/
|
|
2532
2532
|
await this.loadMarkets();
|
|
@@ -2727,7 +2727,7 @@ class okcoin extends okcoin$1 {
|
|
|
2727
2727
|
* @param {string} symbol unified market symbol
|
|
2728
2728
|
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
2729
2729
|
* @param {int} [limit] the maximum number of trades structures to retrieve
|
|
2730
|
-
* @param {object} [params] extra parameters specific to the
|
|
2730
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2731
2731
|
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=trade-structure}
|
|
2732
2732
|
*/
|
|
2733
2733
|
await this.loadMarkets();
|
|
@@ -2763,7 +2763,7 @@ class okcoin extends okcoin$1 {
|
|
|
2763
2763
|
* @param {string} symbol unified market symbol
|
|
2764
2764
|
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
2765
2765
|
* @param {int} [limit] the maximum number of trades to retrieve
|
|
2766
|
-
* @param {object} [params] extra parameters specific to the
|
|
2766
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2767
2767
|
* @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=trade-structure}
|
|
2768
2768
|
*/
|
|
2769
2769
|
const request = {
|
|
@@ -2786,7 +2786,7 @@ class okcoin extends okcoin$1 {
|
|
|
2786
2786
|
* @param {string} code unified currency code, default is undefined
|
|
2787
2787
|
* @param {int} [since] timestamp in ms of the earliest ledger entry, default is undefined
|
|
2788
2788
|
* @param {int} [limit] max number of ledger entrys to return, default is undefined
|
|
2789
|
-
* @param {object} [params] extra parameters specific to the
|
|
2789
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2790
2790
|
* @returns {object} a [ledger structure]{@link https://docs.ccxt.com/#/?id=ledger-structure}
|
|
2791
2791
|
*/
|
|
2792
2792
|
await this.loadMarkets();
|