brndnmtthws / thetagang

ThetaGang is an IBKR bot for collecting money
GNU Affero General Public License v3.0
1.89k stars 248 forks source link

Fix rolling deep ITM contracts #376

Closed brndnmtthws closed 4 months ago

brndnmtthws commented 4 months ago

When we want to roll ITM contracts, we need to make sure we load ITM strikes too. If there's a strike limit provided, we use that as a lower/upper-bound, otherwise use the underlying price.