ccxt 4.2.46 → 4.2.47
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/CHANGELOG.md +2307 -0
- package/README.md +3 -3
- package/change.sh +1 -1
- package/dist/ccxt.browser.js +444 -7
- package/dist/ccxt.browser.min.js +2 -2
- package/dist/cjs/ccxt.js +1 -1
- package/dist/cjs/src/bybit.js +185 -2
- package/dist/cjs/src/coinsph.js +32 -1
- package/dist/cjs/src/currencycom.js +22 -0
- package/dist/cjs/src/deribit.js +34 -1
- package/dist/cjs/src/exmo.js +22 -0
- package/dist/cjs/src/gemini.js +15 -0
- package/dist/cjs/src/hollaex.js +27 -1
- package/dist/cjs/src/indodax.js +106 -1
- package/js/ccxt.d.ts +1 -1
- package/js/ccxt.js +1 -1
- package/js/src/abstract/hollaex.d.ts +3 -0
- package/js/src/bybit.d.ts +2 -0
- package/js/src/bybit.js +185 -2
- package/js/src/coinsph.js +32 -1
- package/js/src/currencycom.js +22 -0
- package/js/src/deribit.js +34 -1
- package/js/src/exmo.js +22 -0
- package/js/src/gemini.js +15 -0
- package/js/src/hollaex.js +27 -1
- package/js/src/indodax.d.ts +3 -0
- package/js/src/indodax.js +106 -1
- package/package.json +1 -1
- package/skip-tests.json +1 -1
package/dist/cjs/src/deribit.js
CHANGED
|
@@ -571,6 +571,7 @@ class deribit extends deribit$1 {
|
|
|
571
571
|
* @method
|
|
572
572
|
* @name deribit#fetchTime
|
|
573
573
|
* @description fetches the current integer timestamp in milliseconds from the exchange server
|
|
574
|
+
* @see https://docs.deribit.com/#public-get_time
|
|
574
575
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
575
576
|
* @returns {int} the current integer timestamp in milliseconds from the exchange server
|
|
576
577
|
*/
|
|
@@ -666,6 +667,7 @@ class deribit extends deribit$1 {
|
|
|
666
667
|
* @method
|
|
667
668
|
* @name deribit#fetchStatus
|
|
668
669
|
* @description the latest known information on the availability of the exchange API
|
|
670
|
+
* @see https://docs.deribit.com/#public-status
|
|
669
671
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
670
672
|
* @returns {object} a [status structure]{@link https://docs.ccxt.com/#/?id=exchange-status-structure}
|
|
671
673
|
*/
|
|
@@ -698,6 +700,7 @@ class deribit extends deribit$1 {
|
|
|
698
700
|
* @method
|
|
699
701
|
* @name deribit#fetchAccounts
|
|
700
702
|
* @description fetch all the accounts associated with a profile
|
|
703
|
+
* @see https://docs.deribit.com/#private-get_subaccounts
|
|
701
704
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
702
705
|
* @returns {object} a dictionary of [account structures]{@link https://docs.ccxt.com/#/?id=account-structure} indexed by the account type
|
|
703
706
|
*/
|
|
@@ -767,6 +770,7 @@ class deribit extends deribit$1 {
|
|
|
767
770
|
* @method
|
|
768
771
|
* @name deribit#fetchMarkets
|
|
769
772
|
* @description retrieves data on all markets for deribit
|
|
773
|
+
* @see https://docs.deribit.com/#public-get_currencies
|
|
770
774
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
771
775
|
* @returns {object[]} an array of objects representing market data
|
|
772
776
|
*/
|
|
@@ -1003,6 +1007,7 @@ class deribit extends deribit$1 {
|
|
|
1003
1007
|
* @method
|
|
1004
1008
|
* @name deribit#fetchBalance
|
|
1005
1009
|
* @description query for balance and get the amount of funds available for trading or funds locked in orders
|
|
1010
|
+
* @see https://docs.deribit.com/#private-get_account_summary
|
|
1006
1011
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1007
1012
|
* @returns {object} a [balance structure]{@link https://docs.ccxt.com/#/?id=balance-structure}
|
|
1008
1013
|
*/
|
|
@@ -1063,6 +1068,7 @@ class deribit extends deribit$1 {
|
|
|
1063
1068
|
* @method
|
|
1064
1069
|
* @name deribit#createDepositAddress
|
|
1065
1070
|
* @description create a currency deposit address
|
|
1071
|
+
* @see https://docs.deribit.com/#private-create_deposit_address
|
|
1066
1072
|
* @param {string} code unified currency code of the currency for the deposit address
|
|
1067
1073
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1068
1074
|
* @returns {object} an [address structure]{@link https://docs.ccxt.com/#/?id=address-structure}
|
|
@@ -1100,6 +1106,7 @@ class deribit extends deribit$1 {
|
|
|
1100
1106
|
* @method
|
|
1101
1107
|
* @name deribit#fetchDepositAddress
|
|
1102
1108
|
* @description fetch the deposit address for a currency associated with this account
|
|
1109
|
+
* @see https://docs.deribit.com/#private-get_current_deposit_address
|
|
1103
1110
|
* @param {string} code unified currency code
|
|
1104
1111
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1105
1112
|
* @returns {object} an [address structure]{@link https://docs.ccxt.com/#/?id=address-structure}
|
|
@@ -1218,6 +1225,7 @@ class deribit extends deribit$1 {
|
|
|
1218
1225
|
* @method
|
|
1219
1226
|
* @name deribit#fetchTicker
|
|
1220
1227
|
* @description fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
|
1228
|
+
* @see https://docs.deribit.com/#public-ticker
|
|
1221
1229
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
1222
1230
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1223
1231
|
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
@@ -1264,6 +1272,7 @@ class deribit extends deribit$1 {
|
|
|
1264
1272
|
* @method
|
|
1265
1273
|
* @name deribit#fetchTickers
|
|
1266
1274
|
* @description fetches price tickers for multiple markets, statistical information calculated over the past 24 hours for each market
|
|
1275
|
+
* @see https://docs.deribit.com/#public-get_book_summary_by_currency
|
|
1267
1276
|
* @param {string[]|undefined} symbols unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
|
|
1268
1277
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1269
1278
|
* @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
@@ -1320,6 +1329,7 @@ class deribit extends deribit$1 {
|
|
|
1320
1329
|
* @method
|
|
1321
1330
|
* @name deribit#fetchOHLCV
|
|
1322
1331
|
* @description fetches historical candlestick data containing the open, high, low, and close price, and the volume of a market
|
|
1332
|
+
* @see https://docs.deribit.com/#public-get_tradingview_chart_data
|
|
1323
1333
|
* @param {string} symbol unified symbol of the market to fetch OHLCV data for
|
|
1324
1334
|
* @param {string} timeframe the length of time each candle represents
|
|
1325
1335
|
* @param {int} [since] timestamp in ms of the earliest candle to fetch
|
|
@@ -1469,7 +1479,8 @@ class deribit extends deribit$1 {
|
|
|
1469
1479
|
/**
|
|
1470
1480
|
* @method
|
|
1471
1481
|
* @name deribit#fetchTrades
|
|
1472
|
-
* @see https://docs.deribit.com/#
|
|
1482
|
+
* @see https://docs.deribit.com/#public-get_last_trades_by_instrument
|
|
1483
|
+
* @see https://docs.deribit.com/#public-get_last_trades_by_instrument_and_time
|
|
1473
1484
|
* @description get the list of most recent trades for a particular symbol.
|
|
1474
1485
|
* @param {string} symbol unified symbol of the market to fetch trades for
|
|
1475
1486
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
@@ -1530,6 +1541,7 @@ class deribit extends deribit$1 {
|
|
|
1530
1541
|
* @method
|
|
1531
1542
|
* @name deribit#fetchTradingFees
|
|
1532
1543
|
* @description fetch the trading fees for multiple markets
|
|
1544
|
+
* @see https://docs.deribit.com/#private-get_account_summary
|
|
1533
1545
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1534
1546
|
* @returns {object} a dictionary of [fee structures]{@link https://docs.ccxt.com/#/?id=fee-structure} indexed by market symbols
|
|
1535
1547
|
*/
|
|
@@ -1650,6 +1662,7 @@ class deribit extends deribit$1 {
|
|
|
1650
1662
|
* @method
|
|
1651
1663
|
* @name deribit#fetchOrderBook
|
|
1652
1664
|
* @description fetches information on open orders with bid (buy) and ask (sell) prices, volumes and other data
|
|
1665
|
+
* @see https://docs.deribit.com/#public-get_order_book
|
|
1653
1666
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
1654
1667
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
1655
1668
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
@@ -1840,6 +1853,7 @@ class deribit extends deribit$1 {
|
|
|
1840
1853
|
* @method
|
|
1841
1854
|
* @name deribit#fetchOrder
|
|
1842
1855
|
* @description fetches information on an order made by the user
|
|
1856
|
+
* @see https://docs.deribit.com/#private-get_order_state
|
|
1843
1857
|
* @param {string} symbol unified symbol of the market the order was made in
|
|
1844
1858
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1845
1859
|
* @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
@@ -1890,6 +1904,7 @@ class deribit extends deribit$1 {
|
|
|
1890
1904
|
* @name deribit#createOrder
|
|
1891
1905
|
* @description create a trade order
|
|
1892
1906
|
* @see https://docs.deribit.com/#private-buy
|
|
1907
|
+
* @see https://docs.deribit.com/#private-sell
|
|
1893
1908
|
* @param {string} symbol unified symbol of the market to create an order in
|
|
1894
1909
|
* @param {string} type 'market' or 'limit'
|
|
1895
1910
|
* @param {string} side 'buy' or 'sell'
|
|
@@ -2111,6 +2126,7 @@ class deribit extends deribit$1 {
|
|
|
2111
2126
|
* @method
|
|
2112
2127
|
* @name deribit#cancelOrder
|
|
2113
2128
|
* @description cancels an open order
|
|
2129
|
+
* @see https://docs.deribit.com/#private-cancel
|
|
2114
2130
|
* @param {string} id order id
|
|
2115
2131
|
* @param {string} symbol not used by deribit cancelOrder ()
|
|
2116
2132
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
@@ -2129,6 +2145,8 @@ class deribit extends deribit$1 {
|
|
|
2129
2145
|
* @method
|
|
2130
2146
|
* @name deribit#cancelAllOrders
|
|
2131
2147
|
* @description cancel all open orders
|
|
2148
|
+
* @see https://docs.deribit.com/#private-cancel_all
|
|
2149
|
+
* @see https://docs.deribit.com/#private-cancel_all_by_instrument
|
|
2132
2150
|
* @param {string} symbol unified market symbol, only orders in the market of this symbol are cancelled when symbol is not undefined
|
|
2133
2151
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2134
2152
|
* @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
@@ -2151,6 +2169,8 @@ class deribit extends deribit$1 {
|
|
|
2151
2169
|
* @method
|
|
2152
2170
|
* @name deribit#fetchOpenOrders
|
|
2153
2171
|
* @description fetch all unfilled currently open orders
|
|
2172
|
+
* @see https://docs.deribit.com/#private-get_open_orders_by_currency
|
|
2173
|
+
* @see https://docs.deribit.com/#private-get_open_orders_by_instrument
|
|
2154
2174
|
* @param {string} symbol unified market symbol
|
|
2155
2175
|
* @param {int} [since] the earliest time in ms to fetch open orders for
|
|
2156
2176
|
* @param {int} [limit] the maximum number of open orders structures to retrieve
|
|
@@ -2180,6 +2200,8 @@ class deribit extends deribit$1 {
|
|
|
2180
2200
|
* @method
|
|
2181
2201
|
* @name deribit#fetchClosedOrders
|
|
2182
2202
|
* @description fetches information on multiple closed orders made by the user
|
|
2203
|
+
* @see https://docs.deribit.com/#private-get_order_history_by_currency
|
|
2204
|
+
* @see https://docs.deribit.com/#private-get_order_history_by_instrument
|
|
2183
2205
|
* @param {string} symbol unified market symbol of the market orders were made in
|
|
2184
2206
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
2185
2207
|
* @param {int} [limit] the maximum number of order structures to retrieve
|
|
@@ -2209,6 +2231,7 @@ class deribit extends deribit$1 {
|
|
|
2209
2231
|
* @method
|
|
2210
2232
|
* @name deribit#fetchOrderTrades
|
|
2211
2233
|
* @description fetch all the trades made from a single order
|
|
2234
|
+
* @see https://docs.deribit.com/#private-get_user_trades_by_order
|
|
2212
2235
|
* @param {string} id order id
|
|
2213
2236
|
* @param {string} symbol unified market symbol
|
|
2214
2237
|
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
@@ -2262,6 +2285,10 @@ class deribit extends deribit$1 {
|
|
|
2262
2285
|
* @method
|
|
2263
2286
|
* @name deribit#fetchMyTrades
|
|
2264
2287
|
* @description fetch all trades made by the user
|
|
2288
|
+
* @see https://docs.deribit.com/#private-get_user_trades_by_currency
|
|
2289
|
+
* @see https://docs.deribit.com/#private-get_user_trades_by_currency_and_time
|
|
2290
|
+
* @see https://docs.deribit.com/#private-get_user_trades_by_instrument
|
|
2291
|
+
* @see https://docs.deribit.com/#private-get_user_trades_by_instrument_and_time
|
|
2265
2292
|
* @param {string} symbol unified market symbol
|
|
2266
2293
|
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
2267
2294
|
* @param {int} [limit] the maximum number of trades structures to retrieve
|
|
@@ -2342,6 +2369,7 @@ class deribit extends deribit$1 {
|
|
|
2342
2369
|
* @method
|
|
2343
2370
|
* @name deribit#fetchDeposits
|
|
2344
2371
|
* @description fetch all deposits made to an account
|
|
2372
|
+
* @see https://docs.deribit.com/#private-get_deposits
|
|
2345
2373
|
* @param {string} code unified currency code
|
|
2346
2374
|
* @param {int} [since] the earliest time in ms to fetch deposits for
|
|
2347
2375
|
* @param {int} [limit] the maximum number of deposits structures to retrieve
|
|
@@ -2389,6 +2417,7 @@ class deribit extends deribit$1 {
|
|
|
2389
2417
|
* @method
|
|
2390
2418
|
* @name deribit#fetchWithdrawals
|
|
2391
2419
|
* @description fetch all withdrawals made from an account
|
|
2420
|
+
* @see https://docs.deribit.com/#private-get_withdrawals
|
|
2392
2421
|
* @param {string} code unified currency code
|
|
2393
2422
|
* @param {int} [since] the earliest time in ms to fetch withdrawals for
|
|
2394
2423
|
* @param {int} [limit] the maximum number of withdrawals structures to retrieve
|
|
@@ -2761,6 +2790,7 @@ class deribit extends deribit$1 {
|
|
|
2761
2790
|
* @method
|
|
2762
2791
|
* @name deribit#fetchTransfers
|
|
2763
2792
|
* @description fetch a history of internal transfers made on an account
|
|
2793
|
+
* @see https://docs.deribit.com/#private-get_transfers
|
|
2764
2794
|
* @param {string} code unified currency code of the currency transferred
|
|
2765
2795
|
* @param {int} [since] the earliest time in ms to fetch transfers for
|
|
2766
2796
|
* @param {int} [limit] the maximum number of transfers structures to retrieve
|
|
@@ -2821,6 +2851,8 @@ class deribit extends deribit$1 {
|
|
|
2821
2851
|
* @method
|
|
2822
2852
|
* @name deribit#transfer
|
|
2823
2853
|
* @description transfer currency internally between wallets on the same account
|
|
2854
|
+
* @see https://docs.deribit.com/#private-submit_transfer_to_user
|
|
2855
|
+
* @see https://docs.deribit.com/#private-submit_transfer_to_subaccount
|
|
2824
2856
|
* @param {string} code unified currency code
|
|
2825
2857
|
* @param {float} amount amount to transfer
|
|
2826
2858
|
* @param {string} fromAccount account to transfer from
|
|
@@ -2913,6 +2945,7 @@ class deribit extends deribit$1 {
|
|
|
2913
2945
|
* @method
|
|
2914
2946
|
* @name deribit#withdraw
|
|
2915
2947
|
* @description make a withdrawal
|
|
2948
|
+
* @see https://docs.deribit.com/#private-withdraw
|
|
2916
2949
|
* @param {string} code unified currency code
|
|
2917
2950
|
* @param {float} amount the amount to withdraw
|
|
2918
2951
|
* @param {string} address the address to withdraw to
|
package/dist/cjs/src/exmo.js
CHANGED
|
@@ -275,6 +275,7 @@ class exmo extends exmo$1 {
|
|
|
275
275
|
* @method
|
|
276
276
|
* @name exmo#reduceMargin
|
|
277
277
|
* @description remove margin from a position
|
|
278
|
+
* @see https://documenter.getpostman.com/view/10287440/SzYXWKPi#eebf9f25-0289-4946-9482-89872c738449
|
|
278
279
|
* @param {string} symbol unified market symbol
|
|
279
280
|
* @param {float} amount the amount of margin to remove
|
|
280
281
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
@@ -287,6 +288,7 @@ class exmo extends exmo$1 {
|
|
|
287
288
|
* @method
|
|
288
289
|
* @name exmo#addMargin
|
|
289
290
|
* @description add margin
|
|
291
|
+
* @see https://documenter.getpostman.com/view/10287440/SzYXWKPi#143ef808-79ca-4e49-9e79-a60ea4d8c0e3
|
|
290
292
|
* @param {string} symbol unified market symbol
|
|
291
293
|
* @param {float} amount amount of margin to add
|
|
292
294
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
@@ -299,6 +301,8 @@ class exmo extends exmo$1 {
|
|
|
299
301
|
* @method
|
|
300
302
|
* @name exmo#fetchTradingFees
|
|
301
303
|
* @description fetch the trading fees for multiple markets
|
|
304
|
+
* @see https://documenter.getpostman.com/view/10287440/SzYXWKPi#90927062-256c-4b03-900f-2b99131f9a54
|
|
305
|
+
* @see https://documenter.getpostman.com/view/10287440/SzYXWKPi#7de7e75c-5833-45a8-b937-c2276d235aaa
|
|
302
306
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
303
307
|
* @returns {object} a dictionary of [fee structures]{@link https://docs.ccxt.com/#/?id=fee-structure} indexed by market symbols
|
|
304
308
|
*/
|
|
@@ -586,6 +590,8 @@ class exmo extends exmo$1 {
|
|
|
586
590
|
* @method
|
|
587
591
|
* @name exmo#fetchCurrencies
|
|
588
592
|
* @description fetches all available currencies on an exchange
|
|
593
|
+
* @see https://documenter.getpostman.com/view/10287440/SzYXWKPi#7cdf0ca8-9ff6-4cf3-aa33-bcec83155c49
|
|
594
|
+
* @see https://documenter.getpostman.com/view/10287440/SzYXWKPi#4190035d-24b1-453d-833b-37e0a52f88e2
|
|
589
595
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
590
596
|
* @returns {object} an associative dictionary of currencies
|
|
591
597
|
*/
|
|
@@ -712,6 +718,7 @@ class exmo extends exmo$1 {
|
|
|
712
718
|
* @method
|
|
713
719
|
* @name exmo#fetchMarkets
|
|
714
720
|
* @description retrieves data on all markets for exmo
|
|
721
|
+
* @see https://documenter.getpostman.com/view/10287440/SzYXWKPi#7de7e75c-5833-45a8-b937-c2276d235aaa
|
|
715
722
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
716
723
|
* @returns {object[]} an array of objects representing market data
|
|
717
724
|
*/
|
|
@@ -839,6 +846,7 @@ class exmo extends exmo$1 {
|
|
|
839
846
|
* @method
|
|
840
847
|
* @name exmo#fetchOHLCV
|
|
841
848
|
* @description fetches historical candlestick data containing the open, high, low, and close price, and the volume of a market
|
|
849
|
+
* @see https://documenter.getpostman.com/view/10287440/SzYXWKPi#65eeb949-74e5-4631-9184-c38387fe53e8
|
|
842
850
|
* @param {string} symbol unified symbol of the market to fetch OHLCV data for
|
|
843
851
|
* @param {string} timeframe the length of time each candle represents
|
|
844
852
|
* @param {int} [since] timestamp in ms of the earliest candle to fetch
|
|
@@ -952,6 +960,8 @@ class exmo extends exmo$1 {
|
|
|
952
960
|
* @method
|
|
953
961
|
* @name exmo#fetchBalance
|
|
954
962
|
* @description query for balance and get the amount of funds available for trading or funds locked in orders
|
|
963
|
+
* @see https://documenter.getpostman.com/view/10287440/SzYXWKPi#59c5160f-27a1-4d9a-8cfb-7979c7ffaac6
|
|
964
|
+
* @see https://documenter.getpostman.com/view/10287440/SzYXWKPi#c8388df7-1f9f-4d41-81c4-5a387d171dc6
|
|
955
965
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
956
966
|
* @param {string} [params.marginMode] *isolated* fetches the isolated margin balance
|
|
957
967
|
* @returns {object} a [balance structure]{@link https://docs.ccxt.com/#/?id=balance-structure}
|
|
@@ -999,6 +1009,7 @@ class exmo extends exmo$1 {
|
|
|
999
1009
|
* @method
|
|
1000
1010
|
* @name exmo#fetchOrderBook
|
|
1001
1011
|
* @description fetches information on open orders with bid (buy) and ask (sell) prices, volumes and other data
|
|
1012
|
+
* @see https://documenter.getpostman.com/view/10287440/SzYXWKPi#c60c51a8-e683-4f45-a000-820723d37871
|
|
1002
1013
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
1003
1014
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
1004
1015
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
@@ -1021,6 +1032,7 @@ class exmo extends exmo$1 {
|
|
|
1021
1032
|
* @method
|
|
1022
1033
|
* @name exmo#fetchOrderBooks
|
|
1023
1034
|
* @description fetches information on open orders with bid (buy) and ask (sell) prices, volumes and other data for multiple markets
|
|
1035
|
+
* @see https://documenter.getpostman.com/view/10287440/SzYXWKPi#c60c51a8-e683-4f45-a000-820723d37871
|
|
1024
1036
|
* @param {string[]|undefined} symbols list of unified market symbols, all symbols fetched if undefined, default is undefined
|
|
1025
1037
|
* @param {int} [limit] max number of entries per orderbook to return, default is undefined
|
|
1026
1038
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
@@ -1101,6 +1113,7 @@ class exmo extends exmo$1 {
|
|
|
1101
1113
|
* @method
|
|
1102
1114
|
* @name exmo#fetchTickers
|
|
1103
1115
|
* @description fetches price tickers for multiple markets, statistical information calculated over the past 24 hours for each market
|
|
1116
|
+
* @see https://documenter.getpostman.com/view/10287440/SzYXWKPi#4c8e6459-3503-4361-b012-c34bb9f7e385
|
|
1104
1117
|
* @param {string[]|undefined} symbols unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
|
|
1105
1118
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1106
1119
|
* @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
@@ -1139,6 +1152,7 @@ class exmo extends exmo$1 {
|
|
|
1139
1152
|
* @method
|
|
1140
1153
|
* @name exmo#fetchTicker
|
|
1141
1154
|
* @description fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
|
1155
|
+
* @see https://documenter.getpostman.com/view/10287440/SzYXWKPi#4c8e6459-3503-4361-b012-c34bb9f7e385
|
|
1142
1156
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
1143
1157
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1144
1158
|
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
@@ -1243,6 +1257,7 @@ class exmo extends exmo$1 {
|
|
|
1243
1257
|
* @method
|
|
1244
1258
|
* @name exmo#fetchTrades
|
|
1245
1259
|
* @description get the list of most recent trades for a particular symbol
|
|
1260
|
+
* @see https://documenter.getpostman.com/view/10287440/SzYXWKPi#5a5a9c0d-cf17-47f6-9d62-6d4404ebd5ac
|
|
1246
1261
|
* @param {string} symbol unified symbol of the market to fetch trades for
|
|
1247
1262
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
1248
1263
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
@@ -2083,6 +2098,7 @@ class exmo extends exmo$1 {
|
|
|
2083
2098
|
* @method
|
|
2084
2099
|
* @name exmo#fetchDepositAddress
|
|
2085
2100
|
* @description fetch the deposit address for a currency associated with this account
|
|
2101
|
+
* @see https://documenter.getpostman.com/view/10287440/SzYXWKPi#c8f9ced9-7ab6-4383-a6a4-bc54469ba60e
|
|
2086
2102
|
* @param {string} code unified currency code
|
|
2087
2103
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2088
2104
|
* @returns {object} an [address structure]{@link https://docs.ccxt.com/#/?id=address-structure}
|
|
@@ -2129,6 +2145,7 @@ class exmo extends exmo$1 {
|
|
|
2129
2145
|
* @method
|
|
2130
2146
|
* @name exmo#withdraw
|
|
2131
2147
|
* @description make a withdrawal
|
|
2148
|
+
* @see https://documenter.getpostman.com/view/10287440/SzYXWKPi#3ab9c34d-ad58-4f87-9c57-2e2ea88a8325
|
|
2132
2149
|
* @param {string} code unified currency code
|
|
2133
2150
|
* @param {float} amount the amount to withdraw
|
|
2134
2151
|
* @param {string} address the address to withdraw to
|
|
@@ -2308,6 +2325,7 @@ class exmo extends exmo$1 {
|
|
|
2308
2325
|
* @method
|
|
2309
2326
|
* @name exmo#fetchDepositsWithdrawals
|
|
2310
2327
|
* @description fetch history of deposits and withdrawals
|
|
2328
|
+
* @see https://documenter.getpostman.com/view/10287440/SzYXWKPi#31e69a33-4849-4e6a-b4b4-6d574238f6a7
|
|
2311
2329
|
* @param {string} [code] unified currency code for the currency of the deposit/withdrawals, default is undefined
|
|
2312
2330
|
* @param {int} [since] timestamp in ms of the earliest deposit/withdrawal, default is undefined
|
|
2313
2331
|
* @param {int} [limit] max number of deposit/withdrawals to return, default is undefined
|
|
@@ -2361,6 +2379,7 @@ class exmo extends exmo$1 {
|
|
|
2361
2379
|
* @method
|
|
2362
2380
|
* @name exmo#fetchWithdrawals
|
|
2363
2381
|
* @description fetch all withdrawals made from an account
|
|
2382
|
+
* @see https://documenter.getpostman.com/view/10287440/SzYXWKPi#97f1becd-7aad-4e0e-babe-7bbe09e33706
|
|
2364
2383
|
* @param {string} code unified currency code
|
|
2365
2384
|
* @param {int} [since] the earliest time in ms to fetch withdrawals for
|
|
2366
2385
|
* @param {int} [limit] the maximum number of withdrawals structures to retrieve
|
|
@@ -2414,6 +2433,7 @@ class exmo extends exmo$1 {
|
|
|
2414
2433
|
* @method
|
|
2415
2434
|
* @name exmo#fetchWithdrawal
|
|
2416
2435
|
* @description fetch data on a currency withdrawal via the withdrawal id
|
|
2436
|
+
* @see https://documenter.getpostman.com/view/10287440/SzYXWKPi#97f1becd-7aad-4e0e-babe-7bbe09e33706
|
|
2417
2437
|
* @param {string} id withdrawal id
|
|
2418
2438
|
* @param {string} code unified currency code of the currency withdrawn, default is undefined
|
|
2419
2439
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
@@ -2465,6 +2485,7 @@ class exmo extends exmo$1 {
|
|
|
2465
2485
|
* @method
|
|
2466
2486
|
* @name exmo#fetchDeposit
|
|
2467
2487
|
* @description fetch information on a deposit
|
|
2488
|
+
* @see https://documenter.getpostman.com/view/10287440/SzYXWKPi#97f1becd-7aad-4e0e-babe-7bbe09e33706
|
|
2468
2489
|
* @param {string} id deposit id
|
|
2469
2490
|
* @param {string} code unified currency code, default is undefined
|
|
2470
2491
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
@@ -2516,6 +2537,7 @@ class exmo extends exmo$1 {
|
|
|
2516
2537
|
* @method
|
|
2517
2538
|
* @name exmo#fetchDeposits
|
|
2518
2539
|
* @description fetch all deposits made to an account
|
|
2540
|
+
* @see https://documenter.getpostman.com/view/10287440/SzYXWKPi#97f1becd-7aad-4e0e-babe-7bbe09e33706
|
|
2519
2541
|
* @param {string} code unified currency code
|
|
2520
2542
|
* @param {int} [since] the earliest time in ms to fetch deposits for
|
|
2521
2543
|
* @param {int} [limit] the maximum number of deposits structures to retrieve
|
package/dist/cjs/src/gemini.js
CHANGED
|
@@ -400,6 +400,7 @@ class gemini extends gemini$1 {
|
|
|
400
400
|
* @method
|
|
401
401
|
* @name gemini#fetchMarkets
|
|
402
402
|
* @description retrieves data on all markets for gemini
|
|
403
|
+
* @see https://docs.gemini.com/rest-api/#symbols
|
|
403
404
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
404
405
|
* @returns {object[]} an array of objects representing market data
|
|
405
406
|
*/
|
|
@@ -660,6 +661,7 @@ class gemini extends gemini$1 {
|
|
|
660
661
|
* @method
|
|
661
662
|
* @name gemini#fetchOrderBook
|
|
662
663
|
* @description fetches information on open orders with bid (buy) and ask (sell) prices, volumes and other data
|
|
664
|
+
* @see https://docs.gemini.com/rest-api/#current-order-book
|
|
663
665
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
664
666
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
665
667
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
@@ -738,6 +740,8 @@ class gemini extends gemini$1 {
|
|
|
738
740
|
* @method
|
|
739
741
|
* @name gemini#fetchTicker
|
|
740
742
|
* @description fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
|
743
|
+
* @see https://docs.gemini.com/rest-api/#ticker
|
|
744
|
+
* @see https://docs.gemini.com/rest-api/#ticker-v2
|
|
741
745
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
742
746
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
743
747
|
* @param {object} [params.fetchTickerMethod] 'fetchTickerV2', 'fetchTickerV1' or 'fetchTickerV1AndV2' - 'fetchTickerV1' for original ccxt.gemini.fetchTicker - 'fetchTickerV1AndV2' for 2 api calls to get the result of both fetchTicker methods - default = 'fetchTickerV1'
|
|
@@ -851,6 +855,7 @@ class gemini extends gemini$1 {
|
|
|
851
855
|
* @method
|
|
852
856
|
* @name gemini#fetchTickers
|
|
853
857
|
* @description fetches price tickers for multiple markets, statistical information calculated over the past 24 hours for each market
|
|
858
|
+
* @see https://docs.gemini.com/rest-api/#price-feed
|
|
854
859
|
* @param {string[]|undefined} symbols unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
|
|
855
860
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
856
861
|
* @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
@@ -993,6 +998,7 @@ class gemini extends gemini$1 {
|
|
|
993
998
|
* @method
|
|
994
999
|
* @name gemini#fetchTradingFees
|
|
995
1000
|
* @description fetch the trading fees for multiple markets
|
|
1001
|
+
* @see https://docs.gemini.com/rest-api/#get-notional-volume
|
|
996
1002
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
997
1003
|
* @returns {object} a dictionary of [fee structures]{@link https://docs.ccxt.com/#/?id=fee-structure} indexed by market symbols
|
|
998
1004
|
*/
|
|
@@ -1051,6 +1057,7 @@ class gemini extends gemini$1 {
|
|
|
1051
1057
|
* @method
|
|
1052
1058
|
* @name gemini#fetchBalance
|
|
1053
1059
|
* @description query for balance and get the amount of funds available for trading or funds locked in orders
|
|
1060
|
+
* @see https://docs.gemini.com/rest-api/#get-available-balances
|
|
1054
1061
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1055
1062
|
* @returns {object} a [balance structure]{@link https://docs.ccxt.com/#/?id=balance-structure}
|
|
1056
1063
|
*/
|
|
@@ -1232,6 +1239,7 @@ class gemini extends gemini$1 {
|
|
|
1232
1239
|
* @method
|
|
1233
1240
|
* @name gemini#fetchOrder
|
|
1234
1241
|
* @description fetches information on an order made by the user
|
|
1242
|
+
* @see https://docs.gemini.com/rest-api/#order-status
|
|
1235
1243
|
* @param {string} symbol unified symbol of the market the order was made in
|
|
1236
1244
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1237
1245
|
* @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
@@ -1271,6 +1279,7 @@ class gemini extends gemini$1 {
|
|
|
1271
1279
|
* @method
|
|
1272
1280
|
* @name gemini#fetchOpenOrders
|
|
1273
1281
|
* @description fetch all unfilled currently open orders
|
|
1282
|
+
* @see https://docs.gemini.com/rest-api/#get-active-orders
|
|
1274
1283
|
* @param {string} symbol unified market symbol
|
|
1275
1284
|
* @param {int} [since] the earliest time in ms to fetch open orders for
|
|
1276
1285
|
* @param {int} [limit] the maximum number of open orders structures to retrieve
|
|
@@ -1413,6 +1422,7 @@ class gemini extends gemini$1 {
|
|
|
1413
1422
|
* @method
|
|
1414
1423
|
* @name gemini#cancelOrder
|
|
1415
1424
|
* @description cancels an open order
|
|
1425
|
+
* @see https://docs.gemini.com/rest-api/#cancel-order
|
|
1416
1426
|
* @param {string} id order id
|
|
1417
1427
|
* @param {string} symbol unified symbol of the market the order was made in
|
|
1418
1428
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
@@ -1454,6 +1464,7 @@ class gemini extends gemini$1 {
|
|
|
1454
1464
|
* @method
|
|
1455
1465
|
* @name gemini#fetchMyTrades
|
|
1456
1466
|
* @description fetch all trades made by the user
|
|
1467
|
+
* @see https://docs.gemini.com/rest-api/#get-past-trades
|
|
1457
1468
|
* @param {string} symbol unified market symbol
|
|
1458
1469
|
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
1459
1470
|
* @param {int} [limit] the maximum number of trades structures to retrieve
|
|
@@ -1482,6 +1493,7 @@ class gemini extends gemini$1 {
|
|
|
1482
1493
|
* @method
|
|
1483
1494
|
* @name gemini#withdraw
|
|
1484
1495
|
* @description make a withdrawal
|
|
1496
|
+
* @see https://docs.gemini.com/rest-api/#withdraw-crypto-funds
|
|
1485
1497
|
* @param {string} code unified currency code
|
|
1486
1498
|
* @param {float} amount the amount to withdraw
|
|
1487
1499
|
* @param {string} address the address to withdraw to
|
|
@@ -1540,6 +1552,7 @@ class gemini extends gemini$1 {
|
|
|
1540
1552
|
* @method
|
|
1541
1553
|
* @name gemini#fetchDepositsWithdrawals
|
|
1542
1554
|
* @description fetch history of deposits and withdrawals
|
|
1555
|
+
* @see https://docs.gemini.com/rest-api/#transfers
|
|
1543
1556
|
* @param {string} [code] unified currency code for the currency of the deposit/withdrawals, default is undefined
|
|
1544
1557
|
* @param {int} [since] timestamp in ms of the earliest deposit/withdrawal, default is undefined
|
|
1545
1558
|
* @param {int} [limit] max number of deposit/withdrawals to return, default is undefined
|
|
@@ -1751,6 +1764,7 @@ class gemini extends gemini$1 {
|
|
|
1751
1764
|
* @method
|
|
1752
1765
|
* @name gemini#createDepositAddress
|
|
1753
1766
|
* @description create a currency deposit address
|
|
1767
|
+
* @see https://docs.gemini.com/rest-api/#new-deposit-address
|
|
1754
1768
|
* @param {string} code unified currency code of the currency for the deposit address
|
|
1755
1769
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1756
1770
|
* @returns {object} an [address structure]{@link https://docs.ccxt.com/#/?id=address-structure}
|
|
@@ -1775,6 +1789,7 @@ class gemini extends gemini$1 {
|
|
|
1775
1789
|
* @method
|
|
1776
1790
|
* @name gemini#fetchOHLCV
|
|
1777
1791
|
* @description fetches historical candlestick data containing the open, high, low, and close price, and the volume of a market
|
|
1792
|
+
* @see https://docs.gemini.com/rest-api/#candles
|
|
1778
1793
|
* @param {string} symbol unified symbol of the market to fetch OHLCV data for
|
|
1779
1794
|
* @param {string} timeframe the length of time each candle represents
|
|
1780
1795
|
* @param {int} [since] timestamp in ms of the earliest candle to fetch
|