ccxt 4.1.64 → 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 +3 -3
- package/dist/ccxt.browser.js +2558 -2534
- package/dist/ccxt.browser.min.js +2 -2
- 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 +1 -0
- 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 +28 -28
- package/dist/cjs/src/krakenfutures.js +9 -9
- 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 +17 -17
- 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 +32 -32
- 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 +8 -8
- 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 +21 -21
- package/dist/cjs/src/upbit.js +22 -22
- package/dist/cjs/src/wavesexchange.js +19 -19
- package/dist/cjs/src/wazirx.js +15 -15
- 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/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 +1 -0
- 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 +28 -28
- package/js/src/krakenfutures.js +9 -9
- 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 +17 -17
- 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 +32 -32
- 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 +8 -8
- 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/tidex.js +15 -15
- package/js/src/timex.js +19 -19
- package/js/src/tokocrypto.js +21 -21
- package/js/src/upbit.js +22 -22
- package/js/src/wavesexchange.js +19 -19
- package/js/src/wazirx.js +15 -15
- 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/dist/cjs/src/zaif.js
CHANGED
|
@@ -144,7 +144,7 @@ class zaif extends zaif$1 {
|
|
|
144
144
|
* @name zaif#fetchMarkets
|
|
145
145
|
* @see https://zaif-api-document.readthedocs.io/ja/latest/PublicAPI.html#id12
|
|
146
146
|
* @description retrieves data on all markets for zaif
|
|
147
|
-
* @param {object} [params] extra parameters specific to the exchange
|
|
147
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
148
148
|
* @returns {object[]} an array of objects representing market data
|
|
149
149
|
*/
|
|
150
150
|
const markets = await this.publicGetCurrencyPairsAll(params);
|
|
@@ -260,7 +260,7 @@ class zaif extends zaif$1 {
|
|
|
260
260
|
* @name zaif#fetchBalance
|
|
261
261
|
* @see https://zaif-api-document.readthedocs.io/ja/latest/TradingAPI.html#id10
|
|
262
262
|
* @description query for balance and get the amount of funds available for trading or funds locked in orders
|
|
263
|
-
* @param {object} [params] extra parameters specific to the
|
|
263
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
264
264
|
* @returns {object} a [balance structure]{@link https://docs.ccxt.com/#/?id=balance-structure}
|
|
265
265
|
*/
|
|
266
266
|
await this.loadMarkets();
|
|
@@ -275,7 +275,7 @@ class zaif extends zaif$1 {
|
|
|
275
275
|
* @description fetches information on open orders with bid (buy) and ask (sell) prices, volumes and other data
|
|
276
276
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
277
277
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
278
|
-
* @param {object} [params] extra parameters specific to the
|
|
278
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
279
279
|
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
|
|
280
280
|
*/
|
|
281
281
|
await this.loadMarkets();
|
|
@@ -334,7 +334,7 @@ class zaif extends zaif$1 {
|
|
|
334
334
|
* @see https://zaif-api-document.readthedocs.io/ja/latest/PublicAPI.html#id22
|
|
335
335
|
* @description fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
|
336
336
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
337
|
-
* @param {object} [params] extra parameters specific to the
|
|
337
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
338
338
|
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
339
339
|
*/
|
|
340
340
|
await this.loadMarkets();
|
|
@@ -402,7 +402,7 @@ class zaif extends zaif$1 {
|
|
|
402
402
|
* @param {string} symbol unified symbol of the market to fetch trades for
|
|
403
403
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
404
404
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
405
|
-
* @param {object} [params] extra parameters specific to the
|
|
405
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
406
406
|
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=public-trades}
|
|
407
407
|
*/
|
|
408
408
|
await this.loadMarkets();
|
|
@@ -443,7 +443,7 @@ class zaif extends zaif$1 {
|
|
|
443
443
|
* @param {string} side 'buy' or 'sell'
|
|
444
444
|
* @param {float} amount how much of currency you want to trade in units of base currency
|
|
445
445
|
* @param {float} [price] the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
|
|
446
|
-
* @param {object} [params] extra parameters specific to the
|
|
446
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
447
447
|
* @returns {object} an [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
448
448
|
*/
|
|
449
449
|
await this.loadMarkets();
|
|
@@ -471,7 +471,7 @@ class zaif extends zaif$1 {
|
|
|
471
471
|
* @description cancels an open order
|
|
472
472
|
* @param {string} id order id
|
|
473
473
|
* @param {string} symbol not used by zaif cancelOrder ()
|
|
474
|
-
* @param {object} [params] extra parameters specific to the
|
|
474
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
475
475
|
* @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
476
476
|
*/
|
|
477
477
|
const request = {
|
|
@@ -532,7 +532,7 @@ class zaif extends zaif$1 {
|
|
|
532
532
|
* @param {string} symbol unified market symbol
|
|
533
533
|
* @param {int} [since] the earliest time in ms to fetch open orders for
|
|
534
534
|
* @param {int} [limit] the maximum number of open orders structures to retrieve
|
|
535
|
-
* @param {object} [params] extra parameters specific to the
|
|
535
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
536
536
|
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
537
537
|
*/
|
|
538
538
|
await this.loadMarkets();
|
|
@@ -557,7 +557,7 @@ class zaif extends zaif$1 {
|
|
|
557
557
|
* @param {string} symbol unified market symbol of the market orders were made in
|
|
558
558
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
559
559
|
* @param {int} [limit] the maximum number of orde structures to retrieve
|
|
560
|
-
* @param {object} [params] extra parameters specific to the
|
|
560
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
561
561
|
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
562
562
|
*/
|
|
563
563
|
await this.loadMarkets();
|
|
@@ -589,7 +589,7 @@ class zaif extends zaif$1 {
|
|
|
589
589
|
* @param {float} amount the amount to withdraw
|
|
590
590
|
* @param {string} address the address to withdraw to
|
|
591
591
|
* @param {string} tag
|
|
592
|
-
* @param {object} [params] extra parameters specific to the
|
|
592
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
593
593
|
* @returns {object} a [transaction structure]{@link https://docs.ccxt.com/#/?id=transaction-structure}
|
|
594
594
|
*/
|
|
595
595
|
[tag, params] = this.handleWithdrawTagAndParams(tag, params);
|
package/dist/cjs/src/zonda.js
CHANGED
|
@@ -301,7 +301,7 @@ class zonda extends zonda$1 {
|
|
|
301
301
|
* @name zonda#fetchMarkets
|
|
302
302
|
* @see https://docs.zondacrypto.exchange/reference/ticker-1
|
|
303
303
|
* @description retrieves data on all markets for zonda
|
|
304
|
-
* @param {object} [params] extra parameters specific to the exchange
|
|
304
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
305
305
|
* @returns {object[]} an array of objects representing market data
|
|
306
306
|
*/
|
|
307
307
|
const response = await this.v1_01PublicGetTradingTicker(params);
|
|
@@ -404,7 +404,7 @@ class zonda extends zonda$1 {
|
|
|
404
404
|
* @param {string} symbol not used by zonda fetchOpenOrders
|
|
405
405
|
* @param {int} [since] the earliest time in ms to fetch open orders for
|
|
406
406
|
* @param {int} [limit] the maximum number of open orders structures to retrieve
|
|
407
|
-
* @param {object} [params] extra parameters specific to the
|
|
407
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
408
408
|
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
409
409
|
*/
|
|
410
410
|
await this.loadMarkets();
|
|
@@ -472,7 +472,7 @@ class zonda extends zonda$1 {
|
|
|
472
472
|
* @param {string} symbol unified market symbol
|
|
473
473
|
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
474
474
|
* @param {int} [limit] the maximum number of trades structures to retrieve
|
|
475
|
-
* @param {object} [params] extra parameters specific to the
|
|
475
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
476
476
|
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=trade-structure}
|
|
477
477
|
*/
|
|
478
478
|
await this.loadMarkets();
|
|
@@ -534,7 +534,7 @@ class zonda extends zonda$1 {
|
|
|
534
534
|
* @name zonda#fetchBalance
|
|
535
535
|
* @see https://docs.zondacrypto.exchange/reference/list-of-wallets
|
|
536
536
|
* @description query for balance and get the amount of funds available for trading or funds locked in orders
|
|
537
|
-
* @param {object} [params] extra parameters specific to the
|
|
537
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
538
538
|
* @returns {object} a [balance structure]{@link https://docs.ccxt.com/#/?id=balance-structure}
|
|
539
539
|
*/
|
|
540
540
|
await this.loadMarkets();
|
|
@@ -549,7 +549,7 @@ class zonda extends zonda$1 {
|
|
|
549
549
|
* @description fetches information on open orders with bid (buy) and ask (sell) prices, volumes and other data
|
|
550
550
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
551
551
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
552
|
-
* @param {object} [params] extra parameters specific to the
|
|
552
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
553
553
|
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
|
|
554
554
|
*/
|
|
555
555
|
await this.loadMarkets();
|
|
@@ -660,7 +660,7 @@ class zonda extends zonda$1 {
|
|
|
660
660
|
* @description v1_01PublicGetTradingTickerSymbol retrieves timestamp, datetime, bid, ask, close, last, previousClose, v1_01PublicGetTradingStatsSymbol retrieves high, low, volume and opening price of an asset
|
|
661
661
|
* @see https://docs.zondacrypto.exchange/reference/market-statistics
|
|
662
662
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
663
|
-
* @param {object} [params] extra parameters specific to the
|
|
663
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
664
664
|
* @param {string} [params.method] v1_01PublicGetTradingTickerSymbol (default) or v1_01PublicGetTradingStatsSymbol
|
|
665
665
|
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
666
666
|
*/
|
|
@@ -733,7 +733,7 @@ class zonda extends zonda$1 {
|
|
|
733
733
|
* @description v1_01PublicGetTradingTicker retrieves timestamp, datetime, bid, ask, close, last, previousClose for each market, v1_01PublicGetTradingStats retrieves high, low, volume and opening price of each market
|
|
734
734
|
* @see https://docs.zondacrypto.exchange/reference/market-statistics
|
|
735
735
|
* @param {string[]|undefined} symbols unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
|
|
736
|
-
* @param {object} [params] extra parameters specific to the
|
|
736
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
737
737
|
* @param {string} [params.method] v1_01PublicGetTradingTicker (default) or v1_01PublicGetTradingStats
|
|
738
738
|
* @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
739
739
|
*/
|
|
@@ -809,7 +809,7 @@ class zonda extends zonda$1 {
|
|
|
809
809
|
* @param {string} code unified currency code, default is undefined
|
|
810
810
|
* @param {int} [since] timestamp in ms of the earliest ledger entry, default is undefined
|
|
811
811
|
* @param {int} [limit] max number of ledger entrys to return, default is undefined
|
|
812
|
-
* @param {object} [params] extra parameters specific to the
|
|
812
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
813
813
|
* @returns {object} a [ledger structure]{@link https://docs.ccxt.com/#/?id=ledger-structure}
|
|
814
814
|
*/
|
|
815
815
|
const balanceCurrencies = [];
|
|
@@ -1184,7 +1184,7 @@ class zonda extends zonda$1 {
|
|
|
1184
1184
|
* @param {string} timeframe the length of time each candle represents
|
|
1185
1185
|
* @param {int} [since] timestamp in ms of the earliest candle to fetch
|
|
1186
1186
|
* @param {int} [limit] the maximum amount of candles to fetch
|
|
1187
|
-
* @param {object} [params] extra parameters specific to the
|
|
1187
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1188
1188
|
* @returns {int[][]} A list of candles ordered as timestamp, open, high, low, close, volume
|
|
1189
1189
|
*/
|
|
1190
1190
|
await this.loadMarkets();
|
|
@@ -1309,7 +1309,7 @@ class zonda extends zonda$1 {
|
|
|
1309
1309
|
* @param {string} symbol unified symbol of the market to fetch trades for
|
|
1310
1310
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
1311
1311
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
1312
|
-
* @param {object} [params] extra parameters specific to the
|
|
1312
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1313
1313
|
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=public-trades}
|
|
1314
1314
|
*/
|
|
1315
1315
|
await this.loadMarkets();
|
|
@@ -1338,7 +1338,7 @@ class zonda extends zonda$1 {
|
|
|
1338
1338
|
* @param {string} side 'buy' or 'sell'
|
|
1339
1339
|
* @param {float} amount how much of currency you want to trade in units of base currency
|
|
1340
1340
|
* @param {float} [price] the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
|
|
1341
|
-
* @param {object} [params] extra parameters specific to the
|
|
1341
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1342
1342
|
* @returns {object} an [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1343
1343
|
*/
|
|
1344
1344
|
await this.loadMarkets();
|
|
@@ -1466,7 +1466,7 @@ class zonda extends zonda$1 {
|
|
|
1466
1466
|
* @description cancels an open order
|
|
1467
1467
|
* @param {string} id order id
|
|
1468
1468
|
* @param {string} symbol unified symbol of the market the order was made in
|
|
1469
|
-
* @param {object} [params] extra parameters specific to the
|
|
1469
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1470
1470
|
* @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1471
1471
|
*/
|
|
1472
1472
|
const side = this.safeString(params, 'side');
|
|
@@ -1526,7 +1526,7 @@ class zonda extends zonda$1 {
|
|
|
1526
1526
|
* @see https://docs.zondacrypto.exchange/reference/deposit-addresses-for-crypto
|
|
1527
1527
|
* @description fetch the deposit address for a currency associated with this account
|
|
1528
1528
|
* @param {string} code unified currency code
|
|
1529
|
-
* @param {object} [params] extra parameters specific to the
|
|
1529
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1530
1530
|
* @param {string} [params.walletId] Wallet id to filter deposit adresses.
|
|
1531
1531
|
* @returns {object} an [address structure]{@link https://docs.ccxt.com/#/?id=address-structure}
|
|
1532
1532
|
*/
|
|
@@ -1560,7 +1560,7 @@ class zonda extends zonda$1 {
|
|
|
1560
1560
|
* @see https://docs.zondacrypto.exchange/reference/deposit-addresses-for-crypto
|
|
1561
1561
|
* @description fetch deposit addresses for multiple currencies and chain types
|
|
1562
1562
|
* @param {string[]|undefined} codes zonda does not support filtering filtering by multiple codes and will ignore this parameter.
|
|
1563
|
-
* @param {object} [params] extra parameters specific to the
|
|
1563
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1564
1564
|
* @returns {object} a list of [address structures]{@link https://docs.ccxt.com/#/?id=address-structure}
|
|
1565
1565
|
*/
|
|
1566
1566
|
await this.loadMarkets();
|
|
@@ -1591,7 +1591,7 @@ class zonda extends zonda$1 {
|
|
|
1591
1591
|
* @param {float} amount amount to transfer
|
|
1592
1592
|
* @param {string} fromAccount account to transfer from
|
|
1593
1593
|
* @param {string} toAccount account to transfer to
|
|
1594
|
-
* @param {object} [params] extra parameters specific to the
|
|
1594
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1595
1595
|
* @returns {object} a [transfer structure]{@link https://docs.ccxt.com/#/?id=transfer-structure}
|
|
1596
1596
|
*/
|
|
1597
1597
|
await this.loadMarkets();
|
|
@@ -1703,7 +1703,7 @@ class zonda extends zonda$1 {
|
|
|
1703
1703
|
* @param {float} amount the amount to withdraw
|
|
1704
1704
|
* @param {string} address the address to withdraw to
|
|
1705
1705
|
* @param {string} tag
|
|
1706
|
-
* @param {object} [params] extra parameters specific to the
|
|
1706
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1707
1707
|
* @returns {object} a [transaction structure]{@link https://docs.ccxt.com/#/?id=transaction-structure}
|
|
1708
1708
|
*/
|
|
1709
1709
|
[tag, params] = this.handleWithdrawTagAndParams(tag, params);
|
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, Position, FundingRateHistory, Liquidation, FundingHistory, MarginMode, Greeks } 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, NoChange } from './src/base/errors.js';
|
|
7
|
-
declare const version = "4.1.
|
|
7
|
+
declare const version = "4.1.64";
|
|
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, NoChange } from './src/base/errors.js';
|
|
39
39
|
//-----------------------------------------------------------------------------
|
|
40
40
|
// this is updated by vss.js when building
|
|
41
|
-
const version = '4.1.
|
|
41
|
+
const version = '4.1.65';
|
|
42
42
|
Exchange.ccxtVersion = version;
|
|
43
43
|
//-----------------------------------------------------------------------------
|
|
44
44
|
import ace from './src/ace.js';
|
|
@@ -27,6 +27,7 @@ interface Exchange {
|
|
|
27
27
|
spotPrivateGetCapitalDepositAddress(params?: {}): Promise<implicitReturnType>;
|
|
28
28
|
spotPrivateGetCapitalTransfer(params?: {}): Promise<implicitReturnType>;
|
|
29
29
|
spotPrivateGetCapitalTransferTranId(params?: {}): Promise<implicitReturnType>;
|
|
30
|
+
spotPrivateGetCapitalTransferInternal(params?: {}): Promise<implicitReturnType>;
|
|
30
31
|
spotPrivateGetCapitalSubAccountUniversalTransfer(params?: {}): Promise<implicitReturnType>;
|
|
31
32
|
spotPrivateGetCapitalConvert(params?: {}): Promise<implicitReturnType>;
|
|
32
33
|
spotPrivateGetCapitalConvertList(params?: {}): Promise<implicitReturnType>;
|
|
@@ -62,6 +63,7 @@ interface Exchange {
|
|
|
62
63
|
spotPrivatePostBatchOrders(params?: {}): Promise<implicitReturnType>;
|
|
63
64
|
spotPrivatePostCapitalWithdrawApply(params?: {}): Promise<implicitReturnType>;
|
|
64
65
|
spotPrivatePostCapitalTransfer(params?: {}): Promise<implicitReturnType>;
|
|
66
|
+
spotPrivatePostCapitalTransferInternal(params?: {}): Promise<implicitReturnType>;
|
|
65
67
|
spotPrivatePostCapitalDepositAddress(params?: {}): Promise<implicitReturnType>;
|
|
66
68
|
spotPrivatePostCapitalSubAccountUniversalTransfer(params?: {}): Promise<implicitReturnType>;
|
|
67
69
|
spotPrivatePostCapitalConvert(params?: {}): Promise<implicitReturnType>;
|
package/js/src/ace.js
CHANGED
|
@@ -173,7 +173,7 @@ export default class ace extends Exchange {
|
|
|
173
173
|
* @name ace#fetchMarkets
|
|
174
174
|
* @description retrieves data on all markets for ace
|
|
175
175
|
* @see https://github.com/ace-exchange/ace-official-api-docs/blob/master/api_v2.md#oapi-api---market-pair
|
|
176
|
-
* @param {object} [params] extra parameters specific to the exchange
|
|
176
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
177
177
|
* @returns {object[]} an array of objects representing market data
|
|
178
178
|
*/
|
|
179
179
|
const response = await this.publicGetOapiV2ListMarketPair();
|
|
@@ -290,7 +290,7 @@ export default class ace extends Exchange {
|
|
|
290
290
|
* @description fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
|
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
|
-
* @param {object} [params] extra parameters specific to the
|
|
293
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
294
294
|
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
295
295
|
*/
|
|
296
296
|
await this.loadMarkets();
|
|
@@ -313,10 +313,10 @@ export default class ace extends Exchange {
|
|
|
313
313
|
/**
|
|
314
314
|
* @method
|
|
315
315
|
* @name ace#fetchTickers
|
|
316
|
-
* @description fetches price tickers for multiple markets, statistical
|
|
316
|
+
* @description fetches price tickers for multiple markets, statistical information calculated over the past 24 hours for each market
|
|
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
|
-
* @param {object} [params] extra parameters specific to the
|
|
319
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
320
320
|
* @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
321
321
|
*/
|
|
322
322
|
await this.loadMarkets();
|
|
@@ -349,7 +349,7 @@ export default class ace extends Exchange {
|
|
|
349
349
|
* @see https://github.com/ace-exchange/ace-official-api-docs/blob/master/api_v2.md#open-api---order-books
|
|
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
|
-
* @param {object} [params] extra parameters specific to the
|
|
352
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
353
353
|
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
|
|
354
354
|
*/
|
|
355
355
|
await this.loadMarkets();
|
|
@@ -441,7 +441,7 @@ export default class ace extends Exchange {
|
|
|
441
441
|
* @param {string} timeframe the length of time each candle represents
|
|
442
442
|
* @param {int} [since] timestamp in ms of the earliest candle to fetch
|
|
443
443
|
* @param {int} [limit] the maximum amount of candles to fetch
|
|
444
|
-
* @param {object} [params] extra parameters specific to the
|
|
444
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
445
445
|
* @returns {int[][]} A list of candles ordered as timestamp, open, high, low, close, volume
|
|
446
446
|
*/
|
|
447
447
|
await this.loadMarkets();
|
|
@@ -595,7 +595,7 @@ export default class ace extends Exchange {
|
|
|
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
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
|
-
* @param {object} [params] extra parameters specific to the
|
|
598
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
599
599
|
* @returns {object} an [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
600
600
|
*/
|
|
601
601
|
await this.loadMarkets();
|
|
@@ -632,7 +632,7 @@ export default class ace extends Exchange {
|
|
|
632
632
|
* @see https://github.com/ace-exchange/ace-official-api-docs/blob/master/api_v2.md#open-api---cancel-order
|
|
633
633
|
* @param {string} id order id
|
|
634
634
|
* @param {string} symbol unified symbol of the market the order was made in
|
|
635
|
-
* @param {object} [params] extra parameters specific to the
|
|
635
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
636
636
|
* @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
637
637
|
*/
|
|
638
638
|
await this.loadMarkets();
|
|
@@ -657,7 +657,7 @@ export default class ace extends Exchange {
|
|
|
657
657
|
* @description fetches information on an order made by the user
|
|
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
|
-
* @param {object} [params] extra parameters specific to the
|
|
660
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
661
661
|
* @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
662
662
|
*/
|
|
663
663
|
await this.loadMarkets();
|
|
@@ -699,7 +699,7 @@ export default class ace extends Exchange {
|
|
|
699
699
|
* @param {string} symbol unified market symbol of the market orders were made in
|
|
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
|
-
* @param {object} [params] extra parameters specific to the
|
|
702
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
703
703
|
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
704
704
|
*/
|
|
705
705
|
if (symbol === undefined) {
|
|
@@ -837,7 +837,7 @@ export default class ace extends Exchange {
|
|
|
837
837
|
* @param {string} symbol unified market symbol
|
|
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
|
-
* @param {object} [params] extra parameters specific to the
|
|
840
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
841
841
|
* @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=trade-structure}
|
|
842
842
|
*/
|
|
843
843
|
await this.loadMarkets();
|
|
@@ -892,7 +892,7 @@ export default class ace extends Exchange {
|
|
|
892
892
|
* @param {string} symbol unified symbol of the market to fetch trades for
|
|
893
893
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
894
894
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
895
|
-
* @param {object} [params] extra parameters specific to the
|
|
895
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
896
896
|
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=public-trades}
|
|
897
897
|
*/
|
|
898
898
|
await this.loadMarkets();
|
|
@@ -977,7 +977,7 @@ export default class ace extends Exchange {
|
|
|
977
977
|
* @name ace#fetchBalance
|
|
978
978
|
* @description query for balance and get the amount of funds available for trading or funds locked in orders
|
|
979
979
|
* @see https://github.com/ace-exchange/ace-official-api-docs/blob/master/api_v2.md#open-api---account-balance
|
|
980
|
-
* @param {object} [params] extra parameters specific to the
|
|
980
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
981
981
|
* @returns {object} a [balance structure]{@link https://docs.ccxt.com/#/?id=balance-structure}
|
|
982
982
|
*/
|
|
983
983
|
await this.loadMarkets();
|
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
|
*/
|