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/dist/cjs/src/zonda.js
CHANGED
|
@@ -400,7 +400,7 @@ class zonda extends zonda$1 {
|
|
|
400
400
|
* @param {int} [since] the earliest time in ms to fetch open orders for
|
|
401
401
|
* @param {int} [limit] the maximum number of open orders structures to retrieve
|
|
402
402
|
* @param {object} [params] extra parameters specific to the zonda api endpoint
|
|
403
|
-
* @returns {Order[]} a list of [order structures]{@link https://
|
|
403
|
+
* @returns {Order[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
404
404
|
*/
|
|
405
405
|
await this.loadMarkets();
|
|
406
406
|
const request = {};
|
|
@@ -468,7 +468,7 @@ class zonda extends zonda$1 {
|
|
|
468
468
|
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
469
469
|
* @param {int} [limit] the maximum number of trades structures to retrieve
|
|
470
470
|
* @param {object} [params] extra parameters specific to the zonda api endpoint
|
|
471
|
-
* @returns {Trade[]} a list of [trade structures]{@link https://
|
|
471
|
+
* @returns {Trade[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#trade-structure}
|
|
472
472
|
*/
|
|
473
473
|
await this.loadMarkets();
|
|
474
474
|
const request = {};
|
|
@@ -545,7 +545,7 @@ class zonda extends zonda$1 {
|
|
|
545
545
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
546
546
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
547
547
|
* @param {object} [params] extra parameters specific to the zonda api endpoint
|
|
548
|
-
* @returns {object} A dictionary of [order book structures]{@link https://
|
|
548
|
+
* @returns {object} A dictionary of [order book structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-book-structure} indexed by market symbols
|
|
549
549
|
*/
|
|
550
550
|
await this.loadMarkets();
|
|
551
551
|
const market = this.market(symbol);
|
|
@@ -657,7 +657,7 @@ class zonda extends zonda$1 {
|
|
|
657
657
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
658
658
|
* @param {object} [params] extra parameters specific to the zonda api endpoint
|
|
659
659
|
* @param {string} [params.method] v1_01PublicGetTradingTickerSymbol (default) or v1_01PublicGetTradingStatsSymbol
|
|
660
|
-
* @returns {object} a [ticker structure]{@link https://
|
|
660
|
+
* @returns {object} a [ticker structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
|
|
661
661
|
*/
|
|
662
662
|
await this.loadMarkets();
|
|
663
663
|
const market = this.market(symbol);
|
|
@@ -730,7 +730,7 @@ class zonda extends zonda$1 {
|
|
|
730
730
|
* @param {string[]|undefined} symbols unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
|
|
731
731
|
* @param {object} [params] extra parameters specific to the zonda api endpoint
|
|
732
732
|
* @param {string} [params.method] v1_01PublicGetTradingTicker (default) or v1_01PublicGetTradingStats
|
|
733
|
-
* @returns {object} a dictionary of [ticker structures]{@link https://
|
|
733
|
+
* @returns {object} a dictionary of [ticker structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
|
|
734
734
|
*/
|
|
735
735
|
await this.loadMarkets();
|
|
736
736
|
const method = 'v1_01PublicGetTradingTicker';
|
|
@@ -805,7 +805,7 @@ class zonda extends zonda$1 {
|
|
|
805
805
|
* @param {int} [since] timestamp in ms of the earliest ledger entry, default is undefined
|
|
806
806
|
* @param {int} [limit] max number of ledger entrys to return, default is undefined
|
|
807
807
|
* @param {object} [params] extra parameters specific to the zonda api endpoint
|
|
808
|
-
* @returns {object} a [ledger structure]{@link https://
|
|
808
|
+
* @returns {object} a [ledger structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#ledger-structure}
|
|
809
809
|
*/
|
|
810
810
|
const balanceCurrencies = [];
|
|
811
811
|
if (code !== undefined) {
|
|
@@ -1332,9 +1332,9 @@ class zonda extends zonda$1 {
|
|
|
1332
1332
|
* @param {string} type 'market' or 'limit'
|
|
1333
1333
|
* @param {string} side 'buy' or 'sell'
|
|
1334
1334
|
* @param {float} amount how much of currency you want to trade in units of base currency
|
|
1335
|
-
* @param {float} price the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
|
|
1335
|
+
* @param {float} [price] the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
|
|
1336
1336
|
* @param {object} [params] extra parameters specific to the zonda api endpoint
|
|
1337
|
-
* @returns {object} an [order structure]{@link https://
|
|
1337
|
+
* @returns {object} an [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
1338
1338
|
*/
|
|
1339
1339
|
await this.loadMarkets();
|
|
1340
1340
|
const market = this.market(symbol);
|
|
@@ -1459,7 +1459,7 @@ class zonda extends zonda$1 {
|
|
|
1459
1459
|
* @param {string} id order id
|
|
1460
1460
|
* @param {string} symbol unified symbol of the market the order was made in
|
|
1461
1461
|
* @param {object} [params] extra parameters specific to the zonda api endpoint
|
|
1462
|
-
* @returns {object} An [order structure]{@link https://
|
|
1462
|
+
* @returns {object} An [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
1463
1463
|
*/
|
|
1464
1464
|
const side = this.safeString(params, 'side');
|
|
1465
1465
|
if (side === undefined) {
|
|
@@ -1520,7 +1520,7 @@ class zonda extends zonda$1 {
|
|
|
1520
1520
|
* @param {string} code unified currency code
|
|
1521
1521
|
* @param {object} [params] extra parameters specific to the zonda api endpoint
|
|
1522
1522
|
* @param {string} [params.walletId] Wallet id to filter deposit adresses.
|
|
1523
|
-
* @returns {object} an [address structure]{@link https://
|
|
1523
|
+
* @returns {object} an [address structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#address-structure}
|
|
1524
1524
|
*/
|
|
1525
1525
|
await this.loadMarkets();
|
|
1526
1526
|
const currency = this.currency(code);
|
|
@@ -1553,7 +1553,7 @@ class zonda extends zonda$1 {
|
|
|
1553
1553
|
* @description fetch deposit addresses for multiple currencies and chain types
|
|
1554
1554
|
* @param {string[]|undefined} codes zonda does not support filtering filtering by multiple codes and will ignore this parameter.
|
|
1555
1555
|
* @param {object} [params] extra parameters specific to the zonda api endpoint
|
|
1556
|
-
* @returns {object} a list of [address structures]{@link https://
|
|
1556
|
+
* @returns {object} a list of [address structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#address-structure}
|
|
1557
1557
|
*/
|
|
1558
1558
|
await this.loadMarkets();
|
|
1559
1559
|
const response = await this.v1_01PrivateGetApiPaymentsDepositsCryptoAddresses(params);
|
|
@@ -1584,7 +1584,7 @@ class zonda extends zonda$1 {
|
|
|
1584
1584
|
* @param {string} fromAccount account to transfer from
|
|
1585
1585
|
* @param {string} toAccount account to transfer to
|
|
1586
1586
|
* @param {object} [params] extra parameters specific to the zonda api endpoint
|
|
1587
|
-
* @returns {object} a [transfer structure]{@link https://
|
|
1587
|
+
* @returns {object} a [transfer structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#transfer-structure}
|
|
1588
1588
|
*/
|
|
1589
1589
|
await this.loadMarkets();
|
|
1590
1590
|
const currency = this.currency(code);
|
|
@@ -1696,7 +1696,7 @@ class zonda extends zonda$1 {
|
|
|
1696
1696
|
* @param {string} address the address to withdraw to
|
|
1697
1697
|
* @param {string} tag
|
|
1698
1698
|
* @param {object} [params] extra parameters specific to the zonda api endpoint
|
|
1699
|
-
* @returns {object} a [transaction structure]{@link https://
|
|
1699
|
+
* @returns {object} a [transaction structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#transaction-structure}
|
|
1700
1700
|
*/
|
|
1701
1701
|
[tag, params] = this.handleWithdrawTagAndParams(tag, params);
|
|
1702
1702
|
this.checkAddress(address);
|
package/js/ccxt.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ import * as functions from './src/base/functions.js';
|
|
|
4
4
|
import * as errors from './src/base/errors.js';
|
|
5
5
|
import { Market, Trade, Fee, Ticker, OrderBook, Order, Transaction, Tickers, Currency, Balance, DepositAddress, WithdrawalResponse, DepositAddressResponse, OHLCV, Balances, PartialBalances, Dictionary, MinMax } from './src/base/types.js';
|
|
6
6
|
import { BaseError, ExchangeError, PermissionDenied, AccountNotEnabled, AccountSuspended, ArgumentsRequired, BadRequest, BadSymbol, MarginModeAlreadySet, BadResponse, NullResponse, InsufficientFunds, InvalidAddress, InvalidOrder, OrderNotFound, OrderNotCached, CancelPending, OrderImmediatelyFillable, OrderNotFillable, DuplicateOrderId, NotSupported, NetworkError, DDoSProtection, RateLimitExceeded, ExchangeNotAvailable, OnMaintenance, InvalidNonce, RequestTimeout, AuthenticationError, AddressPending } from './src/base/errors.js';
|
|
7
|
-
declare const version = "4.0.
|
|
7
|
+
declare const version = "4.0.74";
|
|
8
8
|
import ace from './src/ace.js';
|
|
9
9
|
import alpaca from './src/alpaca.js';
|
|
10
10
|
import ascendex from './src/ascendex.js';
|
package/js/ccxt.js
CHANGED
|
@@ -38,7 +38,7 @@ import * as errors from './src/base/errors.js';
|
|
|
38
38
|
import { BaseError, ExchangeError, PermissionDenied, AccountNotEnabled, AccountSuspended, ArgumentsRequired, BadRequest, BadSymbol, MarginModeAlreadySet, BadResponse, NullResponse, InsufficientFunds, InvalidAddress, InvalidOrder, OrderNotFound, OrderNotCached, CancelPending, OrderImmediatelyFillable, OrderNotFillable, DuplicateOrderId, NotSupported, NetworkError, DDoSProtection, RateLimitExceeded, ExchangeNotAvailable, OnMaintenance, InvalidNonce, RequestTimeout, AuthenticationError, AddressPending } from './src/base/errors.js';
|
|
39
39
|
//-----------------------------------------------------------------------------
|
|
40
40
|
// this is updated by vss.js when building
|
|
41
|
-
const version = '4.0.
|
|
41
|
+
const version = '4.0.75';
|
|
42
42
|
Exchange.ccxtVersion = version;
|
|
43
43
|
//-----------------------------------------------------------------------------
|
|
44
44
|
import ace from './src/ace.js';
|
|
@@ -6,8 +6,15 @@ interface Exchange {
|
|
|
6
6
|
publicGetSpotV1Currencies(params?: {}): Promise<implicitReturnType>;
|
|
7
7
|
publicGetSpotV1Symbols(params?: {}): Promise<implicitReturnType>;
|
|
8
8
|
publicGetSpotV1SymbolsDetails(params?: {}): Promise<implicitReturnType>;
|
|
9
|
+
publicGetSpotQuotationV3Tickers(params?: {}): Promise<implicitReturnType>;
|
|
10
|
+
publicGetSpotQuotationV3Ticker(params?: {}): Promise<implicitReturnType>;
|
|
11
|
+
publicGetSpotQuotationV3LiteKlines(params?: {}): Promise<implicitReturnType>;
|
|
12
|
+
publicGetSpotQuotationV3Klines(params?: {}): Promise<implicitReturnType>;
|
|
13
|
+
publicGetSpotQuotationV3Books(params?: {}): Promise<implicitReturnType>;
|
|
14
|
+
publicGetSpotQuotationV3Trades(params?: {}): Promise<implicitReturnType>;
|
|
9
15
|
publicGetSpotV1Ticker(params?: {}): Promise<implicitReturnType>;
|
|
10
16
|
publicGetSpotV2Ticker(params?: {}): Promise<implicitReturnType>;
|
|
17
|
+
publicGetSpotV1TickerDetail(params?: {}): Promise<implicitReturnType>;
|
|
11
18
|
publicGetSpotV1Steps(params?: {}): Promise<implicitReturnType>;
|
|
12
19
|
publicGetSpotV1SymbolsKline(params?: {}): Promise<implicitReturnType>;
|
|
13
20
|
publicGetSpotV1SymbolsBook(params?: {}): Promise<implicitReturnType>;
|
|
@@ -56,6 +63,12 @@ interface Exchange {
|
|
|
56
63
|
privatePostSpotV1BatchOrders(params?: {}): Promise<implicitReturnType>;
|
|
57
64
|
privatePostSpotV2CancelOrder(params?: {}): Promise<implicitReturnType>;
|
|
58
65
|
privatePostSpotV1CancelOrders(params?: {}): Promise<implicitReturnType>;
|
|
66
|
+
privatePostSpotV4QueryOrder(params?: {}): Promise<implicitReturnType>;
|
|
67
|
+
privatePostSpotV4QueryClientOrder(params?: {}): Promise<implicitReturnType>;
|
|
68
|
+
privatePostSpotV4QueryOpenOrders(params?: {}): Promise<implicitReturnType>;
|
|
69
|
+
privatePostSpotV4QueryHistoryOrders(params?: {}): Promise<implicitReturnType>;
|
|
70
|
+
privatePostSpotV4QueryTrades(params?: {}): Promise<implicitReturnType>;
|
|
71
|
+
privatePostSpotV4QueryOrderTrades(params?: {}): Promise<implicitReturnType>;
|
|
59
72
|
privatePostSpotV3CancelOrder(params?: {}): Promise<implicitReturnType>;
|
|
60
73
|
privatePostSpotV2BatchOrders(params?: {}): Promise<implicitReturnType>;
|
|
61
74
|
privatePostSpotV2SubmitOrder(params?: {}): Promise<implicitReturnType>;
|
|
@@ -80,6 +80,7 @@ interface Exchange {
|
|
|
80
80
|
publicGetDerivativesV3PublicRecentTrade(params?: {}): Promise<implicitReturnType>;
|
|
81
81
|
publicGetDerivativesV3PublicOpenInterest(params?: {}): Promise<implicitReturnType>;
|
|
82
82
|
publicGetDerivativesV3PublicInsurance(params?: {}): Promise<implicitReturnType>;
|
|
83
|
+
publicGetV5AnnouncementsIndex(params?: {}): Promise<implicitReturnType>;
|
|
83
84
|
publicGetV5MarketTime(params?: {}): Promise<implicitReturnType>;
|
|
84
85
|
publicGetV5MarketKline(params?: {}): Promise<implicitReturnType>;
|
|
85
86
|
publicGetV5MarketMarkPriceKline(params?: {}): Promise<implicitReturnType>;
|
|
@@ -97,9 +98,10 @@ interface Exchange {
|
|
|
97
98
|
publicGetV5MarketDeliveryPrice(params?: {}): Promise<implicitReturnType>;
|
|
98
99
|
publicGetV5SpotLeverTokenInfo(params?: {}): Promise<implicitReturnType>;
|
|
99
100
|
publicGetV5SpotLeverTokenReference(params?: {}): Promise<implicitReturnType>;
|
|
100
|
-
|
|
101
|
+
publicGetV5SpotCrossMarginTradeData(params?: {}): Promise<implicitReturnType>;
|
|
101
102
|
publicGetV5SpotCrossMarginTradePledgeToken(params?: {}): Promise<implicitReturnType>;
|
|
102
103
|
publicGetV5SpotCrossMarginTradeBorrowToken(params?: {}): Promise<implicitReturnType>;
|
|
104
|
+
publicGetV5InsLoanProductInfos(params?: {}): Promise<implicitReturnType>;
|
|
103
105
|
publicGetV5InsLoanEnsureTokensConvert(params?: {}): Promise<implicitReturnType>;
|
|
104
106
|
privateGetV2PrivateOrderList(params?: {}): Promise<implicitReturnType>;
|
|
105
107
|
privateGetV2PrivateOrder(params?: {}): Promise<implicitReturnType>;
|
|
@@ -209,25 +211,32 @@ interface Exchange {
|
|
|
209
211
|
privateGetAssetV3PublicDepositAllowedDepositListQuery(params?: {}): Promise<implicitReturnType>;
|
|
210
212
|
privateGetAssetV3PrivateDepositRecordQuery(params?: {}): Promise<implicitReturnType>;
|
|
211
213
|
privateGetAssetV3PrivateWithdrawRecordQuery(params?: {}): Promise<implicitReturnType>;
|
|
214
|
+
privateGetV5OrderRealtime(params?: {}): Promise<implicitReturnType>;
|
|
212
215
|
privateGetV5OrderHistory(params?: {}): Promise<implicitReturnType>;
|
|
213
216
|
privateGetV5OrderSpotBorrowCheck(params?: {}): Promise<implicitReturnType>;
|
|
214
|
-
privateGetV5OrderRealtime(params?: {}): Promise<implicitReturnType>;
|
|
215
217
|
privateGetV5PositionList(params?: {}): Promise<implicitReturnType>;
|
|
216
|
-
privateGetV5PositionSwitchMode(params?: {}): Promise<implicitReturnType>;
|
|
217
218
|
privateGetV5ExecutionList(params?: {}): Promise<implicitReturnType>;
|
|
218
219
|
privateGetV5PositionClosedPnl(params?: {}): Promise<implicitReturnType>;
|
|
220
|
+
privateGetV5PreUpgradeOrderHistory(params?: {}): Promise<implicitReturnType>;
|
|
221
|
+
privateGetV5PreUpgradeExecutionList(params?: {}): Promise<implicitReturnType>;
|
|
222
|
+
privateGetV5PreUpgradePositionClosedPnl(params?: {}): Promise<implicitReturnType>;
|
|
223
|
+
privateGetV5PreUpgradeAccountTransactionLog(params?: {}): Promise<implicitReturnType>;
|
|
224
|
+
privateGetV5PreUpgradeAssetDeliveryRecord(params?: {}): Promise<implicitReturnType>;
|
|
225
|
+
privateGetV5PreUpgradeAssetSettlementRecord(params?: {}): Promise<implicitReturnType>;
|
|
219
226
|
privateGetV5AccountWalletBalance(params?: {}): Promise<implicitReturnType>;
|
|
220
227
|
privateGetV5AccountBorrowHistory(params?: {}): Promise<implicitReturnType>;
|
|
228
|
+
privateGetV5AccountSetCollateralSwitch(params?: {}): Promise<implicitReturnType>;
|
|
221
229
|
privateGetV5AccountCollateralInfo(params?: {}): Promise<implicitReturnType>;
|
|
222
|
-
privateGetV5AccountMmpState(params?: {}): Promise<implicitReturnType>;
|
|
223
230
|
privateGetV5AssetCoinGreeks(params?: {}): Promise<implicitReturnType>;
|
|
231
|
+
privateGetV5AccountFeeRate(params?: {}): Promise<implicitReturnType>;
|
|
224
232
|
privateGetV5AccountInfo(params?: {}): Promise<implicitReturnType>;
|
|
225
233
|
privateGetV5AccountTransactionLog(params?: {}): Promise<implicitReturnType>;
|
|
226
|
-
|
|
234
|
+
privateGetV5AccountMmpState(params?: {}): Promise<implicitReturnType>;
|
|
227
235
|
privateGetV5AssetExchangeOrderRecord(params?: {}): Promise<implicitReturnType>;
|
|
228
236
|
privateGetV5AssetDeliveryRecord(params?: {}): Promise<implicitReturnType>;
|
|
229
237
|
privateGetV5AssetSettlementRecord(params?: {}): Promise<implicitReturnType>;
|
|
230
238
|
privateGetV5AssetTransferQueryAssetInfo(params?: {}): Promise<implicitReturnType>;
|
|
239
|
+
privateGetV5AssetTransferQueryAccountCoinsBalance(params?: {}): Promise<implicitReturnType>;
|
|
231
240
|
privateGetV5AssetTransferQueryAccountCoinBalance(params?: {}): Promise<implicitReturnType>;
|
|
232
241
|
privateGetV5AssetTransferQueryTransferCoinList(params?: {}): Promise<implicitReturnType>;
|
|
233
242
|
privateGetV5AssetTransferQueryInterTransferList(params?: {}): Promise<implicitReturnType>;
|
|
@@ -236,30 +245,29 @@ interface Exchange {
|
|
|
236
245
|
privateGetV5AssetDepositQueryAllowedList(params?: {}): Promise<implicitReturnType>;
|
|
237
246
|
privateGetV5AssetDepositQueryRecord(params?: {}): Promise<implicitReturnType>;
|
|
238
247
|
privateGetV5AssetDepositQuerySubMemberRecord(params?: {}): Promise<implicitReturnType>;
|
|
248
|
+
privateGetV5AssetDepositQueryInternalRecord(params?: {}): Promise<implicitReturnType>;
|
|
239
249
|
privateGetV5AssetDepositQueryAddress(params?: {}): Promise<implicitReturnType>;
|
|
240
250
|
privateGetV5AssetDepositQuerySubMemberAddress(params?: {}): Promise<implicitReturnType>;
|
|
241
|
-
privateGetV5AssetDepositQueryInternalRecord(params?: {}): Promise<implicitReturnType>;
|
|
242
251
|
privateGetV5AssetCoinQueryInfo(params?: {}): Promise<implicitReturnType>;
|
|
243
252
|
privateGetV5AssetWithdrawQueryRecord(params?: {}): Promise<implicitReturnType>;
|
|
244
253
|
privateGetV5AssetWithdrawWithdrawableAmount(params?: {}): Promise<implicitReturnType>;
|
|
245
|
-
privateGetV5AssetTransferQueryAccountCoinsBalance(params?: {}): Promise<implicitReturnType>;
|
|
246
254
|
privateGetV5UserQuerySubMembers(params?: {}): Promise<implicitReturnType>;
|
|
247
255
|
privateGetV5UserQueryApi(params?: {}): Promise<implicitReturnType>;
|
|
248
256
|
privateGetV5UserGetMemberType(params?: {}): Promise<implicitReturnType>;
|
|
249
257
|
privateGetV5UserAffCustomerInfo(params?: {}): Promise<implicitReturnType>;
|
|
250
|
-
|
|
258
|
+
privateGetV5SpotLeverTokenOrderRecord(params?: {}): Promise<implicitReturnType>;
|
|
259
|
+
privateGetV5SpotMarginTradeState(params?: {}): Promise<implicitReturnType>;
|
|
251
260
|
privateGetV5SpotCrossMarginTradeLoanInfo(params?: {}): Promise<implicitReturnType>;
|
|
252
261
|
privateGetV5SpotCrossMarginTradeAccount(params?: {}): Promise<implicitReturnType>;
|
|
253
262
|
privateGetV5SpotCrossMarginTradeOrders(params?: {}): Promise<implicitReturnType>;
|
|
254
263
|
privateGetV5SpotCrossMarginTradeRepayHistory(params?: {}): Promise<implicitReturnType>;
|
|
264
|
+
privateGetV5InsLoanLoanOrder(params?: {}): Promise<implicitReturnType>;
|
|
265
|
+
privateGetV5InsLoanRepaidHistory(params?: {}): Promise<implicitReturnType>;
|
|
255
266
|
privateGetV5InsLoanLtvConvert(params?: {}): Promise<implicitReturnType>;
|
|
267
|
+
privateGetV5LendingInfo(params?: {}): Promise<implicitReturnType>;
|
|
268
|
+
privateGetV5LendingHistoryOrder(params?: {}): Promise<implicitReturnType>;
|
|
269
|
+
privateGetV5LendingAccount(params?: {}): Promise<implicitReturnType>;
|
|
256
270
|
privateGetV5BrokerEarningRecord(params?: {}): Promise<implicitReturnType>;
|
|
257
|
-
privateGetV5PreUpgradeOrderHistory(params?: {}): Promise<implicitReturnType>;
|
|
258
|
-
privateGetV5PreUpgradeExecutionList(params?: {}): Promise<implicitReturnType>;
|
|
259
|
-
privateGetV5PreUpgradePositionClosedPnl(params?: {}): Promise<implicitReturnType>;
|
|
260
|
-
privateGetV5PreUpgradeAccountTransactionLog(params?: {}): Promise<implicitReturnType>;
|
|
261
|
-
privateGetV5PreUpgradeAssetDeliveryRecord(params?: {}): Promise<implicitReturnType>;
|
|
262
|
-
privateGetV5PreUpgradeAssetSettlementRecord(params?: {}): Promise<implicitReturnType>;
|
|
263
271
|
privatePostV2PrivateOrderCreate(params?: {}): Promise<implicitReturnType>;
|
|
264
272
|
privatePostV2PrivateOrderCancel(params?: {}): Promise<implicitReturnType>;
|
|
265
273
|
privatePostV2PrivateOrderCancelAll(params?: {}): Promise<implicitReturnType>;
|
|
@@ -409,25 +417,23 @@ interface Exchange {
|
|
|
409
417
|
privatePostV5OrderCancelBatch(params?: {}): Promise<implicitReturnType>;
|
|
410
418
|
privatePostV5OrderDisconnectedCancelAll(params?: {}): Promise<implicitReturnType>;
|
|
411
419
|
privatePostV5PositionSetLeverage(params?: {}): Promise<implicitReturnType>;
|
|
420
|
+
privatePostV5PositionSwitchIsolated(params?: {}): Promise<implicitReturnType>;
|
|
412
421
|
privatePostV5PositionSetTpslMode(params?: {}): Promise<implicitReturnType>;
|
|
422
|
+
privatePostV5PositionSwitchMode(params?: {}): Promise<implicitReturnType>;
|
|
413
423
|
privatePostV5PositionSetRiskLimit(params?: {}): Promise<implicitReturnType>;
|
|
414
424
|
privatePostV5PositionTradingStop(params?: {}): Promise<implicitReturnType>;
|
|
415
|
-
privatePostV5PositionSwitchIsolated(params?: {}): Promise<implicitReturnType>;
|
|
416
|
-
privatePostV5PositionSwitchMode(params?: {}): Promise<implicitReturnType>;
|
|
417
425
|
privatePostV5PositionSetAutoAddMargin(params?: {}): Promise<implicitReturnType>;
|
|
426
|
+
privatePostV5PositionAddMargin(params?: {}): Promise<implicitReturnType>;
|
|
418
427
|
privatePostV5AccountUpgradeToUta(params?: {}): Promise<implicitReturnType>;
|
|
419
428
|
privatePostV5AccountSetMarginMode(params?: {}): Promise<implicitReturnType>;
|
|
429
|
+
privatePostV5AccountMmpModify(params?: {}): Promise<implicitReturnType>;
|
|
430
|
+
privatePostV5AccountMmpReset(params?: {}): Promise<implicitReturnType>;
|
|
420
431
|
privatePostV5AssetTransferInterTransfer(params?: {}): Promise<implicitReturnType>;
|
|
421
432
|
privatePostV5AssetTransferSaveTransferSubMember(params?: {}): Promise<implicitReturnType>;
|
|
422
433
|
privatePostV5AssetTransferUniversalTransfer(params?: {}): Promise<implicitReturnType>;
|
|
423
434
|
privatePostV5AssetDepositDepositToAccount(params?: {}): Promise<implicitReturnType>;
|
|
424
435
|
privatePostV5AssetWithdrawCreate(params?: {}): Promise<implicitReturnType>;
|
|
425
436
|
privatePostV5AssetWithdrawCancel(params?: {}): Promise<implicitReturnType>;
|
|
426
|
-
privatePostV5SpotLeverTokenPurchase(params?: {}): Promise<implicitReturnType>;
|
|
427
|
-
privatePostV5SpotLeverTokenRedeem(params?: {}): Promise<implicitReturnType>;
|
|
428
|
-
privatePostV5SpotLeverTokenOrderRecord(params?: {}): Promise<implicitReturnType>;
|
|
429
|
-
privatePostV5SpotMarginTradeSwitchMode(params?: {}): Promise<implicitReturnType>;
|
|
430
|
-
privatePostV5SpotMarginTradeSetLeverage(params?: {}): Promise<implicitReturnType>;
|
|
431
437
|
privatePostV5UserCreateSubMember(params?: {}): Promise<implicitReturnType>;
|
|
432
438
|
privatePostV5UserCreateSubApi(params?: {}): Promise<implicitReturnType>;
|
|
433
439
|
privatePostV5UserFrozenSubMember(params?: {}): Promise<implicitReturnType>;
|
|
@@ -435,9 +441,15 @@ interface Exchange {
|
|
|
435
441
|
privatePostV5UserUpdateSubApi(params?: {}): Promise<implicitReturnType>;
|
|
436
442
|
privatePostV5UserDeleteApi(params?: {}): Promise<implicitReturnType>;
|
|
437
443
|
privatePostV5UserDeleteSubApi(params?: {}): Promise<implicitReturnType>;
|
|
444
|
+
privatePostV5SpotLeverTokenPurchase(params?: {}): Promise<implicitReturnType>;
|
|
445
|
+
privatePostV5SpotLeverTokenRedeem(params?: {}): Promise<implicitReturnType>;
|
|
446
|
+
privatePostV5SpotMarginTradeSwitchMode(params?: {}): Promise<implicitReturnType>;
|
|
447
|
+
privatePostV5SpotMarginTradeSetLeverage(params?: {}): Promise<implicitReturnType>;
|
|
438
448
|
privatePostV5SpotCrossMarginTradeLoan(params?: {}): Promise<implicitReturnType>;
|
|
439
449
|
privatePostV5SpotCrossMarginTradeRepay(params?: {}): Promise<implicitReturnType>;
|
|
440
450
|
privatePostV5SpotCrossMarginTradeSwitch(params?: {}): Promise<implicitReturnType>;
|
|
451
|
+
privatePostV5LendingPurchase(params?: {}): Promise<implicitReturnType>;
|
|
452
|
+
privatePostV5LendingRedeem(params?: {}): Promise<implicitReturnType>;
|
|
441
453
|
privateDeleteSpotV1Order(params?: {}): Promise<implicitReturnType>;
|
|
442
454
|
privateDeleteSpotV1OrderFast(params?: {}): Promise<implicitReturnType>;
|
|
443
455
|
privateDeleteSpotOrderBatchCancel(params?: {}): Promise<implicitReturnType>;
|
package/js/src/abstract/woo.d.ts
CHANGED
|
@@ -54,7 +54,13 @@ interface Exchange {
|
|
|
54
54
|
v3PrivateGetBuypower(params?: {}): Promise<implicitReturnType>;
|
|
55
55
|
v3PrivateGetReferrals(params?: {}): Promise<implicitReturnType>;
|
|
56
56
|
v3PrivateGetReferralRewards(params?: {}): Promise<implicitReturnType>;
|
|
57
|
+
v3PrivateGetConvertExchangeInfo(params?: {}): Promise<implicitReturnType>;
|
|
58
|
+
v3PrivateGetConvertAssetInfo(params?: {}): Promise<implicitReturnType>;
|
|
59
|
+
v3PrivateGetConvertRfq(params?: {}): Promise<implicitReturnType>;
|
|
60
|
+
v3PrivateGetConvertTrade(params?: {}): Promise<implicitReturnType>;
|
|
61
|
+
v3PrivateGetConvertTrades(params?: {}): Promise<implicitReturnType>;
|
|
57
62
|
v3PrivatePostAlgoOrder(params?: {}): Promise<implicitReturnType>;
|
|
63
|
+
v3PrivatePostConvertRft(params?: {}): Promise<implicitReturnType>;
|
|
58
64
|
v3PrivatePutOrderOid(params?: {}): Promise<implicitReturnType>;
|
|
59
65
|
v3PrivatePutOrderClientClientOrderId(params?: {}): Promise<implicitReturnType>;
|
|
60
66
|
v3PrivatePutAlgoOrderOid(params?: {}): Promise<implicitReturnType>;
|
package/js/src/ace.js
CHANGED
|
@@ -291,7 +291,7 @@ export default class ace extends Exchange {
|
|
|
291
291
|
* @see https://github.com/ace-exchange/ace-official-api-docs/blob/master/api_v2.md#oapi-api---trade-data
|
|
292
292
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
293
293
|
* @param {object} [params] extra parameters specific to the ace api endpoint
|
|
294
|
-
* @returns {object} a [ticker structure]{@link https://
|
|
294
|
+
* @returns {object} a [ticker structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
|
|
295
295
|
*/
|
|
296
296
|
await this.loadMarkets();
|
|
297
297
|
const market = this.market(symbol);
|
|
@@ -317,7 +317,7 @@ export default class ace extends Exchange {
|
|
|
317
317
|
* @see https://github.com/ace-exchange/ace-official-api-docs/blob/master/api_v2.md#oapi-api---trade-data
|
|
318
318
|
* @param {string[]|undefined} symbols unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
|
|
319
319
|
* @param {object} [params] extra parameters specific to the ace api endpoint
|
|
320
|
-
* @returns {object} a dictionary of [ticker structures]{@link https://
|
|
320
|
+
* @returns {object} a dictionary of [ticker structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
|
|
321
321
|
*/
|
|
322
322
|
await this.loadMarkets();
|
|
323
323
|
const response = await this.publicGetOapiV2ListTradePrice();
|
|
@@ -350,7 +350,7 @@ export default class ace extends Exchange {
|
|
|
350
350
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
351
351
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
352
352
|
* @param {object} [params] extra parameters specific to the ace api endpoint
|
|
353
|
-
* @returns {object} A dictionary of [order book structures]{@link https://
|
|
353
|
+
* @returns {object} A dictionary of [order book structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-book-structure} indexed by market symbols
|
|
354
354
|
*/
|
|
355
355
|
await this.loadMarkets();
|
|
356
356
|
const market = this.market(symbol);
|
|
@@ -594,9 +594,9 @@ export default class ace extends Exchange {
|
|
|
594
594
|
* @param {string} type 'market' or 'limit'
|
|
595
595
|
* @param {string} side 'buy' or 'sell'
|
|
596
596
|
* @param {float} amount how much of currency you want to trade in units of base currency
|
|
597
|
-
* @param {float} price the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
|
|
597
|
+
* @param {float} [price] the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
|
|
598
598
|
* @param {object} [params] extra parameters specific to the ace api endpoint
|
|
599
|
-
* @returns {object} an [order structure]{@link https://
|
|
599
|
+
* @returns {object} an [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
600
600
|
*/
|
|
601
601
|
await this.loadMarkets();
|
|
602
602
|
const market = this.market(symbol);
|
|
@@ -633,7 +633,7 @@ export default class ace extends Exchange {
|
|
|
633
633
|
* @param {string} id order id
|
|
634
634
|
* @param {string} symbol unified symbol of the market the order was made in
|
|
635
635
|
* @param {object} [params] extra parameters specific to the ace api endpoint
|
|
636
|
-
* @returns {object} An [order structure]{@link https://
|
|
636
|
+
* @returns {object} An [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
637
637
|
*/
|
|
638
638
|
await this.loadMarkets();
|
|
639
639
|
const request = {
|
|
@@ -658,7 +658,7 @@ export default class ace extends Exchange {
|
|
|
658
658
|
* @see https://github.com/ace-exchange/ace-official-api-docs/blob/master/api_v2.md#open-api---order-status
|
|
659
659
|
* @param {string} symbol unified symbol of the market the order was made in
|
|
660
660
|
* @param {object} [params] extra parameters specific to the ace api endpoint
|
|
661
|
-
* @returns {object} An [order structure]{@link https://
|
|
661
|
+
* @returns {object} An [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
662
662
|
*/
|
|
663
663
|
await this.loadMarkets();
|
|
664
664
|
const request = {
|
|
@@ -700,7 +700,7 @@ export default class ace extends Exchange {
|
|
|
700
700
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
701
701
|
* @param {int} [limit] the maximum number of orde structures to retrieve
|
|
702
702
|
* @param {object} [params] extra parameters specific to the ace api endpoint
|
|
703
|
-
* @returns {Order[]} a list of [order structures]{@link https://
|
|
703
|
+
* @returns {Order[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
704
704
|
*/
|
|
705
705
|
if (symbol === undefined) {
|
|
706
706
|
throw new ArgumentsRequired(this.id + ' fetchOpenOrders() requires the symbol argument');
|
|
@@ -838,7 +838,7 @@ export default class ace extends Exchange {
|
|
|
838
838
|
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
839
839
|
* @param {int} [limit] the maximum number of trades to retrieve
|
|
840
840
|
* @param {object} [params] extra parameters specific to the ace api endpoint
|
|
841
|
-
* @returns {object[]} a list of [trade structures]{@link https://
|
|
841
|
+
* @returns {object[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#trade-structure}
|
|
842
842
|
*/
|
|
843
843
|
await this.loadMarkets();
|
|
844
844
|
const market = this.safeMarket(symbol);
|
package/js/src/alpaca.js
CHANGED
|
@@ -367,7 +367,7 @@ export default class alpaca extends Exchange {
|
|
|
367
367
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
368
368
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
369
369
|
* @param {object} [params] extra parameters specific to the alpaca api endpoint
|
|
370
|
-
* @returns {object} A dictionary of [order book structures]{@link https://
|
|
370
|
+
* @returns {object} A dictionary of [order book structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-book-structure} indexed by market symbols
|
|
371
371
|
*/
|
|
372
372
|
await this.loadMarkets();
|
|
373
373
|
const market = this.market(symbol);
|
|
@@ -510,10 +510,10 @@ export default class alpaca extends Exchange {
|
|
|
510
510
|
* @param {string} type 'market', 'limit' or 'stop_limit'
|
|
511
511
|
* @param {string} side 'buy' or 'sell'
|
|
512
512
|
* @param {float} amount how much of currency you want to trade in units of base currency
|
|
513
|
-
* @param {float} price the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
|
|
513
|
+
* @param {float} [price] the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
|
|
514
514
|
* @param {object} [params] extra parameters specific to the alpaca api endpoint
|
|
515
515
|
* @param {float} [params.triggerPrice] The price at which a trigger order is triggered at
|
|
516
|
-
* @returns {object} an [order structure]{@link https://
|
|
516
|
+
* @returns {object} an [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
517
517
|
*/
|
|
518
518
|
await this.loadMarkets();
|
|
519
519
|
const market = this.market(symbol);
|
|
@@ -597,7 +597,7 @@ export default class alpaca extends Exchange {
|
|
|
597
597
|
* @param {string} id order id
|
|
598
598
|
* @param {string} symbol unified symbol of the market the order was made in
|
|
599
599
|
* @param {object} [params] extra parameters specific to the alpaca api endpoint
|
|
600
|
-
* @returns {object} An [order structure]{@link https://
|
|
600
|
+
* @returns {object} An [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
601
601
|
*/
|
|
602
602
|
const request = {
|
|
603
603
|
'order_id': id,
|
|
@@ -618,7 +618,7 @@ export default class alpaca extends Exchange {
|
|
|
618
618
|
* @description fetches information on an order made by the user
|
|
619
619
|
* @param {string} symbol unified symbol of the market the order was made in
|
|
620
620
|
* @param {object} [params] extra parameters specific to the alpaca api endpoint
|
|
621
|
-
* @returns {object} An [order structure]{@link https://
|
|
621
|
+
* @returns {object} An [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
622
622
|
*/
|
|
623
623
|
await this.loadMarkets();
|
|
624
624
|
const request = {
|
|
@@ -638,7 +638,7 @@ export default class alpaca extends Exchange {
|
|
|
638
638
|
* @param {int} [since] the earliest time in ms to fetch open orders for
|
|
639
639
|
* @param {int} [limit] the maximum number of open orders structures to retrieve
|
|
640
640
|
* @param {object} [params] extra parameters specific to the alpaca api endpoint
|
|
641
|
-
* @returns {Order[]} a list of [order structures]{@link https://
|
|
641
|
+
* @returns {Order[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
642
642
|
*/
|
|
643
643
|
await this.loadMarkets();
|
|
644
644
|
let market = undefined;
|