nautechsystems / nautilus_trader

A high-performance algorithmic trading platform and event-driven backtester

Home Page:https://nautilustrader.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Allow _get_last_price() to use bars if quote ticks are not subscribed

pcgm-team opened this issue · comments

Quote tick subscriptions are not always necessary (or available) yet features such as net exposures and unrealized_pnl depend on either quote or trade tick subscriptions to function.

This should be changed to use the most recent bar price in the event that no quote ticks are subscribed.

Many thanks @rsmb7z 🙏.