get_bitmex | R Documentation |
Use get_bitmex()
to send GET requests. For private endpoints, authentication is required.
get_bitmex(path, args = NULL, use_auth = FALSE)
path |
string. End point for the api. |
args |
A named list containing valid parameters for the given API endpoint. |
use_auth |
logical. Use |
Returns a data.frame
containing the response from the request.
https://www.bitmex.com/api/explorer/
## Not run:
# Access a public endpoint
chat <- get_bitmex(path = "/chat", args = list(channelID = 1, reverse = "true"))
# Access private endpoint using `use_auth` = `TRUE`.
user <- get_bitmex(path = "/execution", args = list(symbol = "XBTUSD"), use_auth = TRUE)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.