ccxt 4.2.37 → 4.2.39
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 +6 -5
- package/dist/ccxt.browser.js +3015 -509
- package/dist/ccxt.browser.min.js +7 -7
- package/dist/cjs/ccxt.js +4 -1
- package/dist/cjs/src/abstract/blofin.js +9 -0
- package/dist/cjs/src/base/Exchange.js +14 -2
- package/dist/cjs/src/binance.js +156 -35
- package/dist/cjs/src/bitget.js +1 -1
- package/dist/cjs/src/bitso.js +18 -2
- package/dist/cjs/src/bitstamp.js +24 -2
- package/dist/cjs/src/bl3p.js +6 -0
- package/dist/cjs/src/blockchaincom.js +21 -0
- package/dist/cjs/src/blofin.js +2103 -0
- package/dist/cjs/src/btcalpha.js +9 -0
- package/dist/cjs/src/btcbox.js +9 -0
- package/dist/cjs/src/btcmarkets.js +19 -0
- package/dist/cjs/src/coinbase.js +13 -2
- package/dist/cjs/src/krakenfutures.js +7 -14
- package/dist/cjs/src/luno.js +1 -1
- package/dist/cjs/src/okx.js +2 -2
- package/dist/cjs/src/poloniexfutures.js +11 -5
- package/dist/cjs/src/pro/bitmart.js +110 -35
- package/dist/cjs/src/pro/kucoin.js +93 -40
- package/dist/cjs/src/pro/mexc.js +1 -1
- package/dist/cjs/src/wavesexchange.js +1 -1
- package/dist/cjs/src/woo.js +1 -1
- package/js/ccxt.d.ts +5 -2
- package/js/ccxt.js +4 -2
- package/js/src/abstract/blofin.d.ts +36 -0
- package/js/src/abstract/blofin.js +11 -0
- package/js/src/abstract/coinbase.d.ts +1 -0
- package/js/src/abstract/okx.d.ts +1 -0
- package/js/src/ascendex.d.ts +2 -2
- package/js/src/base/Exchange.d.ts +4 -0
- package/js/src/base/Exchange.js +14 -2
- package/js/src/base/types.d.ts +2 -0
- package/js/src/bigone.d.ts +2 -2
- package/js/src/binance.d.ts +8 -8
- package/js/src/binance.js +156 -35
- package/js/src/bingx.d.ts +5 -5
- package/js/src/bitfinex.d.ts +3 -3
- package/js/src/bitfinex2.d.ts +2 -2
- package/js/src/bitget.d.ts +5 -5
- package/js/src/bitget.js +1 -1
- package/js/src/bitmart.d.ts +2 -2
- package/js/src/bitmex.d.ts +2 -2
- package/js/src/bitrue.d.ts +2 -2
- package/js/src/bitso.d.ts +1 -1
- package/js/src/bitso.js +18 -2
- package/js/src/bitstamp.d.ts +1 -1
- package/js/src/bitstamp.js +24 -2
- package/js/src/bitvavo.d.ts +1 -1
- package/js/src/bl3p.js +6 -0
- package/js/src/blockchaincom.js +21 -0
- package/js/src/blofin.d.ts +124 -0
- package/js/src/blofin.js +2104 -0
- package/js/src/btcalpha.js +9 -0
- package/js/src/btcbox.js +9 -0
- package/js/src/btcmarkets.js +19 -0
- package/js/src/bybit.d.ts +7 -7
- package/js/src/cex.d.ts +1 -1
- package/js/src/coinbase.d.ts +2 -2
- package/js/src/coinbase.js +13 -2
- package/js/src/coinex.d.ts +4 -4
- package/js/src/coinlist.d.ts +2 -2
- package/js/src/coinone.d.ts +1 -1
- package/js/src/delta.d.ts +2 -2
- package/js/src/deribit.d.ts +3 -3
- package/js/src/digifinex.d.ts +3 -3
- package/js/src/exmo.d.ts +2 -2
- package/js/src/gate.d.ts +6 -6
- package/js/src/hitbtc.d.ts +2 -2
- package/js/src/hollaex.d.ts +1 -1
- package/js/src/htx.d.ts +3 -3
- package/js/src/huobijp.d.ts +1 -1
- package/js/src/kraken.d.ts +2 -2
- package/js/src/krakenfutures.d.ts +2 -2
- package/js/src/krakenfutures.js +7 -14
- package/js/src/kucoin.d.ts +5 -5
- package/js/src/kucoinfutures.d.ts +2 -2
- package/js/src/latoken.d.ts +1 -1
- package/js/src/lbank.d.ts +2 -2
- package/js/src/luno.d.ts +1 -1
- package/js/src/luno.js +1 -1
- package/js/src/mexc.d.ts +4 -4
- package/js/src/ndax.d.ts +1 -1
- package/js/src/novadax.d.ts +1 -1
- package/js/src/okcoin.d.ts +2 -2
- package/js/src/okx.d.ts +7 -7
- package/js/src/okx.js +2 -2
- package/js/src/paymium.d.ts +2 -2
- package/js/src/phemex.d.ts +4 -4
- package/js/src/poloniex.d.ts +2 -2
- package/js/src/poloniexfutures.d.ts +2 -2
- package/js/src/poloniexfutures.js +11 -5
- package/js/src/pro/bitmart.d.ts +2 -0
- package/js/src/pro/bitmart.js +110 -35
- package/js/src/pro/bitvavo.d.ts +1 -1
- package/js/src/pro/cex.d.ts +2 -2
- package/js/src/pro/coinbase.d.ts +2 -2
- package/js/src/pro/coinex.d.ts +1 -1
- package/js/src/pro/kucoin.js +93 -40
- package/js/src/pro/lbank.d.ts +1 -1
- package/js/src/pro/mexc.js +1 -1
- package/js/src/probit.d.ts +1 -1
- package/js/src/timex.d.ts +1 -1
- package/js/src/upbit.d.ts +1 -1
- package/js/src/wavesexchange.js +1 -1
- package/js/src/whitebit.d.ts +2 -2
- package/js/src/woo.d.ts +3 -3
- package/js/src/woo.js +1 -1
- package/js/src/zonda.d.ts +3 -3
- package/package.json +2 -2
package/dist/cjs/src/bitstamp.js
CHANGED
|
@@ -451,6 +451,7 @@ class bitstamp extends bitstamp$1 {
|
|
|
451
451
|
* @method
|
|
452
452
|
* @name bitstamp#fetchMarkets
|
|
453
453
|
* @description retrieves data on all markets for bitstamp
|
|
454
|
+
* @see https://www.bitstamp.net/api/#tag/Market-info/operation/GetTradingPairsInfo
|
|
454
455
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
455
456
|
* @returns {object[]} an array of objects representing market data
|
|
456
457
|
*/
|
|
@@ -594,6 +595,7 @@ class bitstamp extends bitstamp$1 {
|
|
|
594
595
|
* @method
|
|
595
596
|
* @name bitstamp#fetchCurrencies
|
|
596
597
|
* @description fetches all available currencies on an exchange
|
|
598
|
+
* @see https://www.bitstamp.net/api/#tag/Market-info/operation/GetTradingPairsInfo
|
|
597
599
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
598
600
|
* @returns {object} an associative dictionary of currencies
|
|
599
601
|
*/
|
|
@@ -642,6 +644,7 @@ class bitstamp extends bitstamp$1 {
|
|
|
642
644
|
* @method
|
|
643
645
|
* @name bitstamp#fetchOrderBook
|
|
644
646
|
* @description fetches information on open orders with bid (buy) and ask (sell) prices, volumes and other data
|
|
647
|
+
* @see https://www.bitstamp.net/api/#tag/Order-book/operation/GetOrderBook
|
|
645
648
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
646
649
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
647
650
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
@@ -727,6 +730,7 @@ class bitstamp extends bitstamp$1 {
|
|
|
727
730
|
* @method
|
|
728
731
|
* @name bitstamp#fetchTicker
|
|
729
732
|
* @description fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
|
733
|
+
* @see https://www.bitstamp.net/api/#tag/Tickers/operation/GetMarketTicker
|
|
730
734
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
731
735
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
732
736
|
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
@@ -759,7 +763,7 @@ class bitstamp extends bitstamp$1 {
|
|
|
759
763
|
* @method
|
|
760
764
|
* @name bitstamp#fetchTickers
|
|
761
765
|
* @description fetches price tickers for multiple markets, statistical information calculated over the past 24 hours for each market
|
|
762
|
-
* @see https://www.bitstamp.net/api/#
|
|
766
|
+
* @see https://www.bitstamp.net/api/#tag/Tickers/operation/GetCurrencyPairTickers
|
|
763
767
|
* @param {string[]|undefined} symbols unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
|
|
764
768
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
765
769
|
* @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
@@ -989,6 +993,7 @@ class bitstamp extends bitstamp$1 {
|
|
|
989
993
|
* @method
|
|
990
994
|
* @name bitstamp#fetchTrades
|
|
991
995
|
* @description get the list of most recent trades for a particular symbol
|
|
996
|
+
* @see https://www.bitstamp.net/api/#tag/Transactions-public/operation/GetTransactions
|
|
992
997
|
* @param {string} symbol unified symbol of the market to fetch trades for
|
|
993
998
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
994
999
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
@@ -1123,6 +1128,7 @@ class bitstamp extends bitstamp$1 {
|
|
|
1123
1128
|
* @method
|
|
1124
1129
|
* @name bitstamp#fetchBalance
|
|
1125
1130
|
* @description query for balance and get the amount of funds available for trading or funds locked in orders
|
|
1131
|
+
* @see https://www.bitstamp.net/api/#tag/Account-balances/operation/GetAccountBalances
|
|
1126
1132
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1127
1133
|
* @returns {object} a [balance structure]{@link https://docs.ccxt.com/#/?id=balance-structure}
|
|
1128
1134
|
*/
|
|
@@ -1153,6 +1159,7 @@ class bitstamp extends bitstamp$1 {
|
|
|
1153
1159
|
* @method
|
|
1154
1160
|
* @name bitstamp#fetchTradingFee
|
|
1155
1161
|
* @description fetch the trading fees for a market
|
|
1162
|
+
* @see https://www.bitstamp.net/api/#tag/Fees/operation/GetAllTradingFees
|
|
1156
1163
|
* @param {string} symbol unified market symbol
|
|
1157
1164
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1158
1165
|
* @returns {object} a [fee structure]{@link https://docs.ccxt.com/#/?id=fee-structure}
|
|
@@ -1193,6 +1200,7 @@ class bitstamp extends bitstamp$1 {
|
|
|
1193
1200
|
* @method
|
|
1194
1201
|
* @name bitstamp#fetchTradingFees
|
|
1195
1202
|
* @description fetch the trading fees for multiple markets
|
|
1203
|
+
* @see https://www.bitstamp.net/api/#tag/Fees/operation/GetAllTradingFees
|
|
1196
1204
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1197
1205
|
* @returns {object} a dictionary of [fee structures]{@link https://docs.ccxt.com/#/?id=fee-structure} indexed by market symbols
|
|
1198
1206
|
*/
|
|
@@ -1268,7 +1276,7 @@ class bitstamp extends bitstamp$1 {
|
|
|
1268
1276
|
* @method
|
|
1269
1277
|
* @name bitstamp#fetchDepositWithdrawFees
|
|
1270
1278
|
* @description fetch deposit and withdraw fees
|
|
1271
|
-
* @see https://www.bitstamp.net/api/#
|
|
1279
|
+
* @see https://www.bitstamp.net/api/#tag/Fees/operation/GetAllWithdrawalFees
|
|
1272
1280
|
* @param {string[]|undefined} codes list of unified currency codes
|
|
1273
1281
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1274
1282
|
* @returns {object[]} a list of [fee structures]{@link https://docs.ccxt.com/#/?id=fee-structure}
|
|
@@ -1401,6 +1409,7 @@ class bitstamp extends bitstamp$1 {
|
|
|
1401
1409
|
* @method
|
|
1402
1410
|
* @name bitstamp#cancelOrder
|
|
1403
1411
|
* @description cancels an open order
|
|
1412
|
+
* @see https://www.bitstamp.net/api/#tag/Orders/operation/CancelOrder
|
|
1404
1413
|
* @param {string} id order id
|
|
1405
1414
|
* @param {string} symbol unified symbol of the market the order was made in
|
|
1406
1415
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
@@ -1417,6 +1426,8 @@ class bitstamp extends bitstamp$1 {
|
|
|
1417
1426
|
* @method
|
|
1418
1427
|
* @name bitstamp#cancelAllOrders
|
|
1419
1428
|
* @description cancel all open orders
|
|
1429
|
+
* @see https://www.bitstamp.net/api/#tag/Orders/operation/CancelAllOrders
|
|
1430
|
+
* @see https://www.bitstamp.net/api/#tag/Orders/operation/CancelOrdersForMarket
|
|
1420
1431
|
* @param {string} symbol unified market symbol, only orders in the market of this symbol are cancelled when symbol is not undefined
|
|
1421
1432
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1422
1433
|
* @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
@@ -1463,6 +1474,7 @@ class bitstamp extends bitstamp$1 {
|
|
|
1463
1474
|
* @method
|
|
1464
1475
|
* @name bitstamp#fetchOrder
|
|
1465
1476
|
* @description fetches information on an order made by the user
|
|
1477
|
+
* @see https://www.bitstamp.net/api/#tag/Orders/operation/GetOrderStatus
|
|
1466
1478
|
* @param {string} symbol unified symbol of the market the order was made in
|
|
1467
1479
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1468
1480
|
* @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
@@ -1507,6 +1519,8 @@ class bitstamp extends bitstamp$1 {
|
|
|
1507
1519
|
* @method
|
|
1508
1520
|
* @name bitstamp#fetchMyTrades
|
|
1509
1521
|
* @description fetch all trades made by the user
|
|
1522
|
+
* @see https://www.bitstamp.net/api/#tag/Transactions-private/operation/GetUserTransactions
|
|
1523
|
+
* @see https://www.bitstamp.net/api/#tag/Transactions-private/operation/GetUserTransactionsForMarket
|
|
1510
1524
|
* @param {string} symbol unified market symbol
|
|
1511
1525
|
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
1512
1526
|
* @param {int} [limit] the maximum number of trades structures to retrieve
|
|
@@ -1534,6 +1548,7 @@ class bitstamp extends bitstamp$1 {
|
|
|
1534
1548
|
* @method
|
|
1535
1549
|
* @name bitstamp#fetchDepositsWithdrawals
|
|
1536
1550
|
* @description fetch history of deposits and withdrawals
|
|
1551
|
+
* @see https://www.bitstamp.net/api/#tag/Transactions-private/operation/GetUserTransactions
|
|
1537
1552
|
* @param {string} [code] unified currency code for the currency of the deposit/withdrawals, default is undefined
|
|
1538
1553
|
* @param {int} [since] timestamp in ms of the earliest deposit/withdrawal, default is undefined
|
|
1539
1554
|
* @param {int} [limit] max number of deposit/withdrawals to return, default is undefined
|
|
@@ -1584,6 +1599,7 @@ class bitstamp extends bitstamp$1 {
|
|
|
1584
1599
|
* @method
|
|
1585
1600
|
* @name bitstamp#fetchWithdrawals
|
|
1586
1601
|
* @description fetch all withdrawals made from an account
|
|
1602
|
+
* @see https://www.bitstamp.net/api/#tag/Withdrawals/operation/GetWithdrawalRequests
|
|
1587
1603
|
* @param {string} code unified currency code
|
|
1588
1604
|
* @param {int} [since] the earliest time in ms to fetch withdrawals for
|
|
1589
1605
|
* @param {int} [limit] the maximum number of withdrawals structures to retrieve
|
|
@@ -1952,6 +1968,7 @@ class bitstamp extends bitstamp$1 {
|
|
|
1952
1968
|
* @method
|
|
1953
1969
|
* @name bitstamp#fetchLedger
|
|
1954
1970
|
* @description fetch the history of changes, actions done by the user or operations that altered balance of the user
|
|
1971
|
+
* @see https://www.bitstamp.net/api/#tag/Transactions-private/operation/GetUserTransactions
|
|
1955
1972
|
* @param {string} code unified currency code, default is undefined
|
|
1956
1973
|
* @param {int} [since] timestamp in ms of the earliest ledger entry, default is undefined
|
|
1957
1974
|
* @param {int} [limit] max number of ledger entrys to return, default is undefined
|
|
@@ -1975,6 +1992,8 @@ class bitstamp extends bitstamp$1 {
|
|
|
1975
1992
|
* @method
|
|
1976
1993
|
* @name bitstamp#fetchOpenOrders
|
|
1977
1994
|
* @description fetch all unfilled currently open orders
|
|
1995
|
+
* @see https://www.bitstamp.net/api/#tag/Orders/operation/GetAllOpenOrders
|
|
1996
|
+
* @see https://www.bitstamp.net/api/#tag/Orders/operation/GetOpenOrdersForMarket
|
|
1978
1997
|
* @param {string} symbol unified market symbol
|
|
1979
1998
|
* @param {int} [since] the earliest time in ms to fetch open orders for
|
|
1980
1999
|
* @param {int} [limit] the maximum number of open orders structures to retrieve
|
|
@@ -2022,6 +2041,7 @@ class bitstamp extends bitstamp$1 {
|
|
|
2022
2041
|
* @method
|
|
2023
2042
|
* @name bitstamp#fetchDepositAddress
|
|
2024
2043
|
* @description fetch the deposit address for a currency associated with this account
|
|
2044
|
+
* @see https://www.bitstamp.net/api/#tag/Deposits/operation/GetCryptoDepositAddress
|
|
2025
2045
|
* @param {string} code unified currency code
|
|
2026
2046
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2027
2047
|
* @returns {object} an [address structure]{@link https://docs.ccxt.com/#/?id=address-structure}
|
|
@@ -2048,6 +2068,8 @@ class bitstamp extends bitstamp$1 {
|
|
|
2048
2068
|
* @method
|
|
2049
2069
|
* @name bitstamp#withdraw
|
|
2050
2070
|
* @description make a withdrawal
|
|
2071
|
+
* @see https://www.bitstamp.net/api/#tag/Withdrawals/operation/RequestFiatWithdrawal
|
|
2072
|
+
* @see https://www.bitstamp.net/api/#tag/Withdrawals/operation/RequestCryptoWithdrawal
|
|
2051
2073
|
* @param {string} code unified currency code
|
|
2052
2074
|
* @param {float} amount the amount to withdraw
|
|
2053
2075
|
* @param {string} address the address to withdraw to
|
package/dist/cjs/src/bl3p.js
CHANGED
|
@@ -139,6 +139,7 @@ class bl3p extends bl3p$1 {
|
|
|
139
139
|
* @method
|
|
140
140
|
* @name bl3p#fetchBalance
|
|
141
141
|
* @description query for balance and get the amount of funds available for trading or funds locked in orders
|
|
142
|
+
* @see https://github.com/BitonicNL/bl3p-api/blob/master/docs/authenticated_api/http.md#35---get-account-info--balance
|
|
142
143
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
143
144
|
* @returns {object} a [balance structure]{@link https://docs.ccxt.com/#/?id=balance-structure}
|
|
144
145
|
*/
|
|
@@ -159,6 +160,7 @@ class bl3p extends bl3p$1 {
|
|
|
159
160
|
* @method
|
|
160
161
|
* @name bl3p#fetchOrderBook
|
|
161
162
|
* @description fetches information on open orders with bid (buy) and ask (sell) prices, volumes and other data
|
|
163
|
+
* @see https://github.com/BitonicNL/bl3p-api/blob/master/docs/public_api/http.md#22---orderbook
|
|
162
164
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
163
165
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
164
166
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
@@ -220,6 +222,7 @@ class bl3p extends bl3p$1 {
|
|
|
220
222
|
* @method
|
|
221
223
|
* @name bl3p#fetchTicker
|
|
222
224
|
* @description fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
|
225
|
+
* @see https://github.com/BitonicNL/bl3p-api/blob/master/docs/public_api/http.md#21---ticker
|
|
223
226
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
224
227
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
225
228
|
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
@@ -283,6 +286,7 @@ class bl3p extends bl3p$1 {
|
|
|
283
286
|
* @method
|
|
284
287
|
* @name bl3p#fetchTrades
|
|
285
288
|
* @description get the list of most recent trades for a particular symbol
|
|
289
|
+
* @see https://github.com/BitonicNL/bl3p-api/blob/master/docs/public_api/http.md#23---last-1000-trades
|
|
286
290
|
* @param {string} symbol unified symbol of the market to fetch trades for
|
|
287
291
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
288
292
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
@@ -315,6 +319,7 @@ class bl3p extends bl3p$1 {
|
|
|
315
319
|
* @method
|
|
316
320
|
* @name bl3p#fetchTradingFees
|
|
317
321
|
* @description fetch the trading fees for multiple markets
|
|
322
|
+
* @see https://github.com/BitonicNL/bl3p-api/blob/master/docs/authenticated_api/http.md#35---get-account-info--balance
|
|
318
323
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
319
324
|
* @returns {object} a dictionary of [fee structures]{@link https://docs.ccxt.com/#/?id=fee-structure} indexed by market symbols
|
|
320
325
|
*/
|
|
@@ -407,6 +412,7 @@ class bl3p extends bl3p$1 {
|
|
|
407
412
|
* @method
|
|
408
413
|
* @name bl3p#cancelOrder
|
|
409
414
|
* @description cancels an open order
|
|
415
|
+
* @see https://github.com/BitonicNL/bl3p-api/blob/master/docs/authenticated_api/http.md#22---cancel-an-order
|
|
410
416
|
* @param {string} id order id
|
|
411
417
|
* @param {string} symbol unified symbol of the market the order was made in
|
|
412
418
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
@@ -226,6 +226,7 @@ class blockchaincom extends blockchaincom$1 {
|
|
|
226
226
|
* @method
|
|
227
227
|
* @name blockchaincom#fetchMarkets
|
|
228
228
|
* @description retrieves data on all markets for blockchaincom
|
|
229
|
+
* @see https://api.blockchain.com/v3/#/unauthenticated/getSymbols
|
|
229
230
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
230
231
|
* @returns {object[]} an array of objects representing market data
|
|
231
232
|
*/
|
|
@@ -356,6 +357,7 @@ class blockchaincom extends blockchaincom$1 {
|
|
|
356
357
|
* @method
|
|
357
358
|
* @name blockchaincom#fetchOrderBook
|
|
358
359
|
* @description fetches information on open orders with bid (buy) and ask (sell) prices, volumes and other data
|
|
360
|
+
* @see https://api.blockchain.com/v3/#/unauthenticated/getL3OrderBook
|
|
359
361
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
360
362
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
361
363
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
@@ -368,6 +370,7 @@ class blockchaincom extends blockchaincom$1 {
|
|
|
368
370
|
* @method
|
|
369
371
|
* @name blockchaincom#fetchL3OrderBook
|
|
370
372
|
* @description fetches level 3 information on open orders with bid (buy) and ask (sell) prices, volumes and other data
|
|
373
|
+
* @see https://api.blockchain.com/v3/#/unauthenticated/getL3OrderBook
|
|
371
374
|
* @param {string} symbol unified market symbol
|
|
372
375
|
* @param {int} [limit] max number of orders to return, default is undefined
|
|
373
376
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
@@ -438,6 +441,7 @@ class blockchaincom extends blockchaincom$1 {
|
|
|
438
441
|
* @method
|
|
439
442
|
* @name blockchaincom#fetchTicker
|
|
440
443
|
* @description fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
|
444
|
+
* @see https://api.blockchain.com/v3/#/unauthenticated/getTickerBySymbol
|
|
441
445
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
442
446
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
443
447
|
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
@@ -455,6 +459,7 @@ class blockchaincom extends blockchaincom$1 {
|
|
|
455
459
|
* @method
|
|
456
460
|
* @name blockchaincom#fetchTickers
|
|
457
461
|
* @description fetches price tickers for multiple markets, statistical information calculated over the past 24 hours for each market
|
|
462
|
+
* @see https://api.blockchain.com/v3/#/unauthenticated/getTickers
|
|
458
463
|
* @param {string[]|undefined} symbols unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
|
|
459
464
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
460
465
|
* @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
@@ -535,6 +540,7 @@ class blockchaincom extends blockchaincom$1 {
|
|
|
535
540
|
* @method
|
|
536
541
|
* @name blockchaincom#createOrder
|
|
537
542
|
* @description create a trade order
|
|
543
|
+
* @see https://api.blockchain.com/v3/#/trading/createOrder
|
|
538
544
|
* @param {string} symbol unified symbol of the market to create an order in
|
|
539
545
|
* @param {string} type 'market' or 'limit'
|
|
540
546
|
* @param {string} side 'buy' or 'sell'
|
|
@@ -597,6 +603,7 @@ class blockchaincom extends blockchaincom$1 {
|
|
|
597
603
|
* @method
|
|
598
604
|
* @name blockchaincom#cancelOrder
|
|
599
605
|
* @description cancels an open order
|
|
606
|
+
* @see https://api.blockchain.com/v3/#/trading/deleteOrder
|
|
600
607
|
* @param {string} id order id
|
|
601
608
|
* @param {string} symbol unified symbol of the market the order was made in
|
|
602
609
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
@@ -616,6 +623,7 @@ class blockchaincom extends blockchaincom$1 {
|
|
|
616
623
|
* @method
|
|
617
624
|
* @name blockchaincom#cancelAllOrders
|
|
618
625
|
* @description cancel all open orders
|
|
626
|
+
* @see https://api.blockchain.com/v3/#/trading/deleteAllOrders
|
|
619
627
|
* @param {string} symbol unified market symbol of the market to cancel orders in, all markets are used if undefined, default is undefined
|
|
620
628
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
621
629
|
* @returns {object} an list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
@@ -641,6 +649,7 @@ class blockchaincom extends blockchaincom$1 {
|
|
|
641
649
|
* @method
|
|
642
650
|
* @name blockchaincom#fetchTradingFees
|
|
643
651
|
* @description fetch the trading fees for multiple markets
|
|
652
|
+
* @see https://api.blockchain.com/v3/#/trading/getFees
|
|
644
653
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
645
654
|
* @returns {object} a dictionary of [fee structures]{@link https://docs.ccxt.com/#/?id=fee-structure} indexed by market symbols
|
|
646
655
|
*/
|
|
@@ -672,6 +681,7 @@ class blockchaincom extends blockchaincom$1 {
|
|
|
672
681
|
* @method
|
|
673
682
|
* @name blockchaincom#fetchCanceledOrders
|
|
674
683
|
* @description fetches information on multiple canceled orders made by the user
|
|
684
|
+
* @see https://api.blockchain.com/v3/#/trading/getOrders
|
|
675
685
|
* @param {string} symbol unified market symbol of the market orders were made in
|
|
676
686
|
* @param {int} [since] timestamp in ms of the earliest order, default is undefined
|
|
677
687
|
* @param {int} [limit] max number of orders to return, default is undefined
|
|
@@ -686,6 +696,7 @@ class blockchaincom extends blockchaincom$1 {
|
|
|
686
696
|
* @method
|
|
687
697
|
* @name blockchaincom#fetchClosedOrders
|
|
688
698
|
* @description fetches information on multiple closed orders made by the user
|
|
699
|
+
* @see https://api.blockchain.com/v3/#/trading/getOrders
|
|
689
700
|
* @param {string} symbol unified market symbol of the market orders were made in
|
|
690
701
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
691
702
|
* @param {int} [limit] the maximum number of order structures to retrieve
|
|
@@ -700,6 +711,7 @@ class blockchaincom extends blockchaincom$1 {
|
|
|
700
711
|
* @method
|
|
701
712
|
* @name blockchaincom#fetchOpenOrders
|
|
702
713
|
* @description fetch all unfilled currently open orders
|
|
714
|
+
* @see https://api.blockchain.com/v3/#/trading/getOrders
|
|
703
715
|
* @param {string} symbol unified market symbol
|
|
704
716
|
* @param {int} [since] the earliest time in ms to fetch open orders for
|
|
705
717
|
* @param {int} [limit] the maximum number of open orders structures to retrieve
|
|
@@ -776,6 +788,7 @@ class blockchaincom extends blockchaincom$1 {
|
|
|
776
788
|
* @method
|
|
777
789
|
* @name blockchaincom#fetchMyTrades
|
|
778
790
|
* @description fetch all trades made by the user
|
|
791
|
+
* @see https://api.blockchain.com/v3/#/trading/getFills
|
|
779
792
|
* @param {string} symbol unified market symbol
|
|
780
793
|
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
781
794
|
* @param {int} [limit] the maximum number of trades structures to retrieve
|
|
@@ -800,6 +813,7 @@ class blockchaincom extends blockchaincom$1 {
|
|
|
800
813
|
* @method
|
|
801
814
|
* @name blockchaincom#fetchDepositAddress
|
|
802
815
|
* @description fetch the deposit address for a currency associated with this account
|
|
816
|
+
* @see https://api.blockchain.com/v3/#/payments/getDepositAddress
|
|
803
817
|
* @param {string} code unified currency code
|
|
804
818
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
805
819
|
* @returns {object} an [address structure]{@link https://docs.ccxt.com/#/?id=address-structure}
|
|
@@ -913,6 +927,7 @@ class blockchaincom extends blockchaincom$1 {
|
|
|
913
927
|
* @method
|
|
914
928
|
* @name blockchaincom#withdraw
|
|
915
929
|
* @description make a withdrawal
|
|
930
|
+
* @see https://api.blockchain.com/v3/#/payments/createWithdrawal
|
|
916
931
|
* @param {string} code unified currency code
|
|
917
932
|
* @param {float} amount the amount to withdraw
|
|
918
933
|
* @param {string} address the address to withdraw to
|
|
@@ -947,6 +962,7 @@ class blockchaincom extends blockchaincom$1 {
|
|
|
947
962
|
* @method
|
|
948
963
|
* @name blockchaincom#fetchWithdrawals
|
|
949
964
|
* @description fetch all withdrawals made from an account
|
|
965
|
+
* @see https://api.blockchain.com/v3/#/payments/getWithdrawals
|
|
950
966
|
* @param {string} code unified currency code
|
|
951
967
|
* @param {int} [since] the earliest time in ms to fetch withdrawals for
|
|
952
968
|
* @param {int} [limit] the maximum number of withdrawals structures to retrieve
|
|
@@ -973,6 +989,7 @@ class blockchaincom extends blockchaincom$1 {
|
|
|
973
989
|
* @method
|
|
974
990
|
* @name blockchaincom#fetchWithdrawal
|
|
975
991
|
* @description fetch data on a currency withdrawal via the withdrawal id
|
|
992
|
+
* @see https://api.blockchain.com/v3/#/payments/getWithdrawalById
|
|
976
993
|
* @param {string} id withdrawal id
|
|
977
994
|
* @param {string} code not used by blockchaincom.fetchWithdrawal
|
|
978
995
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
@@ -990,6 +1007,7 @@ class blockchaincom extends blockchaincom$1 {
|
|
|
990
1007
|
* @method
|
|
991
1008
|
* @name blockchaincom#fetchDeposits
|
|
992
1009
|
* @description fetch all deposits made to an account
|
|
1010
|
+
* @see https://api.blockchain.com/v3/#/payments/getDeposits
|
|
993
1011
|
* @param {string} code unified currency code
|
|
994
1012
|
* @param {int} [since] the earliest time in ms to fetch deposits for
|
|
995
1013
|
* @param {int} [limit] the maximum number of deposits structures to retrieve
|
|
@@ -1016,6 +1034,7 @@ class blockchaincom extends blockchaincom$1 {
|
|
|
1016
1034
|
* @method
|
|
1017
1035
|
* @name blockchaincom#fetchDeposit
|
|
1018
1036
|
* @description fetch information on a deposit
|
|
1037
|
+
* @see https://api.blockchain.com/v3/#/payments/getDepositById
|
|
1019
1038
|
* @param {string} id deposit id
|
|
1020
1039
|
* @param {string} code not used by blockchaincom fetchDeposit ()
|
|
1021
1040
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
@@ -1034,6 +1053,7 @@ class blockchaincom extends blockchaincom$1 {
|
|
|
1034
1053
|
* @method
|
|
1035
1054
|
* @name blockchaincom#fetchBalance
|
|
1036
1055
|
* @description query for balance and get the amount of funds available for trading or funds locked in orders
|
|
1056
|
+
* @see https://api.blockchain.com/v3/#/payments/getAccounts
|
|
1037
1057
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1038
1058
|
* @returns {object} a [balance structure]{@link https://docs.ccxt.com/#/?id=balance-structure}
|
|
1039
1059
|
*/
|
|
@@ -1080,6 +1100,7 @@ class blockchaincom extends blockchaincom$1 {
|
|
|
1080
1100
|
* @method
|
|
1081
1101
|
* @name blockchaincom#fetchOrder
|
|
1082
1102
|
* @description fetches information on an order made by the user
|
|
1103
|
+
* @see https://api.blockchain.com/v3/#/trading/getOrderById
|
|
1083
1104
|
* @param {string} symbol not used by blockchaincom fetchOrder
|
|
1084
1105
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1085
1106
|
* @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|