Skip to content

Conversation

@jonsflow
Copy link

@jonsflow jonsflow commented Jan 4, 2026

This implementation adds full access to Robinhood's futures trading API.

Features:

  • Get futures contract details by symbol
  • Get real-time quotes for futures contracts
  • Retrieve all historical futures orders with automatic pagination
  • Auto-discover futures account ID
  • Extract and calculate P&L from futures orders
  • Full support for all discovered futures endpoints

All 13 tests passing.

🤖 Generated with Claude Code

jonsflow and others added 2 commits January 3, 2026 13:45
This implementation adds full access to Robinhood's futures trading API.

Features:
- Get futures contract details by symbol
- Get real-time quotes for futures contracts
- Retrieve all historical futures orders with automatic pagination
- Auto-discover futures account ID
- Extract and calculate P&L from futures orders
- Full support for all discovered futures endpoints

All 13 tests passing.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <[email protected]>
The futures API uses cursor-based pagination (passing cursor parameter)
rather than URL-based pagination like stocks/options. Updated both
get_all_futures_orders() and get_filled_futures_orders() to properly
handle pagination by reading the 'next' cursor from responses.

Also improved get_futures_account_id() to filter by accountType='FUTURES'
to ensure we get the correct futures account.

Added tests for order retrieval functions to verify pagination works.
All 15 tests passing.
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