Skip to content

Crypto.com

Trevor French edited this page Jul 21, 2023 · 1 revision

Crypto.com

Logo Name Code cryptotrackr Docs Exchange Docs Source Code
crypto_dot_com Crypto.com crypto_dot_com /docs/crypto_dot_com.md 🏢 /R/crypto_dot_com.R

Functions:

crypto_dot_com_instruments, crypto_dot_com_get_book, crypto_dot_com_get_candlestick, crypto_dot_com_get_ticker, crypto_dot_com_get_trades

crypto_dot_com_instruments()

  • 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()

crypto_dot_com_get_book(instrument, depth)

  • 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")

crypto_dot_com_get_candlestick(instrument, timeframe)

  • 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")

crypto_dot_com_get_ticker(instrument)

ticker <- crypto_dot_com_get_ticker("BTC_USDT")

crypto_dot_com_get_trades(instrument)

trades <- crypto_dot_com_get_trades("BTC_USDT")
Clone this wiki locally