Robinhood Web: how it works
Robinhood Web reads your Robinhood account's market data the way Robinhood's own web app reads it once you sign in: a dxFeed md socket for live quotes, prints, 1m bars, books and all bar history, and REST GETs for point quotes and reference reads. It is a data source only, never a venue: it places, cancels and reads no order and reads no account. The plugin is one Rust crate, taji-robinhood-web (plugins/robinhood-web/), seated on a sign-in captured off your own Chrome. It talks to three hosts: api.robinhood.com (REST and the md socket), nummus.robinhood.com (crypto pairs) and dora.robinhood.com (news). It shares its body decoders, row mappers and chain composition with robinhood-agentic through the library crate taji-robinhood-reads (plugins/robinhood-reads/), which this page also covers.
The vendor
No published API. Robinhood publishes no documentation for the token grant, the REST paths or the md socket this plugin uses. The manifest's risk line says so, and the route can stop without notice (plugins/robinhood-web/taji-plugin.toml). Every Robinhood fact on this page comes from two sources: the web app's own traffic, captured as HARs on 2026-11-04 and 2026-11-05 and audited panel by panel on 2026-11-06, and Taji's dated measurements in the README.
The web app. The web app is Robinhood Legend, reached at robinhood.com/legend after you log in on the web (Get started with Robinhood Legend, fetched 2026-12-02). Robinhood names the feeds behind it (Market data sources for Robinhood Legend, fetched 2026-12-02):
- stocks and ETFs from Nasdaq Basic, NYSE BQT, Cboe One, MEMX and others;
- options from OPRA;
- futures from CME;
- crypto from "a mix of different exchanges".
Robinhood's Level II is "powered by Nasdaq Totalview" and "only includes orders from Nasdaq stock market participants" (What's Level II Market Data?, fetched 2026-12-02).
Hosts and environments. Robinhood has one environment, live, with no paper or sandbox. Every read this plugin makes is a read of live market data on your real login.
Auth.
- A browser login on
https://robinhood.com/loginends inPOST /oauth2/token/. Its answer carries a refresh token and thedevice_tokenthat grant is bound to. That pair is the credential, and it is not the agentic token: neither works on the other's API. - The refresh grant is form-encoded, with
grant_type=refresh_token,scope=internal, the web app's publicclient_id,expires_in=734000and the device token. Its answer is a new access token and a new refresh token. The refresh token is single-use: the old one is dead once the grant returns. - The md socket needs a second token, a dxLink token from
GET marketdata/token/v1/?session_id=<uuid>&session_type=blackwidow, whosettl_msarrives as text. - The socket's upgrade authenticates with
Sec-WebSocket-Protocol: bearer, <access token>andOrigin: https://robinhood.com, as the web app sends it.
The README owns the measured lifetimes: The credential and The md socket (dxLink). The login page renders nothing without JavaScript: a fetch on 2026-12-02 returned an empty page, so its controls are the README's Linking table, read 2026-11-18.
The md socket is dxFeed's dxLink. The upgrade goes to wss://api.robinhood.com/marketdata/streaming/legend/v2/, protocol version 0.1-DXF-JS/0.5.1. dxLink runs one control channel (0) and numbered virtual channels, one FEED channel per event type:
SETUPnegotiates the version and keepalive timeouts.AUTHcarries the token and is answered byAUTH_STATE.CHANNEL_REQUESTopens a channel, answered byCHANNEL_OPENED.FEED_SETUPnames each channel's fields, data format and aggregation period.FEED_SUBSCRIPTIONadds and removes{type, symbol}entries;resetclears a channel's set.- Rows arrive as
FEED_DATA, and either side sendsKEEPALIVEto stay inside the other's timeout.
dxFeed documents the WebSocket API only at overview level (dxFeed WebSocket API, fetched 2026-12-02). Its protocol page on demo.dxfeed.com answered 400 to a fetch on 2026-12-02. The message order and the 60 s keepalive above are as tastytrade documents its own dxLink feed (tastytrade: stream market data, fetched 2026-12-02); Taji sends Robinhood the same frames the web app sent in its 2026-11-04 HAR.
dxFeed's event model, which every md row follows:
- Candle symbols carry attributes in braces.
{=m}is one minute and{=d}a day.tho=truelimits a candle to regular trading hours. Midnight alignment is the default, andpricedefaults tolast(CandleSymbol, fetched 2026-12-02). The futures root'scfmc=categoryattribute is not on that page; it is read off the web app's HAR. - A
Candlecarriestime,sequence,count, OHLC,volume,vwap,impVolatilityandopenInterest. ItseventTimeis zero on live network events (Candle, fetched 2026-12-02). eventFlagsare bits:TX_PENDING1,REMOVE_EVENT2,SNAPSHOT_BEGIN4,SNAPSHOT_END8 andSNAPSHOT_SNIP16 (more data exists but will not be sent). A snapshot is delivered as one transaction from its begin to its end or snip (IndexedEvent, fetched 2026-12-02). Robinhood's end marker is10or18: end or snip with the remove bit set, the row's prices"NaN".- An
Ordernames its book bysource.NTVis "NASDAQ Total View",GLBXis "CME Globex", andAGGREGATEis the "Aggregate order book (futures depth and NASDAQ Level II)" (OrderSource, fetched 2026-12-02).
API families Taji calls:
| Family | Host and path | Taji's use |
|---|---|---|
| Token grant | api POST oauth2/token/ | mint an access token, rotate the refresh token |
| Streaming token | api GET marketdata/token/v1/ | the dxLink AUTH token and the socket URL |
| md socket | wss://api.robinhood.com/marketdata/streaming/legend/v2/ | Quote, Trade, TradeETH, Candle (live and history), Order, Greeks, Summary, Underlying, Series, Configuration{type=optstat} |
| Quotes | api marketdata/quotes/, marketdata/options/, marketdata/forex/quotes/, marketdata/indexes/values/v1/ | point quotes; option chain quotes |
| Reference | api instruments/, indexes/, options/chains/, options/instruments/, marketdata/fundamentals/<id>/, marketdata/earnings/ | instrument, search, chains, float, earnings |
| Futures | api arsenal/v1/futures/products, arsenal/v1/futures/contracts?productIds= | a root's exchange, id and front; its contracts |
| Crypto pairs | nummus currency_pairs/ | a pair's id; crypto instrument and search |
| News | dora feed/instrument/<id>/ | equity news |
Account and entitlement model. The token's scope is internal, and it can do anything your account can, orders and transfers included. What it reaches here is bounded by Taji's fence, not by the vendor (see Constraints and limits). What you see is what your account sees in the web app. Taji probes no plan (Source::probe answers None).
Stated limits. Robinhood states no rate limit and no per-socket symbol cap, and its answers carry no rate headers. Taji's numbers are measured: see the README's REST and Candle reach sections.
Offered, not read
What Taji reads, down to each field it fills, is docs/reference/coverage/robinhood-web.md. Robinhood publishes no docs for any of it, so each line below is what a recorded row or a dated probe holds:
| Offered | Socket or endpoint | Evidence, date |
|---|---|---|
| Orders, positions, account panels and the account-event socket: agentic owns them, this plugin is market data only, and the fence refuses every account, order, position and transfer path | wss://api-streaming.robinhood.com/wss/connect, the account REST | the manifest's never line (taji-plugin.toml); client.rs's GET allowlist |
A Quote's bidSize and askSize and a Trade's size: the rows state them and no read serves them until a walk measures their unit, so quotes and trades fill no size (an option's live quote takes its sizes off marketdata/options/ instead); an equity's point quote states bid_size and ask_size too, which agentic's mapper does not carry | md socket Quote, Trade, TradeETH; marketdata/quotes/ | the web app's rows in dxlink/tests.rs, 2026-11-04 HAR; equity_quote() in source/tests.rs |
A Trade's dayVolume: a live chain reads it as the contract's volume, no other read does | md socket Trade | tests.rs (the SPX option page's rows), 2026-12-03 HAR |
A Candle's openInterest: NaN on every daily row | md socket Candle | SPY{=d,a=m} and SPX{=d,a=m}, 251 rows each, probed 2026-12-03 (README Option statistics) |
Summary's prevDayClosePrice (the previous close is the kernel's prev_close), prevDayVolume, an openInterest outside a chain, and a dayClosePrice not typed FINAL (before that it is the day's last price, quotes' last) | md socket Summary | tests.rs' C7410 row, 2026-12-03 HAR |
Underlying's putCallRatio and its front and back volatility; Series' volumes, forward, dividend, interest and index (an AM and a PM series sharing an expiration cannot be told apart) | md socket Underlying, Series | the daily candle's last impVolatility equalled Underlying.volatility, probed 2026-12-03 |
Profile: the 52-week range comes with details | md socket Profile | the HAR audit, 2026-11-06 |
The optstat attachment's vwap ("NaN"), the HV 52-week range (52wHVHigh, 52wHVLow), the order-flow fractions ({put,call,total}{BelowBid,BetweenMarket,OverAsk}Frac) and perDeltaPut and perDeltaCall: no statistics word carries them | md socket Configuration {type=optstat} | the SPX option page's HAR, 2026-12-03 |
An instruments/ row's list_date and market: no instrument column is filled from them | instruments/?symbol= | aapl_instrument() in source/tests.rs; README REST, 2026-11-06 |
An index's simple_name and description: its search and instrument rows state no name | indexes/ | 33 rows, README REST, 2026-11-06 |
A pair's day open_price, high_price, low_price, volume and mark_price: no quotes column holds them | marketdata/forex/quotes/ | the marketdata/forex/quotes/ row in source/tests.rs' vendor(); README REST, 2026-11-06 |
An earnings row's call (broadcast_url, replay_url) and report.time | marketdata/earnings/ | README REST, 2026-11-06; source/tests.rs the_measured_bodies_decode_to_the_rows_the_old_paths_did |
A story's authors (no author is set), related_assets, popularity and content_type | dora feed/instrument/<id>/ | story() in source/tests.rs, measured 2026-11-06 |
indexes/closes/v1, marketdata/options/chains/stats/v1/ (expected move) and short interest: no hub product carries them | api REST | the HAR audit, 2026-11-06 |
Mark candles (price=mark): option bars stay trade bars | md socket Candle | user ruling, 2026-11-06; reach 14 days (SPY, 2026-04-14, README Candle reach) |
quotes/historicals/: it gave wrong intraday candles against other providers, so history comes from the socket | api quotes/historicals/ | SPY 5m, 2026-04-15 (README REST) |
Scanner (beacon/scan), the AI digest and bonfire search: the scanner is not yet built, the other two are not adopted | api beacon/scans and bonfire | beacon/scans rows, README REST, 2026-11-06 |
forex/fundamentals, forex/historicals, forex/estimated_price, marketdata/halts, equities/ssr, bonfire warnings, arsenal trading_sessions and atc_schedule: not adopted | api REST | user, 2026-11-07 |
| Analyst ratings: the web app shows none, and no ratings path is on the fence | none | the web app (README REST) |
Code map
Read plugins/robinhood-web/src/source.rs's //! first, then RhWebStream in plugins/robinhood-web/src/lib.rs.
plugins/robinhood-web/:
plugins/robinhood-web/taji-plugin.toml: the manifest, with one[[sources]]and one[[link]]form,robinhood-web, of kindstart.plugins/robinhood-web/Cargo.toml: cratetaji-robinhood-web. Thetest-endpointfeature adds the loopback constructors (RobinhoodWeb::at,RobinhoodWeb::on,WebClient::at), and only a dev-dependency enables it.plugins/robinhood-web/src/lib.rs:Plugin(registers the source),IDandprovider(). It ownsRhWebStream, one login's md socket: the subscription set under one lock (State), the fan-outs (Fan), history andoptstatreads (Pending,option_stats), the session loop with redial and backoff (session_loop,run), and row routing (routefor live,snapshotfor history). It implementsLiveStreamandHistoricalData. Start atRhWebStream::attachandrun.plugins/robinhood-web/src/client.rs:WebClient, the only code that puts the credential on the wire.fenceandfence_sockethold the allowlist:READSper host, the onePOST, the one socket.- The refresh grant (
grant), the 401 re-mint (get_sealing), the streaming token (stream_token) and the socket upgrade (dial). - The rate set
rh-web-dataand the socket caprh-web-md-socket. - The futures product cache (
futures_product,exchange_of) and the id cache (hold_id,held_id). - Start at
fence.
plugins/robinhood-web/src/dxlink.rs: the dxLink frames and one connection's handshake (Conn::open). It holds the channel per event kind (Kind::channel), the subscription entries and candle spellings (Entry,candle_suffix,ROOT_SERIES), the frame parser (frame), the candle row decoder (candle) and why a connection ended (Lost).plugins/robinhood-web/src/source.rs:RobinhoodWeb, theSourceimpl.- The statics:
FACTS,CAP(the bars row) andREADS. - Seating (
seat,check). - Live ticks (
open_ticks,feeds,relay,row_pair), and the depth book kept by order index (Book). - Point quotes (
quote). - REST reference reads (
raw_read,rest_raw,parse,rest_parse,tool_data) and the chain calls (WebChain). - Statistics off the md socket (
statistics_raw,statistics_parse,statistics_rows; live,live_statistics,live_statistics_rows). - The futures listing and front-contract statement (
contracts_raw,instrument_rows,search_rows,listing).
- The statics:
plugins/robinhood-web/src/offer.rs:OFFER, what the web app asks per class, for coverage.plugins/robinhood-web/src/tests.rs: the stream against an in-process md peer, covering subscriptions, bars, history, statistics, books, redials and channel errors.plugins/robinhood-web/src/source/tests.rs: the source's reads, statics, parsing and ranking facts.plugins/robinhood-web/src/client/tests.rs: the fence, grant rotation, the spent chain, 401 and 403, the rate set and 429 hold, the streaming token and warm-up.plugins/robinhood-web/src/dxlink/tests.rs: frame parsing, candle decoding and candle spellings.plugins/robinhood-web/tests/egress.rs: byte goldens of what the client sends, underplugins/robinhood-web/tests/egress/, an equity's point quote (quote) through the seated source. It also checks that redirects are not followed and that hosts the login was not granted hear nothing.plugins/robinhood-web/tests/live.rs: the live suite against your own sign-in.plugins/robinhood-web/scripts/robinhood_web_walk.py: the kernel walk, phaseslink,live,depth,historyandreference.plugins/robinhood-web/ui/mark.svg: the provider's mark.
Outside the crate:
agent/src/mcp/robinhood.ts:robinhoodPair, the Chrome capturetaji-link robinhood-webruns.agent/src/mcp/link.ts: therobinhood-webrow oftaji-link's form table (method: "chrome").engine/crates/taji-open/src/lib.rs: addstaji_robinhood_web::Pluginto Open's kernel.engine/crates/taji-open/ties/src/lib.rs:BUILD, the robinhood-web rows of the seat, listing, history (place), stream and reference rankings.engine/crates/taji-open/tests/rh_web_tls.rs: checks the md socket's TLS without a process-default rustls provider.
taji-robinhood-reads
plugins/robinhood-reads/ is a library with no manifest and no README. It registers nothing and does no I/O of its own. Robinhood's agentic MCP tools and its web REST paths answer the same bodies: agentic's tool frame carries under data what web's GET returns bare. So one set of decoders and mappers serves both transports. Its users:
taji-robinhood(plugins/robinhood-agentic/);taji-robinhood-web(this crate);taji-trading's tests (a dev-dependency), which decode agentic frames with it.
Its files:
plugins/robinhood-reads/src/lib.rs:spell(an item as agentic's tools name it, a pair dashedBTC-USD),point_rowandquote_row(a quote body as aPair, the last print beside the book),earnings_jsonandearnings_reach,DETAILS_FROM, andreference_rows, the mappers toreferencerows (fundamentals_rows,earnings_rows,details_rows,details_of,frames). Start here.plugins/robinhood-reads/src/frame.rs: the tool frame's vocabulary, its envelope,data,McpErrorand the rate-limit text test. Agentic uses it; web reaches it throughmarket's error type.plugins/robinhood-reads/src/market.rs: the body decoders, each row stampedts_utc. They cover quotes (equity_quote_row,decode_option_quotes,decode_index_quotes,decode_crypto_quotes), chains (decode_option_chains,decode_option_instruments,join_chain), fundamentals, search, currency pairs and tradability. Also here: the raw formats (CHAINS_FORMAT,FUNDAMENTALS_FORMAT,EARNINGS_FORMAT, …) andraw_of.plugins/robinhood-reads/src/chain.rs: one chain read composed over either transport. A provider implementsChainCalls(spot,listing,instruments,quotes,held), andchains_rawandchain_answerdo the rest. Web's impl isWebChaininplugins/robinhood-web/src/source.rs; agentic's isAgenticChaininplugins/robinhood-agentic/src/source/chain.rs.plugins/robinhood-reads/src/earnings.rs: one decoder for the earnings body shared byget_earnings_resultsandget_earnings_calendar.
How it plugs into Taji
SDK traits.
taji_plugin::Plugin(plugins/robinhood-web/src/lib.rs) registers one source.taji_plugin::vendor::SourceisRobinhoodWeb(plugins/robinhood-web/src/source.rs).taji_brokerage::traits::LiveStreamandHistoricalDataareRhWebStream(plugins/robinhood-web/src/lib.rs), seated as both the live and the history client (Seated { history, live }).
It implements no VenueReads, ExecutionOps or ReconcileOps, and no VenueFacts. Its OFFER (plugins/robinhood-web/src/offer.rs, FACTS.offer) is what the web app asks, as no spec is published, and feeds its coverage page. The measured behaviour is the README's.
FACTS (plugins/robinhood-web/src/source.rs):
seat: Seat::Captured: a sign-in captured off your browser, sealed underrobinhood-weband rotated by the host. It carries asKey { anew: true }.reads: the(class, product, span)triples:- live bars, quotes and trades for equity, option, index, future and crypto;
- live depth for equity, crypto and future;
- bar history for all five classes;
- now quotes for equity, index, option and crypto;
- reference reads: equity fundamentals, earnings, news, search, instrument and details; index and crypto search; crypto instrument and details; option chains; future instrument and search; equity and index statistics;
- a live option chain, its
expiry,right,strike_minandstrike_maxthe source's words.
sessions: an equity's extended, 24h, pre and post bars and trades.kinds:fundamentalsservesfloatalone.unranged: news, a capped answer, and statistics, whose now read carriesoptstatbeside the daily series, as IBKR's.book: an equity's book isXNASwith no level count; a pair's and a future's state no venue.permits: SOCKETS,overnight_live: true, andlists/finds_nonefor futures.bars_cap: CAP: every class at 1m, 5m, 30m, 1h, 4h and D;SplitSpinoff; costFree;rate_per_min: 0(unpublished); the rolling depth per interval; which tiers are asked native rather than folded from 1m (native).offer: OFFER: every read above, plus an equity's screener (beacon/scans) and an option's instrument (options/instruments/), which Taji does not serve; a stream, an equity's over the 24 Hour Market; measured per the README'sCELLlines.
Link form. One form, robinhood-web, kind start (the manifest owns its steps):
POST /verb/link/venue/start {"venue":"robinhood-web"}startstaji-link robinhood-webbeside the kernel and answers at once.taji-linkrunsrobinhoodPair(agent/src/mcp/robinhood.ts). It spawns your installed Chrome plainly on a temporary profile with--remote-debugging-port=0, attaches over CDP and openshttps://robinhood.com/login. It reads thedevice_tokenoff the/oauth2/tokenrequest and the refresh token off its 200 answer, then closes Chrome, so the page never spends the single-use refresh token itself.taji-linkpostsPOST /verb/link/data/link {provider, key: <refresh token>, secret: <device token>}.- The kernel calls
Source::check: a streaming token minted withinCHECK_TIMEOUT(5 s) is the yes. The client that proved it is kept for the next seat. The pair is sealed in the vault under the recordrobinhood-web. Source::seatbuilds oneRhWebStreamover that client. It ends any stream it replaces ("the robinhood-web sign-in changed") and keeps the API host warm every 120 s (WebClient::warm).
Where it ranks (engine/crates/taji-open/ties/src/lib.rs, BUILD):
- Streams: 2, behind a real-time TradeStation (1) and ahead of robinhood-agentic (3), "a 250 ms push ahead of a 2/s poll".
- History:
place1, below agentic's 0. - News: 4th of 5, after alpaca, massive and ibkr.
- Fundamentals: after robinhood-agentic.
- Statistics: after tradestation, before yahoo. One provider answers an item's statistics, and an equity's here is its daily IV alone, so a provider stating the 52-week range, VWAP and limits ranks ahead. An unnamed provider would rank with the first (
referencefalls back to 0 for one that bills nothing per ask,rankinengine/crates/taji-trading/src/hub/source.rs).
The tests that hold these orders are robinhood_web_streams_after_massive_and_before_agentic, a_live_option_chain_ranks_robinhood_web_by_its_stream_rank, robinhood_web_history_ranks_after_agentic_and_moves_no_other and a_pairs_live_quotes_rank_web_ahead_of_agentic_and_move_no_other in engine/crates/taji-trading/src/hub/source.rs.
Surfaces:
| Taji surface | Vendor call | File and entry |
|---|---|---|
GET /ws/market product: "bars", 1m live | Candle <sym>{=m,tho=false,a=m} on channel 7, fromTime the forming minute | plugins/robinhood-web/src/lib.rs subscribe_bars, route |
GET /get/bars (history, every interval) | Candle snapshot on channel 9 from the read's start | plugins/robinhood-web/src/lib.rs get_bars, history, snapshot |
GET /get/statistics, equity and index | a span reaching now: Configuration <root>{type=optstat} on channel 17, its first row taken and removed (none within 30 s, no optstat rows), beside the daily Candle <root>{=d,a=m} snapshot on channel 9 from from (a year back without one); a span ending in the past, or a past instant in to alone, the daily snapshot alone. The optstat figures iv, hv, iv_percentile, iv_high_52w, iv_low_52w, call_volume, put_volume and put_call_volume (putCallRatio) are stamped when seen; each session's impVolatility is its iv, stamped at the date's UTC midnight and known once it ends. The kernel derives iv_rank | plugins/robinhood-web/src/lib.rs option_stats; plugins/robinhood-web/src/source.rs statistics_raw, statistics_rows |
live statistics, every streamed class | Summary (ch 15) for the item, and for an equity or an index Underlying (ch 19) and Series (ch 21) beside it, added in one FEED_SUBSCRIPTION per channel; each md frame is one batch. Summary states open, high and low, and close once its dayClosePriceType is FINAL, each ts_ref the session's UTC midnight off dayId; Underlying states iv, call_volume and put_volume; Series states expiry_iv, ts_ref the expiration's UTC midnight. dayId and dayClosePriceType are fields beyond the web app's set: a row without them states no day figure, and the kernel log's robinhood-web: channel {n} sends {fields} line says which asked fields the socket answers | plugins/robinhood-web/src/source.rs live_statistics, live_statistics_rows |
live chains | options/chains/ and options/instruments/ for the expiry (ask.expiry, else the nearest listed from today), then per contract left after right, strike_min and strike_max: Quote (ch 1), Trade (ch 3), Greeks (ch 13) and Summary (ch 15), added in one FEED_SUBSCRIPTION per channel holding every contract, each update the contract's whole row | plugins/robinhood-web/src/source.rs live_chain, live_contracts, fold |
live quotes | Quote (ch 1) and Trade (ch 3), plus TradeETH (ch 5) for an equity; an index's quote is its Trade alone. An option's Quote states NaN sizes, so its sides take the sizes marketdata/options/?ids= states in contracts, read once a second, each only while its side stands at the price that read stated | plugins/robinhood-web/src/source.rs open_ticks, feeds, row_pair, poll_sizes, Sizes |
live trades | Trade, plus TradeETH for an equity; a front continuous uses its root's Trade on /<ROOT>:XCME{cfmc=category} | same |
live depth | Order (ch 11) with source NTV, AGGREGATE or GLBX | plugins/robinhood-web/src/lib.rs book_source; plugins/robinhood-web/src/source.rs Book |
GET /get/quotes now | marketdata/quotes/?bounds=24_5&ids=<id>&include_inactive=true; marketdata/indexes/values/v1/?ids=; marketdata/options/?ids=&include_all_sessions=true; marketdata/forex/quotes/?ids=&routing_group=fee | plugins/robinhood-web/src/source.rs quote |
GET /get/chains | instruments/ or indexes/ (chain ids), options/chains/?ids=, options/instruments/?chain_id=…&page_size=2000, marketdata/options/?ids= in chunks of 20 | WebChain over chain::chains_raw |
GET /get/fundamentals kind=float | marketdata/fundamentals/<id>/?include_inactive=true | rest_raw |
GET /get/earnings | marketdata/earnings/?instrument=/instruments/<id>/ | read, rest_raw |
GET /get/news | dora feed/instrument/<id>/?size=10, following next up to 10 pages | news_pages |
GET /get/search | equity instruments/?query=; index indexes/; crypto nummus currency_pairs/; future arsenal products and contracts | rest_raw, contracts_raw |
GET /get/instrument | equity instruments/?symbol=, then by id; crypto currency_pairs/; future the root's product row and contracts | rest_raw, contracts_raw, parse |
GET /get/details | the instrument, fundamentals and earnings bodies, read as agentic's | Source::details_rows, reference_rows::details_of |
GET /read/link/rate_limits | none: the rh-web-data set and the stream row of distinct symbols | Source::rate_limits |
One read, wire to vendor and back. A chart asks GET /get/bars for index:$SPX at 1m:
- The hub ranks robinhood-web and calls
HistoricalData::get_barson the seatedRhWebStream. RhWebStream::spellgivesSPX.Entry::candlesmakesSPX{=m,tho=false,a=m}withfromTimethe read's start andinstrumentType: index, retagged asKind::History.RhWebStream::historyjoins an in-flight snapshot for the sameeventSymbol, or opens aPendingand sendsadd, dialling the socket if none is up.- Dialling is
WebClient::stream_token, thenWebClient::dial, thenConn::open'sSETUP,AUTH, nineCHANNEL_REQUESTs and nineFEED_SETUPs. - Rows on channel 9 go to
snapshot. Flag4starts it, each bar is kept by start time, and10or18ends it. - The end answers every waiting read whose start the snapshot reached, with its
[from, to)slice ascending. A read from earlier becomes the next snapshot. Theaddis repeated as aremove. answerrunsenforce_canonical, and the hub stores and serves the bars.
One order. There is none. fence refuses every method but GET and the one grant POST, and every path off READS, before a byte leaves (the_fence_refuses_every_account_order_and_transfer_path in plugins/robinhood-web/src/client/tests.rs).
Why it is built this way
- Read what the web app reads. Each read uses the endpoint, query keys and transport the web app uses for the same figure, and where the socket carries a figure, the socket feeds it (user, 2026-11-06). The source's
//!names the few non-web-app paths and why each exists: the web app already holds ids Taji must look up. - A data source, never a venue. The token can trade, so Taji fences it to market-data
GETs, onePOSTand one socket. Redirects are never followed, so an answer cannot move a request off the fence. Every value travels as an egress marker the host swaps only toward a granted host (ADR 0005;substrate/taji-brokerage/src/egress.rs). - The rotated refresh token is sealed before it is used. The grant's answer goes into the login (
Login::seal) before anything reads it, so the host keeps the new token even if the process dies right after. One lock spans the grant, so two callers never spend the chain twice. A 401 orinvalid_granton the grant marks the chain spent: nothing is posted again, and only a new link repairs it (SPENT). - History is socket snapshots, not REST. The web app's charts ask no REST history (a 488-request capture, 2026-11-05), and
quotes/historicals/gave wrong intraday candles. See the README's History. - History on its own channel (9). A history row never reaches a live consumer of the same
eventSymbol(Kind::History). Channel numbers are fixed per kind, so a row's channel names its kind; the web app assigns them per connection. - A
Candlerow is the whole bar. Each live row goes out as the forming bar, and a minute closes when the next minute's first row arrives (Fan::Bars). Nothing replays across a redial: a missed minute is history's to fill. - A book is rebuilt from a snapshot, never from deltas. dxFeed snapshots a book only on a new subscription. A second consumer of a held book makes Taji re-send
removeandadd(RhWebStream::attach), and a lagged consumer ends its book (relay). - An
ERRORnames no symbol. Taji reopens that channel and re-adds its held set once per connection; a secondERROR, or noCHANNEL_OPENEDwithin 10 s, lapses its subscriptions. - A front continuous future is the root's stitched series. Robinhood's root (
/MNQ:XCME{…,cfmc=category}) is unadjusted and rolls on CME's roll date. Taji follows the web app's chart for bars and prints. Quotes and the book belong to the contract, so they pass to the next provider (refuses). The future'sinstrumentstates the contractactiveFuturesContractIdnames. See the README's Futures. - Bars are split-spinoff, as given. NVDA's daily close on 2024-06-07 is split-adjusted (measured 2026-11-06), and Robinhood's candles are read as agentic's are (ADR 0007).
- One decoder set for both Robinhood transports. Agentic's tools and web's REST return the same bodies, so
taji-robinhood-readsdecodes both.tool_datawraps a web page as the tool frame agentic's decoders read. - Streams ahead of agentic, history behind it. The socket's 250 ms push streams ahead of agentic's 2/s poll (
BUILD'sstreamcomment). History stands below agentic's (place1), and web fills the bars agentic has not served (the walk'shistoryheader); the reason for that order is not on record.
Constraints and limits
REST budget. rh-web-data, one set per login, admits every GET at 32 a second, the highest rate measured clean, through queue::admit. A read past it is refused unsent, naming its release. A 429 holds the set for its Retry-After, else 1 s, and the reads meanwhile are refused unsent. A 429 is never resent (plugins/robinhood-web/src/client.rs send, answered; tests a_burst_past_the_set_is_refused_naming_its_release and a_429_holds_the_set_for_its_named_wait). The measured rates are the README's REST.
One socket per login. rh-web-md-socket is a Cap of 1. Every symbol rides that socket, and the stream row counts distinct symbols with no quota, because none is published or measured (RhWebStream::spend).
Timers.
| What | Value | Where |
|---|---|---|
| Access token re-minted ahead of its stated expiry | 24 h (REFRESH_SKEW_SECS) | plugins/robinhood-web/src/client.rs |
| Streaming token re-fetched | at 80% of ttl_ms | plugins/robinhood-web/src/client.rs |
| Keepalive sent / silence that drops the socket | 30 s / 60 s | plugins/robinhood-web/src/dxlink.rs |
| Socket upgrade / each handshake step | 15 s / 10 s | client.rs, dxlink.rs |
| Redial backoff | 1 s doubling to 30 s, reset after 60 s up | plugins/robinhood-web/src/lib.rs |
| A history read with no row | fails at 30 s (HISTORY_IDLE) | plugins/robinhood-web/src/lib.rs |
| Unheld fan-outs pruned | every 5 s | plugins/robinhood-web/src/lib.rs |
| REST request | 20 s | plugins/robinhood-web/src/client.rs |
Errors.
- A 401 on a read re-mints once and retries. A 403 is the read refused, with no re-mint, and the hub's
NoSource. - A 401 on the socket upgrade drops the access token and the streaming token, so the next dial mints both.
AUTH_STATE UNAUTHORIZEDstanding for 5 s, a channel-0ERROR, orCHANNEL_CLOSEDredials.- A spent chain ends the stream for good, and every read answers
PlanRefusedwithSPENT's words. BrokerageError::NotFound(a root no product names) isNotListed(plugins/robinhood-web/src/source.rsvendor).
Reach. A snapshot answers at most 8,000 candles, newest first, and each interval has a time cap. CAP.depth states the time caps; a count-cut answer needs no row, because the hub covers it from its first row. See the README's Candle reach for the numbers.
Symbology. RhWebStream::spell builds the md spelling off the typed item alone:
AAPL, andSPXfor$SPX;.SPXW261218C7700for an option;BTC/USD:CXBITSfor a pair, USD pairs only;/MNQZ26:XCMEfor a dated future, whose exchange suffix comes from the root's arsenal product read once per process.
See the README's Symbols.
Refusals.
- Live bars are 1m only.
- A continuous later than the front is refused, since only the front trades.
- A continuous's quotes and book pass to the next provider.
- An index or option has no book.
fundamentalsother thanfloatis refused.- An earnings or news read needs a symbol.
Entitlements. Your account's. Nasdaq's overnight book arrives unsized (NaN; measured 2026-11-06, per the walk's header), so the walk's equity depth leg runs 04:00 to 20:00 ET. Unmeasured items are the README's Open.
Examples
The refresh grant. This is what the client sends, recorded by tests/egress.rs grant into plugins/robinhood-web/tests/egress/grant.txt, with the synthetic tokens masked:
http POST /oauth2/token/
content-type: application/x-www-form-urlencoded
x-robinhood-api-version: 1.431.4
body grant_type=refresh_token&refresh_token=p1&scope=internal&client_id=CLIENT&expires_in=734000&device_token=p2
plugins/robinhood-web/tests/egress/rotate.txt shows the next grant carrying the rotated refresh token.
The streaming token answer. The fake vendor's body in plugins/robinhood-web/src/tests.rs rest, shaped as the vendor's, with ttl_ms as text:
{"status": "SUCCESS",
"data": {"status": "SUCCESS", "data": {
"token": "p1", "wss_url": "<md socket>", "expiration": "x",
"ttl_ms": "14400000", "dxfeed_id": "x"}}}
The socket handshake. From plugins/robinhood-web/tests/egress/socket.txt, trimmed, tokens masked:
handshake /marketdata/streaming/legend/v2/
origin: https://robinhood.com
sec-websocket-protocol: bearer, p1
frame {"acceptKeepaliveTimeout":60,"channel":0,"keepaliveTimeout":60,"type":"SETUP","version":"0.1-DXF-JS/0.5.1"}
frame {"channel":0,"token":"p2","type":"AUTH"}
frame {"channel":1,"parameters":{"contract":"AUTO"},"service":"FEED","type":"CHANNEL_REQUEST"}
…
frame {"acceptAggregationPeriod":0.25,"acceptEventFields":{"Quote":["askPrice","askSize","askTime","bidPrice","bidSize","bidTime","eventSymbol","eventType"]},"channel":1,"type":"FEED_SETUP"}
…
frame {"acceptAggregationPeriod":0.25,"acceptEventFields":{"Order":["eventFlags","eventSymbol","eventType","index","side","sequence","price","size","time"]},"channel":11,"type":"FEED_SETUP"}
Live rows. Two rows as the vendor sends them, from plugins/robinhood-web/src/dxlink/tests.rs feed_rows_are_the_vendors_objects_and_nan_is_absent. A missing size is "NaN", read as absent:
{"type": "FEED_DATA", "channel": 1, "data": [
{"askPrice": 0.65, "askSize": "NaN", "askTime": 0, "bidPrice": 0.6, "bidSize": "NaN", "bidTime": 0, "eventSymbol": ".SPXW261104C7690", "eventType": "Quote"},
{"price": 100.05, "dayVolume": 1000.0, "eventSymbol": "BE", "eventType": "TradeETH", "time": 1800000000000}]}
A history read. From plugins/robinhood-web/src/tests.rs a_snapshot_answers_its_bars_ascending_then_removes_its_add. The Taji call is SPX's 1m bars over [T, T+180), T = 1793826000. Taji sends:
{"type": "FEED_SUBSCRIPTION", "channel": 9, "reset": true,
"add": [{"type": "Candle", "symbol": "SPX{=m,tho=false,a=m}", "fromTime": 1793826000000, "instrumentType": "index"}]}
The vendor answers rows newest first, flag 4 on the first and an end marker flagged 10:
{"close": 4.0, "eventFlags": 4, "eventSymbol": "SPX{=m,tho=false,a=m}", "eventType": "Candle", "eventTime": 0, "time": 1793826180000, …}
…
{"close": "NaN", "eventFlags": 10, "eventSymbol": "SPX{=m,tho=false,a=m}", "eventType": "Candle", "time": 1793825940000, …}
The read answers [(T, 1.0), (T+60, 2.0), (T+120, 3.0)]: ascending, with the row at the read's end dropped. Taji then sends the same entry under "remove".
A front continuous's instrument. From plugins/robinhood-web/src/source/tests.rs an_instrument_states_the_contract_it_trades_as, ids masked. The products row:
{"id": "p1", "symbol": "/MNQ:XCME", "displaySymbol": "/MNQ", "activeFuturesContractId": "p2"}
With p2 naming the H27 contract, GET /get/instrument for continuous:@MNQ answers:
{"trades_as": "future:MNQH27", "until": "2027-03-19", "symbol": "@MNQ", "resolves_to": "/MNQH27:XCME", "ts_utc": …}
The kernel's link form. GET /read/link/forms serves the form from the manifest, as in engine/crates/taji/tests/fixtures/wire/link-forms.json, trimmed:
{"form": "robinhood-web", "kind": "start", "group": "Data providers", "fields": [], "handoff": true,
"post": {"route": "link/venue/start", "body": {"venue": "robinhood-web"}},
"record": "robinhood-web", "waiting": "Waiting for Chrome sign-in", …}
A second start while taji-link still runs answers 409. This is from a_web_start_while_its_child_runs_is_refused_linking in engine/crates/taji/src/kernel.rs:
{"error": "linking", "reason": "a link is in flight", "record": "robinhood-web", "verb": "venue/start"}
A wire read served by robinhood-web. No capture yet. The walk's history and reference phases make one: each writes its output to <state dir>/robinhood-web-walk-<phase>-<UTC instant>.txt.
Testing
Offline, no key, no network. Every test answers from an in-process fake, wiremock or a loopback md peer:
cargo test -p taji-robinhood-web
cargo test -p taji-robinhood-reads
cargo test -p taji-open --test rh_web_tls
The egress goldens under plugins/robinhood-web/tests/egress/ hold the exact bytes sent. After an intended change to what is sent, re-record them with EGRESS_RECORD=1 cargo test -p taji-robinhood-web --test egress and read the diff.
The hub's ranking and composition tests that name robinhood-web live in taji-trading: cargo test -p taji-trading --lib hub::.
Live suite, your own sign-in. Robinhood has no paper environment, so this suite reads your live account's market data. It reads only, and nothing under an account, order or position path. It needs bun and Google Chrome:
TAJI_LIVE_SIGNIN=1 cargo test -p taji-robinhood-web --test live -- --ignored --test-threads=1
The first test runs the taji-link robinhood-web capture and holds the pair in memory only. Without the flag each test prints SKIP. equity_quotes is SKIP closed outside regular hours. TAJI_LIVE_SIGNIN=1 engine/crates/taji-open/scripts/vendor_live.sh robinhood-web runs the same two legs, equity_bars and equity_quotes.
Kernel walk. The walk reads only and never boots or quits a kernel.
- Start a headless kernel on fresh state directories, as
AGENTS.mdsays, withTAJI_STATE_DIRexported. The walk reads that variable and otherwise falls back to your own Taji's state. - Run
taji-link robinhood-webin a TTY against that kernel. - Run
plugins/robinhood-web/scripts/robinhood_web_walk.py <port> link|live|depth|history|reference.
Some legs run only in regular or Globex hours, and the script's header says which. robinhood_web_walk.py --self-test replays the ranking rules on measured answers with no kernel.
References
- Market data sources for Robinhood Legend, fetched 2026-12-02.
- What's Level II Market Data?, fetched 2026-12-02.
- Get started with Robinhood Legend, fetched 2026-12-02.
- Robinhood login, fetched 2026-12-02: renders nothing without JavaScript.
- dxFeed WebSocket API, fetched 2026-12-02.
- dxFeed CandleSymbol, fetched 2026-12-02.
- dxFeed Candle, fetched 2026-12-02.
- dxFeed IndexedEvent (event flags), fetched 2026-12-02.
- dxFeed OrderSource, fetched 2026-12-02.
- tastytrade: stream market data (a dxLink message sequence and keepalive), fetched 2026-12-02.