Skip to content

v0.4.0

Choose a tag to compare

@kevin1chun kevin1chun released this 11 Mar 01:21
· 18 commits to main since this release

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_id and override_dtbp_checks fields; default time_in_force changed to gfd
  • Crypto dollar-amount + limit price conflict — correctly derives quantity when using amountIn: "price" with limitPrice

Breaking Changes

  • orderOption() signature changed from positional params to (symbol, legs[], price, quantity, direction, opts?)
  • direction is now required (was optional with auto-detection)
  • Default time_in_force for option orders changed from gtc to gfd

Full Changelog: v0.2.0...v0.4.0