> Every Taji docs page as Markdown: https://docs.taji.is/llms.txt

# Robinhood Web

Your Robinhood account's market data, read as Robinhood's website reads it once you sign in in Chrome: live quotes, trades and minute bars, and no orders.

## Before you link

You need Google Chrome: you sign in on Robinhood's page, and Taji keeps the session token.

## Link

Start `robinhood-web` from Connections in the window, or run `taji-link robinhood-web`. You sign in on Robinhood's page in Chrome; your Agentic link is untouched. Uses Robinhood's web API; not officially supported by Robinhood. It can stop without notice.

### Linking

Fetched 2026-11-18. `yours`: needs a password, code or money.

| Step | Opens | Controls / readiness | Needs |
|---|---|---|---|
| `chrome` | none (local check, `agent/src/mcp/robinhood.ts`) | Google Chrome installed (`Google Chrome.app/Contents/MacOS/Google Chrome` on macOS, `google-chrome-stable` or `google-chrome` on Linux), able to spawn plainly (not Playwright-launched, which Robinhood's login refuses) with a temporary `--user-data-dir`, `--remote-debugging-port=0`, `--no-first-run`, `--no-default-browser-check`, and write `DevToolsActivePort` on `127.0.0.1` within 15 s for CDP capture | none (agent may do it) |
| `sign_in` | `https://robinhood.com/login` (5-minute timeout; Chrome closes once `POST /oauth2/token` returns 200 `{refresh_token, device_token}`) | `https://robinhood.com/login` (fetched 2026-11-18): **Email**, **Password**, **Keep me logged in for up to 30 days**, **Log In**, **Continue with Google**, **Continue with Apple**, **Log in with passkeys**, **I need help** / **Need help?**; 2FA **verification code** (SMS/authenticator) or device approval (`https://robinhood.com/us/en/support/`, fetched 2026-11-18) | yours: password, code (2FA) |

## What you get

Live quotes, trades and minute bars, as Robinhood's own web app reads them; Taji reads market data only. What it serves, cell by cell: [Robinhood Web coverage](https://docs.taji.is/reference/coverage/robinhood-web.md).

## Behaviour and limits

Measured 2026-04-14 to 2026-11-08, each entry carrying its own date.

Robinhood's own web API, read for market data alone (`robinhood-web`, a `ProviderId`, never a venue).

### The credential

- The pair a browser login mints: a refresh token and the `device_token` its grant is bound to.
- The grant is `POST https://api.robinhood.com/oauth2/token/` with `grant_type=refresh_token`, `scope=internal`, the public web `client_id` and `expires_in=734000` (about 8.5 days); the answer carries a new `refresh_token`.
- It is not the agentic token: neither works on the other's API.
- Scope is `internal` alone; containment is `plugins/robinhood-web/src/client.rs`'s market-data `GET` allowlist and one md socket.

### The md socket (dxLink)

- `wss://api.robinhood.com/marketdata/streaming/legend/v2/`, protocol `0.1-DXF-JS/0.5.1`, keepalive timeout 60 s, a `KEEPALIVE` every 30 s.
- The `AUTH` token is a streaming token from `GET /marketdata/token/v1/?session_id=<uuid>&session_type=blackwidow`. Its `ttl_ms` is text, `"14400000"` (4 hours), and Taji refreshes it at 80% of that.
- A non-browser client authenticates the upgrade itself, else 401: a client may send `Authorization: Bearer <access token>` and `Origin: https://robinhood.com`; Taji sends `Sec-WebSocket-Protocol: bearer, <access>`, as the web app does in its 2026-11-04 HAR.
- The web app opens one `FEED` channel per event type, odd-numbered. `FEED_SETUP` asks for data format `FULL` and an aggregation period of 0.25 s, `Greeks` 1 s (the SPX option page's HAR, 2026-12-03).
- Live candles update every 330 ms to 1 s, each the whole recomputed bar.
- `eventTime` is 0 on every `Candle`; `time` and `eventFlags` say which bar it is.
- A missing number is the string `"NaN"`, as in an option's `volume`, `impVolatility` or `openInterest`.
- Market closed, `Trade` and `Quote` are silent.
- Measured 2026-12-04 about 12:30 ET (`robinhood_web_walk.py live`): `$SPX` as `instrumentType: "index"` streams quotes and live candles, an `SPXW` contract its quotes, and a `$SPX` live chain its greeks and open interest. One socket streamed 8 `SPXW` expiries (Dec 4 to 15) at 40 contracts each, 320 contracts, every one with IV, delta and open interest, none refused.
- An `ERROR` on a `FEED` channel names no symbol (`lib.rs` re-asks the channel once, lapsing on a second `ERROR` or 10 s timeout).

### Depth

- The book is `Order` events, their `source` per class: `NTV` (Nasdaq TotalView) for an equity, `AGGREGATE` for a pair and `GLBX` for a future (the web app's, 2026-11-06). Without it the server sends none; a `remove` repeats it. The data format must be `FULL`.
- Each row is one order, keyed by `index`, a 17-digit string: `eventFlags, eventSymbol, eventType, index, side, sequence, price, size, time` (the 2026-11-05 HAR, BE, 943 rows). Several orders stand at one price.
- `side` is `BUY` or `SELL`. A `NaN` or non-positive `size` removes the order.
- In the HAR, the snapshot's first row carries flag `4` and its last flag `10` (end and removal), that one with side `UNDEFINED` and `NaN` price and size. The rows between carry `0`.
- A book joined while held re-asks the snapshot (AAPL, 2026-11-06: 32,232 orders on the reopen, 32,229 before). (`plugins/robinhood-web/src/source.rs` `Book` lapses on lag.)
- The walk's `depth`, 2026-11-06 ~18:40Z (RTH, debug kernel): `equity:AAPL` 3.1 frames a second over 30 s, about 32,200 orders a frame.
- The walk's `depth`, 2026-11-07 ~01:00Z: `crypto:BTC/USD` 89 frames in 30 s, each 2,000 `bid` and 2,000 `ask` levels, every one a distinct price, about ±30% of the mid.

### Symbols

| Class | Spelling | Source |
|---|---|---|
| Equity | `AAPL` | the web app |
| Option | `.NFLX260618C95` | the same |
| Live chain | each contract's `Quote`, `Trade`, `Greeks` (`volatility` a fraction, theta, vega and rho as Robinhood's REST chain states them) and `Summary` (`openInterest`) on its option spelling | the SPX option page's HAR, 2026-12-03 |
| Crypto | `BTC/USD:CXBITS` for `Quote`, `Trade`, `Order` and `Candle` (`{=m,a=m}`, `instrumentType: crypto`); every pair `<BASE>/USD:CXBITS`, measured on BTC | The web app, 2026-11-06; the socket gave 145 `Quote` rows 250 ms apart |
| 1m candle | `AAPL{=m,tho=false,a=m}` for an equity; an option's adds `price=mark` for mark candles | the web app |
| Future | `/MNQM26:XCME`, a contract's `symbol` off `arsenal/v1/futures/contracts?productIds=<id>` | the arsenal contracts read |
| Futures root | `/MNQ:XCME{=<p>,tho=false,a=m,cfmc=category}`, every period, `instrumentType: futures_product` | the 2026-11-05 HAR |

### Futures

- `arsenal/v1/futures/products` and `arsenal/v1/futures/contracts?productIds=<id>` alone (bare path and singular key answer 400).
- Products, one `results` page: `displaySymbol` (`/MNQ`, matched), `id` (`productIds=`), `symbol` (`/MNQ:XCME`, its suffix the md exchange) and `activeFuturesContractId`, the front.
- Contracts, the listed ones plus at most one just expired: `id`, `displaySymbol` (`/MNQZ26`), `expiration` (the last trade day, a front's `until`), `symbol` (the md spelling, `resolves_to`), `multiplier` (text) and `description` (a listing's `name`).
- A front continuous (`@MNQ`, `MNQ1!`, `MNQ.c.0`) charts the root's series as the web app does, live and history, stored under `@MNQ`: unadjusted, rolling on CME's roll date (measured 2026-11-06). Its prints are the root's `Trade` on `/MNQ:XCME{cfmc=category}`, as the web app's (the 2026-11-05 HAR). Its quotes and book are the contract `activeFuturesContractId` names (`source.rs`).
- Measured 2026-11-07: `continuous:@MNQ` pinned to this row states `MNQZ26` until 2026-12-18, off `activeFuturesContractId`.
- A dated contract streams every session: `/MNQZ26:XCME{=m,tho=false,a=m}` live, `=m`, `=5m` or `=h` history, typed `future`; `TYPE future` and `TYPE futures_product` both answered on `/MNQZ26:XCME` (19 and 20 rows, 2026-11-06).
- A contract answers every interval, daily from its listing (`/MNQZ26:XCME` `=d` 199 rows from 2025-10-01); its intraday reach is the time caps under Candle reach: 5m from 2026-09-28 (8,000 rows) and 1h from 2026-01-27.
- Measured 2026-11-08: a future's daily close is CME's settlement (the 16:00 ET window), not the last print. `future:MNQZ26` daily closes on 2026-11-05 and 11-06 each equal Yahoo's daily close, and differ from its 1m extended close at the session's last minute (16:59 ET).

### Candle reach

Measured 2026-11-07 (`fromTime` 10000000000, `tho=false`): AAPL, SPX, `.SPXW261218C7700`, `/MNQZ26:XCME`, `/MNQ:XCME{cfmc=category}` and `BTC/USD:CXBITS` each answer 1m, 5m, 30m, 1h, 4h and daily. A subscription answers at most 8,000 candles, newest first.

| Interval | Reach, every class |
|---|---|
| 1m | 8,000 rows; time cap 43 days (an option's 1m starts 2026-09-25) |
| 5m | 8,000 rows or 89 days (back to 2026-08-10), the first to bind |
| 30m | 89 days (2026-08-10) |
| 1h, 4h | 285 days (2026-01-26) |
| 1d | AAPL and SPX 8,000 rows (from 1995-01-25 on 2026-11-07, a start that moves each day; ended `end`); `/MNQ` root from 2019-05-06; BTC from 2018-03-17; a contract or an option from its listing |

- A quiet series reaches its time cap before its row cap, so an option's 1h and 4h start at its listing (2026-07-17).
- A daily candle's `time` is 00:00 UTC of the trading date.
- Grids: 5m and 30m on :00/:05/:30 clock marks; 1h on whole UTC hours (SPX's first regular 1h starts 14:00Z, 09:00 ET in winter, holding 09:30 to 10:00); 4h on the UTC 00/04/08/12/16/20 grid (`hub.rs` `hour_native` chooses native vs folded).
- Mark candles: at most 14 days (2026-04-14, SPY).
- One socket held 1,000 symbols with no refusal (985 answered; a quiet symbol sends nothing).

### History

Measured 2026-11-05 off the web app: a capture of 488 requests holds no REST history; the web app live in Chrome showed the frames.
- Every chart's bars are `Candle` snapshots on the md socket, asked twice: its visible window, and `fromTime: 10000000000` for all the server holds, newest first.
- `eventFlags` 4 begins a snapshot, 10 ends it, 18 ends it snipped at the server's reach, and 1 marks a row still pending.
- the web app's symbols: `SPX{=m,tho=false,a=m}` intraday (`tho=false` keeps every session) and `{=d,a=m}` daily. An option is `.NFLX261023C72{=5m,a=m,price=mark}`, with volume 0.

Taji asks one snapshot per read, `fromTime` the read's start, on its own history channel (9), and spells one minute `=m` for live and history alike; it sends no `price` (dxFeed defaults to `last`).

Measured 2026-11-06 (channel 9):
- `{=1m,tho=false,a=m}` answers no row in 30 s (SPX from 4 days, 6 hours or `1e10` back; AAPL from 4 days). `=m` answers SPX typed `index`: from 4 days back 1,648 rows (2026-11-02 14:30Z to 2026-11-05 21:34Z) ending `end`; from 6 hours, no session, 0 rows `end`; from `1e10`, 8,000 rows `snipped`, from 2026-10-09. The web app asks `=m` on channels 7 and 9.
- NVDA's daily close on 2024-06-07 is split-adjusted.
- Option `.SPXW261218C7700`: `=5m` 134 rows, `=m` 101, each with volume, with or without `price=last`.
- `AAPL{=30m,tho=false,a=m}` 382 rows, `{=4h…}` 48.

Taken as split-spinoff like agentic's, a pair having no basis.

### Option statistics

An equity's or an index's `statistics`, off the md socket:
- The SPX option page's HAR, 2026-12-03: `FEED_SETUP` `Configuration` `{eventSymbol, eventType, attachment}` at aggregation 1, then `add` `SPX{type=optstat}`; one row back, no time field. Its `attachment`: `iv` and `hv` fractions, `ivPercentile` 0 to 100, `52wIVHigh`, `52wIVLow`, `52wHVHigh`, `52wHVLow`, `callVolume`, `putVolume` and `putCallRatio` in contracts, `vwap` (`"NaN"`), the order-flow fractions and `perDeltaPut`/`perDeltaCall`. The symbol is the root, no `$`.
- Measured 2026-12-04 in RTH (`robinhood_web_walk.py live`): `SPY{type=optstat}` answers as `SPX{type=optstat}` does, so an equity's `statistics` states the same eight figures as an index's.
- The live stream (`/ws/market` `statistics`) is `Summary`'s day open, high, low and, once typed `FINAL`, close; an underlying's `Underlying` (`iv`, `call_volume`, `put_volume`) and `Series` (`expiry_iv` per expiration). A day figure's `ts_ref` is its session's UTC midnight off dxFeed's `dayId`; the previous close is not a row (the kernel's `prev_close`).
- Probed 2026-12-03 on the md socket: daily `SPY{=d,a=m}` and `SPX{=d,a=m}` from a year back, 251 rows each, 250 with `impVolatility`; the newest equalled `Underlying.volatility`. `openInterest` is `NaN` on every row.

Measured 2026-11-06 about 01:20 ET: `/ws/market` `trades` for `equity:AAPL` at `24h` stream `TradeETH` prints (the 24 Hour Market runs Sunday 20:00 to Friday 20:00 ET).

### REST

Non-web-app paths (`plugins/robinhood-web/src/source.rs`): `instruments/?symbol=`, `instruments/?query=`, bare `indexes/`, OCC lookup, `currency_pairs/` (`next`), `arsenal/v1/futures/{products,contracts?productIds=}`, `options/chains/?ids=` (via `tradable_chain_id`/`tradable_chain_ids`).
- Bodies, measured: fundamentals is one object with no `symbol`; forex quotes carry no sizes; an index value nests `{status,data:[{status,data:{value,venue_timestamp,..}}]}`; a chain's contracts carry no `type`, calls and puts in one list.
- Measured 2026-11-06: `instruments/` with `tradeable`, `tradability` and `internal_halt_*` (reason `""` when none); `indexes/` 33 rows with `tradable_chain_ids`; nummus `currency_pairs/` 140; `options/instruments/` paged by `next`; `marketdata/earnings/` `{call,eps,instrument,quarter,report,symbol,year}`; `beacon/scans` rows `{activeScanConfiguration,conversationId,id,title}`.
- `quotes/historicals/` (`interval` `minute` with `span=day` only, then `5minute` through `week`) gave wrong intraday candles against other providers (SPY 5m, 2026-04-15).
- No limit documented; SPX's index value took 4 to 32 `GET`s a second, all 200, no rate header (2026-11-06; `client.rs` caps at 32).
- API host pinged every 120 s (`instruments/?symbol=SPY`).

The `CELL` lines, measured 2026-11-06 (row count, first row's latency, median gap):

| Class | Quote | Trade | Candle |
|---|---|---|---|
| equity | 137, 73 ms, 251 ms | 160, 81 ms, 251 ms | 102, 81 ms, 499 ms |
| index | 61, 73 ms, 1,000 ms | 61, 81 ms, 1,000 ms | 61, 81 ms, 1,000 ms |
| option | 94, 73 ms, 499 ms | 1, 81 ms | 1, 497 ms |
| future | 240, 73 ms, 250 ms | 231, 81 ms, 250 ms | 233, 81 ms, 250 ms |
| crypto | 113, 73 ms, 270 ms | 13, 81 ms, 2,999 ms | 13, 81 ms, 3,010 ms |

Equity `TradeETH` 1 row, an option's 1 row; equity `Order` 44,101 rows, 141 ms first.

## Open

- `api.robinhood.com` idle-close timeout.
- The unit of the `Quote` event's `bidSize`/`askSize` for equities, crypto and futures; the order ticket reads no size from them until it is measured.
- `arsenal/v1/futures/*` fields beyond the dated probes.
- Futures `Order` depth (`GLBX` source has never been sent by Taji).
- Whether the md socket answers `Summary`'s `dayId` and `dayClosePriceType`, which the web app does not ask (the kernel log's `robinhood-web: channel 15 sends ...` line); without them `Summary` yields no day rows.
- Whether Robinhood ever types an equity's close `FINAL`, and at what ET time (`robinhood_web_walk.py live`, run again after 16:00 ET).
- Whether `Underlying.volatility` equals the daily `impVolatility` in RTH (the walk's `live` phase records it).
- How many expiries past 8 one md socket streams before Robinhood refuses or drops one.

## References

- Robinhood web app: https://robinhood.com/
- [How this plugin works](https://docs.taji.is/catalog/robinhood-web/architecture.md)
