Robinhood offers commission-free crypto trading. Horizon connects to Robinhood’s crypto trading API for spot execution alongside prediction market strategies.Documentation Index
Fetch the complete documentation index at: https://mathematicalcompany.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
Quick Setup
Credentials
- Explicit
- Environment variables
Robinhood Configuration
| Field | Default | Description |
|---|---|---|
api_key | None | Robinhood API key (env: ROBINHOOD_API_KEY) |
api_url | https://trading.robinhood.com/api/v1 | Override API base URL |
Authentication
Robinhood uses Bearer token auth:Authorization: Bearer {api_key}
Market Data Feed
Robinhood uses REST polling (no public WebSocket):| Field | Type | Default | Description |
|---|---|---|---|
symbols | list[str] | required | Crypto pairs to poll (e.g., ["BTC-USD"]) |
api_key | str | None | Override API key (defaults to env vars) |
interval | float | 5.0 | Polling interval in seconds |
Symbol Mapping
Robinhood usesBASE-QUOTE format for crypto:
| Horizon Field | Robinhood Field | Notes |
|---|---|---|
OrderRequest.market_id | symbol | e.g., “BTC-USD”, “ETH-USD” |
OrderRequest.order_side | side | "buy" or "sell" |
OrderRequest.price | limit_price | Limit order price |
OrderRequest.size | quantity | Base currency quantity |
Robinhood uses
Side.Long for all positions. Prediction market concepts like Side.Yes / Side.No do not apply to crypto orders.Multi-Exchange
Getting API Keys
- Open the Robinhood app or website
- Navigate to Account > Settings > API Trading
- Generate a new API key
- Store the key securely