Data¶
Data methods are made to get data for you to use in your strategies. You can use them to get historical pricing data (eg. get_symbol_bars()) and more. You can see a list of them below:
Historical bar times¶
Historical bars retain the provider’s actual time basis. Epoch seconds or milliseconds are UTC instants and are converted, rather than relabeled, when displayed in another timezone. CCXT history uses a UTC-aware index; an explicit timezone-aware endpoint refers to the same instant in every timezone. Legacy naive CCXT endpoints denote UTC.
A bar timestamp can mark its opening time or a daily session label. It does not necessarily mean that the final close was available at that instant. When comparing account observations with market prices, check the returned dates and the provider’s bar convention. A previous session’s last bar does not measure a requested later session’s return.
|
Creates an asset object. |
|
Takes an asset and returns the last known price |
|
Takes a list of assets and returns the last known prices |
|
Takes an Asset and returns the last known price |
|
Get historical pricing data for a given symbol or asset. |
|
Get historical pricing data for the list of assets. |
|
Get a quote for the asset. |
|
Return exact Assets mapped to Quote objects (or None when absent). |
|
Starts a real time stream of tickers for Interactive Broker only. |
|
Retrieve the real time bars as dataframe. |
|
Cancels a stream of real time bars for a given asset. |
|
Get the dividend for the previous day. |
|
Get the dividends for the previous day. |
|
Get the stock split ratio for the current backtest day. |
|
Get stock split ratios for the current backtest day. |
|
Finds the next trading day for the given date and exchange. |