Skip to main content
Execution: venue.trade() in chat code, strategy.execute() in strategy agents.

Overview

Robinhood connects to Scalar Field via OAuth. Once linked, the account is a tradable venue: Scalar Field reads positions, balances, and order history, and places equity and ETF orders in the account.
SpecificationValue
InstrumentsUS equities and ETFs (no options or crypto orders)
ConnectionOAuth
FractionalYes
HoursUS market hours
QuotesLast, bid, ask, volume (no order-book depth)
CurrencyUSD

Order Semantics

  • Symbols are plain tickers (AAPL, SPY).
  • Options and crypto orders are not supported — equities and ETFs only.
  • Fractional quantities are supported. Size from a dollar budget with round(budget / price, 2).
  • The slippage_bps parameter does not apply to brokerage venues.

Connecting

Click “Connect” on the portfolio page and authorize with your Robinhood account.

Usage

from scalarlib import venue

# Account snapshot
data = venue.account(account="ROBINHOOD")
print(data["accounts"][0]["portfolio_value"])

# Buy 2 shares of AAPL
resp = venue.trade("buy", "AAPL", 2, account="ROBINHOOD")
print(resp["status"], resp["avg_price"])
In strategy agents, use strategy.execute(symbol, target_qty) instead — see Strategies.

Data Functions

Equity research uses the cross-asset market-data functions; each links to its full reference:
Function / datasetPurpose
Equity & ETF OHLCVHistorical price bars for backtesting and signals
Latest Price SnapshotLive last/bid/ask quotes for sizing and execution checks
EarningsEarnings calendar and results
Insider TradesSEC Form 4 insider transactions
Congressional TradesCongressional trading disclosures
Institutional Holdings13F institutional positions
Economic Releases / FREDMacro event and series data

Notes

  • Avoid trading directly in the Robinhood app while strategies are active on the account — see Reconciliation for how position mismatches are handled.
  • Orders submitted outside market hours are queued for the next market open.

Related