ccxt 4.0.74 → 4.0.76
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 +2635 -2383
- package/dist/ccxt.browser.min.js +3 -3
- package/dist/cjs/ccxt.js +1 -1
- package/dist/cjs/src/ace.js +11 -11
- package/dist/cjs/src/alpaca.js +7 -7
- package/dist/cjs/src/ascendex.js +25 -25
- package/dist/cjs/src/base/Exchange.js +4 -4
- package/dist/cjs/src/bigone.js +19 -19
- package/dist/cjs/src/binance.js +56 -56
- package/dist/cjs/src/bingx.js +85 -40
- package/dist/cjs/src/bit2c.js +12 -12
- package/dist/cjs/src/bitbank.js +13 -13
- package/dist/cjs/src/bitbns.js +14 -14
- package/dist/cjs/src/bitfinex.js +21 -21
- package/dist/cjs/src/bitfinex2.js +29 -29
- package/dist/cjs/src/bitflyer.js +17 -17
- package/dist/cjs/src/bitforex.js +11 -11
- package/dist/cjs/src/bitget.js +39 -39
- package/dist/cjs/src/bithumb.js +11 -11
- package/dist/cjs/src/bitmart.js +44 -31
- package/dist/cjs/src/bitmex.js +24 -24
- package/dist/cjs/src/bitopro.js +21 -21
- package/dist/cjs/src/bitpanda.js +21 -21
- package/dist/cjs/src/bitrue.js +18 -18
- package/dist/cjs/src/bitso.js +21 -21
- package/dist/cjs/src/bitstamp.js +21 -21
- package/dist/cjs/src/bitstamp1.js +8 -8
- package/dist/cjs/src/bittrex.js +27 -27
- package/dist/cjs/src/bitvavo.js +19 -19
- package/dist/cjs/src/bkex.js +21 -21
- package/dist/cjs/src/bl3p.js +8 -8
- package/dist/cjs/src/blockchaincom.js +21 -21
- package/dist/cjs/src/btcalpha.js +15 -15
- package/dist/cjs/src/btcbox.js +10 -10
- package/dist/cjs/src/btcmarkets.js +17 -17
- package/dist/cjs/src/btctradeua.js +8 -8
- package/dist/cjs/src/btcturk.js +11 -11
- package/dist/cjs/src/bybit.js +153 -121
- package/dist/cjs/src/cex.js +14 -14
- package/dist/cjs/src/coinbase.js +23 -23
- package/dist/cjs/src/coinbasepro.js +24 -24
- package/dist/cjs/src/coincheck.js +12 -12
- package/dist/cjs/src/coinex.js +87 -41
- package/dist/cjs/src/coinfalcon.js +16 -16
- package/dist/cjs/src/coinmate.js +14 -14
- package/dist/cjs/src/coinone.js +12 -12
- package/dist/cjs/src/coinsph.js +27 -22
- package/dist/cjs/src/coinspot.js +8 -8
- package/dist/cjs/src/cryptocom.js +29 -29
- package/dist/cjs/src/currencycom.js +20 -20
- package/dist/cjs/src/delta.js +25 -25
- package/dist/cjs/src/deribit.js +30 -30
- package/dist/cjs/src/digifinex.js +31 -31
- package/dist/cjs/src/exmo.js +26 -26
- package/dist/cjs/src/gate.js +38 -38
- package/dist/cjs/src/gemini.js +17 -17
- package/dist/cjs/src/hitbtc.js +34 -34
- package/dist/cjs/src/hollaex.js +23 -23
- package/dist/cjs/src/huobi.js +45 -45
- package/dist/cjs/src/huobijp.js +20 -20
- package/dist/cjs/src/idex.js +19 -19
- package/dist/cjs/src/independentreserve.js +12 -12
- package/dist/cjs/src/indodax.js +14 -14
- package/dist/cjs/src/kraken.js +27 -27
- package/dist/cjs/src/krakenfutures.js +12 -12
- package/dist/cjs/src/kucoin.js +33 -33
- package/dist/cjs/src/kucoinfutures.js +24 -24
- package/dist/cjs/src/kuna.js +12 -12
- package/dist/cjs/src/latoken.js +17 -17
- package/dist/cjs/src/lbank.js +12 -12
- package/dist/cjs/src/lbank2.js +23 -23
- package/dist/cjs/src/luno.js +16 -16
- package/dist/cjs/src/lykke.js +16 -16
- package/dist/cjs/src/mercado.js +12 -12
- package/dist/cjs/src/mexc.js +44 -42
- package/dist/cjs/src/ndax.js +20 -20
- package/dist/cjs/src/novadax.js +20 -20
- package/dist/cjs/src/oceanex.js +16 -16
- package/dist/cjs/src/okcoin.js +21 -21
- package/dist/cjs/src/okx.js +52 -52
- package/dist/cjs/src/paymium.js +11 -11
- package/dist/cjs/src/phemex.js +26 -26
- package/dist/cjs/src/poloniex.js +237 -136
- package/dist/cjs/src/poloniexfutures.js +18 -18
- package/dist/cjs/src/pro/alpaca.js +5 -5
- package/dist/cjs/src/pro/ascendex.js +4 -4
- package/dist/cjs/src/pro/binance.js +16 -16
- package/dist/cjs/src/pro/bitfinex.js +4 -4
- package/dist/cjs/src/pro/bitfinex2.js +6 -6
- package/dist/cjs/src/pro/bitget.js +6 -6
- package/dist/cjs/src/pro/bitmart.js +4 -4
- package/dist/cjs/src/pro/bitmex.js +6 -6
- package/dist/cjs/src/pro/bitopro.js +4 -4
- package/dist/cjs/src/pro/bitpanda.js +6 -6
- 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 +6 -6
- package/dist/cjs/src/pro/bitvavo.js +5 -5
- package/dist/cjs/src/pro/blockchaincom.js +5 -5
- package/dist/cjs/src/pro/bybit.js +6 -6
- package/dist/cjs/src/pro/cex.js +7 -7
- package/dist/cjs/src/pro/coinbase.js +5 -5
- package/dist/cjs/src/pro/coinbasepro.js +6 -6
- package/dist/cjs/src/pro/coinex.js +5 -5
- package/dist/cjs/src/pro/cryptocom.js +10 -10
- package/dist/cjs/src/pro/currencycom.js +4 -4
- package/dist/cjs/src/pro/deribit.js +6 -6
- package/dist/cjs/src/pro/exmo.js +5 -5
- package/dist/cjs/src/pro/gate.js +7 -7
- package/dist/cjs/src/pro/gemini.js +3 -3
- package/dist/cjs/src/pro/hitbtc.js +3 -3
- package/dist/cjs/src/pro/hollaex.js +5 -5
- package/dist/cjs/src/pro/huobi.js +6 -6
- package/dist/cjs/src/pro/huobijp.js +3 -3
- package/dist/cjs/src/pro/idex.js +4 -4
- package/dist/cjs/src/pro/independentreserve.js +2 -2
- package/dist/cjs/src/pro/kraken.js +12 -12
- package/dist/cjs/src/pro/krakenfutures.js +7 -7
- package/dist/cjs/src/pro/kucoin.js +6 -6
- package/dist/cjs/src/pro/kucoinfutures.js +6 -5
- package/dist/cjs/src/pro/luno.js +2 -2
- package/dist/cjs/src/pro/mexc.js +6 -6
- package/dist/cjs/src/pro/ndax.js +3 -3
- package/dist/cjs/src/pro/okcoin.js +5 -5
- package/dist/cjs/src/pro/okx.js +19 -18
- package/dist/cjs/src/pro/phemex.js +6 -6
- 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 +6 -6
- package/dist/cjs/src/pro/whitebit.js +6 -6
- package/dist/cjs/src/probit.js +19 -19
- package/dist/cjs/src/tidex.js +13 -13
- package/dist/cjs/src/timex.js +16 -16
- package/dist/cjs/src/tokocrypto.js +18 -18
- package/dist/cjs/src/upbit.js +20 -20
- package/dist/cjs/src/wavesexchange.js +16 -16
- package/dist/cjs/src/wazirx.js +12 -12
- package/dist/cjs/src/whitebit.js +24 -24
- package/dist/cjs/src/woo.js +30 -24
- package/dist/cjs/src/yobit.js +16 -16
- package/dist/cjs/src/zaif.js +10 -10
- package/dist/cjs/src/zonda.js +15 -15
- package/js/ccxt.d.ts +1 -1
- package/js/ccxt.js +1 -1
- package/js/src/abstract/bingx.d.ts +2 -0
- package/js/src/abstract/bitmart.d.ts +13 -0
- package/js/src/abstract/bybit.d.ts +33 -21
- package/js/src/abstract/coinsph.d.ts +5 -0
- package/js/src/abstract/woo.d.ts +6 -0
- package/js/src/ace.js +11 -11
- package/js/src/alpaca.js +7 -7
- package/js/src/ascendex.js +25 -25
- package/js/src/base/Exchange.js +4 -4
- package/js/src/bigone.js +19 -19
- package/js/src/binance.js +56 -56
- package/js/src/bingx.d.ts +1 -0
- package/js/src/bingx.js +85 -40
- package/js/src/bit2c.js +12 -12
- package/js/src/bitbank.js +13 -13
- package/js/src/bitbns.js +14 -14
- package/js/src/bitfinex.js +21 -21
- package/js/src/bitfinex2.js +29 -29
- package/js/src/bitflyer.js +17 -17
- package/js/src/bitforex.js +11 -11
- package/js/src/bitget.js +39 -39
- package/js/src/bithumb.js +11 -11
- package/js/src/bitmart.js +44 -31
- package/js/src/bitmex.js +24 -24
- package/js/src/bitopro.js +21 -21
- package/js/src/bitpanda.js +21 -21
- package/js/src/bitrue.js +18 -18
- package/js/src/bitso.js +21 -21
- package/js/src/bitstamp.js +21 -21
- package/js/src/bitstamp1.js +8 -8
- package/js/src/bittrex.js +27 -27
- package/js/src/bitvavo.js +19 -19
- package/js/src/bkex.js +21 -21
- package/js/src/bl3p.js +8 -8
- package/js/src/blockchaincom.js +21 -21
- package/js/src/btcalpha.js +15 -15
- package/js/src/btcbox.js +10 -10
- package/js/src/btcmarkets.js +17 -17
- package/js/src/btctradeua.js +8 -8
- package/js/src/btcturk.js +11 -11
- package/js/src/bybit.js +153 -121
- package/js/src/cex.js +14 -14
- package/js/src/coinbase.js +23 -23
- package/js/src/coinbasepro.js +24 -24
- package/js/src/coincheck.js +12 -12
- package/js/src/coinex.d.ts +1 -0
- package/js/src/coinex.js +87 -41
- package/js/src/coinfalcon.js +16 -16
- package/js/src/coinmate.js +14 -14
- package/js/src/coinone.js +12 -12
- package/js/src/coinsph.js +27 -22
- package/js/src/coinspot.js +8 -8
- package/js/src/cryptocom.js +29 -29
- package/js/src/currencycom.js +20 -20
- package/js/src/delta.js +25 -25
- package/js/src/deribit.js +30 -30
- package/js/src/digifinex.js +31 -31
- package/js/src/exmo.js +26 -26
- package/js/src/gate.js +38 -38
- package/js/src/gemini.js +17 -17
- package/js/src/hitbtc.js +34 -34
- package/js/src/hollaex.js +23 -23
- package/js/src/huobi.js +45 -45
- package/js/src/huobijp.js +20 -20
- package/js/src/idex.js +19 -19
- package/js/src/independentreserve.js +12 -12
- package/js/src/indodax.js +14 -14
- package/js/src/kraken.js +27 -27
- package/js/src/krakenfutures.js +12 -12
- package/js/src/kucoin.js +33 -33
- package/js/src/kucoinfutures.js +24 -24
- package/js/src/kuna.js +12 -12
- package/js/src/latoken.js +17 -17
- package/js/src/lbank.js +12 -12
- package/js/src/lbank2.js +23 -23
- package/js/src/luno.js +16 -16
- package/js/src/lykke.js +16 -16
- package/js/src/mercado.js +12 -12
- package/js/src/mexc.js +45 -43
- package/js/src/ndax.js +20 -20
- package/js/src/novadax.js +20 -20
- package/js/src/oceanex.js +16 -16
- package/js/src/okcoin.js +21 -21
- package/js/src/okx.js +52 -52
- package/js/src/paymium.js +11 -11
- package/js/src/phemex.js +26 -26
- package/js/src/poloniex.d.ts +1 -1
- package/js/src/poloniex.js +237 -136
- package/js/src/poloniexfutures.js +18 -18
- package/js/src/pro/alpaca.js +5 -5
- package/js/src/pro/ascendex.js +4 -4
- package/js/src/pro/binance.js +16 -16
- package/js/src/pro/bitfinex.js +4 -4
- package/js/src/pro/bitfinex2.js +6 -6
- package/js/src/pro/bitget.js +6 -6
- package/js/src/pro/bitmart.js +4 -4
- package/js/src/pro/bitmex.js +6 -6
- package/js/src/pro/bitopro.js +4 -4
- package/js/src/pro/bitpanda.js +6 -6
- package/js/src/pro/bitrue.js +2 -2
- package/js/src/pro/bitstamp.js +3 -3
- package/js/src/pro/bittrex.js +6 -6
- package/js/src/pro/bitvavo.js +5 -5
- package/js/src/pro/blockchaincom.js +5 -5
- package/js/src/pro/bybit.js +6 -6
- package/js/src/pro/cex.js +7 -7
- package/js/src/pro/coinbase.js +5 -5
- package/js/src/pro/coinbasepro.js +6 -6
- package/js/src/pro/coinex.js +5 -5
- package/js/src/pro/cryptocom.js +10 -10
- package/js/src/pro/currencycom.js +4 -4
- package/js/src/pro/deribit.js +6 -6
- package/js/src/pro/exmo.js +5 -5
- package/js/src/pro/gate.js +7 -7
- package/js/src/pro/gemini.js +3 -3
- package/js/src/pro/hitbtc.js +3 -3
- package/js/src/pro/hollaex.js +5 -5
- package/js/src/pro/huobi.js +6 -6
- package/js/src/pro/huobijp.js +3 -3
- package/js/src/pro/idex.js +4 -4
- package/js/src/pro/independentreserve.js +2 -2
- package/js/src/pro/kraken.js +12 -12
- package/js/src/pro/krakenfutures.js +7 -7
- package/js/src/pro/kucoin.js +6 -6
- package/js/src/pro/kucoinfutures.js +6 -5
- package/js/src/pro/luno.js +2 -2
- package/js/src/pro/mexc.js +6 -6
- package/js/src/pro/ndax.js +3 -3
- package/js/src/pro/okcoin.js +5 -5
- package/js/src/pro/okx.d.ts +1 -1
- package/js/src/pro/okx.js +19 -18
- package/js/src/pro/phemex.js +6 -6
- 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 +6 -6
- package/js/src/pro/whitebit.js +6 -6
- package/js/src/probit.js +19 -19
- package/js/src/tidex.js +13 -13
- package/js/src/timex.js +16 -16
- package/js/src/tokocrypto.js +18 -18
- package/js/src/upbit.js +20 -20
- package/js/src/wavesexchange.js +16 -16
- package/js/src/wazirx.js +12 -12
- package/js/src/whitebit.js +24 -24
- package/js/src/woo.js +30 -24
- package/js/src/yobit.js +16 -16
- package/js/src/zaif.js +10 -10
- package/js/src/zonda.js +15 -15
- package/package.json +1 -1
- package/skip-tests.json +2 -0
package/dist/cjs/src/novadax.js
CHANGED
|
@@ -360,7 +360,7 @@ class novadax extends novadax$1 {
|
|
|
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
362
|
* @param {object} [params] extra parameters specific to the novadax api endpoint
|
|
363
|
-
* @returns {object} a [ticker structure]{@link https://
|
|
363
|
+
* @returns {object} a [ticker structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
|
|
364
364
|
*/
|
|
365
365
|
await this.loadMarkets();
|
|
366
366
|
const market = this.market(symbol);
|
|
@@ -397,7 +397,7 @@ class novadax extends novadax$1 {
|
|
|
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
399
|
* @param {object} [params] extra parameters specific to the novadax api endpoint
|
|
400
|
-
* @returns {object} a dictionary of [ticker structures]{@link https://
|
|
400
|
+
* @returns {object} a dictionary of [ticker structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
|
|
401
401
|
*/
|
|
402
402
|
await this.loadMarkets();
|
|
403
403
|
symbols = this.marketSymbols(symbols);
|
|
@@ -440,7 +440,7 @@ class novadax extends novadax$1 {
|
|
|
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
442
|
* @param {object} [params] extra parameters specific to the novadax api endpoint
|
|
443
|
-
* @returns {object} A dictionary of [order book structures]{@link https://
|
|
443
|
+
* @returns {object} A dictionary of [order book structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-book-structure} indexed by market symbols
|
|
444
444
|
*/
|
|
445
445
|
await this.loadMarkets();
|
|
446
446
|
const market = this.market(symbol);
|
|
@@ -562,7 +562,7 @@ class novadax extends novadax$1 {
|
|
|
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
564
|
* @param {object} [params] extra parameters specific to the novadax api endpoint
|
|
565
|
-
* @returns {Trade[]} a list of [trade structures]{@link https://
|
|
565
|
+
* @returns {Trade[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#public-trades}
|
|
566
566
|
*/
|
|
567
567
|
await this.loadMarkets();
|
|
568
568
|
const market = this.market(symbol);
|
|
@@ -694,7 +694,7 @@ class novadax extends novadax$1 {
|
|
|
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
696
|
* @param {object} [params] extra parameters specific to the novadax api endpoint
|
|
697
|
-
* @returns {object} a [balance structure]{@link https://
|
|
697
|
+
* @returns {object} a [balance structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#balance-structure}
|
|
698
698
|
*/
|
|
699
699
|
await this.loadMarkets();
|
|
700
700
|
const response = await this.privateGetAccountGetBalance(params);
|
|
@@ -724,9 +724,9 @@ class novadax extends novadax$1 {
|
|
|
724
724
|
* @param {string} type 'market' or 'limit'
|
|
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
|
-
* @param {float} price the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
|
|
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
728
|
* @param {object} [params] extra parameters specific to the novadax api endpoint
|
|
729
|
-
* @returns {object} an [order structure]{@link https://
|
|
729
|
+
* @returns {object} an [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
730
730
|
*/
|
|
731
731
|
await this.loadMarkets();
|
|
732
732
|
const market = this.market(symbol);
|
|
@@ -823,7 +823,7 @@ class novadax extends novadax$1 {
|
|
|
823
823
|
* @param {string} id order id
|
|
824
824
|
* @param {string} symbol not used by novadax cancelOrder ()
|
|
825
825
|
* @param {object} [params] extra parameters specific to the novadax api endpoint
|
|
826
|
-
* @returns {object} An [order structure]{@link https://
|
|
826
|
+
* @returns {object} An [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
827
827
|
*/
|
|
828
828
|
await this.loadMarkets();
|
|
829
829
|
const request = {
|
|
@@ -850,7 +850,7 @@ class novadax extends novadax$1 {
|
|
|
850
850
|
* @see https://doc.novadax.com/en-US/#get-order-details
|
|
851
851
|
* @param {string} symbol not used by novadax fetchOrder
|
|
852
852
|
* @param {object} [params] extra parameters specific to the novadax api endpoint
|
|
853
|
-
* @returns {object} An [order structure]{@link https://
|
|
853
|
+
* @returns {object} An [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
854
854
|
*/
|
|
855
855
|
await this.loadMarkets();
|
|
856
856
|
const request = {
|
|
@@ -891,7 +891,7 @@ class novadax extends novadax$1 {
|
|
|
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
893
|
* @param {object} [params] extra parameters specific to the novadax api endpoint
|
|
894
|
-
* @returns {Order[]} a list of [order structures]{@link https://
|
|
894
|
+
* @returns {Order[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
895
895
|
*/
|
|
896
896
|
await this.loadMarkets();
|
|
897
897
|
const request = {
|
|
@@ -951,7 +951,7 @@ class novadax extends novadax$1 {
|
|
|
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
953
|
* @param {object} [params] extra parameters specific to the novadax api endpoint
|
|
954
|
-
* @returns {Order[]} a list of [order structures]{@link https://
|
|
954
|
+
* @returns {Order[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
955
955
|
*/
|
|
956
956
|
const request = {
|
|
957
957
|
'status': 'SUBMITTED,PROCESSING,PARTIAL_FILLED,CANCELING',
|
|
@@ -968,7 +968,7 @@ class novadax extends novadax$1 {
|
|
|
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
970
|
* @param {object} [params] extra parameters specific to the novadax api endpoint
|
|
971
|
-
* @returns {Order[]} a list of [order structures]{@link https://
|
|
971
|
+
* @returns {Order[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
972
972
|
*/
|
|
973
973
|
const request = {
|
|
974
974
|
'status': 'FILLED,CANCELED,REJECTED',
|
|
@@ -986,7 +986,7 @@ class novadax extends novadax$1 {
|
|
|
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
988
|
* @param {object} [params] extra parameters specific to the novadax api endpoint
|
|
989
|
-
* @returns {object[]} a list of [trade structures]{@link https://
|
|
989
|
+
* @returns {object[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#trade-structure}
|
|
990
990
|
*/
|
|
991
991
|
await this.loadMarkets();
|
|
992
992
|
const request = {
|
|
@@ -1118,7 +1118,7 @@ class novadax extends novadax$1 {
|
|
|
1118
1118
|
* @param {string} fromAccount account to transfer from
|
|
1119
1119
|
* @param {string} toAccount account to transfer to
|
|
1120
1120
|
* @param {object} [params] extra parameters specific to the novadax api endpoint
|
|
1121
|
-
* @returns {object} a [transfer structure]{@link https://
|
|
1121
|
+
* @returns {object} a [transfer structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#transfer-structure}
|
|
1122
1122
|
*/
|
|
1123
1123
|
await this.loadMarkets();
|
|
1124
1124
|
const currency = this.currency(code);
|
|
@@ -1193,7 +1193,7 @@ class novadax extends novadax$1 {
|
|
|
1193
1193
|
* @param {string} address the address to withdraw to
|
|
1194
1194
|
* @param {string} tag
|
|
1195
1195
|
* @param {object} [params] extra parameters specific to the novadax api endpoint
|
|
1196
|
-
* @returns {object} a [transaction structure]{@link https://
|
|
1196
|
+
* @returns {object} a [transaction structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#transaction-structure}
|
|
1197
1197
|
*/
|
|
1198
1198
|
[tag, params] = this.handleWithdrawTagAndParams(tag, params);
|
|
1199
1199
|
await this.loadMarkets();
|
|
@@ -1223,7 +1223,7 @@ class novadax extends novadax$1 {
|
|
|
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
1225
|
* @param {object} [params] extra parameters specific to the novadax api endpoint
|
|
1226
|
-
* @returns {object} a dictionary of [account structures]{@link https://
|
|
1226
|
+
* @returns {object} a dictionary of [account structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#account-structure} indexed by the account type
|
|
1227
1227
|
*/
|
|
1228
1228
|
const response = await this.privateGetAccountSubs(params);
|
|
1229
1229
|
//
|
|
@@ -1265,7 +1265,7 @@ class novadax extends novadax$1 {
|
|
|
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
1267
|
* @param {object} [params] extra parameters specific to the novadax api endpoint
|
|
1268
|
-
* @returns {object[]} a list of [transaction structures]{@link https://
|
|
1268
|
+
* @returns {object[]} a list of [transaction structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#transaction-structure}
|
|
1269
1269
|
*/
|
|
1270
1270
|
const request = {
|
|
1271
1271
|
'type': 'coin_in',
|
|
@@ -1282,7 +1282,7 @@ class novadax extends novadax$1 {
|
|
|
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
1284
|
* @param {object} [params] extra parameters specific to the novadax api endpoint
|
|
1285
|
-
* @returns {object[]} a list of [transaction structures]{@link https://
|
|
1285
|
+
* @returns {object[]} a list of [transaction structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#transaction-structure}
|
|
1286
1286
|
*/
|
|
1287
1287
|
const request = {
|
|
1288
1288
|
'type': 'coin_out',
|
|
@@ -1299,7 +1299,7 @@ class novadax extends novadax$1 {
|
|
|
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
1301
|
* @param {object} [params] extra parameters specific to the novadax api endpoint
|
|
1302
|
-
* @returns {object} a list of [transaction structure]{@link https://
|
|
1302
|
+
* @returns {object} a list of [transaction structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#transaction-structure}
|
|
1303
1303
|
*/
|
|
1304
1304
|
await this.loadMarkets();
|
|
1305
1305
|
const request = {
|
|
@@ -1437,7 +1437,7 @@ class novadax extends novadax$1 {
|
|
|
1437
1437
|
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
1438
1438
|
* @param {int} [limit] the maximum number of trades structures to retrieve
|
|
1439
1439
|
* @param {object} [params] extra parameters specific to the novadax api endpoint
|
|
1440
|
-
* @returns {Trade[]} a list of [trade structures]{@link https://
|
|
1440
|
+
* @returns {Trade[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#trade-structure}
|
|
1441
1441
|
*/
|
|
1442
1442
|
await this.loadMarkets();
|
|
1443
1443
|
const request = {
|
package/dist/cjs/src/oceanex.js
CHANGED
|
@@ -240,7 +240,7 @@ class oceanex extends oceanex$1 {
|
|
|
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
242
|
* @param {object} [params] extra parameters specific to the oceanex api endpoint
|
|
243
|
-
* @returns {object} a [ticker structure]{@link https://
|
|
243
|
+
* @returns {object} a [ticker structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
|
|
244
244
|
*/
|
|
245
245
|
await this.loadMarkets();
|
|
246
246
|
const market = this.market(symbol);
|
|
@@ -276,7 +276,7 @@ class oceanex extends oceanex$1 {
|
|
|
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
278
|
* @param {object} [params] extra parameters specific to the oceanex api endpoint
|
|
279
|
-
* @returns {object} a dictionary of [ticker structures]{@link https://
|
|
279
|
+
* @returns {object} a dictionary of [ticker structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
|
|
280
280
|
*/
|
|
281
281
|
await this.loadMarkets();
|
|
282
282
|
symbols = this.marketSymbols(symbols);
|
|
@@ -363,7 +363,7 @@ class oceanex extends oceanex$1 {
|
|
|
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
365
|
* @param {object} [params] extra parameters specific to the oceanex api endpoint
|
|
366
|
-
* @returns {object} A dictionary of [order book structures]{@link https://
|
|
366
|
+
* @returns {object} A dictionary of [order book structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-book-structure} indexed by market symbols
|
|
367
367
|
*/
|
|
368
368
|
await this.loadMarkets();
|
|
369
369
|
const market = this.market(symbol);
|
|
@@ -406,7 +406,7 @@ class oceanex extends oceanex$1 {
|
|
|
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
408
|
* @param {object} [params] extra parameters specific to the oceanex api endpoint
|
|
409
|
-
* @returns {object} a dictionary of [order book structures]{@link https://
|
|
409
|
+
* @returns {object} a dictionary of [order book structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-book-structure} indexed by market symbol
|
|
410
410
|
*/
|
|
411
411
|
await this.loadMarkets();
|
|
412
412
|
if (symbols === undefined) {
|
|
@@ -464,7 +464,7 @@ class oceanex extends oceanex$1 {
|
|
|
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
466
|
* @param {object} [params] extra parameters specific to the oceanex api endpoint
|
|
467
|
-
* @returns {Trade[]} a list of [trade structures]{@link https://
|
|
467
|
+
* @returns {Trade[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#public-trades}
|
|
468
468
|
*/
|
|
469
469
|
await this.loadMarkets();
|
|
470
470
|
const market = this.market(symbol);
|
|
@@ -564,7 +564,7 @@ class oceanex extends oceanex$1 {
|
|
|
564
564
|
* @description fetch the trading fees for multiple markets
|
|
565
565
|
* @see https://api.oceanex.pro/doc/v1/#trading-fees-post
|
|
566
566
|
* @param {object} [params] extra parameters specific to the oceanex api endpoint
|
|
567
|
-
* @returns {object} a dictionary of [fee structures]{@link https://
|
|
567
|
+
* @returns {object} a dictionary of [fee structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#fee-structure} indexed by market symbols
|
|
568
568
|
*/
|
|
569
569
|
const response = await this.publicGetFeesTrading(params);
|
|
570
570
|
const data = this.safeValue(response, 'data', []);
|
|
@@ -611,7 +611,7 @@ class oceanex extends oceanex$1 {
|
|
|
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
613
|
* @param {object} [params] extra parameters specific to the oceanex api endpoint
|
|
614
|
-
* @returns {object} a [balance structure]{@link https://
|
|
614
|
+
* @returns {object} a [balance structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#balance-structure}
|
|
615
615
|
*/
|
|
616
616
|
await this.loadMarkets();
|
|
617
617
|
const response = await this.privateGetMembersMe(params);
|
|
@@ -627,9 +627,9 @@ class oceanex extends oceanex$1 {
|
|
|
627
627
|
* @param {string} type 'market' or 'limit'
|
|
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
|
-
* @param {float} price the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
|
|
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
631
|
* @param {object} [params] extra parameters specific to the oceanex api endpoint
|
|
632
|
-
* @returns {object} an [order structure]{@link https://
|
|
632
|
+
* @returns {object} an [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
633
633
|
*/
|
|
634
634
|
await this.loadMarkets();
|
|
635
635
|
const market = this.market(symbol);
|
|
@@ -654,7 +654,7 @@ class oceanex extends oceanex$1 {
|
|
|
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
656
|
* @param {object} [params] extra parameters specific to the oceanex api endpoint
|
|
657
|
-
* @returns {object} An [order structure]{@link https://
|
|
657
|
+
* @returns {object} An [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
658
658
|
*/
|
|
659
659
|
await this.loadMarkets();
|
|
660
660
|
let market = undefined;
|
|
@@ -688,7 +688,7 @@ class oceanex extends oceanex$1 {
|
|
|
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
690
|
* @param {object} [params] extra parameters specific to the oceanex api endpoint
|
|
691
|
-
* @returns {Order[]} a list of [order structures]{@link https://
|
|
691
|
+
* @returns {Order[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
692
692
|
*/
|
|
693
693
|
const request = {
|
|
694
694
|
'states': ['wait'],
|
|
@@ -705,7 +705,7 @@ class oceanex extends oceanex$1 {
|
|
|
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
707
|
* @param {object} [params] extra parameters specific to the oceanex api endpoint
|
|
708
|
-
* @returns {Order[]} a list of [order structures]{@link https://
|
|
708
|
+
* @returns {Order[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
709
709
|
*/
|
|
710
710
|
const request = {
|
|
711
711
|
'states': ['done', 'cancel'],
|
|
@@ -722,7 +722,7 @@ class oceanex extends oceanex$1 {
|
|
|
722
722
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
723
723
|
* @param {int} [limit] the maximum number of orde structures to retrieve
|
|
724
724
|
* @param {object} [params] extra parameters specific to the oceanex api endpoint
|
|
725
|
-
* @returns {Order[]} a list of [order structures]{@link https://
|
|
725
|
+
* @returns {Order[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
726
726
|
*/
|
|
727
727
|
if (symbol === undefined) {
|
|
728
728
|
throw new errors.ArgumentsRequired(this.id + ' fetchOrders() requires a `symbol` argument');
|
|
@@ -881,7 +881,7 @@ class oceanex extends oceanex$1 {
|
|
|
881
881
|
* @param {string} id order id
|
|
882
882
|
* @param {string} symbol not used by oceanex cancelOrder ()
|
|
883
883
|
* @param {object} [params] extra parameters specific to the oceanex api endpoint
|
|
884
|
-
* @returns {object} An [order structure]{@link https://
|
|
884
|
+
* @returns {object} An [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
885
885
|
*/
|
|
886
886
|
await this.loadMarkets();
|
|
887
887
|
const response = await this.privatePostOrderDelete(this.extend({ 'id': id }, params));
|
|
@@ -897,7 +897,7 @@ class oceanex extends oceanex$1 {
|
|
|
897
897
|
* @param {string[]} ids order ids
|
|
898
898
|
* @param {string} symbol not used by oceanex cancelOrders ()
|
|
899
899
|
* @param {object} [params] extra parameters specific to the oceanex api endpoint
|
|
900
|
-
* @returns {object} an list of [order structures]{@link https://
|
|
900
|
+
* @returns {object} an list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
901
901
|
*/
|
|
902
902
|
await this.loadMarkets();
|
|
903
903
|
const response = await this.privatePostOrderDeleteMulti(this.extend({ 'ids': ids }, params));
|
|
@@ -912,7 +912,7 @@ class oceanex extends oceanex$1 {
|
|
|
912
912
|
* @see https://api.oceanex.pro/doc/v1/#cancel-all-orders-post
|
|
913
913
|
* @param {string} symbol unified market symbol, only orders in the market of this symbol are cancelled when symbol is not undefined
|
|
914
914
|
* @param {object} [params] extra parameters specific to the oceanex api endpoint
|
|
915
|
-
* @returns {object[]} a list of [order structures]{@link https://
|
|
915
|
+
* @returns {object[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
916
916
|
*/
|
|
917
917
|
await this.loadMarkets();
|
|
918
918
|
const response = await this.privatePostOrdersClear(params);
|
package/dist/cjs/src/okcoin.js
CHANGED
|
@@ -1170,7 +1170,7 @@ class okcoin extends okcoin$1 {
|
|
|
1170
1170
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
1171
1171
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
1172
1172
|
* @param {object} [params] extra parameters specific to the okcoin api endpoint
|
|
1173
|
-
* @returns {object} A dictionary of [order book structures]{@link https://
|
|
1173
|
+
* @returns {object} A dictionary of [order book structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-book-structure} indexed by market symbols
|
|
1174
1174
|
*/
|
|
1175
1175
|
await this.loadMarkets();
|
|
1176
1176
|
const market = this.market(symbol);
|
|
@@ -1265,7 +1265,7 @@ class okcoin extends okcoin$1 {
|
|
|
1265
1265
|
* @description fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
|
1266
1266
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
1267
1267
|
* @param {object} [params] extra parameters specific to the okcoin api endpoint
|
|
1268
|
-
* @returns {object} a [ticker structure]{@link https://
|
|
1268
|
+
* @returns {object} a [ticker structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
|
|
1269
1269
|
*/
|
|
1270
1270
|
await this.loadMarkets();
|
|
1271
1271
|
const market = this.market(symbol);
|
|
@@ -1311,7 +1311,7 @@ class okcoin extends okcoin$1 {
|
|
|
1311
1311
|
* @description fetches price tickers for multiple markets, statistical calculations with the information calculated over the past 24 hours each market
|
|
1312
1312
|
* @param {string[]|undefined} symbols unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
|
|
1313
1313
|
* @param {object} [params] extra parameters specific to the okcoin api endpoint
|
|
1314
|
-
* @returns {object} a dictionary of [ticker structures]{@link https://
|
|
1314
|
+
* @returns {object} a dictionary of [ticker structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
|
|
1315
1315
|
*/
|
|
1316
1316
|
symbols = this.marketSymbols(symbols);
|
|
1317
1317
|
const first = this.safeString(symbols, 0);
|
|
@@ -1437,7 +1437,7 @@ class okcoin extends okcoin$1 {
|
|
|
1437
1437
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
1438
1438
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
1439
1439
|
* @param {object} [params] extra parameters specific to the okcoin api endpoint
|
|
1440
|
-
* @returns {Trade[]} a list of [trade structures]{@link https://
|
|
1440
|
+
* @returns {Trade[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#public-trades}
|
|
1441
1441
|
*/
|
|
1442
1442
|
await this.loadMarkets();
|
|
1443
1443
|
const market = this.market(symbol);
|
|
@@ -1821,7 +1821,7 @@ class okcoin extends okcoin$1 {
|
|
|
1821
1821
|
* @name okcoin#fetchBalance
|
|
1822
1822
|
* @description query for balance and get the amount of funds available for trading or funds locked in orders
|
|
1823
1823
|
* @param {object} [params] extra parameters specific to the okcoin api endpoint
|
|
1824
|
-
* @returns {object} a [balance structure]{@link https://
|
|
1824
|
+
* @returns {object} a [balance structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#balance-structure}
|
|
1825
1825
|
*/
|
|
1826
1826
|
const defaultType = this.safeString2(this.options, 'fetchBalance', 'defaultType');
|
|
1827
1827
|
const type = this.safeString(params, 'type', defaultType);
|
|
@@ -1951,9 +1951,9 @@ class okcoin extends okcoin$1 {
|
|
|
1951
1951
|
* @param {string} type 'market' or 'limit'
|
|
1952
1952
|
* @param {string} side 'buy' or 'sell'
|
|
1953
1953
|
* @param {float} amount how much of currency you want to trade in units of base currency
|
|
1954
|
-
* @param {float} price the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
|
|
1954
|
+
* @param {float} [price] the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
|
|
1955
1955
|
* @param {object} [params] extra parameters specific to the okcoin api endpoint
|
|
1956
|
-
* @returns {object} an [order structure]{@link https://
|
|
1956
|
+
* @returns {object} an [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
1957
1957
|
*/
|
|
1958
1958
|
await this.loadMarkets();
|
|
1959
1959
|
const market = this.market(symbol);
|
|
@@ -2048,7 +2048,7 @@ class okcoin extends okcoin$1 {
|
|
|
2048
2048
|
* @param {string} id order id
|
|
2049
2049
|
* @param {string} symbol unified symbol of the market the order was made in
|
|
2050
2050
|
* @param {object} [params] extra parameters specific to the okcoin api endpoint
|
|
2051
|
-
* @returns {object} An [order structure]{@link https://
|
|
2051
|
+
* @returns {object} An [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
2052
2052
|
*/
|
|
2053
2053
|
if (symbol === undefined) {
|
|
2054
2054
|
throw new errors.ArgumentsRequired(this.id + ' cancelOrder() requires a symbol argument');
|
|
@@ -2282,7 +2282,7 @@ class okcoin extends okcoin$1 {
|
|
|
2282
2282
|
* @description fetches information on an order made by the user
|
|
2283
2283
|
* @param {string} symbol unified symbol of the market the order was made in
|
|
2284
2284
|
* @param {object} [params] extra parameters specific to the okcoin api endpoint
|
|
2285
|
-
* @returns {object} An [order structure]{@link https://
|
|
2285
|
+
* @returns {object} An [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
2286
2286
|
*/
|
|
2287
2287
|
if (symbol === undefined) {
|
|
2288
2288
|
throw new errors.ArgumentsRequired(this.id + ' fetchOrder() requires a symbol argument');
|
|
@@ -2485,7 +2485,7 @@ class okcoin extends okcoin$1 {
|
|
|
2485
2485
|
* @param {int} [since] the earliest time in ms to fetch open orders for
|
|
2486
2486
|
* @param {int} [limit] the maximum number of open orders structures to retrieve
|
|
2487
2487
|
* @param {object} [params] extra parameters specific to the okcoin api endpoint
|
|
2488
|
-
* @returns {Order[]} a list of [order structures]{@link https://
|
|
2488
|
+
* @returns {Order[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
2489
2489
|
*/
|
|
2490
2490
|
// '-2': failed,
|
|
2491
2491
|
// '-1': cancelled,
|
|
@@ -2507,7 +2507,7 @@ class okcoin extends okcoin$1 {
|
|
|
2507
2507
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
2508
2508
|
* @param {int} [limit] the maximum number of orde structures to retrieve
|
|
2509
2509
|
* @param {object} [params] extra parameters specific to the okcoin api endpoint
|
|
2510
|
-
* @returns {Order[]} a list of [order structures]{@link https://
|
|
2510
|
+
* @returns {Order[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
2511
2511
|
*/
|
|
2512
2512
|
// '-2': failed,
|
|
2513
2513
|
// '-1': cancelled,
|
|
@@ -2551,7 +2551,7 @@ class okcoin extends okcoin$1 {
|
|
|
2551
2551
|
* @description fetch the deposit address for a currency associated with this account
|
|
2552
2552
|
* @param {string} code unified currency code
|
|
2553
2553
|
* @param {object} [params] extra parameters specific to the okcoin api endpoint
|
|
2554
|
-
* @returns {object} an [address structure]{@link https://
|
|
2554
|
+
* @returns {object} an [address structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#address-structure}
|
|
2555
2555
|
*/
|
|
2556
2556
|
await this.loadMarkets();
|
|
2557
2557
|
const parts = code.split('-');
|
|
@@ -2585,7 +2585,7 @@ class okcoin extends okcoin$1 {
|
|
|
2585
2585
|
* @param {string} fromAccount account to transfer from
|
|
2586
2586
|
* @param {string} toAccount account to transfer to
|
|
2587
2587
|
* @param {object} [params] extra parameters specific to the okcoin api endpoint
|
|
2588
|
-
* @returns {object} a [transfer structure]{@link https://
|
|
2588
|
+
* @returns {object} a [transfer structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#transfer-structure}
|
|
2589
2589
|
*/
|
|
2590
2590
|
await this.loadMarkets();
|
|
2591
2591
|
const currency = this.currency(code);
|
|
@@ -2663,7 +2663,7 @@ class okcoin extends okcoin$1 {
|
|
|
2663
2663
|
* @param {string} address the address to withdraw to
|
|
2664
2664
|
* @param {string} tag
|
|
2665
2665
|
* @param {object} [params] extra parameters specific to the okcoin api endpoint
|
|
2666
|
-
* @returns {object} a [transaction structure]{@link https://
|
|
2666
|
+
* @returns {object} a [transaction structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#transaction-structure}
|
|
2667
2667
|
*/
|
|
2668
2668
|
[tag, params] = this.handleWithdrawTagAndParams(tag, params);
|
|
2669
2669
|
this.checkAddress(address);
|
|
@@ -2716,7 +2716,7 @@ class okcoin extends okcoin$1 {
|
|
|
2716
2716
|
* @param {int} [since] the earliest time in ms to fetch deposits for
|
|
2717
2717
|
* @param {int} [limit] the maximum number of deposits structures to retrieve
|
|
2718
2718
|
* @param {object} [params] extra parameters specific to the okcoin api endpoint
|
|
2719
|
-
* @returns {object[]} a list of [transaction structures]{@link https://
|
|
2719
|
+
* @returns {object[]} a list of [transaction structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#transaction-structure}
|
|
2720
2720
|
*/
|
|
2721
2721
|
await this.loadMarkets();
|
|
2722
2722
|
const request = {};
|
|
@@ -2739,7 +2739,7 @@ class okcoin extends okcoin$1 {
|
|
|
2739
2739
|
* @param {int} [since] the earliest time in ms to fetch withdrawals for
|
|
2740
2740
|
* @param {int} [limit] the maximum number of withdrawals structures to retrieve
|
|
2741
2741
|
* @param {object} [params] extra parameters specific to the okcoin api endpoint
|
|
2742
|
-
* @returns {object[]} a list of [transaction structures]{@link https://
|
|
2742
|
+
* @returns {object[]} a list of [transaction structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#transaction-structure}
|
|
2743
2743
|
*/
|
|
2744
2744
|
await this.loadMarkets();
|
|
2745
2745
|
const request = {};
|
|
@@ -3052,7 +3052,7 @@ class okcoin extends okcoin$1 {
|
|
|
3052
3052
|
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
3053
3053
|
* @param {int} [limit] the maximum number of trades structures to retrieve
|
|
3054
3054
|
* @param {object} [params] extra parameters specific to the okcoin api endpoint
|
|
3055
|
-
* @returns {Trade[]} a list of [trade structures]{@link https://
|
|
3055
|
+
* @returns {Trade[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#trade-structure}
|
|
3056
3056
|
*/
|
|
3057
3057
|
// okex actually returns ledger entries instead of fills here, so each fill in the order
|
|
3058
3058
|
// is represented by two trades with opposite buy/sell sides, not one :\
|
|
@@ -3160,7 +3160,7 @@ class okcoin extends okcoin$1 {
|
|
|
3160
3160
|
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
3161
3161
|
* @param {int} [limit] the maximum number of trades to retrieve
|
|
3162
3162
|
* @param {object} [params] extra parameters specific to the okcoin api endpoint
|
|
3163
|
-
* @returns {object[]} a list of [trade structures]{@link https://
|
|
3163
|
+
* @returns {object[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#trade-structure}
|
|
3164
3164
|
*/
|
|
3165
3165
|
const request = {
|
|
3166
3166
|
// 'instrument_id': market['id'],
|
|
@@ -3178,7 +3178,7 @@ class okcoin extends okcoin$1 {
|
|
|
3178
3178
|
* @description fetch data on a single open contract trade position
|
|
3179
3179
|
* @param {string} symbol unified market symbol of the market the position is held in, default is undefined
|
|
3180
3180
|
* @param {object} [params] extra parameters specific to the okcoin api endpoint
|
|
3181
|
-
* @returns {object} a [position structure]{@link https://
|
|
3181
|
+
* @returns {object} a [position structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#position-structure}
|
|
3182
3182
|
*/
|
|
3183
3183
|
await this.loadMarkets();
|
|
3184
3184
|
const market = this.market(symbol);
|
|
@@ -3389,7 +3389,7 @@ class okcoin extends okcoin$1 {
|
|
|
3389
3389
|
* @description fetch all open positions
|
|
3390
3390
|
* @param {string[]|undefined} symbols not used by okcoin fetchPositions
|
|
3391
3391
|
* @param {object} [params] extra parameters specific to the okcoin api endpoint
|
|
3392
|
-
* @returns {object[]} a list of [position structure]{@link https://
|
|
3392
|
+
* @returns {object[]} a list of [position structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#position-structure}
|
|
3393
3393
|
*/
|
|
3394
3394
|
await this.loadMarkets();
|
|
3395
3395
|
let method = undefined;
|
|
@@ -3469,7 +3469,7 @@ class okcoin extends okcoin$1 {
|
|
|
3469
3469
|
* @param {int} [since] timestamp in ms of the earliest ledger entry, default is undefined
|
|
3470
3470
|
* @param {int} [limit] max number of ledger entrys to return, default is undefined
|
|
3471
3471
|
* @param {object} [params] extra parameters specific to the okcoin api endpoint
|
|
3472
|
-
* @returns {object} a [ledger structure]{@link https://
|
|
3472
|
+
* @returns {object} a [ledger structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#ledger-structure}
|
|
3473
3473
|
*/
|
|
3474
3474
|
await this.loadMarkets();
|
|
3475
3475
|
const defaultType = this.safeString2(this.options, 'fetchLedger', 'defaultType');
|