ccxt 4.1.63 → 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 +4 -4
- package/dist/ccxt.browser.js +2769 -2653
- package/dist/ccxt.browser.min.js +3 -3
- 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 +33 -3
- 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 +48 -30
- package/dist/cjs/src/krakenfutures.js +16 -16
- 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 +27 -28
- 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 +162 -123
- 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 +12 -9
- 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 +22 -24
- package/dist/cjs/src/upbit.js +22 -22
- package/dist/cjs/src/wavesexchange.js +19 -19
- package/dist/cjs/src/wazirx.js +22 -16
- 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/doc/manual.rst +1 -1
- package/doc/readme.rst +1 -1
- 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 +33 -3
- 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 +48 -30
- package/js/src/krakenfutures.js +16 -16
- 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 +27 -28
- 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 +162 -123
- 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 +12 -9
- 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/static_dependencies/jsencrypt/lib/jsbn/jsbn.d.ts +1 -1
- package/js/src/tidex.js +15 -15
- package/js/src/timex.js +19 -19
- package/js/src/tokocrypto.js +22 -24
- package/js/src/upbit.js +22 -22
- package/js/src/wavesexchange.js +19 -19
- package/js/src/wazirx.js +22 -16
- 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/js/src/novadax.js
CHANGED
|
@@ -205,7 +205,7 @@ export default class novadax extends Exchange {
|
|
|
205
205
|
* @name novadax#fetchTime
|
|
206
206
|
* @description fetches the current integer timestamp in milliseconds from the exchange server
|
|
207
207
|
* @see https://doc.novadax.com/en-US/#get-current-system-time
|
|
208
|
-
* @param {object} [params] extra parameters specific to the
|
|
208
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
209
209
|
* @returns {int} the current integer timestamp in milliseconds from the exchange server
|
|
210
210
|
*/
|
|
211
211
|
const response = await this.publicGetCommonTimestamp(params);
|
|
@@ -224,7 +224,7 @@ export default class novadax extends Exchange {
|
|
|
224
224
|
* @name novadax#fetchMarkets
|
|
225
225
|
* @description retrieves data on all markets for novadax
|
|
226
226
|
* @see https://doc.novadax.com/en-US/#get-all-supported-trading-symbol
|
|
227
|
-
* @param {object} [params] extra parameters specific to the exchange
|
|
227
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
228
228
|
* @returns {object[]} an array of objects representing market data
|
|
229
229
|
*/
|
|
230
230
|
const response = await this.publicGetCommonSymbols(params);
|
|
@@ -362,7 +362,7 @@ export default class novadax extends Exchange {
|
|
|
362
362
|
* @description fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
|
363
363
|
* @see https://doc.novadax.com/en-US/#get-latest-ticker-for-specific-pair
|
|
364
364
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
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 [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
367
367
|
*/
|
|
368
368
|
await this.loadMarkets();
|
|
@@ -396,10 +396,10 @@ export default class novadax extends Exchange {
|
|
|
396
396
|
/**
|
|
397
397
|
* @method
|
|
398
398
|
* @name novadax#fetchTickers
|
|
399
|
-
* @description fetches price tickers for multiple markets, statistical
|
|
399
|
+
* @description fetches price tickers for multiple markets, statistical information calculated over the past 24 hours for each market
|
|
400
400
|
* @see https://doc.novadax.com/en-US/#get-latest-tickers-for-all-trading-pairs
|
|
401
401
|
* @param {string[]|undefined} symbols unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
|
|
402
|
-
* @param {object} [params] extra parameters specific to the
|
|
402
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
403
403
|
* @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
404
404
|
*/
|
|
405
405
|
await this.loadMarkets();
|
|
@@ -442,7 +442,7 @@ export default class novadax extends Exchange {
|
|
|
442
442
|
* @see https://doc.novadax.com/en-US/#get-market-depth
|
|
443
443
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
444
444
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
445
|
-
* @param {object} [params] extra parameters specific to the
|
|
445
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
446
446
|
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
|
|
447
447
|
*/
|
|
448
448
|
await this.loadMarkets();
|
|
@@ -564,7 +564,7 @@ export default class novadax extends Exchange {
|
|
|
564
564
|
* @param {string} symbol unified symbol of the market to fetch trades for
|
|
565
565
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
566
566
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
567
|
-
* @param {object} [params] extra parameters specific to the
|
|
567
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
568
568
|
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=public-trades}
|
|
569
569
|
*/
|
|
570
570
|
await this.loadMarkets();
|
|
@@ -600,7 +600,7 @@ export default class novadax extends Exchange {
|
|
|
600
600
|
* @param {string} timeframe the length of time each candle represents
|
|
601
601
|
* @param {int} [since] timestamp in ms of the earliest candle to fetch
|
|
602
602
|
* @param {int} [limit] the maximum amount of candles to fetch
|
|
603
|
-
* @param {object} [params] extra parameters specific to the
|
|
603
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
604
604
|
* @returns {int[][]} A list of candles ordered as timestamp, open, high, low, close, volume
|
|
605
605
|
*/
|
|
606
606
|
await this.loadMarkets();
|
|
@@ -696,7 +696,7 @@ export default class novadax extends Exchange {
|
|
|
696
696
|
* @name novadax#fetchBalance
|
|
697
697
|
* @description query for balance and get the amount of funds available for trading or funds locked in orders
|
|
698
698
|
* @see https://doc.novadax.com/en-US/#get-account-balance
|
|
699
|
-
* @param {object} [params] extra parameters specific to the
|
|
699
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
700
700
|
* @returns {object} a [balance structure]{@link https://docs.ccxt.com/#/?id=balance-structure}
|
|
701
701
|
*/
|
|
702
702
|
await this.loadMarkets();
|
|
@@ -728,7 +728,7 @@ export default class novadax extends Exchange {
|
|
|
728
728
|
* @param {string} side 'buy' or 'sell'
|
|
729
729
|
* @param {float} amount how much of currency you want to trade in units of base currency
|
|
730
730
|
* @param {float} [price] the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
|
|
731
|
-
* @param {object} [params] extra parameters specific to the
|
|
731
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
732
732
|
* @returns {object} an [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
733
733
|
*/
|
|
734
734
|
await this.loadMarkets();
|
|
@@ -825,7 +825,7 @@ export default class novadax extends Exchange {
|
|
|
825
825
|
* @see https://doc.novadax.com/en-US/#cancel-an-order
|
|
826
826
|
* @param {string} id order id
|
|
827
827
|
* @param {string} symbol not used by novadax cancelOrder ()
|
|
828
|
-
* @param {object} [params] extra parameters specific to the
|
|
828
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
829
829
|
* @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
830
830
|
*/
|
|
831
831
|
await this.loadMarkets();
|
|
@@ -852,7 +852,7 @@ export default class novadax extends Exchange {
|
|
|
852
852
|
* @description fetches information on an order made by the user
|
|
853
853
|
* @see https://doc.novadax.com/en-US/#get-order-details
|
|
854
854
|
* @param {string} symbol not used by novadax fetchOrder
|
|
855
|
-
* @param {object} [params] extra parameters specific to the
|
|
855
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
856
856
|
* @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
857
857
|
*/
|
|
858
858
|
await this.loadMarkets();
|
|
@@ -893,7 +893,7 @@ export default class novadax extends Exchange {
|
|
|
893
893
|
* @param {string} symbol unified market symbol of the market orders were made in
|
|
894
894
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
895
895
|
* @param {int} [limit] the maximum number of orde structures to retrieve
|
|
896
|
-
* @param {object} [params] extra parameters specific to the
|
|
896
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
897
897
|
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
898
898
|
*/
|
|
899
899
|
await this.loadMarkets();
|
|
@@ -953,7 +953,7 @@ export default class novadax extends Exchange {
|
|
|
953
953
|
* @param {string} symbol unified market symbol
|
|
954
954
|
* @param {int} [since] the earliest time in ms to fetch open orders for
|
|
955
955
|
* @param {int} [limit] the maximum number of open orders structures to retrieve
|
|
956
|
-
* @param {object} [params] extra parameters specific to the
|
|
956
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
957
957
|
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
958
958
|
*/
|
|
959
959
|
const request = {
|
|
@@ -970,7 +970,7 @@ export default class novadax extends Exchange {
|
|
|
970
970
|
* @param {string} symbol unified market symbol of the market orders were made in
|
|
971
971
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
972
972
|
* @param {int} [limit] the maximum number of orde structures to retrieve
|
|
973
|
-
* @param {object} [params] extra parameters specific to the
|
|
973
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
974
974
|
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
975
975
|
*/
|
|
976
976
|
const request = {
|
|
@@ -988,7 +988,7 @@ export default class novadax extends Exchange {
|
|
|
988
988
|
* @param {string} symbol unified market symbol
|
|
989
989
|
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
990
990
|
* @param {int} [limit] the maximum number of trades to retrieve
|
|
991
|
-
* @param {object} [params] extra parameters specific to the
|
|
991
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
992
992
|
* @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=trade-structure}
|
|
993
993
|
*/
|
|
994
994
|
await this.loadMarkets();
|
|
@@ -1120,7 +1120,7 @@ export default class novadax extends Exchange {
|
|
|
1120
1120
|
* @param {float} amount amount to transfer
|
|
1121
1121
|
* @param {string} fromAccount account to transfer from
|
|
1122
1122
|
* @param {string} toAccount account to transfer to
|
|
1123
|
-
* @param {object} [params] extra parameters specific to the
|
|
1123
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1124
1124
|
* @returns {object} a [transfer structure]{@link https://docs.ccxt.com/#/?id=transfer-structure}
|
|
1125
1125
|
*/
|
|
1126
1126
|
await this.loadMarkets();
|
|
@@ -1195,7 +1195,7 @@ export default class novadax extends Exchange {
|
|
|
1195
1195
|
* @param {float} amount the amount to withdraw
|
|
1196
1196
|
* @param {string} address the address to withdraw to
|
|
1197
1197
|
* @param {string} tag
|
|
1198
|
-
* @param {object} [params] extra parameters specific to the
|
|
1198
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1199
1199
|
* @returns {object} a [transaction structure]{@link https://docs.ccxt.com/#/?id=transaction-structure}
|
|
1200
1200
|
*/
|
|
1201
1201
|
[tag, params] = this.handleWithdrawTagAndParams(tag, params);
|
|
@@ -1225,7 +1225,7 @@ export default class novadax extends Exchange {
|
|
|
1225
1225
|
* @name novadax#fetchAccounts
|
|
1226
1226
|
* @description fetch all the accounts associated with a profile
|
|
1227
1227
|
* @see https://doc.novadax.com/en-US/#get-sub-account-list
|
|
1228
|
-
* @param {object} [params] extra parameters specific to the
|
|
1228
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1229
1229
|
* @returns {object} a dictionary of [account structures]{@link https://docs.ccxt.com/#/?id=account-structure} indexed by the account type
|
|
1230
1230
|
*/
|
|
1231
1231
|
const response = await this.privateGetAccountSubs(params);
|
|
@@ -1267,7 +1267,7 @@ export default class novadax extends Exchange {
|
|
|
1267
1267
|
* @param {string} code unified currency code
|
|
1268
1268
|
* @param {int} [since] the earliest time in ms to fetch deposits for
|
|
1269
1269
|
* @param {int} [limit] the maximum number of deposits structures to retrieve
|
|
1270
|
-
* @param {object} [params] extra parameters specific to the
|
|
1270
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1271
1271
|
* @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com/#/?id=transaction-structure}
|
|
1272
1272
|
*/
|
|
1273
1273
|
const request = {
|
|
@@ -1284,7 +1284,7 @@ export default class novadax extends Exchange {
|
|
|
1284
1284
|
* @param {string} code unified currency code
|
|
1285
1285
|
* @param {int} [since] the earliest time in ms to fetch withdrawals for
|
|
1286
1286
|
* @param {int} [limit] the maximum number of withdrawals structures to retrieve
|
|
1287
|
-
* @param {object} [params] extra parameters specific to the
|
|
1287
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1288
1288
|
* @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com/#/?id=transaction-structure}
|
|
1289
1289
|
*/
|
|
1290
1290
|
const request = {
|
|
@@ -1301,7 +1301,7 @@ export default class novadax extends Exchange {
|
|
|
1301
1301
|
* @param {string} [code] unified currency code for the currency of the deposit/withdrawals, default is undefined
|
|
1302
1302
|
* @param {int} [since] timestamp in ms of the earliest deposit/withdrawal, default is undefined
|
|
1303
1303
|
* @param {int} [limit] max number of deposit/withdrawals to return, default is undefined
|
|
1304
|
-
* @param {object} [params] extra parameters specific to the
|
|
1304
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1305
1305
|
* @returns {object} a list of [transaction structure]{@link https://docs.ccxt.com/#/?id=transaction-structure}
|
|
1306
1306
|
*/
|
|
1307
1307
|
await this.loadMarkets();
|
|
@@ -1440,7 +1440,7 @@ export default class novadax extends Exchange {
|
|
|
1440
1440
|
* @param {string} symbol unified market symbol
|
|
1441
1441
|
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
1442
1442
|
* @param {int} [limit] the maximum number of trades structures to retrieve
|
|
1443
|
-
* @param {object} [params] extra parameters specific to the
|
|
1443
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1444
1444
|
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=trade-structure}
|
|
1445
1445
|
*/
|
|
1446
1446
|
await this.loadMarkets();
|
package/js/src/oceanex.js
CHANGED
|
@@ -155,7 +155,7 @@ export default class oceanex extends Exchange {
|
|
|
155
155
|
* @name oceanex#fetchMarkets
|
|
156
156
|
* @description retrieves data on all markets for oceanex
|
|
157
157
|
* @see https://api.oceanex.pro/doc/v1/#markets-post
|
|
158
|
-
* @param {object} [params] extra parameters specific to the exchange
|
|
158
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
159
159
|
* @returns {object[]} an array of objects representing market data
|
|
160
160
|
*/
|
|
161
161
|
const request = { 'show_details': true };
|
|
@@ -242,7 +242,7 @@ export default class oceanex extends Exchange {
|
|
|
242
242
|
* @description fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
|
243
243
|
* @see https://api.oceanex.pro/doc/v1/#ticker-post
|
|
244
244
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
245
|
-
* @param {object} [params] extra parameters specific to the
|
|
245
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
246
246
|
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
247
247
|
*/
|
|
248
248
|
await this.loadMarkets();
|
|
@@ -275,10 +275,10 @@ export default class oceanex extends Exchange {
|
|
|
275
275
|
/**
|
|
276
276
|
* @method
|
|
277
277
|
* @name oceanex#fetchTickers
|
|
278
|
-
* @description fetches price tickers for multiple markets, statistical
|
|
278
|
+
* @description fetches price tickers for multiple markets, statistical information calculated over the past 24 hours for each market
|
|
279
279
|
* @see https://api.oceanex.pro/doc/v1/#multiple-tickers-post
|
|
280
280
|
* @param {string[]|undefined} symbols unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
|
|
281
|
-
* @param {object} [params] extra parameters specific to the
|
|
281
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
282
282
|
* @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
283
283
|
*/
|
|
284
284
|
await this.loadMarkets();
|
|
@@ -365,7 +365,7 @@ export default class oceanex extends Exchange {
|
|
|
365
365
|
* @see https://api.oceanex.pro/doc/v1/#order-book-post
|
|
366
366
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
367
367
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
368
|
-
* @param {object} [params] extra parameters specific to the
|
|
368
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
369
369
|
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
|
|
370
370
|
*/
|
|
371
371
|
await this.loadMarkets();
|
|
@@ -408,7 +408,7 @@ export default class oceanex extends Exchange {
|
|
|
408
408
|
* @see https://api.oceanex.pro/doc/v1/#multiple-order-books-post
|
|
409
409
|
* @param {string[]|undefined} symbols list of unified market symbols, all symbols fetched if undefined, default is undefined
|
|
410
410
|
* @param {int} [limit] max number of entries per orderbook to return, default is undefined
|
|
411
|
-
* @param {object} [params] extra parameters specific to the
|
|
411
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
412
412
|
* @returns {object} a dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbol
|
|
413
413
|
*/
|
|
414
414
|
await this.loadMarkets();
|
|
@@ -466,7 +466,7 @@ export default class oceanex extends Exchange {
|
|
|
466
466
|
* @param {string} symbol unified symbol of the market to fetch trades for
|
|
467
467
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
468
468
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
469
|
-
* @param {object} [params] extra parameters specific to the
|
|
469
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
470
470
|
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=public-trades}
|
|
471
471
|
*/
|
|
472
472
|
await this.loadMarkets();
|
|
@@ -551,7 +551,7 @@ export default class oceanex extends Exchange {
|
|
|
551
551
|
* @name oceanex#fetchTime
|
|
552
552
|
* @description fetches the current integer timestamp in milliseconds from the exchange server
|
|
553
553
|
* @see https://api.oceanex.pro/doc/v1/#api-server-time-post
|
|
554
|
-
* @param {object} [params] extra parameters specific to the
|
|
554
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
555
555
|
* @returns {int} the current integer timestamp in milliseconds from the exchange server
|
|
556
556
|
*/
|
|
557
557
|
const response = await this.publicGetTimestamp(params);
|
|
@@ -566,7 +566,7 @@ export default class oceanex extends Exchange {
|
|
|
566
566
|
* @name oceanex#fetchTradingFees
|
|
567
567
|
* @description fetch the trading fees for multiple markets
|
|
568
568
|
* @see https://api.oceanex.pro/doc/v1/#trading-fees-post
|
|
569
|
-
* @param {object} [params] extra parameters specific to the
|
|
569
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
570
570
|
* @returns {object} a dictionary of [fee structures]{@link https://docs.ccxt.com/#/?id=fee-structure} indexed by market symbols
|
|
571
571
|
*/
|
|
572
572
|
const response = await this.publicGetFeesTrading(params);
|
|
@@ -613,7 +613,7 @@ export default class oceanex extends Exchange {
|
|
|
613
613
|
* @name oceanex#fetchBalance
|
|
614
614
|
* @description query for balance and get the amount of funds available for trading or funds locked in orders
|
|
615
615
|
* @see https://api.oceanex.pro/doc/v1/#account-info-post
|
|
616
|
-
* @param {object} [params] extra parameters specific to the
|
|
616
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
617
617
|
* @returns {object} a [balance structure]{@link https://docs.ccxt.com/#/?id=balance-structure}
|
|
618
618
|
*/
|
|
619
619
|
await this.loadMarkets();
|
|
@@ -631,7 +631,7 @@ export default class oceanex extends Exchange {
|
|
|
631
631
|
* @param {string} side 'buy' or 'sell'
|
|
632
632
|
* @param {float} amount how much of currency you want to trade in units of base currency
|
|
633
633
|
* @param {float} [price] the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
|
|
634
|
-
* @param {object} [params] extra parameters specific to the
|
|
634
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
635
635
|
* @returns {object} an [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
636
636
|
*/
|
|
637
637
|
await this.loadMarkets();
|
|
@@ -656,7 +656,7 @@ export default class oceanex extends Exchange {
|
|
|
656
656
|
* @description fetches information on an order made by the user
|
|
657
657
|
* @see https://api.oceanex.pro/doc/v1/#order-status-get
|
|
658
658
|
* @param {string} symbol unified symbol of the market the order was made in
|
|
659
|
-
* @param {object} [params] extra parameters specific to the
|
|
659
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
660
660
|
* @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
661
661
|
*/
|
|
662
662
|
await this.loadMarkets();
|
|
@@ -690,7 +690,7 @@ export default class oceanex extends Exchange {
|
|
|
690
690
|
* @param {string} symbol unified market symbol
|
|
691
691
|
* @param {int} [since] the earliest time in ms to fetch open orders for
|
|
692
692
|
* @param {int} [limit] the maximum number of open orders structures to retrieve
|
|
693
|
-
* @param {object} [params] extra parameters specific to the
|
|
693
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
694
694
|
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
695
695
|
*/
|
|
696
696
|
const request = {
|
|
@@ -707,7 +707,7 @@ export default class oceanex extends Exchange {
|
|
|
707
707
|
* @param {string} symbol unified market symbol of the market orders were made in
|
|
708
708
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
709
709
|
* @param {int} [limit] the maximum number of orde structures to retrieve
|
|
710
|
-
* @param {object} [params] extra parameters specific to the
|
|
710
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
711
711
|
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
712
712
|
*/
|
|
713
713
|
const request = {
|
|
@@ -724,7 +724,7 @@ export default class oceanex extends Exchange {
|
|
|
724
724
|
* @param {string} symbol unified market symbol of the market orders were made in
|
|
725
725
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
726
726
|
* @param {int} [limit] the maximum number of order structures to retrieve
|
|
727
|
-
* @param {object} [params] extra parameters specific to the
|
|
727
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
728
728
|
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
729
729
|
*/
|
|
730
730
|
if (symbol === undefined) {
|
|
@@ -781,7 +781,7 @@ export default class oceanex extends Exchange {
|
|
|
781
781
|
* @param {string} timeframe the length of time each candle represents
|
|
782
782
|
* @param {int} [since] timestamp in ms of the earliest candle to fetch
|
|
783
783
|
* @param {int} [limit] the maximum amount of candles to fetch
|
|
784
|
-
* @param {object} [params] extra parameters specific to the
|
|
784
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
785
785
|
* @returns {int[][]} A list of candles ordered as timestamp, open, high, low, close, volume
|
|
786
786
|
*/
|
|
787
787
|
await this.loadMarkets();
|
|
@@ -871,7 +871,7 @@ export default class oceanex extends Exchange {
|
|
|
871
871
|
* @see https://api.oceanex.pro/doc/v1/#cancel-order-post
|
|
872
872
|
* @param {string} id order id
|
|
873
873
|
* @param {string} symbol not used by oceanex cancelOrder ()
|
|
874
|
-
* @param {object} [params] extra parameters specific to the
|
|
874
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
875
875
|
* @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
876
876
|
*/
|
|
877
877
|
await this.loadMarkets();
|
|
@@ -887,7 +887,7 @@ export default class oceanex extends Exchange {
|
|
|
887
887
|
* @see https://api.oceanex.pro/doc/v1/#cancel-multiple-orders-post
|
|
888
888
|
* @param {string[]} ids order ids
|
|
889
889
|
* @param {string} symbol not used by oceanex cancelOrders ()
|
|
890
|
-
* @param {object} [params] extra parameters specific to the
|
|
890
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
891
891
|
* @returns {object} an list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
892
892
|
*/
|
|
893
893
|
await this.loadMarkets();
|
|
@@ -902,7 +902,7 @@ export default class oceanex extends Exchange {
|
|
|
902
902
|
* @description cancel all open orders
|
|
903
903
|
* @see https://api.oceanex.pro/doc/v1/#cancel-all-orders-post
|
|
904
904
|
* @param {string} symbol unified market symbol, only orders in the market of this symbol are cancelled when symbol is not undefined
|
|
905
|
-
* @param {object} [params] extra parameters specific to the
|
|
905
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
906
906
|
* @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
907
907
|
*/
|
|
908
908
|
await this.loadMarkets();
|
package/js/src/okcoin.js
CHANGED
|
@@ -559,7 +559,7 @@ export default class okcoin extends Exchange {
|
|
|
559
559
|
* @method
|
|
560
560
|
* @name okcoin#fetchTime
|
|
561
561
|
* @description fetches the current integer timestamp in milliseconds from the exchange server
|
|
562
|
-
* @param {object} [params] extra parameters specific to the
|
|
562
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
563
563
|
* @returns {int} the current integer timestamp in milliseconds from the exchange server
|
|
564
564
|
*/
|
|
565
565
|
const response = await this.publicGetPublicTime(params);
|
|
@@ -577,7 +577,7 @@ export default class okcoin extends Exchange {
|
|
|
577
577
|
* @name okcoin#fetchMarkets
|
|
578
578
|
* @see https://www.okcoin.com/docs-v5/en/#rest-api-public-data-get-instruments
|
|
579
579
|
* @description retrieves data on all markets for okcoin
|
|
580
|
-
* @param {object} [params] extra parameters specific to the exchange
|
|
580
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
581
581
|
* @returns {object[]} an array of objects representing market data
|
|
582
582
|
*/
|
|
583
583
|
const request = {
|
|
@@ -683,7 +683,7 @@ export default class okcoin extends Exchange {
|
|
|
683
683
|
* @method
|
|
684
684
|
* @name okcoin#fetchCurrencies
|
|
685
685
|
* @description fetches all available currencies on an exchange
|
|
686
|
-
* @param {object} [params] extra parameters specific to the
|
|
686
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
687
687
|
* @returns {object} an associative dictionary of currencies
|
|
688
688
|
*/
|
|
689
689
|
if (!this.checkRequiredCredentials(false)) {
|
|
@@ -778,7 +778,7 @@ export default class okcoin extends Exchange {
|
|
|
778
778
|
* @description fetches information on open orders with bid (buy) and ask (sell) prices, volumes and other data
|
|
779
779
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
780
780
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
781
|
-
* @param {object} [params] extra parameters specific to the
|
|
781
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
782
782
|
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
|
|
783
783
|
*/
|
|
784
784
|
await this.loadMarkets();
|
|
@@ -879,7 +879,7 @@ export default class okcoin extends Exchange {
|
|
|
879
879
|
* @see https://www.okcoin.com/docs-v5/en/#rest-api-market-data-get-ticker
|
|
880
880
|
* @description fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
|
881
881
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
882
|
-
* @param {object} [params] extra parameters specific to the
|
|
882
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
883
883
|
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
884
884
|
*/
|
|
885
885
|
await this.loadMarkets();
|
|
@@ -923,9 +923,9 @@ export default class okcoin extends Exchange {
|
|
|
923
923
|
* @method
|
|
924
924
|
* @name okcoin#fetchTickers
|
|
925
925
|
* @see https://www.okcoin.com/docs-v5/en/#rest-api-market-data-get-tickers
|
|
926
|
-
* @description fetches price tickers for multiple markets, statistical
|
|
926
|
+
* @description fetches price tickers for multiple markets, statistical information calculated over the past 24 hours for each market
|
|
927
927
|
* @param {string[]|undefined} symbols unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
|
|
928
|
-
* @param {object} [params] extra parameters specific to the
|
|
928
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
929
929
|
* @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
930
930
|
*/
|
|
931
931
|
symbols = this.marketSymbols(symbols);
|
|
@@ -1022,7 +1022,7 @@ export default class okcoin extends Exchange {
|
|
|
1022
1022
|
* @param {string} symbol unified symbol of the market to fetch trades for
|
|
1023
1023
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
1024
1024
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
1025
|
-
* @param {object} [params] extra parameters specific to the
|
|
1025
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1026
1026
|
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=public-trades}
|
|
1027
1027
|
*/
|
|
1028
1028
|
await this.loadMarkets();
|
|
@@ -1079,7 +1079,7 @@ export default class okcoin extends Exchange {
|
|
|
1079
1079
|
* @param {string} timeframe the length of time each candle represents
|
|
1080
1080
|
* @param {int} [since] timestamp in ms of the earliest candle to fetch
|
|
1081
1081
|
* @param {int} [limit] the maximum amount of candles to fetch
|
|
1082
|
-
* @param {object} [params] extra parameters specific to the
|
|
1082
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1083
1083
|
* @returns {int[][]} A list of candles ordered as timestamp, open, high, low, close, volume
|
|
1084
1084
|
*/
|
|
1085
1085
|
await this.loadMarkets();
|
|
@@ -1172,7 +1172,7 @@ export default class okcoin extends Exchange {
|
|
|
1172
1172
|
* @method
|
|
1173
1173
|
* @name okcoin#fetchBalance
|
|
1174
1174
|
* @description query for balance and get the amount of funds available for trading or funds locked in orders
|
|
1175
|
-
* @param {object} [params] extra parameters specific to the
|
|
1175
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1176
1176
|
* @returns {object} a [balance structure]{@link https://docs.ccxt.com/#/?id=balance-structure}
|
|
1177
1177
|
*/
|
|
1178
1178
|
await this.loadMarkets();
|
|
@@ -1270,7 +1270,7 @@ export default class okcoin extends Exchange {
|
|
|
1270
1270
|
* @param {string} side 'buy' or 'sell'
|
|
1271
1271
|
* @param {float} amount how much of currency you want to trade in units of base currency
|
|
1272
1272
|
* @param {float} price the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
|
|
1273
|
-
* @param {object} [params] extra parameters specific to the
|
|
1273
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1274
1274
|
* @param {bool} [params.reduceOnly] MARGIN orders only, or swap/future orders in net mode
|
|
1275
1275
|
* @param {bool} [params.postOnly] true to place a post only order
|
|
1276
1276
|
* @param {float} [params.triggerPrice] conditional orders only, the price at which the order is to be triggered
|
|
@@ -1554,7 +1554,7 @@ export default class okcoin extends Exchange {
|
|
|
1554
1554
|
* @description cancels an open order
|
|
1555
1555
|
* @param {string} id order id
|
|
1556
1556
|
* @param {string} symbol unified symbol of the market the order was made in
|
|
1557
|
-
* @param {object} [params] extra parameters specific to the
|
|
1557
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1558
1558
|
* @param {bool} [params.stop] True if cancel trigger or conditional orders
|
|
1559
1559
|
* @param {bool} [params.advanced] True if canceling advanced orders only
|
|
1560
1560
|
* @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
@@ -1614,7 +1614,7 @@ export default class okcoin extends Exchange {
|
|
|
1614
1614
|
* @see https://www.okcoin.com/docs-v5/en/#rest-api-trade-cancel-advance-algo-order
|
|
1615
1615
|
* @param {string[]} ids order ids
|
|
1616
1616
|
* @param {string} symbol unified market symbol
|
|
1617
|
-
* @param {object} [params] extra parameters specific to the
|
|
1617
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1618
1618
|
* @returns {object} an list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1619
1619
|
*/
|
|
1620
1620
|
if (symbol === undefined) {
|
|
@@ -1907,7 +1907,7 @@ export default class okcoin extends Exchange {
|
|
|
1907
1907
|
* @see https://www.okcoin.com/docs-v5/en/#rest-api-trade-get-algo-order-list
|
|
1908
1908
|
* @description fetches information on an order made by the user
|
|
1909
1909
|
* @param {string} symbol unified symbol of the market the order was made in
|
|
1910
|
-
* @param {object} [params] extra parameters specific to the
|
|
1910
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1911
1911
|
* @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1912
1912
|
*/
|
|
1913
1913
|
if (symbol === undefined) {
|
|
@@ -1960,7 +1960,7 @@ export default class okcoin extends Exchange {
|
|
|
1960
1960
|
* @param {string} symbol unified market symbol
|
|
1961
1961
|
* @param {int} [since] the earliest time in ms to fetch open orders for
|
|
1962
1962
|
* @param {int} [limit] the maximum number of open orders structures to retrieve
|
|
1963
|
-
* @param {object} [params] extra parameters specific to the
|
|
1963
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1964
1964
|
* @param {bool} [params.stop] True if fetching trigger or conditional orders
|
|
1965
1965
|
* @param {string} [params.ordType] "conditional", "oco", "trigger", "move_order_stop", "iceberg", or "twap"
|
|
1966
1966
|
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
@@ -2009,7 +2009,7 @@ export default class okcoin extends Exchange {
|
|
|
2009
2009
|
* @param {string} symbol unified market symbol of the market orders were made in
|
|
2010
2010
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
2011
2011
|
* @param {int} [limit] the maximum number of orde structures to retrieve
|
|
2012
|
-
* @param {object} [params] extra parameters specific to the
|
|
2012
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2013
2013
|
* @param {bool} [params.stop] True if fetching trigger or conditional orders
|
|
2014
2014
|
* @param {string} [params.ordType] "conditional", "oco", "trigger", "move_order_stop", "iceberg", or "twap"
|
|
2015
2015
|
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
@@ -2185,7 +2185,7 @@ export default class okcoin extends Exchange {
|
|
|
2185
2185
|
* @description fetch the deposit address for a currency associated with this account
|
|
2186
2186
|
* @see https://www.okx.com/docs-v5/en/#funding-account-rest-api-get-deposit-address
|
|
2187
2187
|
* @param {string} code unified currency code
|
|
2188
|
-
* @param {object} [params] extra parameters specific to the
|
|
2188
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2189
2189
|
* @returns {object} an [address structure]{@link https://docs.ccxt.com/#/?id=address-structure}
|
|
2190
2190
|
*/
|
|
2191
2191
|
await this.loadMarkets();
|
|
@@ -2207,7 +2207,7 @@ export default class okcoin extends Exchange {
|
|
|
2207
2207
|
* @description fetch a dictionary of addresses for a currency, indexed by network
|
|
2208
2208
|
* @see https://www.okx.com/docs-v5/en/#funding-account-rest-api-get-deposit-address
|
|
2209
2209
|
* @param {string} code unified currency code of the currency for the deposit address
|
|
2210
|
-
* @param {object} [params] extra parameters specific to the
|
|
2210
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2211
2211
|
* @returns {object} a dictionary of [address structures]{@link https://docs.ccxt.com/#/?id=address-structure} indexed by the network
|
|
2212
2212
|
*/
|
|
2213
2213
|
await this.loadMarkets();
|
|
@@ -2252,7 +2252,7 @@ export default class okcoin extends Exchange {
|
|
|
2252
2252
|
* @param {float} amount amount to transfer
|
|
2253
2253
|
* @param {string} fromAccount account to transfer from
|
|
2254
2254
|
* @param {string} toAccount account to transfer to
|
|
2255
|
-
* @param {object} [params] extra parameters specific to the
|
|
2255
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2256
2256
|
* @returns {object} a [transfer structure]{@link https://docs.ccxt.com/#/?id=transfer-structure}
|
|
2257
2257
|
*/
|
|
2258
2258
|
await this.loadMarkets();
|
|
@@ -2396,7 +2396,7 @@ export default class okcoin extends Exchange {
|
|
|
2396
2396
|
* @param {float} amount the amount to withdraw
|
|
2397
2397
|
* @param {string} address the address to withdraw to
|
|
2398
2398
|
* @param {string} tag
|
|
2399
|
-
* @param {object} [params] extra parameters specific to the
|
|
2399
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2400
2400
|
* @returns {object} a [transaction structure]{@link https://docs.ccxt.com/#/?id=transaction-structure}
|
|
2401
2401
|
*/
|
|
2402
2402
|
[tag, params] = this.handleWithdrawTagAndParams(tag, params);
|
|
@@ -2455,7 +2455,7 @@ export default class okcoin extends Exchange {
|
|
|
2455
2455
|
* @param {string} code unified currency code
|
|
2456
2456
|
* @param {int} [since] the earliest time in ms to fetch deposits for
|
|
2457
2457
|
* @param {int} [limit] the maximum number of deposits structures to retrieve
|
|
2458
|
-
* @param {object} [params] extra parameters specific to the
|
|
2458
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2459
2459
|
* @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com/#/?id=transaction-structure}
|
|
2460
2460
|
*/
|
|
2461
2461
|
await this.loadMarkets();
|
|
@@ -2529,7 +2529,7 @@ export default class okcoin extends Exchange {
|
|
|
2529
2529
|
* @param {string} code unified currency code
|
|
2530
2530
|
* @param {int} [since] the earliest time in ms to fetch withdrawals for
|
|
2531
2531
|
* @param {int} [limit] the maximum number of withdrawals structures to retrieve
|
|
2532
|
-
* @param {object} [params] extra parameters specific to the
|
|
2532
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2533
2533
|
* @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com/#/?id=transaction-structure}
|
|
2534
2534
|
*/
|
|
2535
2535
|
await this.loadMarkets();
|
|
@@ -2730,7 +2730,7 @@ export default class okcoin extends Exchange {
|
|
|
2730
2730
|
* @param {string} symbol unified market symbol
|
|
2731
2731
|
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
2732
2732
|
* @param {int} [limit] the maximum number of trades structures to retrieve
|
|
2733
|
-
* @param {object} [params] extra parameters specific to the
|
|
2733
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2734
2734
|
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=trade-structure}
|
|
2735
2735
|
*/
|
|
2736
2736
|
await this.loadMarkets();
|
|
@@ -2766,7 +2766,7 @@ export default class okcoin extends Exchange {
|
|
|
2766
2766
|
* @param {string} symbol unified market symbol
|
|
2767
2767
|
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
2768
2768
|
* @param {int} [limit] the maximum number of trades to retrieve
|
|
2769
|
-
* @param {object} [params] extra parameters specific to the
|
|
2769
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2770
2770
|
* @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=trade-structure}
|
|
2771
2771
|
*/
|
|
2772
2772
|
const request = {
|
|
@@ -2789,7 +2789,7 @@ export default class okcoin extends Exchange {
|
|
|
2789
2789
|
* @param {string} code unified currency code, default is undefined
|
|
2790
2790
|
* @param {int} [since] timestamp in ms of the earliest ledger entry, default is undefined
|
|
2791
2791
|
* @param {int} [limit] max number of ledger entrys to return, default is undefined
|
|
2792
|
-
* @param {object} [params] extra parameters specific to the
|
|
2792
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2793
2793
|
* @returns {object} a [ledger structure]{@link https://docs.ccxt.com/#/?id=ledger-structure}
|
|
2794
2794
|
*/
|
|
2795
2795
|
await this.loadMarkets();
|