load
Load crypto currency to get data for
Source Code: [link]
openbb.crypto.load(symbol: str, start_date: Union[datetime.datetime, str, NoneType] = None, interval: Union[str, int] = "1440", exchange: str = "binance", to_symbol: str = "usd", end_date: Union[datetime.datetime, str, NoneType] = None, source: str = "YahooFinance")
Parameters
Name | Type | Description | Default | Optional |
---|---|---|---|---|
symbol | str | Coin to get | None | False |
start_date | Union[datetime, Union[str, None]] | Start date to get data from with. - datetime or string format (YYYY-MM-DD) | None | True |
interval | Union[str, int] | The interval between data points in minutes. Choose from: 1, 15, 30, 60, 240, 1440, 10080, 43200 | 1440 | True |
exchange | str: | The exchange to get data from. | binance | True |
to_symbol | str | Quote Currency (Defaults to usdt) | usd | True |
end_date | Union[datetime, Union[str, None]] | End date to get data from with. - datetime or string format (YYYY-MM-DD) | None | True |
source | str | The source of the data Choose from: CCXT, CoinGecko, YahooFinance | YahooFinance | True |
Returns
Type | Description |
---|---|
pd.DataFrame | Dataframe consisting of price and volume data |
Examples
from openbb_terminal.sdk import openbb
openbb.crypto.load(symbol="btc",to_symbol="usd",start_date="2019-01-01",source="YahooFinance")