View source: R/public-interface.r
bt_getorderbook | R Documentation |
The bt_getorderbook()
function returns the order book
for a specified market on https://bittrex.com.
bt_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 the returned order book should be (default and maximum are 50). This is the size and price of bids whose price is lower than the highest bid and higher than the lowest ask. |
A named list with the following elements:
success: a boolean indicating whether the request was 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://bittrex.com/api/v1.1/public/getorderbook
## Not run: head(bt_getorderbook("btc-eth")$result) ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.