ftx_get_markets_history | R Documentation |
Get historical data of multiple FTX markets
ftx_get_markets_history(markets, resolution, start_date, end_date)
markets |
name of the markets (vector of string) |
resolution |
resolution of candles in seconds (60, 300, 900, 3600, 14400, 86400) |
start_date |
human readable start date in UTC (string) |
end_date |
human readable end date in UTC (string) |
dataframe of prices if API call was successful
ftx_get_markets_history(c("BTC-PERP", "ETH-PERP"), resolution = 300, start_date = "2022-07-20", end_date = "2022-07-30")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.