Automate options workflows with Python.
Use Python and LumiBot to describe options contracts, create orders and test a repeatable workflow. Start with the current order API reference.
Read The Order APIAn option is defined by its underlying asset, expiration, strike and call or put type. Those fields matter: a similar contract with a different expiration is a different instrument. Your strategy should select the intended contract explicitly.
LumiBot represents non-stock instruments with Asset objects. Its create_order method builds an order for the strategy; order submission is a separate step. Inspect the asset, quantity, side and order type before sending it through a supported broker integration.
Where to begin.
- Define contract selection, position sizing and exits as separate parts of the strategy.
- Read the Asset and create_order examples, then inspect the order the code constructs.
- Test historical behavior and paper execution before using the workflow with real funds.
Looking for AI training for your team? Explore Lumiwealth Training.
Need help with an older course? Contact Lumiwealth.