knitr::opts_chunk$set( collapse = TRUE, comment = "#>", fig.path = "man/figures/README-", out.width = "100%" )
The goal of rFTX is to provide R interface for FTX REST API. The user is required to have an FTX account as the account’s API key and secret key is used in authentication. These can be created here: https://ftx.com/profile. If you are using a subaccount, some functions allow the name as an argument. This can be left out if not using subaccounts.
You can install the development version from GitHub with:
devtools::install_github("andreskull/rFTX", build_vignettes = TRUE)
This is a basic example which shows you how to fetch trades data for a particular market:
library(rFTX) ## basic example code ftx_trades(key = "", secret = "", market = "FTM-PERP")
This is another example which shows you how to fetch future funding rates data for two markets:
## second example code ftx_future_funding_rates(key = "", secret = "", markets = c('CRV-PERP','XRP-PERP'))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.