Skip to content

Add open option orders to blob snapshot - #25

Merged
IamJasonBian merged 1 commit into
mainfrom
IamJasonBian/add-open-option-orders
Feb 23, 2026
Merged

IamJasonBian merged 1 commit into
mainfrom
IamJasonBian/add-open-option-orders

Conversation

@IamJasonBian

Copy link
Copy Markdown
Owner

Summary

  • Add get_open_option_orders() method to SafeCashBot that fetches pending option orders from Robinhood via r.orders.get_all_open_option_orders()
  • Each order resolves leg instrument details (strike, expiration, call/put) via the options instrument API
  • Include open_option_orders in the get_portfolio_summary() return dict, which flows into the Netlify Blob snapshot automatically

Test plan

  • Run trading system in dry-run mode and verify open_option_orders appears in local state log JSON
  • Run in live mode and verify the blob written to Netlify includes portfolio.open_option_orders
  • Verify no errors when there are zero open option orders (returns empty array)

Fetch pending/unfilled option orders from Robinhood via
r.orders.get_all_open_option_orders() and include them as
open_option_orders in the portfolio data written to Netlify Blobs.

Each order includes leg details (strike, expiration, call/put, side)
resolved from the Robinhood options instrument API.
@IamJasonBian
IamJasonBian merged commit c577780 into main Feb 23, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant