You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It would be helpful to have an example Nautilus "strategy" designed to test fincal's ability to represent market hours. This would double as a demonstration piece for others interested in using the component.
The strategy will subscribe to historical data at a resolution of 1 minute (e.g. 1 min bars). The strategy will raise an event every minute, checking to see whether our historical data provider (currently Polygon) agrees with our master market hours repository, outputting any discrepancies. While we could do this more quickly/easily with a direct data comparison between fincal and our provider, we'll want all this tooling for strategy development anyhow, so it's useful to just use the Nautilus engine as a data validation mechanism for now.
Since the Nautilus .venv requirements are much heavier than fincal alone, this solution should be maintained in a perpetual branch called "nautilus_examples", which can be optionally pulled down for those interested in using fincal with Nautilus.
Pull 1 minute bars from Polygon from 2014-01-01 to 2023-10-15 for the following symbols, and store into a Nautilus catalog:
NYSE symbols: KO (Coca Cola)
NASDAQ symbols: QQQ (Invesco QQQ)
Add the standard market sessions to each dataset using fincal
Construct a picture of the trading day by creating a Nautilus strategy that triggers every minute. When the historical bars event is raised, see whether there is any volume for that minute. If there is volume on that minute, include it in the "regular session". If there isn't volume, treat it as a pause, or as a session close. At the end of the day, compare against fincal to see whether the data aligned to the fincal session struct, and output a message if there is a discrepancy
The text was updated successfully, but these errors were encountered:
It would be helpful to have an example Nautilus "strategy" designed to test fincal's ability to represent market hours. This would double as a demonstration piece for others interested in using the component.
The strategy will subscribe to historical data at a resolution of 1 minute (e.g. 1 min bars). The strategy will raise an event every minute, checking to see whether our historical data provider (currently Polygon) agrees with our master market hours repository, outputting any discrepancies. While we could do this more quickly/easily with a direct data comparison between fincal and our provider, we'll want all this tooling for strategy development anyhow, so it's useful to just use the Nautilus engine as a data validation mechanism for now.
Since the Nautilus .venv requirements are much heavier than fincal alone, this solution should be maintained in a perpetual branch called "nautilus_examples", which can be optionally pulled down for those interested in using fincal with Nautilus.
Not in scope for this issue:
Acceptance criteria:
The text was updated successfully, but these errors were encountered: