ccxt 4.1.63 → 4.1.65
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -4
- package/dist/ccxt.browser.js +2769 -2653
- package/dist/ccxt.browser.min.js +3 -3
- package/dist/cjs/ccxt.js +1 -1
- package/dist/cjs/src/ace.js +13 -13
- package/dist/cjs/src/alpaca.js +10 -10
- package/dist/cjs/src/ascendex.js +33 -33
- package/dist/cjs/src/base/Exchange.js +6 -6
- package/dist/cjs/src/bigone.js +23 -23
- package/dist/cjs/src/binance.js +68 -68
- package/dist/cjs/src/binanceus.js +33 -3
- package/dist/cjs/src/bingx.js +33 -33
- package/dist/cjs/src/bit2c.js +11 -11
- package/dist/cjs/src/bitbank.js +14 -14
- package/dist/cjs/src/bitbns.js +15 -15
- package/dist/cjs/src/bitfinex.js +24 -24
- package/dist/cjs/src/bitfinex2.js +30 -30
- package/dist/cjs/src/bitflyer.js +17 -17
- package/dist/cjs/src/bitforex.js +12 -12
- package/dist/cjs/src/bitget.js +50 -50
- package/dist/cjs/src/bithumb.js +13 -13
- package/dist/cjs/src/bitmart.js +74 -59
- package/dist/cjs/src/bitmex.js +29 -28
- package/dist/cjs/src/bitopro.js +23 -23
- package/dist/cjs/src/bitpanda.js +25 -25
- package/dist/cjs/src/bitrue.js +26 -26
- package/dist/cjs/src/bitso.js +22 -22
- package/dist/cjs/src/bitstamp.js +24 -24
- package/dist/cjs/src/bittrex.js +31 -31
- package/dist/cjs/src/bitvavo.js +23 -23
- package/dist/cjs/src/bl3p.js +7 -7
- package/dist/cjs/src/blockchaincom.js +23 -23
- package/dist/cjs/src/btcalpha.js +17 -17
- package/dist/cjs/src/btcbox.js +9 -9
- package/dist/cjs/src/btcmarkets.js +19 -19
- package/dist/cjs/src/btcturk.js +13 -13
- package/dist/cjs/src/bybit.js +71 -67
- package/dist/cjs/src/cex.js +17 -17
- package/dist/cjs/src/coinbase.js +28 -28
- package/dist/cjs/src/coinbasepro.js +27 -27
- package/dist/cjs/src/coincheck.js +11 -11
- package/dist/cjs/src/coinex.js +42 -42
- package/dist/cjs/src/coinlist.js +29 -29
- package/dist/cjs/src/coinmate.js +14 -14
- package/dist/cjs/src/coinone.js +13 -13
- package/dist/cjs/src/coinsph.js +25 -25
- package/dist/cjs/src/coinspot.js +9 -9
- package/dist/cjs/src/cryptocom.js +33 -32
- package/dist/cjs/src/currencycom.js +24 -24
- package/dist/cjs/src/delta.js +29 -29
- package/dist/cjs/src/deribit.js +35 -35
- package/dist/cjs/src/digifinex.js +43 -43
- package/dist/cjs/src/exmo.js +30 -30
- package/dist/cjs/src/gate.js +39 -39
- package/dist/cjs/src/gemini.js +18 -18
- package/dist/cjs/src/hitbtc.js +40 -40
- package/dist/cjs/src/hollaex.js +26 -26
- package/dist/cjs/src/htx.js +48 -48
- package/dist/cjs/src/huobijp.js +24 -24
- package/dist/cjs/src/idex.js +23 -23
- package/dist/cjs/src/independentreserve.js +12 -12
- package/dist/cjs/src/indodax.js +16 -16
- package/dist/cjs/src/kraken.js +48 -30
- package/dist/cjs/src/krakenfutures.js +16 -16
- package/dist/cjs/src/kucoin.js +39 -39
- package/dist/cjs/src/kucoinfutures.js +24 -24
- package/dist/cjs/src/kuna.js +25 -25
- package/dist/cjs/src/latoken.js +20 -20
- package/dist/cjs/src/lbank.js +24 -24
- package/dist/cjs/src/luno.js +27 -28
- package/dist/cjs/src/lykke.js +18 -18
- package/dist/cjs/src/mercado.js +13 -13
- package/dist/cjs/src/mexc.js +47 -45
- package/dist/cjs/src/ndax.js +23 -23
- package/dist/cjs/src/novadax.js +23 -23
- package/dist/cjs/src/oceanex.js +19 -19
- package/dist/cjs/src/okcoin.js +25 -25
- package/dist/cjs/src/okx.js +53 -53
- package/dist/cjs/src/p2b.js +14 -14
- package/dist/cjs/src/paymium.js +10 -10
- package/dist/cjs/src/phemex.js +162 -123
- package/dist/cjs/src/poloniex.js +27 -27
- package/dist/cjs/src/poloniexfutures.js +21 -21
- package/dist/cjs/src/pro/alpaca.js +6 -6
- package/dist/cjs/src/pro/ascendex.js +5 -5
- package/dist/cjs/src/pro/binance.js +21 -21
- package/dist/cjs/src/pro/bingx.js +6 -6
- package/dist/cjs/src/pro/bitfinex.js +4 -4
- package/dist/cjs/src/pro/bitfinex2.js +7 -7
- package/dist/cjs/src/pro/bitget.js +12 -12
- package/dist/cjs/src/pro/bitmart.js +5 -5
- package/dist/cjs/src/pro/bitmex.js +8 -8
- package/dist/cjs/src/pro/bitopro.js +4 -4
- package/dist/cjs/src/pro/bitpanda.js +7 -7
- package/dist/cjs/src/pro/bitrue.js +2 -2
- package/dist/cjs/src/pro/bitstamp.js +3 -3
- package/dist/cjs/src/pro/bittrex.js +7 -7
- package/dist/cjs/src/pro/bitvavo.js +6 -6
- package/dist/cjs/src/pro/blockchaincom.js +6 -6
- package/dist/cjs/src/pro/bybit.js +12 -12
- package/dist/cjs/src/pro/cex.js +9 -9
- package/dist/cjs/src/pro/coinbase.js +6 -6
- package/dist/cjs/src/pro/coinbasepro.js +10 -10
- package/dist/cjs/src/pro/coinex.js +7 -7
- package/dist/cjs/src/pro/cryptocom.js +13 -13
- package/dist/cjs/src/pro/currencycom.js +5 -5
- package/dist/cjs/src/pro/deribit.js +7 -7
- package/dist/cjs/src/pro/exmo.js +5 -5
- package/dist/cjs/src/pro/gate.js +10 -10
- package/dist/cjs/src/pro/gemini.js +4 -4
- package/dist/cjs/src/pro/hitbtc.js +11 -11
- package/dist/cjs/src/pro/hollaex.js +5 -5
- package/dist/cjs/src/pro/htx.js +8 -8
- package/dist/cjs/src/pro/huobijp.js +4 -4
- package/dist/cjs/src/pro/idex.js +5 -5
- package/dist/cjs/src/pro/independentreserve.js +2 -2
- package/dist/cjs/src/pro/kraken.js +11 -11
- package/dist/cjs/src/pro/krakenfutures.js +12 -9
- package/dist/cjs/src/pro/kucoin.js +10 -10
- package/dist/cjs/src/pro/kucoinfutures.js +8 -8
- package/dist/cjs/src/pro/luno.js +4 -4
- package/dist/cjs/src/pro/mexc.js +7 -7
- package/dist/cjs/src/pro/ndax.js +4 -4
- package/dist/cjs/src/pro/okcoin.js +6 -6
- package/dist/cjs/src/pro/okx.js +16 -16
- package/dist/cjs/src/pro/phemex.js +7 -7
- package/dist/cjs/src/pro/poloniex.js +7 -7
- package/dist/cjs/src/pro/poloniexfutures.js +5 -5
- package/dist/cjs/src/pro/probit.js +6 -6
- package/dist/cjs/src/pro/upbit.js +3 -3
- package/dist/cjs/src/pro/wazirx.js +7 -7
- package/dist/cjs/src/pro/whitebit.js +7 -7
- package/dist/cjs/src/pro/woo.js +1 -1
- package/dist/cjs/src/probit.js +24 -24
- package/dist/cjs/src/tidex.js +15 -15
- package/dist/cjs/src/timex.js +19 -19
- package/dist/cjs/src/tokocrypto.js +22 -24
- package/dist/cjs/src/upbit.js +22 -22
- package/dist/cjs/src/wavesexchange.js +19 -19
- package/dist/cjs/src/wazirx.js +22 -16
- package/dist/cjs/src/whitebit.js +29 -29
- package/dist/cjs/src/woo.js +26 -26
- package/dist/cjs/src/yobit.js +17 -17
- package/dist/cjs/src/zaif.js +10 -10
- package/dist/cjs/src/zonda.js +16 -16
- package/doc/manual.rst +1 -1
- package/doc/readme.rst +1 -1
- package/js/ccxt.d.ts +1 -1
- package/js/ccxt.js +1 -1
- package/js/src/abstract/mexc.d.ts +2 -0
- package/js/src/ace.js +13 -13
- package/js/src/alpaca.js +10 -10
- package/js/src/ascendex.js +33 -33
- package/js/src/base/Exchange.js +6 -6
- package/js/src/bigone.js +23 -23
- package/js/src/binance.js +68 -68
- package/js/src/binanceus.js +33 -3
- package/js/src/bingx.js +33 -33
- package/js/src/bit2c.js +11 -11
- package/js/src/bitbank.js +14 -14
- package/js/src/bitbns.js +15 -15
- package/js/src/bitfinex.js +24 -24
- package/js/src/bitfinex2.js +30 -30
- package/js/src/bitflyer.js +17 -17
- package/js/src/bitforex.js +12 -12
- package/js/src/bitget.js +50 -50
- package/js/src/bithumb.js +13 -13
- package/js/src/bitmart.js +74 -59
- package/js/src/bitmex.js +29 -28
- package/js/src/bitopro.js +23 -23
- package/js/src/bitpanda.js +25 -25
- package/js/src/bitrue.js +26 -26
- package/js/src/bitso.js +22 -22
- package/js/src/bitstamp.js +24 -24
- package/js/src/bittrex.js +31 -31
- package/js/src/bitvavo.js +23 -23
- package/js/src/bl3p.js +7 -7
- package/js/src/blockchaincom.js +23 -23
- package/js/src/btcalpha.js +17 -17
- package/js/src/btcbox.js +9 -9
- package/js/src/btcmarkets.js +19 -19
- package/js/src/btcturk.js +13 -13
- package/js/src/bybit.js +71 -67
- package/js/src/cex.js +17 -17
- package/js/src/coinbase.js +28 -28
- package/js/src/coinbasepro.js +27 -27
- package/js/src/coincheck.js +11 -11
- package/js/src/coinex.js +42 -42
- package/js/src/coinlist.js +29 -29
- package/js/src/coinmate.js +14 -14
- package/js/src/coinone.js +13 -13
- package/js/src/coinsph.js +25 -25
- package/js/src/coinspot.js +9 -9
- package/js/src/cryptocom.js +33 -32
- package/js/src/currencycom.js +24 -24
- package/js/src/delta.js +29 -29
- package/js/src/deribit.js +35 -35
- package/js/src/digifinex.js +43 -43
- package/js/src/exmo.js +30 -30
- package/js/src/gate.js +39 -39
- package/js/src/gemini.js +18 -18
- package/js/src/hitbtc.js +40 -40
- package/js/src/hollaex.js +26 -26
- package/js/src/htx.js +48 -48
- package/js/src/huobijp.js +24 -24
- package/js/src/idex.js +23 -23
- package/js/src/independentreserve.js +12 -12
- package/js/src/indodax.js +16 -16
- package/js/src/kraken.js +48 -30
- package/js/src/krakenfutures.js +16 -16
- package/js/src/kucoin.js +39 -39
- package/js/src/kucoinfutures.js +24 -24
- package/js/src/kuna.js +25 -25
- package/js/src/latoken.js +20 -20
- package/js/src/lbank.js +24 -24
- package/js/src/luno.js +27 -28
- package/js/src/lykke.js +18 -18
- package/js/src/mercado.js +13 -13
- package/js/src/mexc.js +47 -45
- package/js/src/ndax.js +23 -23
- package/js/src/novadax.js +23 -23
- package/js/src/oceanex.js +19 -19
- package/js/src/okcoin.js +25 -25
- package/js/src/okx.js +53 -53
- package/js/src/p2b.js +14 -14
- package/js/src/paymium.js +10 -10
- package/js/src/phemex.js +162 -123
- package/js/src/poloniex.js +27 -27
- package/js/src/poloniexfutures.js +21 -21
- package/js/src/pro/alpaca.js +6 -6
- package/js/src/pro/ascendex.js +5 -5
- package/js/src/pro/binance.js +21 -21
- package/js/src/pro/bingx.js +6 -6
- package/js/src/pro/bitfinex.js +4 -4
- package/js/src/pro/bitfinex2.js +7 -7
- package/js/src/pro/bitget.js +12 -12
- package/js/src/pro/bitmart.js +5 -5
- package/js/src/pro/bitmex.js +8 -8
- package/js/src/pro/bitopro.js +4 -4
- package/js/src/pro/bitpanda.js +7 -7
- package/js/src/pro/bitrue.js +2 -2
- package/js/src/pro/bitstamp.js +3 -3
- package/js/src/pro/bittrex.js +7 -7
- package/js/src/pro/bitvavo.js +6 -6
- package/js/src/pro/blockchaincom.js +6 -6
- package/js/src/pro/bybit.js +12 -12
- package/js/src/pro/cex.js +9 -9
- package/js/src/pro/coinbase.js +6 -6
- package/js/src/pro/coinbasepro.js +10 -10
- package/js/src/pro/coinex.js +7 -7
- package/js/src/pro/cryptocom.js +13 -13
- package/js/src/pro/currencycom.js +5 -5
- package/js/src/pro/deribit.js +7 -7
- package/js/src/pro/exmo.js +5 -5
- package/js/src/pro/gate.js +10 -10
- package/js/src/pro/gemini.js +4 -4
- package/js/src/pro/hitbtc.js +11 -11
- package/js/src/pro/hollaex.js +5 -5
- package/js/src/pro/htx.js +8 -8
- package/js/src/pro/huobijp.js +4 -4
- package/js/src/pro/idex.js +5 -5
- package/js/src/pro/independentreserve.js +2 -2
- package/js/src/pro/kraken.js +11 -11
- package/js/src/pro/krakenfutures.js +12 -9
- package/js/src/pro/kucoin.js +10 -10
- package/js/src/pro/kucoinfutures.js +8 -8
- package/js/src/pro/luno.js +4 -4
- package/js/src/pro/mexc.js +7 -7
- package/js/src/pro/ndax.js +4 -4
- package/js/src/pro/okcoin.js +6 -6
- package/js/src/pro/okx.js +16 -16
- package/js/src/pro/phemex.js +7 -7
- package/js/src/pro/poloniex.js +7 -7
- package/js/src/pro/poloniexfutures.js +5 -5
- package/js/src/pro/probit.js +6 -6
- package/js/src/pro/upbit.js +3 -3
- package/js/src/pro/wazirx.js +7 -7
- package/js/src/pro/whitebit.js +7 -7
- package/js/src/pro/woo.js +1 -1
- package/js/src/probit.js +24 -24
- package/js/src/static_dependencies/jsencrypt/lib/jsbn/jsbn.d.ts +1 -1
- package/js/src/tidex.js +15 -15
- package/js/src/timex.js +19 -19
- package/js/src/tokocrypto.js +22 -24
- package/js/src/upbit.js +22 -22
- package/js/src/wavesexchange.js +19 -19
- package/js/src/wazirx.js +22 -16
- package/js/src/whitebit.js +29 -29
- package/js/src/woo.js +26 -26
- package/js/src/yobit.js +17 -17
- package/js/src/zaif.js +10 -10
- package/js/src/zonda.js +16 -16
- package/package.json +1 -1
package/js/src/alpaca.js
CHANGED
|
@@ -269,7 +269,7 @@ export default class alpaca extends Exchange {
|
|
|
269
269
|
* @method
|
|
270
270
|
* @name alpaca#fetchTime
|
|
271
271
|
* @description fetches the current integer timestamp in milliseconds from the exchange server
|
|
272
|
-
* @param {object} [params] extra parameters specific to the
|
|
272
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
273
273
|
* @returns {int} the current integer timestamp in milliseconds from the exchange server
|
|
274
274
|
*/
|
|
275
275
|
const response = await this.traderPrivateGetV2Clock(params);
|
|
@@ -420,7 +420,7 @@ export default class alpaca extends Exchange {
|
|
|
420
420
|
* @param {string} symbol unified symbol of the market to fetch trades for
|
|
421
421
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
422
422
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
423
|
-
* @param {object} [params] extra parameters specific to the
|
|
423
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
424
424
|
* @param {string} [params.loc] crypto location, default: us
|
|
425
425
|
* @param {string} [params.method] method, default: marketPublicGetV1beta3CryptoLocTrades
|
|
426
426
|
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=public-trades}
|
|
@@ -494,7 +494,7 @@ export default class alpaca extends Exchange {
|
|
|
494
494
|
* @see https://docs.alpaca.markets/reference/cryptolatestorderbooks
|
|
495
495
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
496
496
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
497
|
-
* @param {object} [params] extra parameters specific to the
|
|
497
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
498
498
|
* @param {string} [params.loc] crypto location, default: us
|
|
499
499
|
* @returns {object} A dictionary of [order book structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-book-structure} indexed by market symbols
|
|
500
500
|
*/
|
|
@@ -678,7 +678,7 @@ export default class alpaca extends Exchange {
|
|
|
678
678
|
* @param {string} side 'buy' or 'sell'
|
|
679
679
|
* @param {float} amount how much of currency you want to trade in units of base currency
|
|
680
680
|
* @param {float} [price] the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
|
|
681
|
-
* @param {object} [params] extra parameters specific to the
|
|
681
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
682
682
|
* @param {float} [params.triggerPrice] The price at which a trigger order is triggered at
|
|
683
683
|
* @returns {object} an [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
684
684
|
*/
|
|
@@ -764,7 +764,7 @@ export default class alpaca extends Exchange {
|
|
|
764
764
|
* @see https://docs.alpaca.markets/reference/deleteorderbyorderid
|
|
765
765
|
* @param {string} id order id
|
|
766
766
|
* @param {string} symbol unified symbol of the market the order was made in
|
|
767
|
-
* @param {object} [params] extra parameters specific to the
|
|
767
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
768
768
|
* @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
769
769
|
*/
|
|
770
770
|
const request = {
|
|
@@ -786,7 +786,7 @@ export default class alpaca extends Exchange {
|
|
|
786
786
|
* @description cancel all open orders in a market
|
|
787
787
|
* @see https://docs.alpaca.markets/reference/deleteallorders
|
|
788
788
|
* @param {string} symbol alpaca cancelAllOrders cannot setting symbol, it will cancel all open orders
|
|
789
|
-
* @param {object} [params] extra parameters specific to the
|
|
789
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
790
790
|
* @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
791
791
|
*/
|
|
792
792
|
await this.loadMarkets();
|
|
@@ -805,7 +805,7 @@ export default class alpaca extends Exchange {
|
|
|
805
805
|
* @description fetches information on an order made by the user
|
|
806
806
|
* @see https://docs.alpaca.markets/reference/getorderbyorderid
|
|
807
807
|
* @param {string} symbol unified symbol of the market the order was made in
|
|
808
|
-
* @param {object} [params] extra parameters specific to the
|
|
808
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
809
809
|
* @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
810
810
|
*/
|
|
811
811
|
await this.loadMarkets();
|
|
@@ -826,7 +826,7 @@ export default class alpaca extends Exchange {
|
|
|
826
826
|
* @param {string} symbol unified market symbol of the market orders were made in
|
|
827
827
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
828
828
|
* @param {int} [limit] the maximum number of order structures to retrieve
|
|
829
|
-
* @param {object} [params] extra parameters specific to the
|
|
829
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
830
830
|
* @param {int} [params.until] the latest time in ms to fetch orders for
|
|
831
831
|
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
832
832
|
*/
|
|
@@ -902,7 +902,7 @@ export default class alpaca extends Exchange {
|
|
|
902
902
|
* @param {string} symbol unified market symbol of the market orders were made in
|
|
903
903
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
904
904
|
* @param {int} [limit] the maximum number of order structures to retrieve
|
|
905
|
-
* @param {object} [params] extra parameters specific to the
|
|
905
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
906
906
|
* @param {int} [params.until] the latest time in ms to fetch orders for
|
|
907
907
|
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
908
908
|
*/
|
|
@@ -920,7 +920,7 @@ export default class alpaca extends Exchange {
|
|
|
920
920
|
* @param {string} symbol unified market symbol of the market orders were made in
|
|
921
921
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
922
922
|
* @param {int} [limit] the maximum number of order structures to retrieve
|
|
923
|
-
* @param {object} [params] extra parameters specific to the
|
|
923
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
924
924
|
* @param {int} [params.until] the latest time in ms to fetch orders for
|
|
925
925
|
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
926
926
|
*/
|
package/js/src/ascendex.js
CHANGED
|
@@ -376,7 +376,7 @@ export default class ascendex extends Exchange {
|
|
|
376
376
|
* @method
|
|
377
377
|
* @name ascendex#fetchCurrencies
|
|
378
378
|
* @description fetches all available currencies on an exchange
|
|
379
|
-
* @param {object} [params] extra parameters specific to the
|
|
379
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
380
380
|
* @returns {object} an associative dictionary of currencies
|
|
381
381
|
*/
|
|
382
382
|
const assets = await this.v1PublicGetAssets(params);
|
|
@@ -484,7 +484,7 @@ export default class ascendex extends Exchange {
|
|
|
484
484
|
* @method
|
|
485
485
|
* @name ascendex#fetchMarkets
|
|
486
486
|
* @description retrieves data on all markets for ascendex
|
|
487
|
-
* @param {object} [params] extra parameters specific to the exchange
|
|
487
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
488
488
|
* @returns {object[]} an array of objects representing market data
|
|
489
489
|
*/
|
|
490
490
|
const products = await this.v1PublicGetProducts(params);
|
|
@@ -680,7 +680,7 @@ export default class ascendex extends Exchange {
|
|
|
680
680
|
* @method
|
|
681
681
|
* @name ascendex#fetchTime
|
|
682
682
|
* @description fetches the current integer timestamp in milliseconds from the ascendex server
|
|
683
|
-
* @param {object} [params] extra parameters specific to the
|
|
683
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
684
684
|
* @returns {int} the current integer timestamp in milliseconds from the ascendex server
|
|
685
685
|
*/
|
|
686
686
|
const request = {
|
|
@@ -705,7 +705,7 @@ export default class ascendex extends Exchange {
|
|
|
705
705
|
* @method
|
|
706
706
|
* @name ascendex#fetchAccounts
|
|
707
707
|
* @description fetch all the accounts associated with a profile
|
|
708
|
-
* @param {object} [params] extra parameters specific to the
|
|
708
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
709
709
|
* @returns {object} a dictionary of [account structures]{@link https://docs.ccxt.com/#/?id=account-structure} indexed by the account type
|
|
710
710
|
*/
|
|
711
711
|
let accountGroup = this.safeString(this.options, 'account-group');
|
|
@@ -803,7 +803,7 @@ export default class ascendex extends Exchange {
|
|
|
803
803
|
* @method
|
|
804
804
|
* @name ascendex#fetchBalance
|
|
805
805
|
* @description query for balance and get the amount of funds available for trading or funds locked in orders
|
|
806
|
-
* @param {object} [params] extra parameters specific to the
|
|
806
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
807
807
|
* @returns {object} a [balance structure]{@link https://docs.ccxt.com/#/?id=balance-structure}
|
|
808
808
|
*/
|
|
809
809
|
await this.loadMarkets();
|
|
@@ -892,7 +892,7 @@ export default class ascendex extends Exchange {
|
|
|
892
892
|
* @description fetches information on open orders with bid (buy) and ask (sell) prices, volumes and other data
|
|
893
893
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
894
894
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
895
|
-
* @param {object} [params] extra parameters specific to the
|
|
895
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
896
896
|
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
|
|
897
897
|
*/
|
|
898
898
|
await this.loadMarkets();
|
|
@@ -983,7 +983,7 @@ export default class ascendex extends Exchange {
|
|
|
983
983
|
* @name ascendex#fetchTicker
|
|
984
984
|
* @description fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
|
985
985
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
986
|
-
* @param {object} [params] extra parameters specific to the
|
|
986
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
987
987
|
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
988
988
|
*/
|
|
989
989
|
await this.loadMarkets();
|
|
@@ -1015,11 +1015,11 @@ export default class ascendex extends Exchange {
|
|
|
1015
1015
|
/**
|
|
1016
1016
|
* @method
|
|
1017
1017
|
* @name ascendex#fetchTickers
|
|
1018
|
-
* @description fetches price tickers for multiple markets, statistical
|
|
1018
|
+
* @description fetches price tickers for multiple markets, statistical information calculated over the past 24 hours for each market
|
|
1019
1019
|
* @see https://ascendex.github.io/ascendex-pro-api/#ticker
|
|
1020
1020
|
* @see https://ascendex.github.io/ascendex-futures-pro-api-v2/#ticker
|
|
1021
1021
|
* @param {string[]|undefined} symbols unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
|
|
1022
|
-
* @param {object} [params] extra parameters specific to the
|
|
1022
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1023
1023
|
* @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
1024
1024
|
*/
|
|
1025
1025
|
await this.loadMarkets();
|
|
@@ -1099,7 +1099,7 @@ export default class ascendex extends Exchange {
|
|
|
1099
1099
|
* @param {string} timeframe the length of time each candle represents
|
|
1100
1100
|
* @param {int} [since] timestamp in ms of the earliest candle to fetch
|
|
1101
1101
|
* @param {int} [limit] the maximum amount of candles to fetch
|
|
1102
|
-
* @param {object} [params] extra parameters specific to the
|
|
1102
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1103
1103
|
* @returns {int[][]} A list of candles ordered as timestamp, open, high, low, close, volume
|
|
1104
1104
|
*/
|
|
1105
1105
|
await this.loadMarkets();
|
|
@@ -1193,7 +1193,7 @@ export default class ascendex extends Exchange {
|
|
|
1193
1193
|
* @param {string} symbol unified symbol of the market to fetch trades for
|
|
1194
1194
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
1195
1195
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
1196
|
-
* @param {object} [params] extra parameters specific to the
|
|
1196
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1197
1197
|
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=public-trades}
|
|
1198
1198
|
*/
|
|
1199
1199
|
await this.loadMarkets();
|
|
@@ -1420,7 +1420,7 @@ export default class ascendex extends Exchange {
|
|
|
1420
1420
|
* @method
|
|
1421
1421
|
* @name ascendex#fetchTradingFees
|
|
1422
1422
|
* @description fetch the trading fees for multiple markets
|
|
1423
|
-
* @param {object} [params] extra parameters specific to the
|
|
1423
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1424
1424
|
* @returns {object} a dictionary of [fee structures]{@link https://docs.ccxt.com/#/?id=fee-structure} indexed by market symbols
|
|
1425
1425
|
*/
|
|
1426
1426
|
await this.loadMarkets();
|
|
@@ -1475,7 +1475,7 @@ export default class ascendex extends Exchange {
|
|
|
1475
1475
|
* @param {string} side 'buy' or 'sell'
|
|
1476
1476
|
* @param {float} amount how much you want to trade in units of the base currency
|
|
1477
1477
|
* @param {float} [price] the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
|
|
1478
|
-
* @param {object} [params] extra parameters specific to the
|
|
1478
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1479
1479
|
* @param {string} [params.timeInForce] "GTC", "IOC", "FOK", or "PO"
|
|
1480
1480
|
* @param {bool} [params.postOnly] true or false
|
|
1481
1481
|
* @param {float} [params.stopPrice] the price at which a trigger order is triggered at
|
|
@@ -1660,7 +1660,7 @@ export default class ascendex extends Exchange {
|
|
|
1660
1660
|
* @see https://ascendex.github.io/ascendex-pro-api/#place-batch-orders
|
|
1661
1661
|
* @see https://ascendex.github.io/ascendex-futures-pro-api-v2/#place-batch-orders
|
|
1662
1662
|
* @param {array} orders list of orders to create, each object should contain the parameters required by createOrder, namely symbol, type, side, amount, price and params
|
|
1663
|
-
* @param {object} [params] extra parameters specific to the
|
|
1663
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1664
1664
|
* @param {string} [params.timeInForce] "GTC", "IOC", "FOK", or "PO"
|
|
1665
1665
|
* @param {bool} [params.postOnly] true or false
|
|
1666
1666
|
* @param {float} [params.stopPrice] the price at which a trigger order is triggered at
|
|
@@ -1757,7 +1757,7 @@ export default class ascendex extends Exchange {
|
|
|
1757
1757
|
* @name ascendex#fetchOrder
|
|
1758
1758
|
* @description fetches information on an order made by the user
|
|
1759
1759
|
* @param {string} symbol unified symbol of the market the order was made in
|
|
1760
|
-
* @param {object} [params] extra parameters specific to the
|
|
1760
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1761
1761
|
* @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1762
1762
|
*/
|
|
1763
1763
|
await this.loadMarkets();
|
|
@@ -1870,7 +1870,7 @@ export default class ascendex extends Exchange {
|
|
|
1870
1870
|
* @param {string} symbol unified market symbol
|
|
1871
1871
|
* @param {int} [since] the earliest time in ms to fetch open orders for
|
|
1872
1872
|
* @param {int} [limit] the maximum number of open orders structures to retrieve
|
|
1873
|
-
* @param {object} [params] extra parameters specific to the
|
|
1873
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1874
1874
|
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1875
1875
|
*/
|
|
1876
1876
|
await this.loadMarkets();
|
|
@@ -1993,7 +1993,7 @@ export default class ascendex extends Exchange {
|
|
|
1993
1993
|
* @param {string} symbol unified market symbol of the market orders were made in
|
|
1994
1994
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
1995
1995
|
* @param {int} [limit] the maximum number of orde structures to retrieve
|
|
1996
|
-
* @param {object} [params] extra parameters specific to the
|
|
1996
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1997
1997
|
* @param {int} [params.until] the latest time in ms to fetch orders for
|
|
1998
1998
|
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1999
1999
|
*/
|
|
@@ -2153,7 +2153,7 @@ export default class ascendex extends Exchange {
|
|
|
2153
2153
|
* @description cancels an open order
|
|
2154
2154
|
* @param {string} id order id
|
|
2155
2155
|
* @param {string} symbol unified symbol of the market the order was made in
|
|
2156
|
-
* @param {object} [params] extra parameters specific to the
|
|
2156
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2157
2157
|
* @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
2158
2158
|
*/
|
|
2159
2159
|
if (symbol === undefined) {
|
|
@@ -2271,7 +2271,7 @@ export default class ascendex extends Exchange {
|
|
|
2271
2271
|
* @name ascendex#cancelAllOrders
|
|
2272
2272
|
* @description cancel all open orders
|
|
2273
2273
|
* @param {string} symbol unified market symbol, only orders in the market of this symbol are cancelled when symbol is not undefined
|
|
2274
|
-
* @param {object} [params] extra parameters specific to the
|
|
2274
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2275
2275
|
* @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
2276
2276
|
*/
|
|
2277
2277
|
await this.loadMarkets();
|
|
@@ -2397,7 +2397,7 @@ export default class ascendex extends Exchange {
|
|
|
2397
2397
|
* @name ascendex#fetchDepositAddress
|
|
2398
2398
|
* @description fetch the deposit address for a currency associated with this account
|
|
2399
2399
|
* @param {string} code unified currency code
|
|
2400
|
-
* @param {object} [params] extra parameters specific to the
|
|
2400
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2401
2401
|
* @returns {object} an [address structure]{@link https://docs.ccxt.com/#/?id=address-structure}
|
|
2402
2402
|
*/
|
|
2403
2403
|
await this.loadMarkets();
|
|
@@ -2471,7 +2471,7 @@ export default class ascendex extends Exchange {
|
|
|
2471
2471
|
* @param {string} code unified currency code
|
|
2472
2472
|
* @param {int} [since] the earliest time in ms to fetch deposits for
|
|
2473
2473
|
* @param {int} [limit] the maximum number of deposits structures to retrieve
|
|
2474
|
-
* @param {object} [params] extra parameters specific to the
|
|
2474
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2475
2475
|
* @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com/#/?id=transaction-structure}
|
|
2476
2476
|
*/
|
|
2477
2477
|
const request = {
|
|
@@ -2487,7 +2487,7 @@ export default class ascendex extends Exchange {
|
|
|
2487
2487
|
* @param {string} code unified currency code
|
|
2488
2488
|
* @param {int} [since] the earliest time in ms to fetch withdrawals for
|
|
2489
2489
|
* @param {int} [limit] the maximum number of withdrawals structures to retrieve
|
|
2490
|
-
* @param {object} [params] extra parameters specific to the
|
|
2490
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2491
2491
|
* @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com/#/?id=transaction-structure}
|
|
2492
2492
|
*/
|
|
2493
2493
|
const request = {
|
|
@@ -2503,7 +2503,7 @@ export default class ascendex extends Exchange {
|
|
|
2503
2503
|
* @param {string} [code] unified currency code for the currency of the deposit/withdrawals, default is undefined
|
|
2504
2504
|
* @param {int} [since] timestamp in ms of the earliest deposit/withdrawal, default is undefined
|
|
2505
2505
|
* @param {int} [limit] max number of deposit/withdrawals to return, default is undefined
|
|
2506
|
-
* @param {object} [params] extra parameters specific to the
|
|
2506
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2507
2507
|
* @returns {object} a list of [transaction structure]{@link https://docs.ccxt.com/#/?id=transaction-structure}
|
|
2508
2508
|
*/
|
|
2509
2509
|
await this.loadMarkets();
|
|
@@ -2626,7 +2626,7 @@ export default class ascendex extends Exchange {
|
|
|
2626
2626
|
* @name ascendex#fetchPositions
|
|
2627
2627
|
* @description fetch all open positions
|
|
2628
2628
|
* @param {string[]|undefined} symbols list of unified market symbols
|
|
2629
|
-
* @param {object} [params] extra parameters specific to the
|
|
2629
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2630
2630
|
* @returns {object[]} a list of [position structure]{@link https://docs.ccxt.com/#/?id=position-structure}
|
|
2631
2631
|
*/
|
|
2632
2632
|
await this.loadMarkets();
|
|
@@ -2792,7 +2792,7 @@ export default class ascendex extends Exchange {
|
|
|
2792
2792
|
* @name ascendex#fetchFundingRates
|
|
2793
2793
|
* @description fetch the funding rate for multiple markets
|
|
2794
2794
|
* @param {string[]|undefined} symbols list of unified market symbols
|
|
2795
|
-
* @param {object} [params] extra parameters specific to the
|
|
2795
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2796
2796
|
* @returns {object} a dictionary of [funding rates structures]{@link https://docs.ccxt.com/#/?id=funding-rates-structure}, indexe by market symbols
|
|
2797
2797
|
*/
|
|
2798
2798
|
await this.loadMarkets();
|
|
@@ -2874,7 +2874,7 @@ export default class ascendex extends Exchange {
|
|
|
2874
2874
|
* @description remove margin from a position
|
|
2875
2875
|
* @param {string} symbol unified market symbol
|
|
2876
2876
|
* @param {float} amount the amount of margin to remove
|
|
2877
|
-
* @param {object} [params] extra parameters specific to the
|
|
2877
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2878
2878
|
* @returns {object} a [margin structure]{@link https://docs.ccxt.com/#/?id=reduce-margin-structure}
|
|
2879
2879
|
*/
|
|
2880
2880
|
return await this.modifyMarginHelper(symbol, -amount, 'reduce', params);
|
|
@@ -2886,7 +2886,7 @@ export default class ascendex extends Exchange {
|
|
|
2886
2886
|
* @description add margin
|
|
2887
2887
|
* @param {string} symbol unified market symbol
|
|
2888
2888
|
* @param {float} amount amount of margin to add
|
|
2889
|
-
* @param {object} [params] extra parameters specific to the
|
|
2889
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2890
2890
|
* @returns {object} a [margin structure]{@link https://docs.ccxt.com/#/?id=add-margin-structure}
|
|
2891
2891
|
*/
|
|
2892
2892
|
return await this.modifyMarginHelper(symbol, amount, 'add', params);
|
|
@@ -2899,7 +2899,7 @@ export default class ascendex extends Exchange {
|
|
|
2899
2899
|
* @see https://ascendex.github.io/ascendex-futures-pro-api-v2/#change-contract-leverage
|
|
2900
2900
|
* @param {float} leverage the rate of leverage
|
|
2901
2901
|
* @param {string} symbol unified market symbol
|
|
2902
|
-
* @param {object} [params] extra parameters specific to the
|
|
2902
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2903
2903
|
* @returns {object} response from the exchange
|
|
2904
2904
|
*/
|
|
2905
2905
|
if (symbol === undefined) {
|
|
@@ -2931,7 +2931,7 @@ export default class ascendex extends Exchange {
|
|
|
2931
2931
|
* @see https://ascendex.github.io/ascendex-futures-pro-api-v2/#change-margin-type
|
|
2932
2932
|
* @param {string} marginMode 'cross' or 'isolated'
|
|
2933
2933
|
* @param {string} symbol unified market symbol
|
|
2934
|
-
* @param {object} [params] extra parameters specific to the
|
|
2934
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2935
2935
|
* @returns {object} response from the exchange
|
|
2936
2936
|
*/
|
|
2937
2937
|
if (symbol === undefined) {
|
|
@@ -2965,7 +2965,7 @@ export default class ascendex extends Exchange {
|
|
|
2965
2965
|
* @name ascendex#fetchLeverageTiers
|
|
2966
2966
|
* @description retrieve information on the maximum leverage, and maintenance margin for trades of varying trade sizes
|
|
2967
2967
|
* @param {string[]|undefined} symbols list of unified market symbols
|
|
2968
|
-
* @param {object} [params] extra parameters specific to the
|
|
2968
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2969
2969
|
* @returns {object} a dictionary of [leverage tiers structures]{@link https://docs.ccxt.com/#/?id=leverage-tiers-structure}, indexed by market symbols
|
|
2970
2970
|
*/
|
|
2971
2971
|
await this.loadMarkets();
|
|
@@ -3106,7 +3106,7 @@ export default class ascendex extends Exchange {
|
|
|
3106
3106
|
* @description fetch deposit and withdraw fees
|
|
3107
3107
|
* @see https://ascendex.github.io/ascendex-pro-api/#list-all-assets
|
|
3108
3108
|
* @param {string[]|undefined} codes list of unified currency codes
|
|
3109
|
-
* @param {object} [params] extra parameters specific to the
|
|
3109
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
3110
3110
|
* @returns {object} a list of [fee structures]{@link https://docs.ccxt.com/#/?id=fee-structure}
|
|
3111
3111
|
*/
|
|
3112
3112
|
await this.loadMarkets();
|
|
@@ -3123,7 +3123,7 @@ export default class ascendex extends Exchange {
|
|
|
3123
3123
|
* @param {float} amount amount to transfer
|
|
3124
3124
|
* @param {string} fromAccount account to transfer from
|
|
3125
3125
|
* @param {string} toAccount account to transfer to
|
|
3126
|
-
* @param {object} [params] extra parameters specific to the
|
|
3126
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
3127
3127
|
* @returns {object} a [transfer structure]{@link https://docs.ccxt.com/#/?id=transfer-structure}
|
|
3128
3128
|
*/
|
|
3129
3129
|
await this.loadMarkets();
|
|
@@ -3194,7 +3194,7 @@ export default class ascendex extends Exchange {
|
|
|
3194
3194
|
* @param {string} [symbol] unified market symbol
|
|
3195
3195
|
* @param {int} [since] the earliest time in ms to fetch funding history for
|
|
3196
3196
|
* @param {int} [limit] the maximum number of funding history structures to retrieve
|
|
3197
|
-
* @param {object} [params] extra parameters specific to the
|
|
3197
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
3198
3198
|
* @param {boolean} [params.paginate] default false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the [available parameters](https://github.com/ccxt/ccxt/wiki/Manual#pagination-params)
|
|
3199
3199
|
* @returns {object} a [funding history structure]{@link https://docs.ccxt.com/#/?id=funding-history-structure}
|
|
3200
3200
|
*/
|
package/js/src/base/Exchange.js
CHANGED
|
@@ -3307,7 +3307,7 @@ export default class Exchange {
|
|
|
3307
3307
|
/**
|
|
3308
3308
|
* @ignore
|
|
3309
3309
|
* @method
|
|
3310
|
-
* @param {object} [params] extra parameters specific to the exchange
|
|
3310
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
3311
3311
|
* @returns {Array} the marginMode in lowercase as specified by params["marginMode"], params["defaultMarginMode"] this.options["marginMode"] or this.options["defaultMarginMode"]
|
|
3312
3312
|
*/
|
|
3313
3313
|
return this.handleOptionAndParams(params, methodName, 'marginMode', defaultValue);
|
|
@@ -3463,7 +3463,7 @@ export default class Exchange {
|
|
|
3463
3463
|
* @param {string} [code] unified currency code for the currency of the deposit/withdrawals, default is undefined
|
|
3464
3464
|
* @param {int} [since] timestamp in ms of the earliest deposit/withdrawal, default is undefined
|
|
3465
3465
|
* @param {int} [limit] max number of deposit/withdrawals to return, default is undefined
|
|
3466
|
-
* @param {object} [params] extra parameters specific to the exchange
|
|
3466
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
3467
3467
|
* @returns {object} a list of [transaction structures]{@link https://docs.ccxt.com/#/?id=transaction-structure}
|
|
3468
3468
|
*/
|
|
3469
3469
|
throw new NotSupported(this.id + ' fetchDepositsWithdrawals() is not supported yet');
|
|
@@ -3988,7 +3988,7 @@ export default class Exchange {
|
|
|
3988
3988
|
* @param {string} timeframe the length of time each candle represents
|
|
3989
3989
|
* @param {int} [since] timestamp in ms of the earliest candle to fetch
|
|
3990
3990
|
* @param {int} [limit] the maximum amount of candles to fetch
|
|
3991
|
-
* @param {object} [params] extra parameters specific to the exchange
|
|
3991
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
3992
3992
|
* @returns {float[][]} A list of candles ordered as timestamp, open, high, low, close, undefined
|
|
3993
3993
|
*/
|
|
3994
3994
|
if (this.has['fetchMarkOHLCV']) {
|
|
@@ -4010,7 +4010,7 @@ export default class Exchange {
|
|
|
4010
4010
|
* @param {string} timeframe the length of time each candle represents
|
|
4011
4011
|
* @param {int} [since] timestamp in ms of the earliest candle to fetch
|
|
4012
4012
|
* @param {int} [limit] the maximum amount of candles to fetch
|
|
4013
|
-
* @param {object} [params] extra parameters specific to the exchange
|
|
4013
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
4014
4014
|
* @returns {} A list of candles ordered as timestamp, open, high, low, close, undefined
|
|
4015
4015
|
*/
|
|
4016
4016
|
if (this.has['fetchIndexOHLCV']) {
|
|
@@ -4032,7 +4032,7 @@ export default class Exchange {
|
|
|
4032
4032
|
* @param {string} timeframe the length of time each candle represents
|
|
4033
4033
|
* @param {int} [since] timestamp in ms of the earliest candle to fetch
|
|
4034
4034
|
* @param {int} [limit] the maximum amount of candles to fetch
|
|
4035
|
-
* @param {object} [params] extra parameters specific to the exchange
|
|
4035
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
4036
4036
|
* @returns {float[][]} A list of candles ordered as timestamp, open, high, low, close, undefined
|
|
4037
4037
|
*/
|
|
4038
4038
|
if (this.has['fetchPremiumIndexOHLCV']) {
|
|
@@ -4236,7 +4236,7 @@ export default class Exchange {
|
|
|
4236
4236
|
* @param {string} code unified currency code for the currency of the deposit/withdrawals, default is undefined
|
|
4237
4237
|
* @param {int} [since] timestamp in ms of the earliest deposit/withdrawal, default is undefined
|
|
4238
4238
|
* @param {int} [limit] max number of deposit/withdrawals to return, default is undefined
|
|
4239
|
-
* @param {object} [params] extra parameters specific to the exchange
|
|
4239
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
4240
4240
|
* @returns {object} a list of [transaction structures]{@link https://docs.ccxt.com/#/?id=transaction-structure}
|
|
4241
4241
|
*/
|
|
4242
4242
|
if (this.has['fetchDepositsWithdrawals']) {
|
package/js/src/bigone.js
CHANGED
|
@@ -298,7 +298,7 @@ export default class bigone extends Exchange {
|
|
|
298
298
|
* @method
|
|
299
299
|
* @name bigone#fetchCurrencies
|
|
300
300
|
* @description fetches all available currencies on an exchange
|
|
301
|
-
* @param {dict} [params] extra parameters specific to the
|
|
301
|
+
* @param {dict} [params] extra parameters specific to the exchange API endpoint
|
|
302
302
|
* @returns {dict} an associative dictionary of currencies
|
|
303
303
|
*/
|
|
304
304
|
// we use undocumented link (possible, less informative alternative is : https://big.one/api/uc/v3/assets/accounts)
|
|
@@ -482,7 +482,7 @@ export default class bigone extends Exchange {
|
|
|
482
482
|
* @method
|
|
483
483
|
* @name bigone#fetchMarkets
|
|
484
484
|
* @description retrieves data on all markets for bigone
|
|
485
|
-
* @param {object} [params] extra parameters specific to the exchange
|
|
485
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
486
486
|
* @returns {object[]} an array of objects representing market data
|
|
487
487
|
*/
|
|
488
488
|
const response = await this.publicGetAssetPairs(params);
|
|
@@ -621,7 +621,7 @@ export default class bigone extends Exchange {
|
|
|
621
621
|
* @name bigone#fetchTicker
|
|
622
622
|
* @description fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
|
623
623
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
624
|
-
* @param {object} [params] extra parameters specific to the
|
|
624
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
625
625
|
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
626
626
|
*/
|
|
627
627
|
await this.loadMarkets();
|
|
@@ -653,9 +653,9 @@ export default class bigone extends Exchange {
|
|
|
653
653
|
/**
|
|
654
654
|
* @method
|
|
655
655
|
* @name bigone#fetchTickers
|
|
656
|
-
* @description fetches price tickers for multiple markets, statistical
|
|
656
|
+
* @description fetches price tickers for multiple markets, statistical information calculated over the past 24 hours for each market
|
|
657
657
|
* @param {string[]|undefined} symbols unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
|
|
658
|
-
* @param {object} [params] extra parameters specific to the
|
|
658
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
659
659
|
* @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
660
660
|
*/
|
|
661
661
|
await this.loadMarkets();
|
|
@@ -709,7 +709,7 @@ export default class bigone extends Exchange {
|
|
|
709
709
|
* @method
|
|
710
710
|
* @name bigone#fetchTime
|
|
711
711
|
* @description fetches the current integer timestamp in milliseconds from the exchange server
|
|
712
|
-
* @param {object} [params] extra parameters specific to the
|
|
712
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
713
713
|
* @returns {int} the current integer timestamp in milliseconds from the exchange server
|
|
714
714
|
*/
|
|
715
715
|
const response = await this.publicGetPing(params);
|
|
@@ -731,7 +731,7 @@ export default class bigone extends Exchange {
|
|
|
731
731
|
* @description fetches information on open orders with bid (buy) and ask (sell) prices, volumes and other data
|
|
732
732
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
733
733
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
734
|
-
* @param {object} [params] extra parameters specific to the
|
|
734
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
735
735
|
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
|
|
736
736
|
*/
|
|
737
737
|
await this.loadMarkets();
|
|
@@ -913,7 +913,7 @@ export default class bigone extends Exchange {
|
|
|
913
913
|
* @param {string} symbol unified symbol of the market to fetch trades for
|
|
914
914
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
915
915
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
916
|
-
* @param {object} [params] extra parameters specific to the
|
|
916
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
917
917
|
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=public-trades}
|
|
918
918
|
*/
|
|
919
919
|
await this.loadMarkets();
|
|
@@ -975,7 +975,7 @@ export default class bigone extends Exchange {
|
|
|
975
975
|
* @param {string} timeframe the length of time each candle represents
|
|
976
976
|
* @param {int} [since] timestamp in ms of the earliest candle to fetch
|
|
977
977
|
* @param {int} [limit] the maximum amount of candles to fetch
|
|
978
|
-
* @param {object} [params] extra parameters specific to the
|
|
978
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
979
979
|
* @returns {int[][]} A list of candles ordered as timestamp, open, high, low, close, volume
|
|
980
980
|
*/
|
|
981
981
|
await this.loadMarkets();
|
|
@@ -1044,7 +1044,7 @@ export default class bigone extends Exchange {
|
|
|
1044
1044
|
* @method
|
|
1045
1045
|
* @name bigone#fetchBalance
|
|
1046
1046
|
* @description query for balance and get the amount of funds available for trading or funds locked in orders
|
|
1047
|
-
* @param {object} [params] extra parameters specific to the
|
|
1047
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1048
1048
|
* @returns {object} a [balance structure]{@link https://docs.ccxt.com/#/?id=balance-structure}
|
|
1049
1049
|
*/
|
|
1050
1050
|
await this.loadMarkets();
|
|
@@ -1166,7 +1166,7 @@ export default class bigone extends Exchange {
|
|
|
1166
1166
|
* @param {string} side 'buy' or 'sell'
|
|
1167
1167
|
* @param {float} amount how much of currency you want to trade in units of base currency
|
|
1168
1168
|
* @param {float} [price] the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
|
|
1169
|
-
* @param {object} [params] extra parameters specific to the
|
|
1169
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1170
1170
|
* @param {float} [params.triggerPrice] the price at which a trigger order is triggered at
|
|
1171
1171
|
* @param {bool} [params.postOnly] if true, the order will only be posted to the order book and not executed immediately
|
|
1172
1172
|
* @param {string} [params.timeInForce] "GTC", "IOC", or "PO"
|
|
@@ -1258,7 +1258,7 @@ export default class bigone extends Exchange {
|
|
|
1258
1258
|
* @description cancels an open order
|
|
1259
1259
|
* @param {string} id order id
|
|
1260
1260
|
* @param {string} symbol Not used by bigone cancelOrder ()
|
|
1261
|
-
* @param {object} [params] extra parameters specific to the
|
|
1261
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1262
1262
|
* @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1263
1263
|
*/
|
|
1264
1264
|
await this.loadMarkets();
|
|
@@ -1285,7 +1285,7 @@ export default class bigone extends Exchange {
|
|
|
1285
1285
|
* @name bigone#cancelAllOrders
|
|
1286
1286
|
* @description cancel all open orders
|
|
1287
1287
|
* @param {string} symbol unified market symbol, only orders in the market of this symbol are cancelled when symbol is not undefined
|
|
1288
|
-
* @param {object} [params] extra parameters specific to the
|
|
1288
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1289
1289
|
* @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1290
1290
|
*/
|
|
1291
1291
|
await this.loadMarkets();
|
|
@@ -1314,7 +1314,7 @@ export default class bigone extends Exchange {
|
|
|
1314
1314
|
* @name bigone#fetchOrder
|
|
1315
1315
|
* @description fetches information on an order made by the user
|
|
1316
1316
|
* @param {string} symbol not used by bigone fetchOrder
|
|
1317
|
-
* @param {object} [params] extra parameters specific to the
|
|
1317
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1318
1318
|
* @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1319
1319
|
*/
|
|
1320
1320
|
await this.loadMarkets();
|
|
@@ -1331,7 +1331,7 @@ export default class bigone extends Exchange {
|
|
|
1331
1331
|
* @param {string} symbol unified market symbol of the market orders were made in
|
|
1332
1332
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
1333
1333
|
* @param {int} [limit] the maximum number of orde structures to retrieve
|
|
1334
|
-
* @param {object} [params] extra parameters specific to the
|
|
1334
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1335
1335
|
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1336
1336
|
*/
|
|
1337
1337
|
if (symbol === undefined) {
|
|
@@ -1381,7 +1381,7 @@ export default class bigone extends Exchange {
|
|
|
1381
1381
|
* @param {string} symbol unified market symbol
|
|
1382
1382
|
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
1383
1383
|
* @param {int} [limit] the maximum number of trades structures to retrieve
|
|
1384
|
-
* @param {object} [params] extra parameters specific to the
|
|
1384
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1385
1385
|
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=trade-structure}
|
|
1386
1386
|
*/
|
|
1387
1387
|
if (symbol === undefined) {
|
|
@@ -1450,7 +1450,7 @@ export default class bigone extends Exchange {
|
|
|
1450
1450
|
* @param {string} symbol unified market symbol
|
|
1451
1451
|
* @param {int} [since] the earliest time in ms to fetch open orders for
|
|
1452
1452
|
* @param {int} [limit] the maximum number of open orders structures to retrieve
|
|
1453
|
-
* @param {object} [params] extra parameters specific to the
|
|
1453
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1454
1454
|
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1455
1455
|
*/
|
|
1456
1456
|
const request = {
|
|
@@ -1466,7 +1466,7 @@ export default class bigone extends Exchange {
|
|
|
1466
1466
|
* @param {string} symbol unified market symbol of the market orders were made in
|
|
1467
1467
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
1468
1468
|
* @param {int} [limit] the maximum number of orde structures to retrieve
|
|
1469
|
-
* @param {object} [params] extra parameters specific to the
|
|
1469
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1470
1470
|
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1471
1471
|
*/
|
|
1472
1472
|
const request = {
|
|
@@ -1518,7 +1518,7 @@ export default class bigone extends Exchange {
|
|
|
1518
1518
|
* @name bigone#fetchDepositAddress
|
|
1519
1519
|
* @description fetch the deposit address for a currency associated with this account
|
|
1520
1520
|
* @param {string} code unified currency code
|
|
1521
|
-
* @param {object} [params] extra parameters specific to the
|
|
1521
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1522
1522
|
* @returns {object} an [address structure]{@link https://docs.ccxt.com/#/?id=address-structure}
|
|
1523
1523
|
*/
|
|
1524
1524
|
await this.loadMarkets();
|
|
@@ -1670,7 +1670,7 @@ export default class bigone extends Exchange {
|
|
|
1670
1670
|
* @param {string} code unified currency code
|
|
1671
1671
|
* @param {int} [since] the earliest time in ms to fetch deposits for
|
|
1672
1672
|
* @param {int} [limit] the maximum number of deposits structures to retrieve
|
|
1673
|
-
* @param {object} [params] extra parameters specific to the
|
|
1673
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1674
1674
|
* @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com/#/?id=transaction-structure}
|
|
1675
1675
|
*/
|
|
1676
1676
|
await this.loadMarkets();
|
|
@@ -1721,7 +1721,7 @@ export default class bigone extends Exchange {
|
|
|
1721
1721
|
* @param {string} code unified currency code
|
|
1722
1722
|
* @param {int} [since] the earliest time in ms to fetch withdrawals for
|
|
1723
1723
|
* @param {int} [limit] the maximum number of withdrawals structures to retrieve
|
|
1724
|
-
* @param {object} [params] extra parameters specific to the
|
|
1724
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1725
1725
|
* @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com/#/?id=transaction-structure}
|
|
1726
1726
|
*/
|
|
1727
1727
|
await this.loadMarkets();
|
|
@@ -1774,7 +1774,7 @@ export default class bigone extends Exchange {
|
|
|
1774
1774
|
* @param {float} amount amount to transfer
|
|
1775
1775
|
* @param {string} fromAccount 'SPOT', 'FUND', or 'CONTRACT'
|
|
1776
1776
|
* @param {string} toAccount 'SPOT', 'FUND', or 'CONTRACT'
|
|
1777
|
-
* @param {object} [params] extra parameters specific to the
|
|
1777
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1778
1778
|
* @returns {object} a [transfer structure]{@link https://docs.ccxt.com/#/?id=transfer-structure}
|
|
1779
1779
|
*/
|
|
1780
1780
|
await this.loadMarkets();
|
|
@@ -1845,7 +1845,7 @@ export default class bigone extends Exchange {
|
|
|
1845
1845
|
* @param {float} amount the amount to withdraw
|
|
1846
1846
|
* @param {string} address the address to withdraw to
|
|
1847
1847
|
* @param {string} tag
|
|
1848
|
-
* @param {object} [params] extra parameters specific to the
|
|
1848
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1849
1849
|
* @returns {object} a [transaction structure]{@link https://docs.ccxt.com/#/?id=transaction-structure}
|
|
1850
1850
|
*/
|
|
1851
1851
|
[tag, params] = this.handleWithdrawTagAndParams(tag, params);
|