get_market_crypto: Get market crypto data from FMP cloud

Description Usage Arguments Value Examples

View source: R/get_market_crypto.R

Description

Get market crypto data from FMP cloud API.

Usage

1
2
3
4
5
6
7
8
9
get_market_crypto(
  symbol,
  multiply = 1,
  time = "hour",
  from = as.character(Sys.Date() - 7),
  to = as.character(Sys.Date()),
  api_key,
  limit
)

Arguments

symbol

Crypto symbol

multiply

Multiply time yo get final frequency

time

Time frequency

from

Start date, character

to

End date, character

api_key

FMP cloud API key

limit

= Response limit, default is 500. (Maximum 1000)

Value

Data table of OHLCV prices

Examples

1
2
get_market_crypto(symbol = 'btcusd', multiply = 1, time = 'h', from = as.character(Sys.Date() - 7),
                  to = as.character(Sys.Date()), api_key = Sys.getenv("APIKEY"), limit = 100)

MislavSag/mrisk documentation built on Dec. 17, 2021, 4:18 a.m.