Skip to main content

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

NameTypeDescriptionDefaultOptional
symbolstrCoin to getNoneFalse
start_dateUnion[datetime, Union[str, None]]Start date to get data from with. - datetime or string format (YYYY-MM-DD)NoneTrue
intervalUnion[str, int]The interval between data points in minutes.
Choose from: 1, 15, 30, 60, 240, 1440, 10080, 43200
1440True
exchangestr:The exchange to get data from.binanceTrue
to_symbolstrQuote Currency (Defaults to usdt)usdTrue
end_dateUnion[datetime, Union[str, None]]End date to get data from with. - datetime or string format (YYYY-MM-DD)NoneTrue
sourcestrThe source of the data
Choose from: CCXT, CoinGecko, YahooFinance
YahooFinanceTrue

Returns

TypeDescription
pd.DataFrameDataframe 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")