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.
|
Takes an asset and returns the last known price |
|
Takes a list of assets and returns the last known prices |
|
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). |
|
Get the dividend for the previous day. |
|
Finds the next trading day for the given date and exchange. |