-
Notifications
You must be signed in to change notification settings - Fork 1
Crypto.com
Logo | Name | Code | cryptotrackr Docs | Exchange Docs | Source Code |
---|---|---|---|---|---|
Crypto.com | crypto_dot_com | /docs/crypto_dot_com.md | 🏢 | /R/crypto_dot_com.R |
crypto_dot_com_instruments, crypto_dot_com_get_book, crypto_dot_com_get_candlestick, crypto_dot_com_get_ticker, crypto_dot_com_get_trades
-
Returns a dataframe with information about instruments available on Crypto.com
-
The following example retrieves information about instruments available on Crypto.com and stores the data in a variable named "instruments".
instruments <- crypto_dot_com_instruments()
-
Returns a list containing the order book for your specified instrument.
-
instrument: the instrument name which you want to query
-
depth: the depth of the order book to retrieve. The maximum and default value is 50.
-
The following example retrieves the order book for the "BTC_USDT" instrument and stores it in a list named "book".
book <- crypto_dot_com_get_book("BTC_USDT")
-
Returns a list which contains metadata about your query along with a dataframe containing your candlestick data.
-
instrument: the instrument name which you want to query
-
timeframe: the timeframe which each candle represents. You can choose from the following options: '1m', '5m', '15m', '30m', '1h', '4h', '6h', '12h', '1D', '7D', '14D', '1M'. The defailt option is '5m'.
-
The following example retrieves the candlestick data for the "BTC_USDT" instrument.
candlesticks <- crypto_dot_com_get_candlestick("BTC_USDT")
-
Returns ticker data for specified instrument. Refer to Crypto.com for help interpreting response data: https://exchange-docs.crypto.com/spot/index.html#public-get-ticker
-
instrument: the instrument name which you want to query
-
The following example retrieves the ticker data for the "BTC_USDT" instrument.
ticker <- crypto_dot_com_get_ticker("BTC_USDT")
-
Rreturns trade data for specified instrument. Refer to Crypto.com for help interpreting response data: https://exchange-docs.crypto.com/spot/index.html#public-get-trades
-
instrument: the instrument name which you want to query
-
The following example retrieves the trade data for the "BTC_USDT" instrument.
trades <- crypto_dot_com_get_trades("BTC_USDT")