extract_order_intent (robinhood/extractor.py)

Vibe-Trading · agent/src/trading/connectors/robinhood/extractor.py · python · MIT
pos

Robinhood order-intent extractor (SPEC.md Mandate Enforcement §4). Maps Robinhood's ``place_equity_order`` tool kwargs to the normalized :class:`~src.live.enforcement.OrderIntent`. Pinned against the frozen Robinhood catalog: the only order-placing WRITE tool is ``place_equity_or

# Source: https://github.com/HKUDS/Vibe-Trading | License: MIT | Copyright 2026 Vibe-Trading Contributors
# Provided via justclaw.it.com; keep this notice with the code.
"""Robinhood order-intent extractor (SPEC.md Mandate Enforcement §4).

Maps Robinhood's ``place_equity_order`` tool kwargs to the normalized
:class:`~src.live.enforcement.OrderIntent`. Pinned against the frozen Robinhood
catalog: the only order-placing WRITE tool is ``place_equity_order``
(``cancel_equity_order`` is a WRITE but not an *order placement* — it carries no
notional/quantity to enforce, so it is not an order-intent tool here).

``place_equity_order`` is sized by ``symbol`` + ``side`` plus exactly one (or,
defended against, both) of ``notional_usd`` / ``quantity`` (``dollar_amount``
accepted as a notional alias).

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key