Description Usage Arguments Value References Examples
The getorderbook
function returns the order book
for a specified market on the C-Cex crypto-currency exchange
https://c-cex.com.
1 | getorderbook(market, type = c("both", "buy", "sell"), depth = 50)
|
market |
the market from which the order book will be retrieved. |
type |
type of orders to retrieve (default is "both") |
depth |
how deep should the returned order book be (default and maximum are 50). |
A named list with the following elements:
success: a boolean indicating if the request successful?
message: a string describing the error if the request was not successful, otherwise and empty string."
result: A named list with the buy and sell orders (depending
on the specified type
parameter. If type
is "buy" or
"both" then the list will contain a element named "buy" with
a data.frame
of the buy orders.
https://c-cex.com/?id=api#getorderbook
1 2 3 4 5 6 | ## Not run:
ob = getorderbook("usd-btc")$result
head(ob$buy)
head(ob$sell)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.