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:

Strategy.get_last_price(asset[, quote, exchange])

Takes an asset and returns the last known price

Strategy.get_last_prices(assets[, quote, ...])

Takes a list of assets and returns the last known prices

Strategy.get_historical_prices(asset, length)

Get historical pricing data for a given symbol or asset.

Strategy.get_historical_prices_for_assets(...)

Get historical pricing data for the list of assets.

Strategy.get_quote(asset[, quote, exchange])

Get a quote for the asset.

Strategy.get_yesterday_dividend(asset)

Get the dividend for the previous day.

Strategy.get_next_trading_day(date[, exchange])

Finds the next trading day for the given date and exchange.