Files
OpenBB/website/content/api/crypto/load/_index.md
Colin Delahunty 0b33cb45f8 Adds auto yaml generation (#2587)
* Began working on docs creator

* Added fixes

* More

* More

* Adding autogen_try.py for OpenBB API doc generation

* OpenBB API docs gen try

* Fixed

* Added fixes

* Added fixes

* subs -> sub

* Updated docs

* Updated docs

Co-authored-by: Chavithra PARANA <chavithra@gmail.com>
2022-09-23 16:43:34 +01:00

724 B
Vendored

Get underlying data

crypto.load(symbol: 'str', start_date: 'datetime' = datetime.datetime(2019, 9, 19, 15, 38, 2, 624906), interval: 'str' = '1440', exchange: 'str' = 'binance', vs_currency: 'str' = 'usdt', end_date: 'datetime' = datetime.datetime(2022, 9, 23, 15, 38, 2, 624916), source: 'str' = 'ccxt')

Load crypto currency to perform analysis on CoinGecko is used as source for price and YahooFinance for volume.

Parameters
----------
symbol: str
    Coin to get
vs: str
    Quote Currency (usd or eur), by default usd
days: int
    Data up to number of days ago, by default 365

Returns
-------
pd.DataFrame
    Dataframe consisting of price and volume data