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/js/src/novadax.js
CHANGED
|
@@ -363,7 +363,7 @@ export default class novadax extends Exchange {
|
|
|
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
365
|
* @param {object} [params] extra parameters specific to the novadax api endpoint
|
|
366
|
-
* @returns {object} a [ticker structure]{@link https://
|
|
366
|
+
* @returns {object} a [ticker structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
|
|
367
367
|
*/
|
|
368
368
|
await this.loadMarkets();
|
|
369
369
|
const market = this.market(symbol);
|
|
@@ -400,7 +400,7 @@ export default class novadax extends Exchange {
|
|
|
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
402
|
* @param {object} [params] extra parameters specific to the novadax api endpoint
|
|
403
|
-
* @returns {object} a dictionary of [ticker structures]{@link https://
|
|
403
|
+
* @returns {object} a dictionary of [ticker structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
|
|
404
404
|
*/
|
|
405
405
|
await this.loadMarkets();
|
|
406
406
|
symbols = this.marketSymbols(symbols);
|
|
@@ -443,7 +443,7 @@ export default class novadax extends Exchange {
|
|
|
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
445
|
* @param {object} [params] extra parameters specific to the novadax api endpoint
|
|
446
|
-
* @returns {object} A dictionary of [order book structures]{@link https://
|
|
446
|
+
* @returns {object} A dictionary of [order book structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-book-structure} indexed by market symbols
|
|
447
447
|
*/
|
|
448
448
|
await this.loadMarkets();
|
|
449
449
|
const market = this.market(symbol);
|
|
@@ -565,7 +565,7 @@ export default class novadax extends Exchange {
|
|
|
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
567
|
* @param {object} [params] extra parameters specific to the novadax api endpoint
|
|
568
|
-
* @returns {Trade[]} a list of [trade structures]{@link https://
|
|
568
|
+
* @returns {Trade[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#public-trades}
|
|
569
569
|
*/
|
|
570
570
|
await this.loadMarkets();
|
|
571
571
|
const market = this.market(symbol);
|
|
@@ -697,7 +697,7 @@ export default class novadax extends Exchange {
|
|
|
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
699
|
* @param {object} [params] extra parameters specific to the novadax api endpoint
|
|
700
|
-
* @returns {object} a [balance structure]{@link https://
|
|
700
|
+
* @returns {object} a [balance structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#balance-structure}
|
|
701
701
|
*/
|
|
702
702
|
await this.loadMarkets();
|
|
703
703
|
const response = await this.privateGetAccountGetBalance(params);
|
|
@@ -727,9 +727,9 @@ export default class novadax extends Exchange {
|
|
|
727
727
|
* @param {string} type 'market' or 'limit'
|
|
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
|
-
* @param {float} price the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
|
|
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
731
|
* @param {object} [params] extra parameters specific to the novadax api endpoint
|
|
732
|
-
* @returns {object} an [order structure]{@link https://
|
|
732
|
+
* @returns {object} an [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
733
733
|
*/
|
|
734
734
|
await this.loadMarkets();
|
|
735
735
|
const market = this.market(symbol);
|
|
@@ -826,7 +826,7 @@ export default class novadax extends Exchange {
|
|
|
826
826
|
* @param {string} id order id
|
|
827
827
|
* @param {string} symbol not used by novadax cancelOrder ()
|
|
828
828
|
* @param {object} [params] extra parameters specific to the novadax api endpoint
|
|
829
|
-
* @returns {object} An [order structure]{@link https://
|
|
829
|
+
* @returns {object} An [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
830
830
|
*/
|
|
831
831
|
await this.loadMarkets();
|
|
832
832
|
const request = {
|
|
@@ -853,7 +853,7 @@ export default class novadax extends Exchange {
|
|
|
853
853
|
* @see https://doc.novadax.com/en-US/#get-order-details
|
|
854
854
|
* @param {string} symbol not used by novadax fetchOrder
|
|
855
855
|
* @param {object} [params] extra parameters specific to the novadax api endpoint
|
|
856
|
-
* @returns {object} An [order structure]{@link https://
|
|
856
|
+
* @returns {object} An [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
857
857
|
*/
|
|
858
858
|
await this.loadMarkets();
|
|
859
859
|
const request = {
|
|
@@ -894,7 +894,7 @@ export default class novadax extends Exchange {
|
|
|
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
896
|
* @param {object} [params] extra parameters specific to the novadax api endpoint
|
|
897
|
-
* @returns {Order[]} a list of [order structures]{@link https://
|
|
897
|
+
* @returns {Order[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
898
898
|
*/
|
|
899
899
|
await this.loadMarkets();
|
|
900
900
|
const request = {
|
|
@@ -954,7 +954,7 @@ export default class novadax extends Exchange {
|
|
|
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
956
|
* @param {object} [params] extra parameters specific to the novadax api endpoint
|
|
957
|
-
* @returns {Order[]} a list of [order structures]{@link https://
|
|
957
|
+
* @returns {Order[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
958
958
|
*/
|
|
959
959
|
const request = {
|
|
960
960
|
'status': 'SUBMITTED,PROCESSING,PARTIAL_FILLED,CANCELING',
|
|
@@ -971,7 +971,7 @@ export default class novadax extends Exchange {
|
|
|
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
973
|
* @param {object} [params] extra parameters specific to the novadax api endpoint
|
|
974
|
-
* @returns {Order[]} a list of [order structures]{@link https://
|
|
974
|
+
* @returns {Order[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
975
975
|
*/
|
|
976
976
|
const request = {
|
|
977
977
|
'status': 'FILLED,CANCELED,REJECTED',
|
|
@@ -989,7 +989,7 @@ export default class novadax extends Exchange {
|
|
|
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
991
|
* @param {object} [params] extra parameters specific to the novadax api endpoint
|
|
992
|
-
* @returns {object[]} a list of [trade structures]{@link https://
|
|
992
|
+
* @returns {object[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#trade-structure}
|
|
993
993
|
*/
|
|
994
994
|
await this.loadMarkets();
|
|
995
995
|
const request = {
|
|
@@ -1121,7 +1121,7 @@ export default class novadax extends Exchange {
|
|
|
1121
1121
|
* @param {string} fromAccount account to transfer from
|
|
1122
1122
|
* @param {string} toAccount account to transfer to
|
|
1123
1123
|
* @param {object} [params] extra parameters specific to the novadax api endpoint
|
|
1124
|
-
* @returns {object} a [transfer structure]{@link https://
|
|
1124
|
+
* @returns {object} a [transfer structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#transfer-structure}
|
|
1125
1125
|
*/
|
|
1126
1126
|
await this.loadMarkets();
|
|
1127
1127
|
const currency = this.currency(code);
|
|
@@ -1196,7 +1196,7 @@ export default class novadax extends Exchange {
|
|
|
1196
1196
|
* @param {string} address the address to withdraw to
|
|
1197
1197
|
* @param {string} tag
|
|
1198
1198
|
* @param {object} [params] extra parameters specific to the novadax api endpoint
|
|
1199
|
-
* @returns {object} a [transaction structure]{@link https://
|
|
1199
|
+
* @returns {object} a [transaction structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#transaction-structure}
|
|
1200
1200
|
*/
|
|
1201
1201
|
[tag, params] = this.handleWithdrawTagAndParams(tag, params);
|
|
1202
1202
|
await this.loadMarkets();
|
|
@@ -1226,7 +1226,7 @@ export default class novadax extends Exchange {
|
|
|
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
1228
|
* @param {object} [params] extra parameters specific to the novadax api endpoint
|
|
1229
|
-
* @returns {object} a dictionary of [account structures]{@link https://
|
|
1229
|
+
* @returns {object} a dictionary of [account structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#account-structure} indexed by the account type
|
|
1230
1230
|
*/
|
|
1231
1231
|
const response = await this.privateGetAccountSubs(params);
|
|
1232
1232
|
//
|
|
@@ -1268,7 +1268,7 @@ export default class novadax extends Exchange {
|
|
|
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
1270
|
* @param {object} [params] extra parameters specific to the novadax api endpoint
|
|
1271
|
-
* @returns {object[]} a list of [transaction structures]{@link https://
|
|
1271
|
+
* @returns {object[]} a list of [transaction structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#transaction-structure}
|
|
1272
1272
|
*/
|
|
1273
1273
|
const request = {
|
|
1274
1274
|
'type': 'coin_in',
|
|
@@ -1285,7 +1285,7 @@ export default class novadax extends Exchange {
|
|
|
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
1287
|
* @param {object} [params] extra parameters specific to the novadax api endpoint
|
|
1288
|
-
* @returns {object[]} a list of [transaction structures]{@link https://
|
|
1288
|
+
* @returns {object[]} a list of [transaction structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#transaction-structure}
|
|
1289
1289
|
*/
|
|
1290
1290
|
const request = {
|
|
1291
1291
|
'type': 'coin_out',
|
|
@@ -1302,7 +1302,7 @@ export default class novadax extends Exchange {
|
|
|
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
1304
|
* @param {object} [params] extra parameters specific to the novadax api endpoint
|
|
1305
|
-
* @returns {object} a list of [transaction structure]{@link https://
|
|
1305
|
+
* @returns {object} a list of [transaction structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#transaction-structure}
|
|
1306
1306
|
*/
|
|
1307
1307
|
await this.loadMarkets();
|
|
1308
1308
|
const request = {
|
|
@@ -1440,7 +1440,7 @@ export default class novadax extends Exchange {
|
|
|
1440
1440
|
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
1441
1441
|
* @param {int} [limit] the maximum number of trades structures to retrieve
|
|
1442
1442
|
* @param {object} [params] extra parameters specific to the novadax api endpoint
|
|
1443
|
-
* @returns {Trade[]} a list of [trade structures]{@link https://
|
|
1443
|
+
* @returns {Trade[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#trade-structure}
|
|
1444
1444
|
*/
|
|
1445
1445
|
await this.loadMarkets();
|
|
1446
1446
|
const request = {
|
package/js/src/oceanex.js
CHANGED
|
@@ -243,7 +243,7 @@ export default class oceanex extends Exchange {
|
|
|
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
245
|
* @param {object} [params] extra parameters specific to the oceanex api endpoint
|
|
246
|
-
* @returns {object} a [ticker structure]{@link https://
|
|
246
|
+
* @returns {object} a [ticker structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
|
|
247
247
|
*/
|
|
248
248
|
await this.loadMarkets();
|
|
249
249
|
const market = this.market(symbol);
|
|
@@ -279,7 +279,7 @@ export default class oceanex extends Exchange {
|
|
|
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
281
|
* @param {object} [params] extra parameters specific to the oceanex api endpoint
|
|
282
|
-
* @returns {object} a dictionary of [ticker structures]{@link https://
|
|
282
|
+
* @returns {object} a dictionary of [ticker structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
|
|
283
283
|
*/
|
|
284
284
|
await this.loadMarkets();
|
|
285
285
|
symbols = this.marketSymbols(symbols);
|
|
@@ -366,7 +366,7 @@ export default class oceanex extends Exchange {
|
|
|
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
368
|
* @param {object} [params] extra parameters specific to the oceanex api endpoint
|
|
369
|
-
* @returns {object} A dictionary of [order book structures]{@link https://
|
|
369
|
+
* @returns {object} A dictionary of [order book structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-book-structure} indexed by market symbols
|
|
370
370
|
*/
|
|
371
371
|
await this.loadMarkets();
|
|
372
372
|
const market = this.market(symbol);
|
|
@@ -409,7 +409,7 @@ export default class oceanex extends Exchange {
|
|
|
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
411
|
* @param {object} [params] extra parameters specific to the oceanex api endpoint
|
|
412
|
-
* @returns {object} a dictionary of [order book structures]{@link https://
|
|
412
|
+
* @returns {object} a dictionary of [order book structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-book-structure} indexed by market symbol
|
|
413
413
|
*/
|
|
414
414
|
await this.loadMarkets();
|
|
415
415
|
if (symbols === undefined) {
|
|
@@ -467,7 +467,7 @@ export default class oceanex extends Exchange {
|
|
|
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
469
|
* @param {object} [params] extra parameters specific to the oceanex api endpoint
|
|
470
|
-
* @returns {Trade[]} a list of [trade structures]{@link https://
|
|
470
|
+
* @returns {Trade[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#public-trades}
|
|
471
471
|
*/
|
|
472
472
|
await this.loadMarkets();
|
|
473
473
|
const market = this.market(symbol);
|
|
@@ -567,7 +567,7 @@ export default class oceanex extends Exchange {
|
|
|
567
567
|
* @description fetch the trading fees for multiple markets
|
|
568
568
|
* @see https://api.oceanex.pro/doc/v1/#trading-fees-post
|
|
569
569
|
* @param {object} [params] extra parameters specific to the oceanex api endpoint
|
|
570
|
-
* @returns {object} a dictionary of [fee structures]{@link https://
|
|
570
|
+
* @returns {object} a dictionary of [fee structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#fee-structure} indexed by market symbols
|
|
571
571
|
*/
|
|
572
572
|
const response = await this.publicGetFeesTrading(params);
|
|
573
573
|
const data = this.safeValue(response, 'data', []);
|
|
@@ -614,7 +614,7 @@ export default class oceanex extends Exchange {
|
|
|
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
616
|
* @param {object} [params] extra parameters specific to the oceanex api endpoint
|
|
617
|
-
* @returns {object} a [balance structure]{@link https://
|
|
617
|
+
* @returns {object} a [balance structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#balance-structure}
|
|
618
618
|
*/
|
|
619
619
|
await this.loadMarkets();
|
|
620
620
|
const response = await this.privateGetMembersMe(params);
|
|
@@ -630,9 +630,9 @@ export default class oceanex extends Exchange {
|
|
|
630
630
|
* @param {string} type 'market' or 'limit'
|
|
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
|
-
* @param {float} price the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
|
|
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
634
|
* @param {object} [params] extra parameters specific to the oceanex api endpoint
|
|
635
|
-
* @returns {object} an [order structure]{@link https://
|
|
635
|
+
* @returns {object} an [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
636
636
|
*/
|
|
637
637
|
await this.loadMarkets();
|
|
638
638
|
const market = this.market(symbol);
|
|
@@ -657,7 +657,7 @@ export default class oceanex extends Exchange {
|
|
|
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
659
|
* @param {object} [params] extra parameters specific to the oceanex api endpoint
|
|
660
|
-
* @returns {object} An [order structure]{@link https://
|
|
660
|
+
* @returns {object} An [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
661
661
|
*/
|
|
662
662
|
await this.loadMarkets();
|
|
663
663
|
let market = undefined;
|
|
@@ -691,7 +691,7 @@ export default class oceanex extends Exchange {
|
|
|
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
693
|
* @param {object} [params] extra parameters specific to the oceanex api endpoint
|
|
694
|
-
* @returns {Order[]} a list of [order structures]{@link https://
|
|
694
|
+
* @returns {Order[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
695
695
|
*/
|
|
696
696
|
const request = {
|
|
697
697
|
'states': ['wait'],
|
|
@@ -708,7 +708,7 @@ export default class oceanex extends Exchange {
|
|
|
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
710
|
* @param {object} [params] extra parameters specific to the oceanex api endpoint
|
|
711
|
-
* @returns {Order[]} a list of [order structures]{@link https://
|
|
711
|
+
* @returns {Order[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
712
712
|
*/
|
|
713
713
|
const request = {
|
|
714
714
|
'states': ['done', 'cancel'],
|
|
@@ -725,7 +725,7 @@ export default class oceanex extends Exchange {
|
|
|
725
725
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
726
726
|
* @param {int} [limit] the maximum number of orde structures to retrieve
|
|
727
727
|
* @param {object} [params] extra parameters specific to the oceanex api endpoint
|
|
728
|
-
* @returns {Order[]} a list of [order structures]{@link https://
|
|
728
|
+
* @returns {Order[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
729
729
|
*/
|
|
730
730
|
if (symbol === undefined) {
|
|
731
731
|
throw new ArgumentsRequired(this.id + ' fetchOrders() requires a `symbol` argument');
|
|
@@ -884,7 +884,7 @@ export default class oceanex extends Exchange {
|
|
|
884
884
|
* @param {string} id order id
|
|
885
885
|
* @param {string} symbol not used by oceanex cancelOrder ()
|
|
886
886
|
* @param {object} [params] extra parameters specific to the oceanex api endpoint
|
|
887
|
-
* @returns {object} An [order structure]{@link https://
|
|
887
|
+
* @returns {object} An [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
888
888
|
*/
|
|
889
889
|
await this.loadMarkets();
|
|
890
890
|
const response = await this.privatePostOrderDelete(this.extend({ 'id': id }, params));
|
|
@@ -900,7 +900,7 @@ export default class oceanex extends Exchange {
|
|
|
900
900
|
* @param {string[]} ids order ids
|
|
901
901
|
* @param {string} symbol not used by oceanex cancelOrders ()
|
|
902
902
|
* @param {object} [params] extra parameters specific to the oceanex api endpoint
|
|
903
|
-
* @returns {object} an list of [order structures]{@link https://
|
|
903
|
+
* @returns {object} an list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
904
904
|
*/
|
|
905
905
|
await this.loadMarkets();
|
|
906
906
|
const response = await this.privatePostOrderDeleteMulti(this.extend({ 'ids': ids }, params));
|
|
@@ -915,7 +915,7 @@ export default class oceanex extends Exchange {
|
|
|
915
915
|
* @see https://api.oceanex.pro/doc/v1/#cancel-all-orders-post
|
|
916
916
|
* @param {string} symbol unified market symbol, only orders in the market of this symbol are cancelled when symbol is not undefined
|
|
917
917
|
* @param {object} [params] extra parameters specific to the oceanex api endpoint
|
|
918
|
-
* @returns {object[]} a list of [order structures]{@link https://
|
|
918
|
+
* @returns {object[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
919
919
|
*/
|
|
920
920
|
await this.loadMarkets();
|
|
921
921
|
const response = await this.privatePostOrdersClear(params);
|
package/js/src/okcoin.js
CHANGED
|
@@ -1173,7 +1173,7 @@ export default class okcoin extends Exchange {
|
|
|
1173
1173
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
1174
1174
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
1175
1175
|
* @param {object} [params] extra parameters specific to the okcoin api endpoint
|
|
1176
|
-
* @returns {object} A dictionary of [order book structures]{@link https://
|
|
1176
|
+
* @returns {object} A dictionary of [order book structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-book-structure} indexed by market symbols
|
|
1177
1177
|
*/
|
|
1178
1178
|
await this.loadMarkets();
|
|
1179
1179
|
const market = this.market(symbol);
|
|
@@ -1268,7 +1268,7 @@ export default class okcoin extends Exchange {
|
|
|
1268
1268
|
* @description fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
|
1269
1269
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
1270
1270
|
* @param {object} [params] extra parameters specific to the okcoin api endpoint
|
|
1271
|
-
* @returns {object} a [ticker structure]{@link https://
|
|
1271
|
+
* @returns {object} a [ticker structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
|
|
1272
1272
|
*/
|
|
1273
1273
|
await this.loadMarkets();
|
|
1274
1274
|
const market = this.market(symbol);
|
|
@@ -1314,7 +1314,7 @@ export default class okcoin extends Exchange {
|
|
|
1314
1314
|
* @description fetches price tickers for multiple markets, statistical calculations with the information calculated over the past 24 hours each market
|
|
1315
1315
|
* @param {string[]|undefined} symbols unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
|
|
1316
1316
|
* @param {object} [params] extra parameters specific to the okcoin api endpoint
|
|
1317
|
-
* @returns {object} a dictionary of [ticker structures]{@link https://
|
|
1317
|
+
* @returns {object} a dictionary of [ticker structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
|
|
1318
1318
|
*/
|
|
1319
1319
|
symbols = this.marketSymbols(symbols);
|
|
1320
1320
|
const first = this.safeString(symbols, 0);
|
|
@@ -1440,7 +1440,7 @@ export default class okcoin extends Exchange {
|
|
|
1440
1440
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
1441
1441
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
1442
1442
|
* @param {object} [params] extra parameters specific to the okcoin api endpoint
|
|
1443
|
-
* @returns {Trade[]} a list of [trade structures]{@link https://
|
|
1443
|
+
* @returns {Trade[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#public-trades}
|
|
1444
1444
|
*/
|
|
1445
1445
|
await this.loadMarkets();
|
|
1446
1446
|
const market = this.market(symbol);
|
|
@@ -1824,7 +1824,7 @@ export default class okcoin extends Exchange {
|
|
|
1824
1824
|
* @name okcoin#fetchBalance
|
|
1825
1825
|
* @description query for balance and get the amount of funds available for trading or funds locked in orders
|
|
1826
1826
|
* @param {object} [params] extra parameters specific to the okcoin api endpoint
|
|
1827
|
-
* @returns {object} a [balance structure]{@link https://
|
|
1827
|
+
* @returns {object} a [balance structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#balance-structure}
|
|
1828
1828
|
*/
|
|
1829
1829
|
const defaultType = this.safeString2(this.options, 'fetchBalance', 'defaultType');
|
|
1830
1830
|
const type = this.safeString(params, 'type', defaultType);
|
|
@@ -1954,9 +1954,9 @@ export default class okcoin extends Exchange {
|
|
|
1954
1954
|
* @param {string} type 'market' or 'limit'
|
|
1955
1955
|
* @param {string} side 'buy' or 'sell'
|
|
1956
1956
|
* @param {float} amount how much of currency you want to trade in units of base currency
|
|
1957
|
-
* @param {float} price the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
|
|
1957
|
+
* @param {float} [price] the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
|
|
1958
1958
|
* @param {object} [params] extra parameters specific to the okcoin api endpoint
|
|
1959
|
-
* @returns {object} an [order structure]{@link https://
|
|
1959
|
+
* @returns {object} an [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
1960
1960
|
*/
|
|
1961
1961
|
await this.loadMarkets();
|
|
1962
1962
|
const market = this.market(symbol);
|
|
@@ -2051,7 +2051,7 @@ export default class okcoin extends Exchange {
|
|
|
2051
2051
|
* @param {string} id order id
|
|
2052
2052
|
* @param {string} symbol unified symbol of the market the order was made in
|
|
2053
2053
|
* @param {object} [params] extra parameters specific to the okcoin api endpoint
|
|
2054
|
-
* @returns {object} An [order structure]{@link https://
|
|
2054
|
+
* @returns {object} An [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
2055
2055
|
*/
|
|
2056
2056
|
if (symbol === undefined) {
|
|
2057
2057
|
throw new ArgumentsRequired(this.id + ' cancelOrder() requires a symbol argument');
|
|
@@ -2285,7 +2285,7 @@ export default class okcoin extends Exchange {
|
|
|
2285
2285
|
* @description fetches information on an order made by the user
|
|
2286
2286
|
* @param {string} symbol unified symbol of the market the order was made in
|
|
2287
2287
|
* @param {object} [params] extra parameters specific to the okcoin api endpoint
|
|
2288
|
-
* @returns {object} An [order structure]{@link https://
|
|
2288
|
+
* @returns {object} An [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
2289
2289
|
*/
|
|
2290
2290
|
if (symbol === undefined) {
|
|
2291
2291
|
throw new ArgumentsRequired(this.id + ' fetchOrder() requires a symbol argument');
|
|
@@ -2488,7 +2488,7 @@ export default class okcoin extends Exchange {
|
|
|
2488
2488
|
* @param {int} [since] the earliest time in ms to fetch open orders for
|
|
2489
2489
|
* @param {int} [limit] the maximum number of open orders structures to retrieve
|
|
2490
2490
|
* @param {object} [params] extra parameters specific to the okcoin api endpoint
|
|
2491
|
-
* @returns {Order[]} a list of [order structures]{@link https://
|
|
2491
|
+
* @returns {Order[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
2492
2492
|
*/
|
|
2493
2493
|
// '-2': failed,
|
|
2494
2494
|
// '-1': cancelled,
|
|
@@ -2510,7 +2510,7 @@ export default class okcoin extends Exchange {
|
|
|
2510
2510
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
2511
2511
|
* @param {int} [limit] the maximum number of orde structures to retrieve
|
|
2512
2512
|
* @param {object} [params] extra parameters specific to the okcoin api endpoint
|
|
2513
|
-
* @returns {Order[]} a list of [order structures]{@link https://
|
|
2513
|
+
* @returns {Order[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
2514
2514
|
*/
|
|
2515
2515
|
// '-2': failed,
|
|
2516
2516
|
// '-1': cancelled,
|
|
@@ -2554,7 +2554,7 @@ export default class okcoin extends Exchange {
|
|
|
2554
2554
|
* @description fetch the deposit address for a currency associated with this account
|
|
2555
2555
|
* @param {string} code unified currency code
|
|
2556
2556
|
* @param {object} [params] extra parameters specific to the okcoin api endpoint
|
|
2557
|
-
* @returns {object} an [address structure]{@link https://
|
|
2557
|
+
* @returns {object} an [address structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#address-structure}
|
|
2558
2558
|
*/
|
|
2559
2559
|
await this.loadMarkets();
|
|
2560
2560
|
const parts = code.split('-');
|
|
@@ -2588,7 +2588,7 @@ export default class okcoin extends Exchange {
|
|
|
2588
2588
|
* @param {string} fromAccount account to transfer from
|
|
2589
2589
|
* @param {string} toAccount account to transfer to
|
|
2590
2590
|
* @param {object} [params] extra parameters specific to the okcoin api endpoint
|
|
2591
|
-
* @returns {object} a [transfer structure]{@link https://
|
|
2591
|
+
* @returns {object} a [transfer structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#transfer-structure}
|
|
2592
2592
|
*/
|
|
2593
2593
|
await this.loadMarkets();
|
|
2594
2594
|
const currency = this.currency(code);
|
|
@@ -2666,7 +2666,7 @@ export default class okcoin extends Exchange {
|
|
|
2666
2666
|
* @param {string} address the address to withdraw to
|
|
2667
2667
|
* @param {string} tag
|
|
2668
2668
|
* @param {object} [params] extra parameters specific to the okcoin api endpoint
|
|
2669
|
-
* @returns {object} a [transaction structure]{@link https://
|
|
2669
|
+
* @returns {object} a [transaction structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#transaction-structure}
|
|
2670
2670
|
*/
|
|
2671
2671
|
[tag, params] = this.handleWithdrawTagAndParams(tag, params);
|
|
2672
2672
|
this.checkAddress(address);
|
|
@@ -2719,7 +2719,7 @@ export default class okcoin extends Exchange {
|
|
|
2719
2719
|
* @param {int} [since] the earliest time in ms to fetch deposits for
|
|
2720
2720
|
* @param {int} [limit] the maximum number of deposits structures to retrieve
|
|
2721
2721
|
* @param {object} [params] extra parameters specific to the okcoin api endpoint
|
|
2722
|
-
* @returns {object[]} a list of [transaction structures]{@link https://
|
|
2722
|
+
* @returns {object[]} a list of [transaction structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#transaction-structure}
|
|
2723
2723
|
*/
|
|
2724
2724
|
await this.loadMarkets();
|
|
2725
2725
|
const request = {};
|
|
@@ -2742,7 +2742,7 @@ export default class okcoin extends Exchange {
|
|
|
2742
2742
|
* @param {int} [since] the earliest time in ms to fetch withdrawals for
|
|
2743
2743
|
* @param {int} [limit] the maximum number of withdrawals structures to retrieve
|
|
2744
2744
|
* @param {object} [params] extra parameters specific to the okcoin api endpoint
|
|
2745
|
-
* @returns {object[]} a list of [transaction structures]{@link https://
|
|
2745
|
+
* @returns {object[]} a list of [transaction structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#transaction-structure}
|
|
2746
2746
|
*/
|
|
2747
2747
|
await this.loadMarkets();
|
|
2748
2748
|
const request = {};
|
|
@@ -3055,7 +3055,7 @@ export default class okcoin extends Exchange {
|
|
|
3055
3055
|
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
3056
3056
|
* @param {int} [limit] the maximum number of trades structures to retrieve
|
|
3057
3057
|
* @param {object} [params] extra parameters specific to the okcoin api endpoint
|
|
3058
|
-
* @returns {Trade[]} a list of [trade structures]{@link https://
|
|
3058
|
+
* @returns {Trade[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#trade-structure}
|
|
3059
3059
|
*/
|
|
3060
3060
|
// okex actually returns ledger entries instead of fills here, so each fill in the order
|
|
3061
3061
|
// is represented by two trades with opposite buy/sell sides, not one :\
|
|
@@ -3163,7 +3163,7 @@ export default class okcoin extends Exchange {
|
|
|
3163
3163
|
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
3164
3164
|
* @param {int} [limit] the maximum number of trades to retrieve
|
|
3165
3165
|
* @param {object} [params] extra parameters specific to the okcoin api endpoint
|
|
3166
|
-
* @returns {object[]} a list of [trade structures]{@link https://
|
|
3166
|
+
* @returns {object[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#trade-structure}
|
|
3167
3167
|
*/
|
|
3168
3168
|
const request = {
|
|
3169
3169
|
// 'instrument_id': market['id'],
|
|
@@ -3181,7 +3181,7 @@ export default class okcoin extends Exchange {
|
|
|
3181
3181
|
* @description fetch data on a single open contract trade position
|
|
3182
3182
|
* @param {string} symbol unified market symbol of the market the position is held in, default is undefined
|
|
3183
3183
|
* @param {object} [params] extra parameters specific to the okcoin api endpoint
|
|
3184
|
-
* @returns {object} a [position structure]{@link https://
|
|
3184
|
+
* @returns {object} a [position structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#position-structure}
|
|
3185
3185
|
*/
|
|
3186
3186
|
await this.loadMarkets();
|
|
3187
3187
|
const market = this.market(symbol);
|
|
@@ -3392,7 +3392,7 @@ export default class okcoin extends Exchange {
|
|
|
3392
3392
|
* @description fetch all open positions
|
|
3393
3393
|
* @param {string[]|undefined} symbols not used by okcoin fetchPositions
|
|
3394
3394
|
* @param {object} [params] extra parameters specific to the okcoin api endpoint
|
|
3395
|
-
* @returns {object[]} a list of [position structure]{@link https://
|
|
3395
|
+
* @returns {object[]} a list of [position structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#position-structure}
|
|
3396
3396
|
*/
|
|
3397
3397
|
await this.loadMarkets();
|
|
3398
3398
|
let method = undefined;
|
|
@@ -3472,7 +3472,7 @@ export default class okcoin extends Exchange {
|
|
|
3472
3472
|
* @param {int} [since] timestamp in ms of the earliest ledger entry, default is undefined
|
|
3473
3473
|
* @param {int} [limit] max number of ledger entrys to return, default is undefined
|
|
3474
3474
|
* @param {object} [params] extra parameters specific to the okcoin api endpoint
|
|
3475
|
-
* @returns {object} a [ledger structure]{@link https://
|
|
3475
|
+
* @returns {object} a [ledger structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#ledger-structure}
|
|
3476
3476
|
*/
|
|
3477
3477
|
await this.loadMarkets();
|
|
3478
3478
|
const defaultType = this.safeString2(this.options, 'fetchLedger', 'defaultType');
|