v0.4.0
What's New
Multi-leg Option Spreads
The robinhood_place_option_order tool and orderOption() client method now support single-leg and multi-leg orders via a unified legs array. Place verticals, iron condors, straddles, butterflies, and any custom multi-leg strategy.
Stop-Limit Option Orders
New stop_price parameter enables stop-limit behavior on option orders.
Fractional Share Guardrails
Fractional stock orders now auto-enforce gfd time-in-force and reject non-market order types with clear error messages.
Idempotent Orders
All order types (stock, option, crypto) include ref_id (UUID) for idempotency, matching Robinhood's expected payload format.
Bun.secrets Token Storage
Migrated from AES-256-GCM file encryption to OS keychain via Bun.secrets — zero deps, no files on disk.
Bug Fixes
- Option order 500 errors — added missing
ref_idandoverride_dtbp_checksfields; defaulttime_in_forcechanged togfd - Crypto dollar-amount + limit price conflict — correctly derives quantity when using
amountIn: "price"withlimitPrice
Breaking Changes
orderOption()signature changed from positional params to(symbol, legs[], price, quantity, direction, opts?)directionis now required (was optional with auto-detection)- Default
time_in_forcefor option orders changed fromgtctogfd
Full Changelog: v0.2.0...v0.4.0