View source: R/get_orderbook_liquidity.R
| get_orderbook_liquidity | R Documentation |
Get liquidity sums in the order book of cryptocurrencies using the REST API of cryptowat.ch. The route is orderbook/liquidity. See https://docs.cryptowat.ch/rest-api/markets/order-book for further information.
get_orderbook_liquidity(pair, exchange = "kraken", api_key = NULL,
allowance = FALSE)
pair |
A character string containing a pair symbol, e.g. btcusd
(required argument). Run |
exchange |
A character string containing the exchange. Default is
kraken. Run |
api_key |
A character string containing the API key. See https://docs.cryptowat.ch/rest-api/rate-limit to learn how to create an account and how to generate an API key. |
allowance |
A logical (default is |
A list containing liquidity sums at several basis point levels in
the order book. If allowance is TRUE, get_orderbook() returns
a list which additionally includes allowance information.
See https://docs.cryptowat.ch/rest-api for further information.
get_markets, get_orderbook,
get_exchanges, get_pairs
## Not run:
# Get liquidity sums in the order book of Bitcoin in USD
liquidity <- get_orderbook_liquidity("btcusd")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.