ccxt 4.0.74 → 4.0.75
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 +2047 -1932
- package/dist/ccxt.browser.min.js +3 -3
- package/dist/cjs/ccxt.js +1 -1
- package/dist/cjs/src/ace.js +9 -9
- package/dist/cjs/src/alpaca.js +6 -6
- package/dist/cjs/src/ascendex.js +22 -22
- package/dist/cjs/src/base/Exchange.js +2 -2
- package/dist/cjs/src/bigone.js +17 -17
- package/dist/cjs/src/binance.js +51 -51
- package/dist/cjs/src/bingx.js +21 -21
- package/dist/cjs/src/bit2c.js +10 -10
- package/dist/cjs/src/bitbank.js +11 -11
- package/dist/cjs/src/bitbns.js +12 -12
- package/dist/cjs/src/bitfinex.js +19 -19
- package/dist/cjs/src/bitfinex2.js +25 -25
- package/dist/cjs/src/bitflyer.js +15 -15
- package/dist/cjs/src/bitforex.js +9 -9
- package/dist/cjs/src/bitget.js +34 -34
- package/dist/cjs/src/bithumb.js +9 -9
- package/dist/cjs/src/bitmart.js +42 -29
- package/dist/cjs/src/bitmex.js +19 -19
- package/dist/cjs/src/bitopro.js +18 -18
- package/dist/cjs/src/bitpanda.js +19 -19
- package/dist/cjs/src/bitrue.js +15 -15
- package/dist/cjs/src/bitso.js +19 -19
- package/dist/cjs/src/bitstamp.js +19 -19
- package/dist/cjs/src/bitstamp1.js +6 -6
- package/dist/cjs/src/bittrex.js +24 -24
- package/dist/cjs/src/bitvavo.js +16 -16
- package/dist/cjs/src/bkex.js +17 -17
- package/dist/cjs/src/bl3p.js +6 -6
- package/dist/cjs/src/blockchaincom.js +20 -20
- package/dist/cjs/src/btcalpha.js +13 -13
- package/dist/cjs/src/btcbox.js +8 -8
- package/dist/cjs/src/btcmarkets.js +15 -15
- package/dist/cjs/src/btctradeua.js +6 -6
- package/dist/cjs/src/btcturk.js +9 -9
- package/dist/cjs/src/bybit.js +148 -116
- package/dist/cjs/src/cex.js +12 -12
- package/dist/cjs/src/coinbase.js +20 -20
- package/dist/cjs/src/coinbasepro.js +22 -22
- package/dist/cjs/src/coincheck.js +10 -10
- package/dist/cjs/src/coinex.js +81 -35
- package/dist/cjs/src/coinfalcon.js +14 -14
- package/dist/cjs/src/coinmate.js +12 -12
- package/dist/cjs/src/coinone.js +10 -10
- package/dist/cjs/src/coinsph.js +20 -20
- package/dist/cjs/src/coinspot.js +6 -6
- package/dist/cjs/src/cryptocom.js +24 -24
- package/dist/cjs/src/currencycom.js +18 -18
- package/dist/cjs/src/delta.js +23 -23
- package/dist/cjs/src/deribit.js +27 -27
- package/dist/cjs/src/digifinex.js +27 -27
- package/dist/cjs/src/exmo.js +24 -24
- package/dist/cjs/src/gate.js +34 -34
- package/dist/cjs/src/gemini.js +14 -14
- package/dist/cjs/src/hitbtc.js +30 -30
- package/dist/cjs/src/hollaex.js +20 -20
- package/dist/cjs/src/huobi.js +40 -40
- package/dist/cjs/src/huobijp.js +18 -18
- package/dist/cjs/src/idex.js +17 -17
- package/dist/cjs/src/independentreserve.js +10 -10
- package/dist/cjs/src/indodax.js +12 -12
- package/dist/cjs/src/kraken.js +25 -25
- package/dist/cjs/src/krakenfutures.js +12 -12
- package/dist/cjs/src/kucoin.js +29 -29
- package/dist/cjs/src/kucoinfutures.js +19 -19
- package/dist/cjs/src/kuna.js +10 -10
- package/dist/cjs/src/latoken.js +15 -15
- package/dist/cjs/src/lbank.js +10 -10
- package/dist/cjs/src/lbank2.js +21 -21
- package/dist/cjs/src/luno.js +14 -14
- package/dist/cjs/src/lykke.js +14 -14
- package/dist/cjs/src/mercado.js +10 -10
- package/dist/cjs/src/mexc.js +38 -38
- package/dist/cjs/src/ndax.js +18 -18
- package/dist/cjs/src/novadax.js +18 -18
- package/dist/cjs/src/oceanex.js +14 -14
- package/dist/cjs/src/okcoin.js +19 -19
- package/dist/cjs/src/okx.js +48 -48
- package/dist/cjs/src/paymium.js +9 -9
- package/dist/cjs/src/phemex.js +24 -24
- package/dist/cjs/src/poloniex.js +77 -60
- package/dist/cjs/src/poloniexfutures.js +16 -16
- package/dist/cjs/src/pro/alpaca.js +5 -5
- package/dist/cjs/src/pro/ascendex.js +2 -2
- package/dist/cjs/src/pro/binance.js +10 -10
- package/dist/cjs/src/pro/bitfinex.js +3 -3
- package/dist/cjs/src/pro/bitfinex2.js +4 -4
- package/dist/cjs/src/pro/bitget.js +4 -4
- package/dist/cjs/src/pro/bitmart.js +3 -3
- package/dist/cjs/src/pro/bitmex.js +4 -4
- package/dist/cjs/src/pro/bitopro.js +2 -2
- package/dist/cjs/src/pro/bitrue.js +1 -1
- package/dist/cjs/src/pro/bitstamp.js +2 -2
- package/dist/cjs/src/pro/bittrex.js +4 -4
- package/dist/cjs/src/pro/bitvavo.js +4 -4
- package/dist/cjs/src/pro/bybit.js +5 -5
- package/dist/cjs/src/pro/cex.js +3 -3
- package/dist/cjs/src/pro/coinbasepro.js +5 -5
- package/dist/cjs/src/pro/coinex.js +3 -3
- package/dist/cjs/src/pro/cryptocom.js +7 -7
- package/dist/cjs/src/pro/currencycom.js +2 -2
- package/dist/cjs/src/pro/deribit.js +3 -3
- package/dist/cjs/src/pro/exmo.js +2 -2
- package/dist/cjs/src/pro/gate.js +5 -5
- package/dist/cjs/src/pro/gemini.js +2 -2
- package/dist/cjs/src/pro/hitbtc.js +2 -2
- package/dist/cjs/src/pro/hollaex.js +3 -3
- package/dist/cjs/src/pro/huobi.js +4 -4
- package/dist/cjs/src/pro/huobijp.js +2 -2
- package/dist/cjs/src/pro/idex.js +3 -3
- package/dist/cjs/src/pro/independentreserve.js +1 -1
- package/dist/cjs/src/pro/kraken.js +6 -6
- package/dist/cjs/src/pro/krakenfutures.js +2 -2
- package/dist/cjs/src/pro/kucoin.js +4 -4
- package/dist/cjs/src/pro/kucoinfutures.js +3 -3
- package/dist/cjs/src/pro/luno.js +1 -1
- package/dist/cjs/src/pro/ndax.js +2 -2
- package/dist/cjs/src/pro/okcoin.js +3 -3
- package/dist/cjs/src/pro/okx.js +12 -11
- package/dist/cjs/src/pro/phemex.js +4 -4
- package/dist/cjs/src/pro/poloniex.js +1 -1
- package/dist/cjs/src/pro/upbit.js +2 -2
- package/dist/cjs/src/pro/wazirx.js +3 -3
- package/dist/cjs/src/pro/whitebit.js +4 -4
- package/dist/cjs/src/probit.js +17 -17
- package/dist/cjs/src/tidex.js +11 -11
- package/dist/cjs/src/timex.js +14 -14
- package/dist/cjs/src/tokocrypto.js +16 -16
- package/dist/cjs/src/upbit.js +18 -18
- package/dist/cjs/src/wavesexchange.js +13 -13
- package/dist/cjs/src/wazirx.js +10 -10
- package/dist/cjs/src/whitebit.js +21 -21
- package/dist/cjs/src/woo.js +28 -22
- package/dist/cjs/src/yobit.js +14 -14
- package/dist/cjs/src/zaif.js +8 -8
- package/dist/cjs/src/zonda.js +13 -13
- package/js/ccxt.d.ts +1 -1
- package/js/ccxt.js +1 -1
- package/js/src/abstract/bitmart.d.ts +13 -0
- package/js/src/abstract/bybit.d.ts +33 -21
- package/js/src/abstract/woo.d.ts +6 -0
- package/js/src/ace.js +9 -9
- package/js/src/alpaca.js +6 -6
- package/js/src/ascendex.js +22 -22
- package/js/src/base/Exchange.js +2 -2
- package/js/src/bigone.js +17 -17
- package/js/src/binance.js +51 -51
- package/js/src/bingx.js +21 -21
- package/js/src/bit2c.js +10 -10
- package/js/src/bitbank.js +11 -11
- package/js/src/bitbns.js +12 -12
- package/js/src/bitfinex.js +19 -19
- package/js/src/bitfinex2.js +25 -25
- package/js/src/bitflyer.js +15 -15
- package/js/src/bitforex.js +9 -9
- package/js/src/bitget.js +34 -34
- package/js/src/bithumb.js +9 -9
- package/js/src/bitmart.js +42 -29
- package/js/src/bitmex.js +19 -19
- package/js/src/bitopro.js +18 -18
- package/js/src/bitpanda.js +19 -19
- package/js/src/bitrue.js +15 -15
- package/js/src/bitso.js +19 -19
- package/js/src/bitstamp.js +19 -19
- package/js/src/bitstamp1.js +6 -6
- package/js/src/bittrex.js +24 -24
- package/js/src/bitvavo.js +16 -16
- package/js/src/bkex.js +17 -17
- package/js/src/bl3p.js +6 -6
- package/js/src/blockchaincom.js +20 -20
- package/js/src/btcalpha.js +13 -13
- package/js/src/btcbox.js +8 -8
- package/js/src/btcmarkets.js +15 -15
- package/js/src/btctradeua.js +6 -6
- package/js/src/btcturk.js +9 -9
- package/js/src/bybit.js +148 -116
- package/js/src/cex.js +12 -12
- package/js/src/coinbase.js +20 -20
- package/js/src/coinbasepro.js +22 -22
- package/js/src/coincheck.js +10 -10
- package/js/src/coinex.d.ts +1 -0
- package/js/src/coinex.js +81 -35
- package/js/src/coinfalcon.js +14 -14
- package/js/src/coinmate.js +12 -12
- package/js/src/coinone.js +10 -10
- package/js/src/coinsph.js +20 -20
- package/js/src/coinspot.js +6 -6
- package/js/src/cryptocom.js +24 -24
- package/js/src/currencycom.js +18 -18
- package/js/src/delta.js +23 -23
- package/js/src/deribit.js +27 -27
- package/js/src/digifinex.js +27 -27
- package/js/src/exmo.js +24 -24
- package/js/src/gate.js +34 -34
- package/js/src/gemini.js +14 -14
- package/js/src/hitbtc.js +30 -30
- package/js/src/hollaex.js +20 -20
- package/js/src/huobi.js +40 -40
- package/js/src/huobijp.js +18 -18
- package/js/src/idex.js +17 -17
- package/js/src/independentreserve.js +10 -10
- package/js/src/indodax.js +12 -12
- package/js/src/kraken.js +25 -25
- package/js/src/krakenfutures.js +12 -12
- package/js/src/kucoin.js +29 -29
- package/js/src/kucoinfutures.js +19 -19
- package/js/src/kuna.js +10 -10
- package/js/src/latoken.js +15 -15
- package/js/src/lbank.js +10 -10
- package/js/src/lbank2.js +21 -21
- package/js/src/luno.js +14 -14
- package/js/src/lykke.js +14 -14
- package/js/src/mercado.js +10 -10
- package/js/src/mexc.js +38 -38
- package/js/src/ndax.js +18 -18
- package/js/src/novadax.js +18 -18
- package/js/src/oceanex.js +14 -14
- package/js/src/okcoin.js +19 -19
- package/js/src/okx.js +48 -48
- package/js/src/paymium.js +9 -9
- package/js/src/phemex.js +24 -24
- package/js/src/poloniex.js +77 -60
- package/js/src/poloniexfutures.js +16 -16
- package/js/src/pro/alpaca.js +5 -5
- package/js/src/pro/ascendex.js +2 -2
- package/js/src/pro/binance.js +10 -10
- package/js/src/pro/bitfinex.js +3 -3
- package/js/src/pro/bitfinex2.js +4 -4
- package/js/src/pro/bitget.js +4 -4
- package/js/src/pro/bitmart.js +3 -3
- package/js/src/pro/bitmex.js +4 -4
- package/js/src/pro/bitopro.js +2 -2
- package/js/src/pro/bitrue.js +1 -1
- package/js/src/pro/bitstamp.js +2 -2
- package/js/src/pro/bittrex.js +4 -4
- package/js/src/pro/bitvavo.js +4 -4
- package/js/src/pro/bybit.js +5 -5
- package/js/src/pro/cex.js +3 -3
- package/js/src/pro/coinbasepro.js +5 -5
- package/js/src/pro/coinex.js +3 -3
- package/js/src/pro/cryptocom.js +7 -7
- package/js/src/pro/currencycom.js +2 -2
- package/js/src/pro/deribit.js +3 -3
- package/js/src/pro/exmo.js +2 -2
- package/js/src/pro/gate.js +5 -5
- package/js/src/pro/gemini.js +2 -2
- package/js/src/pro/hitbtc.js +2 -2
- package/js/src/pro/hollaex.js +3 -3
- package/js/src/pro/huobi.js +4 -4
- package/js/src/pro/huobijp.js +2 -2
- package/js/src/pro/idex.js +3 -3
- package/js/src/pro/independentreserve.js +1 -1
- package/js/src/pro/kraken.js +6 -6
- package/js/src/pro/krakenfutures.js +2 -2
- package/js/src/pro/kucoin.js +4 -4
- package/js/src/pro/kucoinfutures.js +3 -3
- package/js/src/pro/luno.js +1 -1
- package/js/src/pro/ndax.js +2 -2
- package/js/src/pro/okcoin.js +3 -3
- package/js/src/pro/okx.d.ts +1 -1
- package/js/src/pro/okx.js +12 -11
- package/js/src/pro/phemex.js +4 -4
- package/js/src/pro/poloniex.js +1 -1
- package/js/src/pro/upbit.js +2 -2
- package/js/src/pro/wazirx.js +3 -3
- package/js/src/pro/whitebit.js +4 -4
- package/js/src/probit.js +17 -17
- package/js/src/tidex.js +11 -11
- package/js/src/timex.js +14 -14
- package/js/src/tokocrypto.js +16 -16
- package/js/src/upbit.js +18 -18
- package/js/src/wavesexchange.js +13 -13
- package/js/src/wazirx.js +10 -10
- package/js/src/whitebit.js +21 -21
- package/js/src/woo.js +28 -22
- package/js/src/yobit.js +14 -14
- package/js/src/zaif.js +8 -8
- package/js/src/zonda.js +13 -13
- package/package.json +1 -1
package/js/src/ascendex.js
CHANGED
|
@@ -704,7 +704,7 @@ export default class ascendex extends Exchange {
|
|
|
704
704
|
* @name ascendex#fetchAccounts
|
|
705
705
|
* @description fetch all the accounts associated with a profile
|
|
706
706
|
* @param {object} [params] extra parameters specific to the ascendex api endpoint
|
|
707
|
-
* @returns {object} a dictionary of [account structures]{@link https://
|
|
707
|
+
* @returns {object} a dictionary of [account structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#account-structure} indexed by the account type
|
|
708
708
|
*/
|
|
709
709
|
let accountGroup = this.safeString(this.options, 'account-group');
|
|
710
710
|
let response = undefined;
|
|
@@ -891,7 +891,7 @@ export default class ascendex extends Exchange {
|
|
|
891
891
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
892
892
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
893
893
|
* @param {object} [params] extra parameters specific to the ascendex api endpoint
|
|
894
|
-
* @returns {object} A dictionary of [order book structures]{@link https://
|
|
894
|
+
* @returns {object} A dictionary of [order book structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-book-structure} indexed by market symbols
|
|
895
895
|
*/
|
|
896
896
|
await this.loadMarkets();
|
|
897
897
|
const market = this.market(symbol);
|
|
@@ -982,7 +982,7 @@ export default class ascendex extends Exchange {
|
|
|
982
982
|
* @description fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
|
983
983
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
984
984
|
* @param {object} [params] extra parameters specific to the ascendex api endpoint
|
|
985
|
-
* @returns {object} a [ticker structure]{@link https://
|
|
985
|
+
* @returns {object} a [ticker structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
|
|
986
986
|
*/
|
|
987
987
|
await this.loadMarkets();
|
|
988
988
|
const market = this.market(symbol);
|
|
@@ -1018,7 +1018,7 @@ export default class ascendex extends Exchange {
|
|
|
1018
1018
|
* @see https://ascendex.github.io/ascendex-futures-pro-api-v2/#ticker
|
|
1019
1019
|
* @param {string[]|undefined} symbols unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
|
|
1020
1020
|
* @param {object} [params] extra parameters specific to the ascendex api endpoint
|
|
1021
|
-
* @returns {object} a dictionary of [ticker structures]{@link https://
|
|
1021
|
+
* @returns {object} a dictionary of [ticker structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
|
|
1022
1022
|
*/
|
|
1023
1023
|
await this.loadMarkets();
|
|
1024
1024
|
const request = {};
|
|
@@ -1419,7 +1419,7 @@ export default class ascendex extends Exchange {
|
|
|
1419
1419
|
* @name ascendex#fetchTradingFees
|
|
1420
1420
|
* @description fetch the trading fees for multiple markets
|
|
1421
1421
|
* @param {object} [params] extra parameters specific to the ascendex api endpoint
|
|
1422
|
-
* @returns {object} a dictionary of [fee structures]{@link https://
|
|
1422
|
+
* @returns {object} a dictionary of [fee structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#fee-structure} indexed by market symbols
|
|
1423
1423
|
*/
|
|
1424
1424
|
await this.loadMarkets();
|
|
1425
1425
|
await this.loadAccounts();
|
|
@@ -1471,12 +1471,12 @@ export default class ascendex extends Exchange {
|
|
|
1471
1471
|
* @param {string} type "limit" or "market"
|
|
1472
1472
|
* @param {string} side "buy" or "sell"
|
|
1473
1473
|
* @param {float} amount the amount of currency to trade
|
|
1474
|
-
* @param {float} price *ignored in "market" orders* the price at which the order is to be fullfilled at in units of the quote currency
|
|
1474
|
+
* @param {float} [price] *ignored in "market" orders* the price at which the order is to be fullfilled at in units of the quote currency
|
|
1475
1475
|
* @param {object} [params] Extra parameters specific to the exchange API endpoint
|
|
1476
1476
|
* @param {string} [params.timeInForce] "GTC", "IOC", "FOK", or "PO"
|
|
1477
1477
|
* @param {bool} [params.postOnly] true or false
|
|
1478
1478
|
* @param {float} [params.stopPrice] The price at which a trigger order is triggered at
|
|
1479
|
-
* @returns [An order structure]{@link https://
|
|
1479
|
+
* @returns [An order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
1480
1480
|
*/
|
|
1481
1481
|
await this.loadMarkets();
|
|
1482
1482
|
await this.loadAccounts();
|
|
@@ -1627,7 +1627,7 @@ export default class ascendex extends Exchange {
|
|
|
1627
1627
|
* @description fetches information on an order made by the user
|
|
1628
1628
|
* @param {string} symbol unified symbol of the market the order was made in
|
|
1629
1629
|
* @param {object} [params] extra parameters specific to the ascendex api endpoint
|
|
1630
|
-
* @returns {object} An [order structure]{@link https://
|
|
1630
|
+
* @returns {object} An [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
1631
1631
|
*/
|
|
1632
1632
|
await this.loadMarkets();
|
|
1633
1633
|
await this.loadAccounts();
|
|
@@ -1740,7 +1740,7 @@ export default class ascendex extends Exchange {
|
|
|
1740
1740
|
* @param {int} [since] the earliest time in ms to fetch open orders for
|
|
1741
1741
|
* @param {int} [limit] the maximum number of open orders structures to retrieve
|
|
1742
1742
|
* @param {object} [params] extra parameters specific to the ascendex api endpoint
|
|
1743
|
-
* @returns {Order[]} a list of [order structures]{@link https://
|
|
1743
|
+
* @returns {Order[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
1744
1744
|
*/
|
|
1745
1745
|
await this.loadMarkets();
|
|
1746
1746
|
await this.loadAccounts();
|
|
@@ -1864,7 +1864,7 @@ export default class ascendex extends Exchange {
|
|
|
1864
1864
|
* @param {int} [limit] the maximum number of orde structures to retrieve
|
|
1865
1865
|
* @param {object} [params] extra parameters specific to the ascendex api endpoint
|
|
1866
1866
|
* @param {int} [params.until] the latest time in ms to fetch orders for
|
|
1867
|
-
* @returns {Order[]} a list of [order structures]{@link https://
|
|
1867
|
+
* @returns {Order[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
1868
1868
|
*/
|
|
1869
1869
|
await this.loadMarkets();
|
|
1870
1870
|
await this.loadAccounts();
|
|
@@ -2023,7 +2023,7 @@ export default class ascendex extends Exchange {
|
|
|
2023
2023
|
* @param {string} id order id
|
|
2024
2024
|
* @param {string} symbol unified symbol of the market the order was made in
|
|
2025
2025
|
* @param {object} [params] extra parameters specific to the ascendex api endpoint
|
|
2026
|
-
* @returns {object} An [order structure]{@link https://
|
|
2026
|
+
* @returns {object} An [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
2027
2027
|
*/
|
|
2028
2028
|
if (symbol === undefined) {
|
|
2029
2029
|
throw new ArgumentsRequired(this.id + ' cancelOrder() requires a symbol argument');
|
|
@@ -2141,7 +2141,7 @@ export default class ascendex extends Exchange {
|
|
|
2141
2141
|
* @description cancel all open orders
|
|
2142
2142
|
* @param {string} symbol unified market symbol, only orders in the market of this symbol are cancelled when symbol is not undefined
|
|
2143
2143
|
* @param {object} [params] extra parameters specific to the ascendex api endpoint
|
|
2144
|
-
* @returns {object[]} a list of [order structures]{@link https://
|
|
2144
|
+
* @returns {object[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
2145
2145
|
*/
|
|
2146
2146
|
await this.loadMarkets();
|
|
2147
2147
|
await this.loadAccounts();
|
|
@@ -2267,7 +2267,7 @@ export default class ascendex extends Exchange {
|
|
|
2267
2267
|
* @description fetch the deposit address for a currency associated with this account
|
|
2268
2268
|
* @param {string} code unified currency code
|
|
2269
2269
|
* @param {object} [params] extra parameters specific to the ascendex api endpoint
|
|
2270
|
-
* @returns {object} an [address structure]{@link https://
|
|
2270
|
+
* @returns {object} an [address structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#address-structure}
|
|
2271
2271
|
*/
|
|
2272
2272
|
await this.loadMarkets();
|
|
2273
2273
|
const currency = this.currency(code);
|
|
@@ -2341,7 +2341,7 @@ export default class ascendex extends Exchange {
|
|
|
2341
2341
|
* @param {int} [since] the earliest time in ms to fetch deposits for
|
|
2342
2342
|
* @param {int} [limit] the maximum number of deposits structures to retrieve
|
|
2343
2343
|
* @param {object} [params] extra parameters specific to the ascendex api endpoint
|
|
2344
|
-
* @returns {object[]} a list of [transaction structures]{@link https://
|
|
2344
|
+
* @returns {object[]} a list of [transaction structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#transaction-structure}
|
|
2345
2345
|
*/
|
|
2346
2346
|
const request = {
|
|
2347
2347
|
'txType': 'deposit',
|
|
@@ -2357,7 +2357,7 @@ export default class ascendex extends Exchange {
|
|
|
2357
2357
|
* @param {int} [since] the earliest time in ms to fetch withdrawals for
|
|
2358
2358
|
* @param {int} [limit] the maximum number of withdrawals structures to retrieve
|
|
2359
2359
|
* @param {object} [params] extra parameters specific to the ascendex api endpoint
|
|
2360
|
-
* @returns {object[]} a list of [transaction structures]{@link https://
|
|
2360
|
+
* @returns {object[]} a list of [transaction structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#transaction-structure}
|
|
2361
2361
|
*/
|
|
2362
2362
|
const request = {
|
|
2363
2363
|
'txType': 'withdrawal',
|
|
@@ -2373,7 +2373,7 @@ export default class ascendex extends Exchange {
|
|
|
2373
2373
|
* @param {int} [since] timestamp in ms of the earliest deposit/withdrawal, default is undefined
|
|
2374
2374
|
* @param {int} [limit] max number of deposit/withdrawals to return, default is undefined
|
|
2375
2375
|
* @param {object} [params] extra parameters specific to the ascendex api endpoint
|
|
2376
|
-
* @returns {object} a list of [transaction structure]{@link https://
|
|
2376
|
+
* @returns {object} a list of [transaction structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#transaction-structure}
|
|
2377
2377
|
*/
|
|
2378
2378
|
await this.loadMarkets();
|
|
2379
2379
|
const request = {
|
|
@@ -2495,7 +2495,7 @@ export default class ascendex extends Exchange {
|
|
|
2495
2495
|
* @description fetch all open positions
|
|
2496
2496
|
* @param {string[]|undefined} symbols list of unified market symbols
|
|
2497
2497
|
* @param {object} [params] extra parameters specific to the ascendex api endpoint
|
|
2498
|
-
* @returns {object[]} a list of [position structure]{@link https://
|
|
2498
|
+
* @returns {object[]} a list of [position structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#position-structure}
|
|
2499
2499
|
*/
|
|
2500
2500
|
await this.loadMarkets();
|
|
2501
2501
|
await this.loadAccounts();
|
|
@@ -2661,7 +2661,7 @@ export default class ascendex extends Exchange {
|
|
|
2661
2661
|
* @description fetch the funding rate for multiple markets
|
|
2662
2662
|
* @param {string[]|undefined} symbols list of unified market symbols
|
|
2663
2663
|
* @param {object} [params] extra parameters specific to the ascendex api endpoint
|
|
2664
|
-
* @returns {object} a dictionary of [funding rates structures]{@link https://
|
|
2664
|
+
* @returns {object} a dictionary of [funding rates structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#funding-rates-structure}, indexe by market symbols
|
|
2665
2665
|
*/
|
|
2666
2666
|
await this.loadMarkets();
|
|
2667
2667
|
symbols = this.marketSymbols(symbols);
|
|
@@ -2743,7 +2743,7 @@ export default class ascendex extends Exchange {
|
|
|
2743
2743
|
* @param {string} symbol unified market symbol
|
|
2744
2744
|
* @param {float} amount the amount of margin to remove
|
|
2745
2745
|
* @param {object} [params] extra parameters specific to the ascendex api endpoint
|
|
2746
|
-
* @returns {object} a [margin structure]{@link https://
|
|
2746
|
+
* @returns {object} a [margin structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#reduce-margin-structure}
|
|
2747
2747
|
*/
|
|
2748
2748
|
return await this.modifyMarginHelper(symbol, amount, 'reduce', params);
|
|
2749
2749
|
}
|
|
@@ -2755,7 +2755,7 @@ export default class ascendex extends Exchange {
|
|
|
2755
2755
|
* @param {string} symbol unified market symbol
|
|
2756
2756
|
* @param {float} amount amount of margin to add
|
|
2757
2757
|
* @param {object} [params] extra parameters specific to the ascendex api endpoint
|
|
2758
|
-
* @returns {object} a [margin structure]{@link https://
|
|
2758
|
+
* @returns {object} a [margin structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#add-margin-structure}
|
|
2759
2759
|
*/
|
|
2760
2760
|
return await this.modifyMarginHelper(symbol, amount, 'add', params);
|
|
2761
2761
|
}
|
|
@@ -2829,7 +2829,7 @@ export default class ascendex extends Exchange {
|
|
|
2829
2829
|
* @description retrieve information on the maximum leverage, and maintenance margin for trades of varying trade sizes
|
|
2830
2830
|
* @param {string[]|undefined} symbols list of unified market symbols
|
|
2831
2831
|
* @param {object} [params] extra parameters specific to the ascendex api endpoint
|
|
2832
|
-
* @returns {object} a dictionary of [leverage tiers structures]{@link https://
|
|
2832
|
+
* @returns {object} a dictionary of [leverage tiers structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#leverage-tiers-structure}, indexed by market symbols
|
|
2833
2833
|
*/
|
|
2834
2834
|
await this.loadMarkets();
|
|
2835
2835
|
const response = await this.v2PublicGetFuturesContract(params);
|
|
@@ -2987,7 +2987,7 @@ export default class ascendex extends Exchange {
|
|
|
2987
2987
|
* @param {string} fromAccount account to transfer from
|
|
2988
2988
|
* @param {string} toAccount account to transfer to
|
|
2989
2989
|
* @param {object} [params] extra parameters specific to the ascendex api endpoint
|
|
2990
|
-
* @returns {object} a [transfer structure]{@link https://
|
|
2990
|
+
* @returns {object} a [transfer structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#transfer-structure}
|
|
2991
2991
|
*/
|
|
2992
2992
|
await this.loadMarkets();
|
|
2993
2993
|
await this.loadAccounts();
|
package/js/src/base/Exchange.js
CHANGED
|
@@ -2764,7 +2764,7 @@ export default class Exchange {
|
|
|
2764
2764
|
* @description specifically fetches positions for specific symbol, unlike fetchPositions (which can work with multiple symbols, but because of that, it might be slower & more rate-limit consuming)
|
|
2765
2765
|
* @param {string} symbol unified market symbol of the market the position is held in
|
|
2766
2766
|
* @param {object} params extra parameters specific to the endpoint
|
|
2767
|
-
* @returns {object[]} a list of [position structure]{@link https://
|
|
2767
|
+
* @returns {object[]} a list of [position structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#position-structure} with maximum 3 items - one position for "one-way" mode, and two positions (long & short) for "two-way" (a.k.a. hedge) mode
|
|
2768
2768
|
*/
|
|
2769
2769
|
throw new NotSupported(this.id + ' fetchPositionsBySymbol() is not supported yet');
|
|
2770
2770
|
}
|
|
@@ -3949,7 +3949,7 @@ export default class Exchange {
|
|
|
3949
3949
|
* @param {object} market ccxt market
|
|
3950
3950
|
* @param {int} [since] when defined, the response items are filtered to only include items after this timestamp
|
|
3951
3951
|
* @param {int} [limit] limits the number of items in the response
|
|
3952
|
-
* @returns {object[]} an array of [funding history structures]{@link https://
|
|
3952
|
+
* @returns {object[]} an array of [funding history structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#funding-history-structure}
|
|
3953
3953
|
*/
|
|
3954
3954
|
const result = [];
|
|
3955
3955
|
for (let i = 0; i < incomes.length; i++) {
|
package/js/src/bigone.js
CHANGED
|
@@ -638,7 +638,7 @@ export default class bigone extends Exchange {
|
|
|
638
638
|
* @description fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
|
639
639
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
640
640
|
* @param {object} [params] extra parameters specific to the bigone api endpoint
|
|
641
|
-
* @returns {object} a [ticker structure]{@link https://
|
|
641
|
+
* @returns {object} a [ticker structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
|
|
642
642
|
*/
|
|
643
643
|
await this.loadMarkets();
|
|
644
644
|
const market = this.market(symbol);
|
|
@@ -672,7 +672,7 @@ export default class bigone extends Exchange {
|
|
|
672
672
|
* @description fetches price tickers for multiple markets, statistical calculations with the information calculated over the past 24 hours each market
|
|
673
673
|
* @param {string[]|undefined} symbols unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
|
|
674
674
|
* @param {object} [params] extra parameters specific to the bigone api endpoint
|
|
675
|
-
* @returns {object} a dictionary of [ticker structures]{@link https://
|
|
675
|
+
* @returns {object} a dictionary of [ticker structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
|
|
676
676
|
*/
|
|
677
677
|
await this.loadMarkets();
|
|
678
678
|
const request = {};
|
|
@@ -748,7 +748,7 @@ export default class bigone extends Exchange {
|
|
|
748
748
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
749
749
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
750
750
|
* @param {object} [params] extra parameters specific to the bigone api endpoint
|
|
751
|
-
* @returns {object} A dictionary of [order book structures]{@link https://
|
|
751
|
+
* @returns {object} A dictionary of [order book structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-book-structure} indexed by market symbols
|
|
752
752
|
*/
|
|
753
753
|
await this.loadMarkets();
|
|
754
754
|
const market = this.market(symbol);
|
|
@@ -1156,9 +1156,9 @@ export default class bigone extends Exchange {
|
|
|
1156
1156
|
* @param {string} type 'market' or 'limit'
|
|
1157
1157
|
* @param {string} side 'buy' or 'sell'
|
|
1158
1158
|
* @param {float} amount how much of currency you want to trade in units of base currency
|
|
1159
|
-
* @param {float} price the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
|
|
1159
|
+
* @param {float} [price] the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
|
|
1160
1160
|
* @param {object} [params] extra parameters specific to the bigone api endpoint
|
|
1161
|
-
* @returns {object} an [order structure]{@link https://
|
|
1161
|
+
* @returns {object} an [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
1162
1162
|
*/
|
|
1163
1163
|
await this.loadMarkets();
|
|
1164
1164
|
const market = this.market(symbol);
|
|
@@ -1218,7 +1218,7 @@ export default class bigone extends Exchange {
|
|
|
1218
1218
|
* @param {string} id order id
|
|
1219
1219
|
* @param {string} symbol Not used by bigone cancelOrder ()
|
|
1220
1220
|
* @param {object} [params] extra parameters specific to the bigone api endpoint
|
|
1221
|
-
* @returns {object} An [order structure]{@link https://
|
|
1221
|
+
* @returns {object} An [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
1222
1222
|
*/
|
|
1223
1223
|
await this.loadMarkets();
|
|
1224
1224
|
const request = { 'id': id };
|
|
@@ -1245,7 +1245,7 @@ export default class bigone extends Exchange {
|
|
|
1245
1245
|
* @description cancel all open orders
|
|
1246
1246
|
* @param {string} symbol unified market symbol, only orders in the market of this symbol are cancelled when symbol is not undefined
|
|
1247
1247
|
* @param {object} [params] extra parameters specific to the bigone api endpoint
|
|
1248
|
-
* @returns {object[]} a list of [order structures]{@link https://
|
|
1248
|
+
* @returns {object[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
1249
1249
|
*/
|
|
1250
1250
|
await this.loadMarkets();
|
|
1251
1251
|
const market = this.market(symbol);
|
|
@@ -1274,7 +1274,7 @@ export default class bigone extends Exchange {
|
|
|
1274
1274
|
* @description fetches information on an order made by the user
|
|
1275
1275
|
* @param {string} symbol not used by bigone fetchOrder
|
|
1276
1276
|
* @param {object} [params] extra parameters specific to the bigone api endpoint
|
|
1277
|
-
* @returns {object} An [order structure]{@link https://
|
|
1277
|
+
* @returns {object} An [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
1278
1278
|
*/
|
|
1279
1279
|
await this.loadMarkets();
|
|
1280
1280
|
const request = { 'id': id };
|
|
@@ -1291,7 +1291,7 @@ export default class bigone extends Exchange {
|
|
|
1291
1291
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
1292
1292
|
* @param {int} [limit] the maximum number of orde structures to retrieve
|
|
1293
1293
|
* @param {object} [params] extra parameters specific to the bigone api endpoint
|
|
1294
|
-
* @returns {Order[]} a list of [order structures]{@link https://
|
|
1294
|
+
* @returns {Order[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
1295
1295
|
*/
|
|
1296
1296
|
if (symbol === undefined) {
|
|
1297
1297
|
throw new ArgumentsRequired(this.id + ' fetchOrders() requires a symbol argument');
|
|
@@ -1341,7 +1341,7 @@ export default class bigone extends Exchange {
|
|
|
1341
1341
|
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
1342
1342
|
* @param {int} [limit] the maximum number of trades structures to retrieve
|
|
1343
1343
|
* @param {object} [params] extra parameters specific to the bigone api endpoint
|
|
1344
|
-
* @returns {Trade[]} a list of [trade structures]{@link https://
|
|
1344
|
+
* @returns {Trade[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#trade-structure}
|
|
1345
1345
|
*/
|
|
1346
1346
|
await this.loadMarkets();
|
|
1347
1347
|
if (symbol === undefined) {
|
|
@@ -1410,7 +1410,7 @@ export default class bigone extends Exchange {
|
|
|
1410
1410
|
* @param {int} [since] the earliest time in ms to fetch open orders for
|
|
1411
1411
|
* @param {int} [limit] the maximum number of open orders structures to retrieve
|
|
1412
1412
|
* @param {object} [params] extra parameters specific to the bigone api endpoint
|
|
1413
|
-
* @returns {Order[]} a list of [order structures]{@link https://
|
|
1413
|
+
* @returns {Order[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
1414
1414
|
*/
|
|
1415
1415
|
const request = {
|
|
1416
1416
|
'state': 'PENDING',
|
|
@@ -1426,7 +1426,7 @@ export default class bigone extends Exchange {
|
|
|
1426
1426
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
1427
1427
|
* @param {int} [limit] the maximum number of orde structures to retrieve
|
|
1428
1428
|
* @param {object} [params] extra parameters specific to the bigone api endpoint
|
|
1429
|
-
* @returns {Order[]} a list of [order structures]{@link https://
|
|
1429
|
+
* @returns {Order[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
1430
1430
|
*/
|
|
1431
1431
|
const request = {
|
|
1432
1432
|
'state': 'FILLED',
|
|
@@ -1478,7 +1478,7 @@ export default class bigone extends Exchange {
|
|
|
1478
1478
|
* @description fetch the deposit address for a currency associated with this account
|
|
1479
1479
|
* @param {string} code unified currency code
|
|
1480
1480
|
* @param {object} [params] extra parameters specific to the bigone api endpoint
|
|
1481
|
-
* @returns {object} an [address structure]{@link https://
|
|
1481
|
+
* @returns {object} an [address structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#address-structure}
|
|
1482
1482
|
*/
|
|
1483
1483
|
await this.loadMarkets();
|
|
1484
1484
|
const currency = this.currency(code);
|
|
@@ -1627,7 +1627,7 @@ export default class bigone extends Exchange {
|
|
|
1627
1627
|
* @param {int} [since] the earliest time in ms to fetch deposits for
|
|
1628
1628
|
* @param {int} [limit] the maximum number of deposits structures to retrieve
|
|
1629
1629
|
* @param {object} [params] extra parameters specific to the bigone api endpoint
|
|
1630
|
-
* @returns {object[]} a list of [transaction structures]{@link https://
|
|
1630
|
+
* @returns {object[]} a list of [transaction structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#transaction-structure}
|
|
1631
1631
|
*/
|
|
1632
1632
|
await this.loadMarkets();
|
|
1633
1633
|
const request = {
|
|
@@ -1678,7 +1678,7 @@ export default class bigone extends Exchange {
|
|
|
1678
1678
|
* @param {int} [since] the earliest time in ms to fetch withdrawals for
|
|
1679
1679
|
* @param {int} [limit] the maximum number of withdrawals structures to retrieve
|
|
1680
1680
|
* @param {object} [params] extra parameters specific to the bigone api endpoint
|
|
1681
|
-
* @returns {object[]} a list of [transaction structures]{@link https://
|
|
1681
|
+
* @returns {object[]} a list of [transaction structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#transaction-structure}
|
|
1682
1682
|
*/
|
|
1683
1683
|
await this.loadMarkets();
|
|
1684
1684
|
const request = {
|
|
@@ -1730,7 +1730,7 @@ export default class bigone extends Exchange {
|
|
|
1730
1730
|
* @param {string} fromAccount account to transfer from
|
|
1731
1731
|
* @param {string} toAccount account to transfer to
|
|
1732
1732
|
* @param {object} [params] extra parameters specific to the bigone api endpoint
|
|
1733
|
-
* @returns {object} a [transfer structure]{@link https://
|
|
1733
|
+
* @returns {object} a [transfer structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#transfer-structure}
|
|
1734
1734
|
*/
|
|
1735
1735
|
await this.loadMarkets();
|
|
1736
1736
|
const currency = this.currency(code);
|
|
@@ -1801,7 +1801,7 @@ export default class bigone extends Exchange {
|
|
|
1801
1801
|
* @param {string} address the address to withdraw to
|
|
1802
1802
|
* @param {string} tag
|
|
1803
1803
|
* @param {object} [params] extra parameters specific to the bigone api endpoint
|
|
1804
|
-
* @returns {object} a [transaction structure]{@link https://
|
|
1804
|
+
* @returns {object} a [transaction structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#transaction-structure}
|
|
1805
1805
|
*/
|
|
1806
1806
|
[tag, params] = this.handleWithdrawTagAndParams(tag, params);
|
|
1807
1807
|
await this.loadMarkets();
|