Real-time WebSocket API for TradingView chart data. Stream live quotes and trades for equities and options. Connect, authenticate, then subscribe to symbols.
WSS
/
v1
/
charts
/
ws
What this stream is for. This WebSocket is a charting-specific feed designed to plug straight into the TradingView Charting Library or any chart widget that follows the TradingView data shape. If you’re rendering candlestick or line charts in your app and need them to update in real time, use this feed. If you need full market depth, Greeks, or T&S, use the Market Data WebSocket instead.
Key Features
Connect Then Authenticate
Open a WebSocket to the endpoint, then send a request to POST /auth with your token. Subscribe only after authSuccess.
Real-Time Quotes
Stream live bid/ask, last price, OHLC, volume, and change for charting.
Real-Time Trades
Receive last-trade updates (price, size, timestamp) for tape and chart integration.
Subscribed Quotes
Subscribe to one or more symbols; receive event messages with quote and trade data for each subscribed symbol.
TradingView Format
Quote and trade payloads use TradingView-friendly field names for easy integration.
Equities & Options
Support for stock tickers and OSI option symbols.
Keep-Alive
Ping/pong for connection health; optional correlation ID for pong.
Connection Details
Endpoint
Connect to the WebSocket at /v1/charts/ws.Production:wss://api.aries.com/v1/charts/ws Staging:wss://api.aries.com/v1/charts/wsHealth check:GET /tv/health (HTTP)
Authentication
Authentication is required. Use an OAuth2 access token (e.g. from POST /v1/oauth2/token). After the connection is open, send a request message with methodPOST, path/auth, and body{ "token": "<your_access_token>" }. Wait for a response with actionauthSuccess before sending subscribe messages. If the server returns authRequired or error, authentication failed (e.g. invalid or expired token).
This WebSocket follows a TradingView-compatible message format. All request/response messages use the shared envelope: type, id, payload (with method, path, body for requests).
Supported Symbols
Equities
Standard stock ticker symbols (e.g., AAPL, MSFT, GOOGL, TSLA). Use them exactly as a brokerage screen would display them.
Options
Option contracts use OSI (Options Symbology Initiative) symbols. Format: ROOT + YYMMDD + C/P + strike-in-cents (e.g., AAPL240119C00150000 is the AAPL Jan-19-2024 $150 Call).
Message Envelope
Every message you send or receive uses the same outer JSON shape:
Field
Type
Required
What to put here
type
string
Yes
What kind of message this is. Sent by you:request (RPC-style call, e.g. auth), subscribe, unsubscribe, ping. Sent by the server:event (streaming push), response (reply to your request), pong (reply to your ping).
id
string
No
A correlation ID you choose, like "sub-aapl-1". The server echoes it back in the matching response/event so you can pair them up.
timestamp
string
No
RFC3339 timestamp (e.g. 2026-05-13T10:30:00Z). Optional on client messages; the server fills it in on outbound messages.
payload
object
Yes
The actual body of the message. Shape depends on type — see the sections below.
Data Types
The subscription payload.type controls what kind of data the server streams back:
quotes (default) — Bid/ask, last price, OHLC, volume, change, and change percent. This is what most chart widgets need for the price/quote display.
bars — Accepted as a subscription type, but the server currently streams the same quotes-shaped quote/trade events for a bars subscription. It does not emit distinct OHLC bar/candle objects, resolutions, or intervals today. Use quotes unless you have a specific reason to send bars.
Use Cases
Live Chart Updates
Display real-time price movements on interactive charts.
TradingView Widgets
Feed real-time data into TradingView charting library or embedded widgets.
Quote Displays
Show last price, bid/ask, and volume in chart widgets (after authenticating).
Technical Analysis
Provide data for indicators and overlays in charting tools.
Connection
Connect to the Charting WebSocket the same way you would the Market Data WebSocket: establish the connection, then authenticate, then subscribe to symbols to receive real-time quotes and trades.
Connect to the endpoint
Open a secure WebSocket connection to:
wss://api.aries.com/v1/charts/ws
Authenticate
Immediately after the connection is open, send one request message to authenticate. Do not send subscribe messages until you receive a successful auth response.Send the following auth message:
Server responds (success):type: "response", with payload.action: "authSuccess", optional payload.id (echoed from request), payload.timestamp (Unix milliseconds), and payload.data.expiresIn (session expiry in milliseconds).Server responds (failure):payload.action: "authRequired" or payload.action: "error" with payload.error (e.g. “token is required”, “authentication failed”). Reconnect or send a new auth request with a valid token.
Subscribe to symbols
After authSuccess, send subscribe messages to start receiving quote and trade event messages for the requested symbols. See Subscribing to Chart Data below.
Subscribing to Chart Data
After you have connected and authenticated, you can subscribe to real-time quotes (and trades) for one or more symbols. Each subscription uses a subscribe message; the server then sends event messages containing quote/trade data for those symbols.
Basic subscription structure
Send a subscribe message with type fixed as "subscribe", any id you want (used to correlate the server’s responses), and a payload describing what you want to receive:
Payload field
Type
Required
What to enter
type
string
No
"quotes" (default when omitted) for real-time price ticks. "bars" is accepted but currently returns the same quotes-shaped events (see Data Types above).
symbol
string
Yes
The instrument identifier — a stock ticker like "AAPL", or an OSI option symbol like "AAPL240119C00150000".
symbolType
string
No
"symbol" or "option". Currently accepted but ignored by the server — it has no effect on the data returned.
Stop receiving updates for a symbol. Only payload.symbol is required — the server unsubscribes by symbol, so payload.type is not needed and is ignored.
The field names below (ch, chp, lp, n, v, etc.) are TradingView’s short-form keys. They look cryptic but they’re standardized — the TradingView Charting Library expects exactly these names. Do not rename them in your handler if you’re piping data into a TradingView widget.
Event payload fields:
Field
Type
Description
type
string
Always "quotes" for quote/trade events.
symbol
string
The symbol this event is about (e.g. AAPL). Match against your active subscriptions.
data
object
The quote and trade payload (see below).
timestamp
integer
When the event was emitted, in Unix milliseconds.
payload.data fields:
Field
Type
Description
quote
object
Quote data. Contains s (status string, usually "ok"), n (the symbol), and v (the actual quote values — see next table).
trade
object
Trade data (see below). Omitted if there’s no recent trade to report.
isDelayed
boolean
Indicates whether the feed is delayed. The server currently always sends false (real-time); treat true as reserved for future use.
payload.data.quote.v fields — these are the values the chart actually plots. All numbers and all optional (only changed fields may be present in an update):
Field
Type
What it represents
ch
number
Change — net price change from previous close (today’s last price − yesterday’s close). Drives the +/− indicator on a chart.
chp
number
Change percent — ch expressed as a percent of previous close.
short_name
string
Display ticker, e.g. "AAPL".
exchange
string
Primary listing exchange, e.g. "NASDAQ".
lp
number
Last price — most recent trade price. The number on the big “current price” label.
ask
number
Best ask (the lowest price someone is willing to sell at).
bid
number
Best bid (the highest price someone is willing to pay).
open_price
number
Today’s opening price (first trade of the session).
high_price
number
Today’s highest price so far.
low_price
number
Today’s lowest price so far.
prev_close_price
number
Yesterday’s closing price — the baseline for calculating today’s change.
volume
number
Cumulative number of shares traded today.
payload.data.trade fields — emitted whenever a new print appears on the tape:
Field
Type
What it represents
s
string
Status — "ok" when the trade is valid.
t
integer
Trade timestamp in Unix seconds (note: trade t is seconds, but the outer payload.timestamp is milliseconds).
lp
number
Last trade price — the price the trade printed at.
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Aries API","colors":{"primary":"#0BAA5E","light":"#0BAA5E","dark":"#098F4E"},"logo":{"light":"https://mintcdn.com/ariesfinancialinc/RAN-JEltzDnib-_A/logo/light.svg?fit=max\u0026auto=format\u0026n=RAN-JEltzDnib-_A\u0026q=85\u0026s=4eae127cdf55bb09159d2b5a625690e3","dark":"https://mintcdn.com/ariesfinancialinc/RAN-JEltzDnib-_A/logo/dark.svg?fit=max\u0026auto=format\u0026n=RAN-JEltzDnib-_A\u0026q=85\u0026s=fbee595bbc78c2506c5e92673b91d2c7"},"favicon":"https://mintcdn.com/ariesfinancialinc/RAN-JEltzDnib-_A/favicon.svg?fit=max\u0026auto=format\u0026n=RAN-JEltzDnib-_A\u0026q=85\u0026s=0c47f5ea65b933ab26eae6eaca2fc12c","api":{"openapi":["openapi.json"],"playground":{"display":"interactive"}},"navbar":{"links":[{"href":"mailto:support@aries.com","label":"Support"}],"primary":{"type":"button","label":"Aries","href":"https://aries.com"}},"contextual":{"options":["chatgpt","claude","view"],"display":"header"},"styling":{"latex":true},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"ariesfinancialinc","hasAudioNarration":false,"actualSubdomain":"ariesfinancialinc","customDomains":["finance.dev"],"gitSource":{"type":"github","owner":"aries-financial-inc","repo":"mintlify-docs","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"feedback":{"thumbs":true},"entitlements":{"AI_CHAT":{"status":"DISABLED"}},"buildId":"6afdd5859267861064b3c438","clientVersion":"0.0.4270","searchFilterCounts":[{"language":"default","tag":"Supplemental API","count":116},{"language":"default","tag":"Core API","count":38},{"language":"default","tag":"Orders","count":22},{"language":"default","tag":"Prediction API","count":20},{"language":"default","tag":"Stock Alternative","count":18},{"language":"default","tag":"Analytics","count":13},{"language":"default","tag":"Options","count":11},{"language":"default","tag":"Guide","count":10},{"language":"default","tag":"Stocks","count":10},{"language":"default","tag":"MCP Auth","count":9}]},"assistantConfig":{},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-rbac-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"site-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"starter-pricing","enabled":true,"variant":{"name":"control","enabled":true,"payload":{"type":"string","value":"control"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"wildcard-email-auth","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[{"filePath":"custom.css","content":"html{visibility:visible!important;opacity:1!important}body{opacity:1!important;transition:none!important;will-change:auto!important}html{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-rendering:optimizeSpeed;font-display:swap}.hero-title{text-align:center!important;font-size:clamp(2rem, 5vw, 3rem)!important;font-weight:700!important;margin:0 auto!important;will-change:transform!important}.hero-description,.hero-title+p{text-align:center!important;max-width:800px!important;margin:1rem auto!important}div[class*=\"CardGroup\"],.card-group{display:grid!important;grid-template-columns:repeat(auto-fit, minmax(300px, 1fr))!important;gap:1.5rem!important;contain:layout style!important;content-visibility:auto!important}.aries-oauth-dialog[open]{display:flex;align-items:center;justify-content:center;width:100%;min-height:100dvh;min-height:100vh;max-width:100vw;max-height:100dvh;max-height:100vh;box-sizing:border-box;margin:0;border:none;padding:1rem;background:transparent;overflow:auto;overscroll-behavior:contain}.aries-oauth-dialog::backdrop{background:rgba(0, 0, 0, 0.65);backdrop-filter:blur(4px);-webkit-backdrop-filter:blur(4px)}.aries-oauth-dialog[data-oauth-theme=\"light\"]::backdrop{background:rgba(0, 0, 0, 0.45);backdrop-filter:blur(4px);-webkit-backdrop-filter:blur(4px)}.aries-oauth-dialog[data-oauth-theme=\"dark\"]::backdrop{background:rgba(0, 0, 0, 0.72);backdrop-filter:blur(4px);-webkit-backdrop-filter:blur(4px)}.welcome-hero{background:linear-gradient(180deg, #ecfdf5 0%, #d1fae5 50%, #ecfdf5 100%)!important}.welcome-hero-gradient{background:linear-gradient(to top, #a7f3d0, transparent)!important}.welcome-feature-box{background:#E7F6EF!important;border:1px solid #0BAA5E!important;box-shadow:0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06)!important}.welcome-feature-box:hover{background:#DAF2E7!important;border-color:#0BAA5E!important;transform:translateY(-4px)!important;box-shadow:0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04)!important}.welcome-feature-link{color:#0BAA5E!important}.welcome-feature-title{color:#000000!important}.dark .welcome-hero{background:linear-gradient(180deg, rgba(11, 170, 94, 0.15) 0%, rgba(11, 170, 94, 0.25) 50%, rgba(11, 170, 94, 0.15) 100%)!important}.dark .welcome-hero-gradient{background:linear-gradient(to top, rgba(11, 170, 94, 0.2), transparent)!important}.dark .welcome-feature-box{background:rgba(11, 170, 94, 0.15)!important;border:1px solid rgba(11, 170, 94, 0.5)!important}.dark .welcome-feature-box:hover{background:rgba(11, 170, 94, 0.2)!important;border-color:rgba(11, 170, 94, 0.6)!important}.dark .welcome-feature-link{color:#0BAA5E!important}.dark .welcome-feature-title{color:#FFFFFF!important}.welcome-feature-box-coming-soon{cursor:default!important;pointer-events:none!important}.welcome-feature-box-coming-soon:hover{transform:none!important}.welcome-coming-soon{color:#0BAA5E!important;font-weight:600!important}.dark .welcome-coming-soon{color:#0BAA5E!important}*/\n\n/* Hero Section Theme-Aware Styling */\n/* Light mode hero styling (default) */\n.hero-title{color:#000000!important}.hero-description{color:#000000!important}.hero-footnote{color:#000000!important}.hero-link{color:#0BAA5E!important}.section-title{color:#000000!important}.welcome-cards a[class*=\"Card\"],.welcome-cards .card{transition:transform 0.22s cubic-bezier(0.4, 0, 0.2, 1),\n box-shadow 0.22s cubic-bezier(0.4, 0, 0.2, 1),\n border-color 0.22s cubic-bezier(0.4, 0, 0.2, 1),\n background-color 0.22s cubic-bezier(0.4, 0, 0.2, 1)!important;transform-origin:center center!important}.welcome-cards,.welcome-cards div[class*=\"CardGroup\"],.welcome-cards .card-group{overflow:visible!important}.welcome-cards a[class*=\"Card\"]:hover,.welcome-cards .card:hover{transform:translateY(-6px)!important;border-color:rgba(11, 170, 94, 0.45)!important;box-shadow:0 18px 30px -12px rgba(0, 0, 0, 0.16),\n 0 10px 18px -14px rgba(11, 170, 94, 0.35)!important}.dark .welcome-cards a[class*=\"Card\"]:hover,.dark .welcome-cards .card:hover{border-color:rgba(11, 170, 94, 0.55)!important;box-shadow:0 18px 30px -12px rgba(0, 0, 0, 0.45),\n 0 10px 22px -16px rgba(11, 170, 94, 0.35)!important}.dark .hero-title{color:#FFFFFF!important}.dark .hero-description{color:#D1D5DB!important}.dark .hero-footnote{color:#9CA3AF!important}.dark .hero-link{color:#0BAA5E!important}.dark .section-title{color:#FFFFFF!important}@media (max-width: 1024px){.welcome-side-by-side{grid-template-columns:1fr!important}}@media (max-width: 640px){.welcome-cards{padding:0 24px!important}}.dark select,.dark select option{background-color:#000000!important;color:#ffffff!important;border-color:rgba(255, 255, 255, 0.2)!important}.dark select:focus,.dark select:active{background-color:#000000!important;color:#ffffff!important}.dark [class*=\"playground\"] select,.dark [class*=\"api\"] select,.dark [class*=\"request\"] select,.dark form select{background-color:#000000!important;color:#ffffff!important;border-color:rgba(255, 255, 255, 0.2)!important}.dark [class*=\"playground\"] select option,.dark [class*=\"api\"] select option,.dark [class*=\"request\"] select option,.dark form select option{background-color:#000000!important;color:#ffffff!important}select,select option{background-color:#ffffff!important;color:#000000!important}.prompt{background-color:#ffffff!important;border-color:rgba(10, 15, 13, 0.1)!important}.dark .prompt{background-color:#0B0C0E!important;border-color:rgba(255, 255, 255, 0.1)!important}img[src=\"/logo/claude-logo.png\"]{border-radius:23%!important}img[src=\"https://cdn.simpleicons.org/cursor\"],img[src=\"/logo/chatgpt-logo.png\"]{background-color:#ffffff!important;border-radius:23%!important;padding:3px!important}"}]}
{"page":{"pagePath":"websockets/tradingview-chart","slug":"/websockets/tradingview-chart","pageMetadata":{"title":"Charting WebSocket","description":"Real-time WebSocket API for TradingView chart data. Stream live quotes and trades for equities and options. Connect, authenticate, then subscribe to symbols.","asyncapi":"asyncapi-specs/tradingview-chart.json chartDataStream","href":"/websockets/tradingview-chart"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Real-time WebSocket API for TradingView chart data. Stream live quotes and trades for equities and options. Connect, authenticate, then subscribe to symbols.\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,br:`br`,code:`code`,hr:`hr`,li:`li`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,ul:`ul`,..._provideComponents(),...props.components},{Accordion,AccordionGroup,Card,CardGroup,CodeBlock,Heading,Note,Step,Steps,Table}=_components;if(!Accordion)_missingMdxReference(`Accordion`,true);if(!AccordionGroup)_missingMdxReference(`AccordionGroup`,true);if(!Card)_missingMdxReference(`Card`,true);if(!CardGroup)_missingMdxReference(`CardGroup`,true);if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Note)_missingMdxReference(`Note`,true);if(!Step)_missingMdxReference(`Step`,true);if(!Steps)_missingMdxReference(`Steps`,true);if(!Table)_missingMdxReference(`Table`,true);return _jsxs(_Fragment,{children:[_jsx(Note,{children:_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`What this stream is for.`}),` This WebSocket is a charting-specific feed designed to plug straight into the `,_jsx(_components.a,{href:`https://www.tradingview.com/charting-library-docs/`,children:`TradingView Charting Library`}),` or any chart widget that follows the TradingView data shape. If you’re rendering candlestick or line charts in your app and need them to update in real time, use this feed. If you need full market depth, Greeks, or T\u0026S, use the `,_jsx(_components.a,{href:`/websockets/market-data`,children:`Market Data WebSocket`}),` instead.`]})}),`\n`,_jsxs(AccordionGroup,{children:[_jsx(Accordion,{title:`Key Features`,icon:`chart-candlestick`,defaultOpen:true,id:`key-features`,children:_jsxs(CardGroup,{cols:2,children:[_jsx(Card,{title:`Connect Then Authenticate`,icon:`plug`,children:_jsxs(_components.p,{children:[`Open a WebSocket to the endpoint, then send a `,_jsx(_components.strong,{children:`request`}),` to `,_jsx(_components.strong,{children:`POST /auth`}),` with your token. Subscribe only after `,_jsx(_components.strong,{children:`authSuccess`}),`.`]})}),_jsx(Card,{title:`Real-Time Quotes`,icon:`chart-line`,children:_jsx(_components.p,{children:`Stream live bid/ask, last price, OHLC, volume, and change for charting.`})}),_jsx(Card,{title:`Real-Time Trades`,icon:`arrow-right-arrow-left`,children:_jsx(_components.p,{children:`Receive last-trade updates (price, size, timestamp) for tape and chart integration.`})}),_jsx(Card,{title:`Subscribed Quotes`,icon:`quotes`,children:_jsxs(_components.p,{children:[`Subscribe to one or more symbols; receive `,_jsx(_components.strong,{children:`event`}),` messages with quote and trade data for each subscribed symbol.`]})}),_jsx(Card,{title:`TradingView Format`,icon:`chart-mixed`,children:_jsx(_components.p,{children:`Quote and trade payloads use TradingView-friendly field names for easy integration.`})}),_jsx(Card,{title:`Equities \u0026 Options`,icon:`building`,children:_jsx(_components.p,{children:`Support for stock tickers and OSI option symbols.`})}),_jsx(Card,{title:`Keep-Alive`,icon:`heart-pulse`,children:_jsx(_components.p,{children:`Ping/pong for connection health; optional correlation ID for pong.`})})]})}),_jsxs(Accordion,{title:`Connection Details`,icon:`plug`,id:`connection-details`,children:[_jsx(Heading,{level:`3`,id:`endpoint`,children:`Endpoint`}),_jsxs(_components.p,{children:[`Connect to the WebSocket at `,_jsx(_components.strong,{children:_jsx(_components.code,{children:`/v1/charts/ws`})}),`.`]}),_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Production:`}),` `,_jsx(_components.code,{children:`wss://api.aries.com/v1/charts/ws`}),_jsx(_components.br,{}),`\n`,_jsx(_components.strong,{children:`Staging:`}),` `,_jsx(_components.code,{children:`wss://api.aries.com/v1/charts/ws`})]}),_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Health check:`}),` `,_jsx(_components.code,{children:`GET /tv/health`}),` (HTTP)`]}),_jsx(Heading,{level:`3`,id:`authentication`,children:`Authentication`}),_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Authentication is required.`}),` Use an OAuth2 access token (e.g. from `,_jsx(_components.code,{children:`POST /v1/oauth2/token`}),`). After the connection is open, send a `,_jsx(_components.strong,{children:`request`}),` message with `,_jsx(_components.strong,{children:`method`}),` `,_jsx(_components.code,{children:`POST`}),`, `,_jsx(_components.strong,{children:`path`}),` `,_jsx(_components.code,{children:`/auth`}),`, and `,_jsx(_components.strong,{children:`body`}),` `,_jsx(_components.code,{children:`{ \"token\": \"\u003cyour_access_token>\" }`}),`. Wait for a `,_jsx(_components.strong,{children:`response`}),` with `,_jsx(_components.strong,{children:`action`}),` `,_jsx(_components.code,{children:`authSuccess`}),` before sending subscribe messages. If the server returns `,_jsx(_components.strong,{children:`authRequired`}),` or `,_jsx(_components.strong,{children:`error`}),`, authentication failed (e.g. invalid or expired token).`]}),_jsx(Note,{children:_jsxs(_components.p,{children:[`This WebSocket follows a TradingView-compatible message format. All request/response messages use the shared envelope: `,_jsx(_components.code,{children:`type`}),`, `,_jsx(_components.code,{children:`id`}),`, `,_jsx(_components.code,{children:`payload`}),` (with `,_jsx(_components.code,{children:`method`}),`, `,_jsx(_components.code,{children:`path`}),`, `,_jsx(_components.code,{children:`body`}),` for requests).`]})})]}),_jsxs(Accordion,{title:`Supported Symbols`,icon:`tags`,id:`supported-symbols`,children:[_jsx(Heading,{level:`3`,id:`equities`,children:`Equities`}),_jsxs(_components.p,{children:[`Standard stock ticker symbols (e.g., `,_jsx(_components.code,{children:`AAPL`}),`, `,_jsx(_components.code,{children:`MSFT`}),`, `,_jsx(_components.code,{children:`GOOGL`}),`, `,_jsx(_components.code,{children:`TSLA`}),`). Use them exactly as a brokerage screen would display them.`]}),_jsx(Heading,{level:`3`,id:`options`,children:`Options`}),_jsxs(_components.p,{children:[`Option contracts use `,_jsx(_components.strong,{children:`OSI`}),` (Options Symbology Initiative) symbols. Format: `,_jsx(_components.code,{children:`ROOT + YYMMDD + C/P + strike-in-cents`}),` (e.g., `,_jsx(_components.code,{children:`AAPL240119C00150000`}),` is the AAPL Jan-19-2024 $150 Call).`]})]}),_jsxs(Accordion,{title:`Message Envelope`,icon:`envelope`,id:`message-envelope`,children:[_jsx(_components.p,{children:`Every message you send or receive uses the same outer JSON shape:`}),_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Field`}),_jsx(_components.th,{children:`Type`}),_jsx(_components.th,{children:`Required`}),_jsx(_components.th,{children:`What to put here`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`type`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Yes`}),_jsxs(_components.td,{children:[`What kind of message this is. `,_jsx(_components.strong,{children:`Sent by you:`}),` `,_jsx(_components.code,{children:`request`}),` (RPC-style call, e.g. auth), `,_jsx(_components.code,{children:`subscribe`}),`, `,_jsx(_components.code,{children:`unsubscribe`}),`, `,_jsx(_components.code,{children:`ping`}),`. `,_jsx(_components.strong,{children:`Sent by the server:`}),` `,_jsx(_components.code,{children:`event`}),` (streaming push), `,_jsx(_components.code,{children:`response`}),` (reply to your request), `,_jsx(_components.code,{children:`pong`}),` (reply to your ping).`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`id`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`No`}),_jsxs(_components.td,{children:[`A correlation ID you choose, like `,_jsx(_components.code,{children:`\"sub-aapl-1\"`}),`. The server echoes it back in the matching response/event so you can pair them up.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`timestamp`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`No`}),_jsxs(_components.td,{children:[`RFC3339 timestamp (e.g. `,_jsx(_components.code,{children:`2026-05-13T10:30:00Z`}),`). Optional on client messages; the server fills it in on outbound messages.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`payload`})}),_jsx(_components.td,{children:`object`}),_jsx(_components.td,{children:`Yes`}),_jsxs(_components.td,{children:[`The actual body of the message. Shape depends on `,_jsx(_components.code,{children:`type`}),` — see the sections below.`]})]})]})]})]}),_jsxs(Accordion,{title:`Data Types`,icon:`database`,id:`data-types`,children:[_jsxs(_components.p,{children:[`The subscription `,_jsx(_components.code,{children:`payload.type`}),` controls what kind of data the server streams back:`]}),_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:_jsx(_components.code,{children:`quotes`})}),` (default) — Bid/ask, last price, OHLC, volume, change, and change percent. This is what most chart widgets need for the price/quote display.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:_jsx(_components.code,{children:`bars`})}),` — Accepted as a subscription `,_jsx(_components.code,{children:`type`}),`, but the server currently streams the `,_jsxs(_components.strong,{children:[`same `,_jsx(_components.code,{children:`quotes`}),`-shaped quote/trade events`]}),` for a `,_jsx(_components.code,{children:`bars`}),` subscription. It does `,_jsx(_components.strong,{children:`not`}),` emit distinct OHLC bar/candle objects, resolutions, or intervals today. Use `,_jsx(_components.code,{children:`quotes`}),` unless you have a specific reason to send `,_jsx(_components.code,{children:`bars`}),`.`]}),`\n`]})]}),_jsx(Accordion,{title:`Use Cases`,icon:`lightbulb`,id:`use-cases`,children:_jsxs(CardGroup,{cols:2,children:[_jsx(Card,{title:`Live Chart Updates`,icon:`chart-candlestick`,children:_jsx(_components.p,{children:`Display real-time price movements on interactive charts.`})}),_jsx(Card,{title:`TradingView Widgets`,icon:`chart-line`,children:_jsx(_components.p,{children:`Feed real-time data into TradingView charting library or embedded widgets.`})}),_jsx(Card,{title:`Quote Displays`,icon:`quotes`,children:_jsx(_components.p,{children:`Show last price, bid/ask, and volume in chart widgets (after authenticating).`})}),_jsx(Card,{title:`Technical Analysis`,icon:`chart-line-up`,children:_jsx(_components.p,{children:`Provide data for indicators and overlays in charting tools.`})})]})})]}),`\n`,_jsx(_components.hr,{}),`\n`,_jsx(Heading,{level:`2`,id:`connection`,children:`Connection`}),`\n`,_jsxs(_components.p,{children:[`Connect to the Charting WebSocket the same way you would the Market Data WebSocket: `,_jsx(_components.strong,{children:`establish the connection`}),`, then `,_jsx(_components.strong,{children:`authenticate`}),`, then `,_jsx(_components.strong,{children:`subscribe`}),` to symbols to receive real-time quotes and trades.`]}),`\n`,_jsx(Heading,{level:`3`,id:`connect-to-the-endpoint`,children:`Connect to the endpoint`}),`\n`,_jsx(_components.p,{children:`Open a secure WebSocket connection to:`}),`\n`,_jsx(CodeBlock,{numberOfLines:`2`,language:`text`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`2`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`wss://api.aries.com/v1/charts/ws`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),`\n`,_jsx(Heading,{level:`3`,id:`authenticate`,children:`Authenticate`}),`\n`,_jsxs(_components.p,{children:[`Immediately after the connection is open, send one `,_jsx(_components.strong,{children:`request`}),` message to authenticate. Do `,_jsx(_components.strong,{children:`not`}),` send subscribe messages until you receive a successful auth response.`]}),`\n`,_jsx(_components.p,{children:`Send the following auth message:`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`11`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`11`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"type\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"request\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"auth-001\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"payload\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"method\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"POST\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"path\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"/auth\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"body\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"token\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"YOUR_ACCESS_TOKEN\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Server responds (success):`}),` `,_jsx(_components.code,{children:`type: \"response\"`}),`, with `,_jsx(_components.code,{children:`payload.action: \"authSuccess\"`}),`, optional `,_jsx(_components.code,{children:`payload.id`}),` (echoed from request), `,_jsx(_components.code,{children:`payload.timestamp`}),` (Unix milliseconds), and `,_jsx(_components.code,{children:`payload.data.expiresIn`}),` (session expiry in milliseconds).`]}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Server responds (failure):`}),` `,_jsx(_components.code,{children:`payload.action: \"authRequired\"`}),` or `,_jsx(_components.code,{children:`payload.action: \"error\"`}),` with `,_jsx(_components.code,{children:`payload.error`}),` (e.g. “token is required”, “authentication failed”). Reconnect or send a new auth request with a valid token.`]}),`\n`,_jsx(Heading,{level:`3`,id:`subscribe-to-symbols`,children:`Subscribe to symbols`}),`\n`,_jsxs(_components.p,{children:[`After `,_jsx(_components.strong,{children:`authSuccess`}),`, send `,_jsx(_components.strong,{children:`subscribe`}),` messages to start receiving quote and trade `,_jsx(_components.strong,{children:`event`}),` messages for the requested symbols. See `,_jsx(_components.a,{href:`#subscribing-to-chart-data`,children:`Subscribing to Chart Data`}),` below.`]}),`\n`,_jsx(_components.hr,{}),`\n`,_jsx(Heading,{level:`2`,id:`subscribing-to-chart-data`,children:`Subscribing to Chart Data`}),`\n`,_jsxs(_components.p,{children:[`After you have connected and authenticated, you can subscribe to real-time quotes (and trades) for one or more symbols. Each subscription uses a `,_jsx(_components.strong,{children:`subscribe`}),` message; the server then sends `,_jsx(_components.strong,{children:`event`}),` messages containing quote/trade data for those symbols.`]}),`\n`,_jsx(Heading,{level:`3`,id:`basic-subscription-structure`,children:`Basic subscription structure`}),`\n`,_jsxs(_components.p,{children:[`Send a `,_jsx(_components.strong,{children:`subscribe`}),` message with `,_jsx(_components.code,{children:`type`}),` fixed as `,_jsx(_components.code,{children:`\"subscribe\"`}),`, any `,_jsx(_components.code,{children:`id`}),` you want (used to correlate the server’s responses), and a `,_jsx(_components.code,{children:`payload`}),` describing what you want to receive:`]}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Payload field`}),_jsx(_components.th,{children:`Type`}),_jsx(_components.th,{children:`Required`}),_jsx(_components.th,{children:`What to enter`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`type`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`No`}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`\"quotes\"`}),` (default when omitted) for real-time price ticks. `,_jsx(_components.code,{children:`\"bars\"`}),` is accepted but currently returns the same `,_jsx(_components.code,{children:`quotes`}),`-shaped events (see Data Types above).`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`symbol`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Yes`}),_jsxs(_components.td,{children:[`The instrument identifier — a stock ticker like `,_jsx(_components.code,{children:`\"AAPL\"`}),`, or an OSI option symbol like `,_jsx(_components.code,{children:`\"AAPL240119C00150000\"`}),`.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`symbolType`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`No`}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`\"symbol\"`}),` or `,_jsx(_components.code,{children:`\"option\"`}),`. Currently accepted but `,_jsx(_components.strong,{children:`ignored`}),` by the server — it has no effect on the data returned.`]})]})]})]}),`\n`,_jsx(_components.p,{children:_jsx(_components.strong,{children:`Full message to send:`})}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`8`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`8`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"type\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"subscribe\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"sub-1\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"payload\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"type\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"quotes\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"symbol\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"AAPL\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsx(Heading,{level:`3`,id:`subscription-examples`,children:`Subscription examples`}),`\n`,_jsxs(AccordionGroup,{children:[_jsxs(Accordion,{title:`Single symbol (quotes)`,icon:`play`,defaultOpen:true,id:`single-symbol-quotes`,children:[_jsx(_components.p,{children:`Subscribe to real-time quotes for one equity:`}),_jsx(CodeBlock,{filename:``,numberOfLines:`5`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`5`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"type\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"subscribe\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"sub-1\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"payload\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: { `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"type\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"quotes\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"symbol\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"AAPL\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),_jsxs(_components.p,{children:[`You will receive `,_jsx(_components.strong,{children:`event`}),` messages with `,_jsx(_components.code,{children:`payload.type: \"quotes\"`}),` and `,_jsx(_components.code,{children:`payload.symbol: \"AAPL\"`}),` containing `,_jsx(_components.code,{children:`payload.data.quote`}),` and `,_jsx(_components.code,{children:`payload.data.trade`}),`.`]})]}),_jsxs(Accordion,{title:`Multiple symbols (quotes)`,icon:`layer-group`,id:`multiple-symbols-quotes`,children:[_jsxs(_components.p,{children:[`Subscribe to quotes for several symbols by sending one subscribe message per symbol (each with its own `,_jsx(_components.code,{children:`id`}),` if needed):`]}),_jsx(_components.p,{children:_jsx(_components.strong,{children:`First symbol:`})}),_jsx(CodeBlock,{filename:``,numberOfLines:`5`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`5`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"type\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"subscribe\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"sub-aapl\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"payload\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: { `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"type\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"quotes\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"symbol\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"AAPL\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),_jsx(_components.p,{children:_jsx(_components.strong,{children:`Second symbol:`})}),_jsx(CodeBlock,{filename:``,numberOfLines:`5`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`5`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"type\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"subscribe\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"sub-msft\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"payload\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: { `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"type\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"quotes\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"symbol\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"MSFT\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),_jsx(_components.p,{children:_jsx(_components.strong,{children:`Third symbol:`})}),_jsx(CodeBlock,{filename:``,numberOfLines:`5`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`5`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"type\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"subscribe\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"sub-googl\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"payload\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: { `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"type\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"quotes\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"symbol\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"GOOGL\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),_jsxs(_components.p,{children:[`The server sends `,_jsx(_components.strong,{children:`event`}),` messages for each subscribed symbol; use `,_jsx(_components.code,{children:`payload.symbol`}),` to route updates.`]})]}),_jsxs(Accordion,{title:`Option contract (quotes)`,icon:`option`,id:`option-contract-quotes`,children:[_jsx(_components.p,{children:`For option contracts, use the OSI symbol:`}),_jsx(CodeBlock,{filename:``,numberOfLines:`5`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`5`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"type\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"subscribe\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"sub-opt-1\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"payload\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: { `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"type\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"quotes\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"symbol\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"AAPL240119C00150000\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})})]}),_jsx(Accordion,{title:`Another equity (quotes)`,icon:`quotes`,id:`another-equity-quotes`,children:_jsx(CodeBlock,{filename:``,numberOfLines:`5`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`5`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"type\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"subscribe\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"sub-2\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"payload\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: { `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"type\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"quotes\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"symbol\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"TSLA\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})})})]}),`\n`,_jsx(_components.hr,{}),`\n`,_jsx(Heading,{level:`2`,id:`connection-flow`,children:`Connection Flow`}),`\n`,_jsxs(Steps,{children:[_jsx(Step,{title:`Connect`,children:_jsxs(_components.p,{children:[`Open a WebSocket connection to `,_jsx(_components.code,{children:`wss://api.aries.com/v1/charts/ws`})]})}),_jsx(Step,{title:`Authenticate`,children:_jsxs(_components.p,{children:[`Send a `,_jsx(_components.strong,{children:`request`}),` message: `,_jsx(_components.code,{children:`type: \"request\"`}),`, `,_jsx(_components.code,{children:`payload: { \"method\": \"POST\", \"path\": \"/auth\", \"body\": { \"token\": \"\u003caccess_token>\" } }`}),`. Wait for a `,_jsx(_components.strong,{children:`response`}),` with `,_jsx(_components.code,{children:`payload.action: \"authSuccess\"`}),`.`]})}),_jsx(Step,{title:`Subscribe`,children:_jsxs(_components.p,{children:[`Send `,_jsx(_components.strong,{children:`subscribe`}),` messages with `,_jsx(_components.code,{children:`payload.type`}),` and `,_jsx(_components.code,{children:`payload.symbol`}),` for each symbol you want.`]})}),_jsx(Step,{title:`Receive events`,children:_jsxs(_components.p,{children:[`Process `,_jsx(_components.strong,{children:`event`}),` messages containing quote and trade data for your subscribed symbols.`]})}),_jsx(Step,{title:`Unsubscribe (optional)`,children:_jsxs(_components.p,{children:[`Send `,_jsx(_components.strong,{children:`unsubscribe`}),` with the same symbol to stop updates.`]})}),_jsx(Step,{title:`Keep-Alive (optional)`,children:_jsxs(_components.p,{children:[`Send `,_jsx(_components.strong,{children:`ping`}),` periodically; server responds with `,_jsx(_components.strong,{children:`pong`}),`.`]})})]}),`\n`,_jsx(_components.hr,{}),`\n`,_jsx(Heading,{level:`2`,id:`client-→-server-messages`,children:`Client → Server Messages`}),`\n`,_jsx(Heading,{level:`3`,id:`subscribe`,children:`Subscribe`}),`\n`,_jsxs(_components.p,{children:[`Provide `,_jsx(_components.code,{children:`payload.type`}),` and `,_jsx(_components.code,{children:`payload.symbol`}),`; the full message is built as:`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`8`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`8`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"type\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"subscribe\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"sub-1\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"payload\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"type\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"quotes\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"symbol\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"AAPL\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsx(Heading,{level:`3`,id:`unsubscribe`,children:`Unsubscribe`}),`\n`,_jsxs(_components.p,{children:[`Stop receiving updates for a symbol. Only `,_jsx(_components.code,{children:`payload.symbol`}),` is required — the server unsubscribes by symbol, so `,_jsx(_components.code,{children:`payload.type`}),` is not needed and is ignored.`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`8`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`8`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"type\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"unsubscribe\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"unsub-1\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"payload\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"type\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"quotes\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"symbol\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"AAPL\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsx(Heading,{level:`3`,id:`ping`,children:`Ping`}),`\n`,_jsxs(_components.p,{children:[`Keep-alive; server responds with `,_jsx(_components.strong,{children:`pong`}),`. Optional `,_jsx(_components.code,{children:`id`}),` is echoed in the pong.`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{ `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"type\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"ping\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"ping-1\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})]}),`\n`]})})}),`\n`,_jsx(_components.hr,{}),`\n`,_jsx(Heading,{level:`2`,id:`server-→-client-messages`,children:`Server → Client Messages`}),`\n`,_jsx(Heading,{level:`3`,id:`event-quote/trade-update`,children:`Event (quote/trade update)`}),`\n`,_jsx(_components.p,{children:`Server pushes quote and/or trade data for subscribed symbols.`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`37`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`37`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"type\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"event\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"timestamp\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"2026-02-23T18:36:59Z\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"payload\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"type\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"quotes\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"symbol\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"AAPL\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"data\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"isDelayed\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`false`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"quote\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"s\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"ok\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"n\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"AAPL\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"v\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"ch\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`4.77`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"chp\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`1.80`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"short_name\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"AAPL\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"exchange\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"NASDAQ\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"description\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Apple Inc.\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"lp\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`269.35`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"ask\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`269.36`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"bid\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`269.34`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"open_price\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`263.48`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"high_price\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`269.43`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"low_price\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`263.38`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"prev_close_price\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`264.58`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"volume\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`48234100.00`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"trade\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"s\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"ok\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"t\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`1771871819`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"lp\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`269.35`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"v\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`100`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"timestamp\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`1771871819072`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsx(Note,{children:_jsxs(_components.p,{children:[`The field names below (`,_jsx(_components.code,{children:`ch`}),`, `,_jsx(_components.code,{children:`chp`}),`, `,_jsx(_components.code,{children:`lp`}),`, `,_jsx(_components.code,{children:`n`}),`, `,_jsx(_components.code,{children:`v`}),`, etc.) are TradingView’s short-form keys. They look cryptic but they’re standardized — the TradingView Charting Library expects exactly these names. `,_jsx(_components.strong,{children:`Do not rename them in your handler if you’re piping data into a TradingView widget.`})]})}),`\n`,_jsx(_components.p,{children:_jsxs(_components.strong,{children:[`Event `,_jsx(_components.code,{children:`payload`}),` fields:`]})}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Field`}),_jsx(_components.th,{children:`Type`}),_jsx(_components.th,{children:`Description`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`type`})}),_jsx(_components.td,{children:`string`}),_jsxs(_components.td,{children:[`Always `,_jsx(_components.code,{children:`\"quotes\"`}),` for quote/trade events.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`symbol`})}),_jsx(_components.td,{children:`string`}),_jsxs(_components.td,{children:[`The symbol this event is about (e.g. `,_jsx(_components.code,{children:`AAPL`}),`). Match against your active subscriptions.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`data`})}),_jsx(_components.td,{children:`object`}),_jsx(_components.td,{children:`The quote and trade payload (see below).`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`timestamp`})}),_jsx(_components.td,{children:`integer`}),_jsx(_components.td,{children:`When the event was emitted, in Unix milliseconds.`})]})]})]}),`\n`,_jsx(_components.p,{children:_jsxs(_components.strong,{children:[_jsx(_components.code,{children:`payload.data`}),` fields:`]})}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Field`}),_jsx(_components.th,{children:`Type`}),_jsx(_components.th,{children:`Description`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`quote`})}),_jsx(_components.td,{children:`object`}),_jsxs(_components.td,{children:[`Quote data. Contains `,_jsx(_components.code,{children:`s`}),` (status string, usually `,_jsx(_components.code,{children:`\"ok\"`}),`), `,_jsx(_components.code,{children:`n`}),` (the symbol), and `,_jsx(_components.code,{children:`v`}),` (the actual quote values — see next table).`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`trade`})}),_jsx(_components.td,{children:`object`}),_jsx(_components.td,{children:`Trade data (see below). Omitted if there’s no recent trade to report.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`isDelayed`})}),_jsx(_components.td,{children:`boolean`}),_jsxs(_components.td,{children:[`Indicates whether the feed is delayed. The server currently always sends `,_jsx(_components.code,{children:`false`}),` (real-time); treat `,_jsx(_components.code,{children:`true`}),` as reserved for future use.`]})]})]})]}),`\n`,_jsxs(_components.p,{children:[_jsxs(_components.strong,{children:[_jsx(_components.code,{children:`payload.data.quote.v`}),` fields`]}),` — these are the values the chart actually plots. All numbers and all optional (only changed fields may be present in an update):`]}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Field`}),_jsx(_components.th,{children:`Type`}),_jsx(_components.th,{children:`What it represents`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`ch`})}),_jsx(_components.td,{children:`number`}),_jsxs(_components.td,{children:[_jsx(_components.strong,{children:`Change`}),` — net price change from previous close (today’s last price − yesterday’s close). Drives the +/− indicator on a chart.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`chp`})}),_jsx(_components.td,{children:`number`}),_jsxs(_components.td,{children:[_jsx(_components.strong,{children:`Change percent`}),` — `,_jsx(_components.code,{children:`ch`}),` expressed as a percent of previous close.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`short_name`})}),_jsx(_components.td,{children:`string`}),_jsxs(_components.td,{children:[`Display ticker, e.g. `,_jsx(_components.code,{children:`\"AAPL\"`}),`.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`exchange`})}),_jsx(_components.td,{children:`string`}),_jsxs(_components.td,{children:[`Primary listing exchange, e.g. `,_jsx(_components.code,{children:`\"NASDAQ\"`}),`.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`lp`})}),_jsx(_components.td,{children:`number`}),_jsxs(_components.td,{children:[_jsx(_components.strong,{children:`Last price`}),` — most recent trade price. The number on the big “current price” label.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`ask`})}),_jsx(_components.td,{children:`number`}),_jsx(_components.td,{children:`Best ask (the lowest price someone is willing to sell at).`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`bid`})}),_jsx(_components.td,{children:`number`}),_jsx(_components.td,{children:`Best bid (the highest price someone is willing to pay).`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`open_price`})}),_jsx(_components.td,{children:`number`}),_jsx(_components.td,{children:`Today’s opening price (first trade of the session).`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`high_price`})}),_jsx(_components.td,{children:`number`}),_jsx(_components.td,{children:`Today’s highest price so far.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`low_price`})}),_jsx(_components.td,{children:`number`}),_jsx(_components.td,{children:`Today’s lowest price so far.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`prev_close_price`})}),_jsx(_components.td,{children:`number`}),_jsx(_components.td,{children:`Yesterday’s closing price — the baseline for calculating today’s change.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`volume`})}),_jsx(_components.td,{children:`number`}),_jsx(_components.td,{children:`Cumulative number of shares traded today.`})]})]})]}),`\n`,_jsxs(_components.p,{children:[_jsxs(_components.strong,{children:[_jsx(_components.code,{children:`payload.data.trade`}),` fields`]}),` — emitted whenever a new print appears on the tape:`]}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Field`}),_jsx(_components.th,{children:`Type`}),_jsx(_components.th,{children:`What it represents`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`s`})}),_jsx(_components.td,{children:`string`}),_jsxs(_components.td,{children:[`Status — `,_jsx(_components.code,{children:`\"ok\"`}),` when the trade is valid.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`t`})}),_jsx(_components.td,{children:`integer`}),_jsxs(_components.td,{children:[`Trade timestamp in `,_jsx(_components.strong,{children:`Unix seconds`}),` (note: trade `,_jsx(_components.code,{children:`t`}),` is seconds, but the outer `,_jsx(_components.code,{children:`payload.timestamp`}),` is milliseconds).`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`lp`})}),_jsx(_components.td,{children:`number`}),_jsx(_components.td,{children:`Last trade price — the price the trade printed at.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`v`})}),_jsx(_components.td,{children:`integer`}),_jsx(_components.td,{children:`Trade size (number of shares/contracts).`})]})]})]}),`\n`,_jsx(Heading,{level:`3`,id:`response-auth-or-error`,children:`Response (auth or error)`}),`\n`,_jsxs(_components.p,{children:[`Auth success: `,_jsx(_components.code,{children:`type: \"response\"`}),`, `,_jsx(_components.code,{children:`payload.action: \"authSuccess\"`}),`, optional `,_jsx(_components.code,{children:`payload.id`}),` (echoed request ID), `,_jsx(_components.code,{children:`payload.timestamp`}),` (Unix milliseconds), `,_jsx(_components.code,{children:`payload.data.expiresIn`}),` (session expiry in milliseconds).`]}),`\n`,_jsxs(_components.p,{children:[`Error (e.g. invalid subscribe): `,_jsx(_components.code,{children:`type: \"response\"`}),`, `,_jsx(_components.code,{children:`payload.error`}),` with message.`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`8`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`8`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"type\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"response\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"sub-1\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"payload\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"error\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"symbol is required in payload\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"timestamp\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`1736946600123`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsx(Heading,{level:`3`,id:`pong`,children:`Pong`}),`\n`,_jsxs(_components.p,{children:[`Reply to `,_jsx(_components.strong,{children:`ping`}),`.`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`5`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`5`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"type\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"pong\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"ping-1\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"timestamp\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"2025-01-15T14:30:00Z\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsx(_components.hr,{}),`\n`,_jsx(Heading,{level:`2`,id:`quick-start-example`,children:`Quick Start Example`}),`\n`,_jsx(_components.p,{children:`Connect, authenticate, then subscribe to quotes (same pattern as the Market Data WebSocket):`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`44`,language:`javascript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`javascript`,children:_jsxs(_components.code,{language:`javascript`,numberOfLines:`44`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` ws`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` new`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` WebSocket`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'wss://api.aries.com/v1/charts/ws'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`ws`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`onopen`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` () `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`=>`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` // 1. Authenticate first`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` ws`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`send`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:`JSON`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`stringify`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`({`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` type:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'request'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` id:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'auth-001'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` payload:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` method:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'POST'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` path:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` '/auth'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` body:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` { `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`token:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'YOUR_OAUTH2_ACCESS_TOKEN'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }));`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`};`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`ws`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`onmessage`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` (`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:`event`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`) `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`=>`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` msg`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` JSON`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`parse`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`event`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`data`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` if`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` (`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`msg`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`type`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` ===`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'response'`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` \u0026\u0026`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` msg`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`payload`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`?.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`action`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` ===`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'authSuccess'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`) {`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` // 2. After auth success, subscribe to quotes`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` ws`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`send`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:`JSON`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`stringify`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`({`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` type:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'subscribe'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` id:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'sub-1'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` payload:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` { `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`type:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'quotes'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`symbol:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'AAPL'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }));`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` } `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`else`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` if`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` (`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`msg`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`type`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` ===`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'event'`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` \u0026\u0026`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` msg`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`payload`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`?.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`data`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`) {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` const`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` { `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:`quote`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:`trade`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` } `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` msg`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`payload`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`data`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` if`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` (`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`quote`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`?.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`v`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`) `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`console`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`log`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'Quote:'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`quote`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`v`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`lp`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`quote`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`v`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`ch`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`quote`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`v`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`volume`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` if`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` (`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`trade`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`) `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`console`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`log`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'Trade:'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`trade`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`lp`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`trade`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`v`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`trade`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`t`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` } `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`else`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` if`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` (`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`msg`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`type`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` ===`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'response'`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` \u0026\u0026`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` msg`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`payload`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`?.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`error`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`) {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` console`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`error`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'Error:'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`msg`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`payload`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`error`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` } `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`else`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` if`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` (`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`msg`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`type`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` ===`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'pong'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`) {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` console`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`log`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'Pong received'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`};`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`// Optional keep-alive`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` pingInterval`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` setInterval`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(() `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`=>`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` if`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` (`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`ws`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`readyState`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` ===`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` WebSocket`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:`OPEN`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`) {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` ws`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`send`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:`JSON`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`stringify`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`({ `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`type:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'ping'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`id:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'ping-1'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }));`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}, `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`30000`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`ws`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`onclose`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` () `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`=>`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` clearInterval`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`pingInterval`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`]})})}),`\n`,_jsx(_components.hr,{}),`\n`,_jsx(Heading,{level:`2`,id:`support`,children:`Support`}),`\n`,_jsx(_components.p,{children:`Need help with the Charting WebSocket?`}),`\n`,_jsxs(CardGroup,{cols:2,children:[_jsx(Card,{title:`Email Support`,icon:`envelope`,children:_jsx(_components.p,{children:_jsx(_components.a,{href:`mailto:support@aries.com`,children:`support@aries.com`})})}),_jsx(Card,{title:`API Status`,icon:`activity`,children:_jsx(_components.p,{children:_jsx(_components.a,{href:`https://status.aries.com`,children:`status.aries.com`})})})]})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Charting WebSocket","description":"Real-time WebSocket API for TradingView chart data. Stream live quotes and trades for equities and options. Connect, authenticate, then subscribe to symbols.","asyncapi":"asyncapi-specs/tradingview-chart.json chartDataStream","href":"/websockets/tradingview-chart"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Connection","slug":"connection","depth":2,"children":[{"title":"Connect to the endpoint","slug":"connect-to-the-endpoint","depth":3,"children":[]},{"title":"Authenticate","slug":"authenticate","depth":3,"children":[]},{"title":"Subscribe to symbols","slug":"subscribe-to-symbols","depth":3,"children":[]}]},{"title":"Subscribing to Chart Data","slug":"subscribing-to-chart-data","depth":2,"children":[{"title":"Basic subscription structure","slug":"basic-subscription-structure","depth":3,"children":[]},{"title":"Subscription examples","slug":"subscription-examples","depth":3,"children":[]}]},{"title":"Connection Flow","slug":"connection-flow","depth":2,"children":[]},{"title":"Client → Server Messages","slug":"client-→-server-messages","depth":2,"children":[{"title":"Subscribe","slug":"subscribe","depth":3,"children":[]},{"title":"Unsubscribe","slug":"unsubscribe","depth":3,"children":[]},{"title":"Ping","slug":"ping","depth":3,"children":[]}]},{"title":"Server → Client Messages","slug":"server-→-client-messages","depth":2,"children":[{"title":"Event (quote/trade update)","slug":"event-quote/trade-update","depth":3,"children":[]},{"title":"Response (auth or error)","slug":"response-auth-or-error","depth":3,"children":[]},{"title":"Pong","slug":"pong","depth":3,"children":[]}]},{"title":"Quick Start Example","slug":"quick-start-example","depth":2,"children":[]},{"title":"Support","slug":"support","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":["/_mintlify/custom/ariesfinancialinc/d35069a6af6e0e00/public/oauth-manager.js","/_mintlify/custom/ariesfinancialinc/baaed03e98a52073/public/token-autofill.js","/_mintlify/custom/ariesfinancialinc/5c3c9fc4fbc77145/public/paste-plain-text.js"],"apiReferenceData":{"channel":{"id":"chartDataStream","title":"Chart data stream","description":"TradingView-compatible chart WebSocket. Authentication required: send request POST /auth with body { token: \"\u003caccess_token>\" } after connect, then subscribe to symbols for real-time quote and trade events.","servers":[{"id":"production","protocol":"wss","host":"api.aries.com","bindings":[],"variables":[]}],"address":"/v1/charts/ws","parameters":[],"bindings":[],"operations":[{"id":"authenticate","title":"Authenticate","description":"Sign in to the WebSocket","type":"receive","messages":[{"id":"authRequest","contentType":"application/json","payload":[{"name":"Sign-in Request","description":"Sign in with access token","type":"object","properties":[{"name":"type","type":"string","description":"Set this to `request` when you authenticate.","enumValues":["request"],"required":true},{"name":"id","type":"string","description":"Optional. Add your own request ID here if you want it returned in the auth reply.","required":false},{"name":"timestamp","type":"string","description":"Optional time when your client created this message, in RFC3339 format.","required":false},{"name":"payload","type":"object","description":"Put the auth request details here.","required":true,"properties":[{"name":"method","type":"string","description":"Use `POST` to send the token for authentication.","enumValues":["POST"],"required":true},{"name":"path","type":"string","description":"Auth endpoint path. Always `/auth`.","enumValues":["/auth"],"required":true},{"name":"body","type":"object","description":"Request body for `/auth`. Put the token directly at `body.token`.","required":true,"properties":[{"name":"token","type":"string","description":"Access token for this WebSocket connection.","required":true}]}]}]}],"headers":[],"jsonPayloadSchema":{"type":"object","description":"Sign-in message. Send this first so the server can check your token.","required":["type","payload"],"properties":{"type":{"type":"string","enum":["request"],"description":"Set this to `request` when you authenticate.","example":"request","x-parser-schema-id":"\u003canonymous-schema-60>"},"id":{"type":"string","description":"Optional. Add your own request ID here if you want it returned in the auth reply.","example":"auth-001","x-parser-schema-id":"\u003canonymous-schema-61>"},"timestamp":{"type":"string","format":"date-time","description":"Optional time when your client created this message, in RFC3339 format.","x-parser-schema-id":"\u003canonymous-schema-62>"},"payload":{"type":"object","description":"Put the auth request details here.","required":["method","path","body"],"properties":{"method":{"type":"string","enum":["POST"],"description":"Use `POST` to send the token for authentication.","example":"POST","x-parser-schema-id":"\u003canonymous-schema-64>"},"path":{"type":"string","enum":["/auth"],"description":"Auth endpoint path. Always `/auth`.","example":"/auth","x-parser-schema-id":"\u003canonymous-schema-65>"},"body":{"type":"object","required":["token"],"description":"Request body for `/auth`. Put the token directly at `body.token`.","properties":{"token":{"type":"string","description":"Access token for this WebSocket connection.","example":"{{user_access_token}}","x-parser-schema-id":"\u003canonymous-schema-67>"}},"example":{"token":"{{user_access_token}}"},"x-parser-schema-id":"\u003canonymous-schema-66>"}},"example":{"method":"POST","path":"/auth","body":{"token":"{{user_access_token}}"}},"x-parser-schema-id":"\u003canonymous-schema-63>"}},"x-parser-schema-id":"\u003canonymous-schema-59>"},"title":"Sign-in Request","description":"Sign in with access token","example":"{\n \"type\": \"request\",\n \"id\": \"auth-001\",\n \"payload\": {\n \"method\": \"POST\",\n \"path\": \"/auth\",\n \"body\": {\n \"token\": \"{{user_access_token}}\"\n }\n }\n}","bindings":[],"extensions":[{"id":"x-parser-unique-object-id","value":"authRequest"}]}],"bindings":[],"extensions":[{"id":"x-parser-unique-object-id","value":"chartDataStream"}]},{"id":"subscribe","title":"Subscribe to symbol","description":"Subscribe to real-time quotes and/or trades for a symbol","type":"receive","messages":[{"id":"subscribeRequest","contentType":"application/json","payload":[{"name":"Subscribe Request","description":"Subscribe to quotes/trades for a symbol","type":"object","properties":[{"name":"type","type":"string","description":"Set this to `subscribe` to start live updates.","enumValues":["subscribe"],"required":true},{"name":"id","type":"string","description":"Optional. Add your own request ID here if you want the server to send it back in related replies.","required":false},{"name":"payload","type":"object","description":"The symbol you want to start receiving updates for.","required":true,"properties":[{"name":"type","type":"string","description":"Optional data mode. Leave this empty to use the default `quotes` mode. `bars` is accepted, but the server currently streams the same `quotes`-shaped quote/trade events for it; it does not emit distinct OHLC bar/candle objects, resolutions, or intervals.","enumValues":["quotes","bars"],"required":false},{"name":"symbol","type":"string","description":"Stock or option symbol to stream. Examples: `AAPL`, `MSFT`, or `AAPL240119C00150000`.","required":true},{"name":"symbolType","type":"string","description":"Optional hint. Currently accepted but ignored by the server; it has no effect on the data returned. You can safely leave this empty.","enumValues":["symbol","option"],"required":false}]}]}],"headers":[],"jsonPayloadSchema":{"type":"object","required":["type","payload"],"properties":{"type":{"type":"string","enum":["subscribe"],"description":"Set this to `subscribe` to start live updates.","example":"subscribe","x-parser-schema-id":"\u003canonymous-schema-2>"},"id":{"type":"string","description":"Optional. Add your own request ID here if you want the server to send it back in related replies.","example":"sub-1","x-parser-schema-id":"\u003canonymous-schema-3>"},"payload":{"type":"object","required":["symbol"],"properties":{"type":{"type":"string","enum":["quotes","bars"],"description":"Optional data mode. Leave this empty to use the default `quotes` mode. `bars` is accepted, but the server currently streams the same `quotes`-shaped quote/trade events for it; it does not emit distinct OHLC bar/candle objects, resolutions, or intervals.","default":"quotes","example":"quotes","x-parser-schema-id":"\u003canonymous-schema-5>"},"symbol":{"type":"string","description":"Stock or option symbol to stream. Examples: `AAPL`, `MSFT`, or `AAPL240119C00150000`.","example":"AAPL","x-parser-schema-id":"\u003canonymous-schema-6>"},"symbolType":{"type":"string","enum":["symbol","option"],"description":"Optional hint. Currently accepted but ignored by the server; it has no effect on the data returned. You can safely leave this empty.","example":"option","x-parser-schema-id":"\u003canonymous-schema-7>"}},"description":"The symbol you want to start receiving updates for.","example":{"type":"quotes","symbol":"AAPL"},"x-parser-schema-id":"\u003canonymous-schema-4>"}},"description":"Use this message to start live chart updates for one symbol.","x-parser-schema-id":"\u003canonymous-schema-1>"},"title":"Subscribe Request","description":"Subscribe to quotes/trades for a symbol","example":"{\n \"type\": \"subscribe\",\n \"id\": \"sub-1\",\n \"payload\": {\n \"type\": \"quotes\",\n \"symbol\": \"AAPL\"\n }\n}","bindings":[],"extensions":[{"id":"x-parser-unique-object-id","value":"subscribeRequest"}]}],"bindings":[],"extensions":[{"id":"x-parser-unique-object-id","value":"chartDataStream"}]},{"id":"unsubscribe","title":"Unsubscribe from symbol","description":"Stop receiving updates for a symbol","type":"receive","messages":[{"id":"unsubscribeRequest","contentType":"application/json","payload":[{"name":"Unsubscribe Request","description":"Unsubscribe from a symbol","type":"object","properties":[{"name":"type","type":"string","description":"Set this to `unsubscribe` to stop live updates.","enumValues":["unsubscribe"],"required":true},{"name":"id","type":"string","description":"Optional. Add your own request ID here if you want the server to send it back in related replies.","required":false},{"name":"payload","type":"object","description":"The symbol you want to stop receiving updates for.","required":true,"properties":[{"name":"type","type":"string","description":"Optional chart data mode. If you send it, use the same value you used when subscribing. The current handler unsubscribes by symbol either way.","enumValues":["quotes","bars"],"required":false},{"name":"symbol","type":"string","description":"Stock or option symbol to stop.","required":true}]}]}],"headers":[],"jsonPayloadSchema":{"type":"object","required":["type","payload"],"properties":{"type":{"type":"string","enum":["unsubscribe"],"description":"Set this to `unsubscribe` to stop live updates.","example":"unsubscribe","x-parser-schema-id":"\u003canonymous-schema-9>"},"id":{"type":"string","description":"Optional. Add your own request ID here if you want the server to send it back in related replies.","example":"unsub-1","x-parser-schema-id":"\u003canonymous-schema-10>"},"payload":{"type":"object","required":["symbol"],"properties":{"type":{"type":"string","enum":["quotes","bars"],"description":"Optional chart data mode. If you send it, use the same value you used when subscribing. The current handler unsubscribes by symbol either way.","example":"quotes","x-parser-schema-id":"\u003canonymous-schema-12>"},"symbol":{"type":"string","description":"Stock or option symbol to stop.","example":"AAPL","x-parser-schema-id":"\u003canonymous-schema-13>"}},"description":"The symbol you want to stop receiving updates for.","example":{"symbol":"AAPL"},"x-parser-schema-id":"\u003canonymous-schema-11>"}},"description":"Use this message to stop live chart updates for one symbol.","x-parser-schema-id":"\u003canonymous-schema-8>"},"title":"Unsubscribe Request","description":"Unsubscribe from a symbol","example":"{\n \"type\": \"unsubscribe\",\n \"id\": \"unsub-1\",\n \"payload\": {\n \"type\": \"quotes\",\n \"symbol\": \"AAPL\"\n }\n}","bindings":[],"extensions":[{"id":"x-parser-unique-object-id","value":"unsubscribeRequest"}]}],"bindings":[],"extensions":[{"id":"x-parser-unique-object-id","value":"chartDataStream"}]},{"id":"ping","title":"Ping","description":"Keep-alive ping","type":"receive","messages":[{"id":"pingRequest","contentType":"application/json","payload":[{"name":"Ping Request","description":"Keep-alive ping","type":"object","properties":[{"name":"type","type":"string","description":"Set this to `ping` to check that the connection is still alive.","enumValues":["ping"],"required":true},{"name":"id","type":"string","description":"Optional. Add your own request ID here if you want it returned in the `pong` reply.","required":false}]}],"headers":[],"jsonPayloadSchema":{"type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["ping"],"description":"Set this to `ping` to check that the connection is still alive.","example":"ping","x-parser-schema-id":"\u003canonymous-schema-15>"},"id":{"type":"string","description":"Optional. Add your own request ID here if you want it returned in the `pong` reply.","example":"ping-001","x-parser-schema-id":"\u003canonymous-schema-16>"}},"description":"Use this message to check that the chart WebSocket is still alive.","x-parser-schema-id":"\u003canonymous-schema-14>"},"title":"Ping Request","description":"Keep-alive ping","example":"{\n \"type\": \"\u003cstring>\",\n \"id\": \"\u003cstring>\"\n}","bindings":[],"extensions":[{"id":"x-parser-unique-object-id","value":"pingRequest"}]}],"bindings":[],"extensions":[{"id":"x-parser-unique-object-id","value":"chartDataStream"}]},{"id":"receiveEvents","title":"Receive quote/trade events","description":"Receive real-time quote and trade data for subscribed symbols","type":"send","messages":[{"id":"quoteTradeEvent","contentType":"application/json","payload":[{"name":"Quote/Trade Event","description":"Server-pushed quote and/or trade update","type":"object","properties":[{"name":"type","type":"string","description":"The server sets this to `event` for live updates.","enumValues":["event"],"required":false},{"name":"timestamp","type":"string","description":"Time when the server sent this message, in RFC3339 format.","required":false},{"name":"payload","type":"object","description":"Inner fields: data type, symbol, nested quote/trade objects.","required":false,"properties":[{"name":"type","type":"string","description":"Data type for this update.","enumValues":["quotes"],"required":false},{"name":"symbol","type":"string","description":"Symbol this update is for.","required":false},{"name":"data","type":"object","description":"Quote and/or trade objects (TradingView-style fields inside `quote` / `trade`).","required":false,"properties":[{"name":"quote","type":"object","description":"TradingView-format quote snapshot.","required":false,"properties":[{"name":"s","type":"string","description":"Status (e.g. `ok`).","required":false},{"name":"n","type":"string","description":"Symbol name.","required":false},{"name":"v","type":"object","description":"Quote values.","required":false,"properties":[{"name":"ch","type":"number","description":"Price change.","required":false},{"name":"chp","type":"number","description":"Change percent.","required":false},{"name":"short_name","type":"string","description":"Symbol short name.","required":false},{"name":"exchange","type":"string","description":"Exchange.","required":false},{"name":"lp","type":"number","description":"Last price.","required":false},{"name":"ask","type":"number","description":"Ask price.","required":false},{"name":"bid","type":"number","description":"Bid price.","required":false},{"name":"open_price","type":"number","description":"Open price.","required":false},{"name":"high_price","type":"number","description":"High price.","required":false},{"name":"low_price","type":"number","description":"Low price.","required":false},{"name":"prev_close_price","type":"number","description":"Previous close price.","required":false},{"name":"volume","type":"number","description":"Cumulative volume.","required":false}]}]},{"name":"trade","type":"object","description":"Last trade data. Omitted if no recent trade is available.","required":false,"properties":[{"name":"s","type":"string","description":"Status (e.g. `ok`).","required":false},{"name":"t","type":"integer","description":"Trade timestamp (Unix seconds).","required":false},{"name":"lp","type":"number","description":"Last trade price.","required":false},{"name":"v","type":"integer","description":"Trade size.","required":false}]},{"name":"isDelayed","type":"boolean","description":"Indicates whether the data is delayed. The server currently always sends `false` (real-time); `true` is reserved for future use.","required":false}]},{"name":"error","type":"string","description":"Present when the server reports an error for this symbol/update.","required":false},{"name":"timestamp","type":"integer","description":"Event time in Unix milliseconds.","required":false}]}]}],"headers":[],"jsonPayloadSchema":{"type":"object","description":"Server event with the latest chart quote and trade data for one symbol.","properties":{"type":{"type":"string","enum":["event"],"description":"The server sets this to `event` for live updates.","x-parser-schema-id":"\u003canonymous-schema-18>"},"timestamp":{"type":"string","format":"date-time","description":"Time when the server sent this message, in RFC3339 format.","x-parser-schema-id":"\u003canonymous-schema-19>"},"payload":{"type":"object","description":"Inner fields: data type, symbol, nested quote/trade objects.","properties":{"type":{"type":"string","enum":["quotes"],"description":"Data type for this update.","x-parser-schema-id":"\u003canonymous-schema-21>"},"symbol":{"type":"string","description":"Symbol this update is for.","x-parser-schema-id":"\u003canonymous-schema-22>"},"data":{"type":"object","description":"Quote and/or trade objects (TradingView-style fields inside `quote` / `trade`).","properties":{"quote":{"type":"object","description":"TradingView-format quote snapshot.","properties":{"s":{"type":"string","description":"Status (e.g. `ok`).","x-parser-schema-id":"\u003canonymous-schema-25>"},"n":{"type":"string","description":"Symbol name.","x-parser-schema-id":"\u003canonymous-schema-26>"},"v":{"type":"object","description":"Quote values.","properties":{"ch":{"type":"number","description":"Price change.","x-parser-schema-id":"\u003canonymous-schema-28>"},"chp":{"type":"number","description":"Change percent.","x-parser-schema-id":"\u003canonymous-schema-29>"},"short_name":{"type":"string","description":"Symbol short name.","x-parser-schema-id":"\u003canonymous-schema-30>"},"exchange":{"type":"string","description":"Exchange.","x-parser-schema-id":"\u003canonymous-schema-31>"},"lp":{"type":"number","description":"Last price.","x-parser-schema-id":"\u003canonymous-schema-32>"},"ask":{"type":"number","description":"Ask price.","x-parser-schema-id":"\u003canonymous-schema-33>"},"bid":{"type":"number","description":"Bid price.","x-parser-schema-id":"\u003canonymous-schema-34>"},"open_price":{"type":"number","description":"Open price.","x-parser-schema-id":"\u003canonymous-schema-35>"},"high_price":{"type":"number","description":"High price.","x-parser-schema-id":"\u003canonymous-schema-36>"},"low_price":{"type":"number","description":"Low price.","x-parser-schema-id":"\u003canonymous-schema-37>"},"prev_close_price":{"type":"number","description":"Previous close price.","x-parser-schema-id":"\u003canonymous-schema-38>"},"volume":{"type":"number","description":"Cumulative volume.","x-parser-schema-id":"\u003canonymous-schema-39>"}},"x-parser-schema-id":"\u003canonymous-schema-27>"}},"x-parser-schema-id":"\u003canonymous-schema-24>"},"trade":{"type":"object","description":"Last trade data. Omitted if no recent trade is available.","properties":{"s":{"type":"string","description":"Status (e.g. `ok`).","x-parser-schema-id":"\u003canonymous-schema-41>"},"t":{"type":"integer","description":"Trade timestamp (Unix seconds).","x-parser-schema-id":"\u003canonymous-schema-42>"},"lp":{"type":"number","description":"Last trade price.","x-parser-schema-id":"\u003canonymous-schema-43>"},"v":{"type":"integer","description":"Trade size.","x-parser-schema-id":"\u003canonymous-schema-44>"}},"x-parser-schema-id":"\u003canonymous-schema-40>"},"isDelayed":{"type":"boolean","description":"Indicates whether the data is delayed. The server currently always sends `false` (real-time); `true` is reserved for future use.","x-parser-schema-id":"\u003canonymous-schema-45>"}},"x-parser-schema-id":"\u003canonymous-schema-23>"},"error":{"type":"string","description":"Present when the server reports an error for this symbol/update.","x-parser-schema-id":"\u003canonymous-schema-46>"},"timestamp":{"type":"integer","description":"Event time in Unix milliseconds.","x-parser-schema-id":"\u003canonymous-schema-47>"}},"x-parser-schema-id":"\u003canonymous-schema-20>"}},"x-parser-schema-id":"\u003canonymous-schema-17>"},"title":"Quote/Trade Event","description":"Server-pushed quote and/or trade update","example":"{\n \"type\": \"event\",\n \"timestamp\": \"2026-02-23T18:36:59Z\",\n \"payload\": {\n \"type\": \"quotes\",\n \"symbol\": \"AAPL\",\n \"data\": {\n \"isDelayed\": false,\n \"quote\": {\n \"s\": \"ok\",\n \"n\": \"AAPL\",\n \"v\": {\n \"ch\": 4.77,\n \"chp\": 1.8,\n \"short_name\": \"AAPL\",\n \"exchange\": \"NASDAQ\",\n \"lp\": 269.35,\n \"ask\": 269.36,\n \"bid\": 269.34,\n \"open_price\": 263.48,\n \"high_price\": 269.43,\n \"low_price\": 263.38,\n \"prev_close_price\": 264.58,\n \"volume\": 48234100\n }\n },\n \"trade\": {\n \"s\": \"ok\",\n \"t\": 1771871819,\n \"lp\": 269.35,\n \"v\": 100\n }\n },\n \"timestamp\": 1771871819072\n }\n}","bindings":[],"extensions":[{"id":"x-parser-unique-object-id","value":"quoteTradeEvent"}]}],"bindings":[],"extensions":[{"id":"x-parser-unique-object-id","value":"chartDataStream"}]},{"id":"receiveError","title":"Error Response","description":"Receive error messages from the server","type":"send","messages":[{"id":"errorResponse","contentType":"application/json","payload":[{"name":"Error Response","description":"Error response for subscribe/unsubscribe or auth","type":"object","properties":[{"name":"type","type":"string","description":"The server sets this to `response` in the reply.","enumValues":["response"],"required":false},{"name":"id","type":"string","description":"Request ID from the message that caused this error, if there was one.","required":false},{"name":"payload","type":"object","description":"Error details from the server.","required":false,"properties":[{"name":"action","type":"string","description":"Present only for auth errors (`error` or `authRequired`). Not included in subscribe/unsubscribe errors.","required":false},{"name":"error","type":"string","description":"Human-readable error message.","required":false},{"name":"timestamp","type":"integer","description":"Server time in Unix milliseconds.","required":false}]}]}],"headers":[],"jsonPayloadSchema":{"type":"object","description":"Error or failure response (subscribe/unsubscribe/auth).","properties":{"type":{"type":"string","enum":["response"],"description":"The server sets this to `response` in the reply.","x-parser-schema-id":"\u003canonymous-schema-49>"},"id":{"type":"string","description":"Request ID from the message that caused this error, if there was one.","x-parser-schema-id":"\u003canonymous-schema-50>"},"payload":{"type":"object","description":"Error details from the server.","properties":{"action":{"type":"string","description":"Present only for auth errors (`error` or `authRequired`). Not included in subscribe/unsubscribe errors.","x-parser-schema-id":"\u003canonymous-schema-52>"},"error":{"type":"string","description":"Human-readable error message.","x-parser-schema-id":"\u003canonymous-schema-53>"},"timestamp":{"type":"integer","description":"Server time in Unix milliseconds.","x-parser-schema-id":"\u003canonymous-schema-54>"}},"x-parser-schema-id":"\u003canonymous-schema-51>"}},"x-parser-schema-id":"\u003canonymous-schema-48>"},"title":"Error Response","description":"Error response for subscribe/unsubscribe or auth","example":"{\n \"type\": \"\u003cstring>\",\n \"id\": \"\u003cstring>\",\n \"payload\": {\n \"action\": \"\u003cstring>\",\n \"error\": \"\u003cstring>\",\n \"timestamp\": 123\n }\n}","bindings":[],"extensions":[{"id":"x-parser-unique-object-id","value":"errorResponse"}]}],"bindings":[],"extensions":[{"id":"x-parser-unique-object-id","value":"chartDataStream"}]},{"id":"receiveAuthRequired","title":"Receive Auth Required","description":"Server requests authentication from the client","type":"send","messages":[{"id":"authRequiredResponse","contentType":"application/json","payload":[{"name":"Auth Required Response","description":"Server requests authentication","type":"object","properties":[{"name":"type","type":"string","description":"Top-level message type. Always `response`.","enumValues":["response"],"required":false},{"name":"id","type":"string","description":"Request ID from the related client message, if there was one.","required":false},{"name":"payload","type":"object","description":"Auth-required details.","required":false,"properties":[{"name":"action","type":"string","description":"Always `authRequired` for this message.","enumValues":["authRequired"],"required":false},{"name":"id","type":"string","description":"Request ID from your auth message, if you sent one.","required":false},{"name":"error","type":"string","description":"Human-readable reason (e.g. missing token, timeout).","required":false},{"name":"timestamp","type":"integer","description":"Server time in Unix milliseconds.","required":false}]}]}],"headers":[],"jsonPayloadSchema":{"type":"object","description":"Server indicates the client must authenticate or re-authenticate.","properties":{"type":{"type":"string","enum":["response"],"description":"Top-level message type. Always `response`.","x-parser-schema-id":"\u003canonymous-schema-78>"},"id":{"type":"string","description":"Request ID from the related client message, if there was one.","x-parser-schema-id":"\u003canonymous-schema-79>"},"payload":{"type":"object","description":"Auth-required details.","properties":{"action":{"type":"string","enum":["authRequired"],"description":"Always `authRequired` for this message.","x-parser-schema-id":"\u003canonymous-schema-81>"},"id":{"type":"string","description":"Request ID from your auth message, if you sent one.","x-parser-schema-id":"\u003canonymous-schema-82>"},"error":{"type":"string","description":"Human-readable reason (e.g. missing token, timeout).","x-parser-schema-id":"\u003canonymous-schema-83>"},"timestamp":{"type":"integer","description":"Server time in Unix milliseconds.","x-parser-schema-id":"\u003canonymous-schema-84>"}},"x-parser-schema-id":"\u003canonymous-schema-80>"}},"x-parser-schema-id":"\u003canonymous-schema-77>"},"title":"Auth Required Response","description":"Server requests authentication","example":"{\n \"type\": \"response\",\n \"payload\": {\n \"action\": \"authRequired\",\n \"error\": \"authentication required\",\n \"timestamp\": 1701450000123\n }\n}","bindings":[],"extensions":[{"id":"x-parser-unique-object-id","value":"authRequiredResponse"}]}],"bindings":[],"extensions":[{"id":"x-parser-unique-object-id","value":"chartDataStream"}]},{"id":"receiveAuthSuccess","title":"Receive auth success","description":"Successful authentication response","type":"send","messages":[{"id":"authSuccessResponse","contentType":"application/json","payload":[{"name":"Auth Success Response","description":"Successful authentication response","type":"object","properties":[{"name":"type","type":"string","description":"Top-level message type. Always `response` for this message.","enumValues":["response"],"required":false},{"name":"id","type":"string","description":"Echo of the client `id` from the auth request, if one was sent.","required":false},{"name":"payload","type":"object","description":"Sign-in result, optional sign-in details, and server time.","required":false,"properties":[{"name":"action","type":"string","description":"Outcome of authentication. Always `authSuccess` for this message.","enumValues":["authSuccess"],"required":false},{"name":"id","type":"string","description":"Request ID from your auth message, if you sent one.","required":false},{"name":"data","type":"object","description":"Session details when provided by the server.","required":false,"properties":[{"name":"expiresIn","type":"integer","description":"Suggested sign-in lifetime in milliseconds.","required":false}]},{"name":"timestamp","type":"integer","description":"Server time in Unix milliseconds.","required":false}]}]}],"headers":[],"jsonPayloadSchema":{"type":"object","description":"Server reply sent when authentication succeeds.","properties":{"type":{"type":"string","enum":["response"],"description":"Top-level message type. Always `response` for this message.","x-parser-schema-id":"\u003canonymous-schema-69>"},"id":{"type":"string","description":"Echo of the client `id` from the auth request, if one was sent.","x-parser-schema-id":"\u003canonymous-schema-70>"},"payload":{"type":"object","description":"Sign-in result, optional sign-in details, and server time.","properties":{"action":{"type":"string","enum":["authSuccess"],"description":"Outcome of authentication. Always `authSuccess` for this message.","x-parser-schema-id":"\u003canonymous-schema-72>"},"id":{"type":"string","description":"Request ID from your auth message, if you sent one.","x-parser-schema-id":"\u003canonymous-schema-73>"},"data":{"type":"object","description":"Session details when provided by the server.","properties":{"expiresIn":{"type":"integer","description":"Suggested sign-in lifetime in milliseconds.","x-parser-schema-id":"\u003canonymous-schema-75>"}},"x-parser-schema-id":"\u003canonymous-schema-74>"},"timestamp":{"type":"integer","description":"Server time in Unix milliseconds.","x-parser-schema-id":"\u003canonymous-schema-76>"}},"x-parser-schema-id":"\u003canonymous-schema-71>"}},"x-parser-schema-id":"\u003canonymous-schema-68>"},"title":"Auth Success Response","description":"Successful authentication response","example":"{\n \"type\": \"response\",\n \"id\": \"auth-001\",\n \"payload\": {\n \"action\": \"authSuccess\",\n \"id\": \"auth-001\",\n \"data\": {\n \"expiresIn\": 2700000\n },\n \"timestamp\": 1701450000123\n }\n}","bindings":[],"extensions":[{"id":"x-parser-unique-object-id","value":"authSuccessResponse"}]}],"bindings":[],"extensions":[{"id":"x-parser-unique-object-id","value":"chartDataStream"}]},{"id":"receivePong","title":"Receive pong","description":"Keep-alive pong response to ping","type":"send","messages":[{"id":"pongResponse","contentType":"application/json","payload":[{"name":"Pong Response","description":"Pong reply to ping","type":"object","properties":[{"name":"type","type":"string","description":"Message type. Always `pong` in reply to `ping`.","enumValues":["pong"],"required":false},{"name":"id","type":"string","description":"Echo of the `id` from the client ping, if provided.","required":false},{"name":"timestamp","type":"string","description":"Time when the server sent this `pong`, in RFC3339 format.","required":false}]}],"headers":[],"jsonPayloadSchema":{"type":"object","description":"Reply to a `ping`. This message is flat and does not contain a nested `payload` object.","properties":{"type":{"type":"string","enum":["pong"],"description":"Message type. Always `pong` in reply to `ping`.","x-parser-schema-id":"\u003canonymous-schema-56>"},"id":{"type":"string","description":"Echo of the `id` from the client ping, if provided.","x-parser-schema-id":"\u003canonymous-schema-57>"},"timestamp":{"type":"string","format":"date-time","description":"Time when the server sent this `pong`, in RFC3339 format.","x-parser-schema-id":"\u003canonymous-schema-58>"}},"x-parser-schema-id":"\u003canonymous-schema-55>"},"title":"Pong Response","description":"Pong reply to ping","example":"{\n \"type\": \"\u003cstring>\",\n \"id\": \"\u003cstring>\",\n \"timestamp\": \"\u003cstring>\"\n}","bindings":[],"extensions":[{"id":"x-parser-unique-object-id","value":"pongResponse"}]}],"bindings":[],"extensions":[{"id":"x-parser-unique-object-id","value":"chartDataStream"}]}],"sendOperations":[{"id":"authenticate","title":"Authenticate","description":"Sign in to the WebSocket","type":"receive","messages":[{"id":"authRequest","contentType":"application/json","payload":[{"name":"Sign-in Request","description":"Sign in with access token","type":"object","properties":[{"name":"type","type":"string","description":"Set this to `request` when you authenticate.","enumValues":["request"],"required":true},{"name":"id","type":"string","description":"Optional. Add your own request ID here if you want it returned in the auth reply.","required":false},{"name":"timestamp","type":"string","description":"Optional time when your client created this message, in RFC3339 format.","required":false},{"name":"payload","type":"object","description":"Put the auth request details here.","required":true,"properties":[{"name":"method","type":"string","description":"Use `POST` to send the token for authentication.","enumValues":["POST"],"required":true},{"name":"path","type":"string","description":"Auth endpoint path. Always `/auth`.","enumValues":["/auth"],"required":true},{"name":"body","type":"object","description":"Request body for `/auth`. Put the token directly at `body.token`.","required":true,"properties":[{"name":"token","type":"string","description":"Access token for this WebSocket connection.","required":true}]}]}]}],"headers":[],"jsonPayloadSchema":{"type":"object","description":"Sign-in message. Send this first so the server can check your token.","required":["type","payload"],"properties":{"type":{"type":"string","enum":["request"],"description":"Set this to `request` when you authenticate.","example":"request","x-parser-schema-id":"\u003canonymous-schema-60>"},"id":{"type":"string","description":"Optional. Add your own request ID here if you want it returned in the auth reply.","example":"auth-001","x-parser-schema-id":"\u003canonymous-schema-61>"},"timestamp":{"type":"string","format":"date-time","description":"Optional time when your client created this message, in RFC3339 format.","x-parser-schema-id":"\u003canonymous-schema-62>"},"payload":{"type":"object","description":"Put the auth request details here.","required":["method","path","body"],"properties":{"method":{"type":"string","enum":["POST"],"description":"Use `POST` to send the token for authentication.","example":"POST","x-parser-schema-id":"\u003canonymous-schema-64>"},"path":{"type":"string","enum":["/auth"],"description":"Auth endpoint path. Always `/auth`.","example":"/auth","x-parser-schema-id":"\u003canonymous-schema-65>"},"body":{"type":"object","required":["token"],"description":"Request body for `/auth`. Put the token directly at `body.token`.","properties":{"token":{"type":"string","description":"Access token for this WebSocket connection.","example":"{{user_access_token}}","x-parser-schema-id":"\u003canonymous-schema-67>"}},"example":{"token":"{{user_access_token}}"},"x-parser-schema-id":"\u003canonymous-schema-66>"}},"example":{"method":"POST","path":"/auth","body":{"token":"{{user_access_token}}"}},"x-parser-schema-id":"\u003canonymous-schema-63>"}},"x-parser-schema-id":"\u003canonymous-schema-59>"},"title":"Sign-in Request","description":"Sign in with access token","example":"{\n \"type\": \"request\",\n \"id\": \"auth-001\",\n \"payload\": {\n \"method\": \"POST\",\n \"path\": \"/auth\",\n \"body\": {\n \"token\": \"{{user_access_token}}\"\n }\n }\n}","bindings":[],"extensions":[{"id":"x-parser-unique-object-id","value":"authRequest"}]}],"bindings":[],"extensions":[{"id":"x-parser-unique-object-id","value":"chartDataStream"}]},{"id":"subscribe","title":"Subscribe to symbol","description":"Subscribe to real-time quotes and/or trades for a symbol","type":"receive","messages":[{"id":"subscribeRequest","contentType":"application/json","payload":[{"name":"Subscribe Request","description":"Subscribe to quotes/trades for a symbol","type":"object","properties":[{"name":"type","type":"string","description":"Set this to `subscribe` to start live updates.","enumValues":["subscribe"],"required":true},{"name":"id","type":"string","description":"Optional. Add your own request ID here if you want the server to send it back in related replies.","required":false},{"name":"payload","type":"object","description":"The symbol you want to start receiving updates for.","required":true,"properties":[{"name":"type","type":"string","description":"Optional data mode. Leave this empty to use the default `quotes` mode. `bars` is accepted, but the server currently streams the same `quotes`-shaped quote/trade events for it; it does not emit distinct OHLC bar/candle objects, resolutions, or intervals.","enumValues":["quotes","bars"],"required":false},{"name":"symbol","type":"string","description":"Stock or option symbol to stream. Examples: `AAPL`, `MSFT`, or `AAPL240119C00150000`.","required":true},{"name":"symbolType","type":"string","description":"Optional hint. Currently accepted but ignored by the server; it has no effect on the data returned. You can safely leave this empty.","enumValues":["symbol","option"],"required":false}]}]}],"headers":[],"jsonPayloadSchema":{"type":"object","required":["type","payload"],"properties":{"type":{"type":"string","enum":["subscribe"],"description":"Set this to `subscribe` to start live updates.","example":"subscribe","x-parser-schema-id":"\u003canonymous-schema-2>"},"id":{"type":"string","description":"Optional. Add your own request ID here if you want the server to send it back in related replies.","example":"sub-1","x-parser-schema-id":"\u003canonymous-schema-3>"},"payload":{"type":"object","required":["symbol"],"properties":{"type":{"type":"string","enum":["quotes","bars"],"description":"Optional data mode. Leave this empty to use the default `quotes` mode. `bars` is accepted, but the server currently streams the same `quotes`-shaped quote/trade events for it; it does not emit distinct OHLC bar/candle objects, resolutions, or intervals.","default":"quotes","example":"quotes","x-parser-schema-id":"\u003canonymous-schema-5>"},"symbol":{"type":"string","description":"Stock or option symbol to stream. Examples: `AAPL`, `MSFT`, or `AAPL240119C00150000`.","example":"AAPL","x-parser-schema-id":"\u003canonymous-schema-6>"},"symbolType":{"type":"string","enum":["symbol","option"],"description":"Optional hint. Currently accepted but ignored by the server; it has no effect on the data returned. You can safely leave this empty.","example":"option","x-parser-schema-id":"\u003canonymous-schema-7>"}},"description":"The symbol you want to start receiving updates for.","example":{"type":"quotes","symbol":"AAPL"},"x-parser-schema-id":"\u003canonymous-schema-4>"}},"description":"Use this message to start live chart updates for one symbol.","x-parser-schema-id":"\u003canonymous-schema-1>"},"title":"Subscribe Request","description":"Subscribe to quotes/trades for a symbol","example":"{\n \"type\": \"subscribe\",\n \"id\": \"sub-1\",\n \"payload\": {\n \"type\": \"quotes\",\n \"symbol\": \"AAPL\"\n }\n}","bindings":[],"extensions":[{"id":"x-parser-unique-object-id","value":"subscribeRequest"}]}],"bindings":[],"extensions":[{"id":"x-parser-unique-object-id","value":"chartDataStream"}]},{"id":"unsubscribe","title":"Unsubscribe from symbol","description":"Stop receiving updates for a symbol","type":"receive","messages":[{"id":"unsubscribeRequest","contentType":"application/json","payload":[{"name":"Unsubscribe Request","description":"Unsubscribe from a symbol","type":"object","properties":[{"name":"type","type":"string","description":"Set this to `unsubscribe` to stop live updates.","enumValues":["unsubscribe"],"required":true},{"name":"id","type":"string","description":"Optional. Add your own request ID here if you want the server to send it back in related replies.","required":false},{"name":"payload","type":"object","description":"The symbol you want to stop receiving updates for.","required":true,"properties":[{"name":"type","type":"string","description":"Optional chart data mode. If you send it, use the same value you used when subscribing. The current handler unsubscribes by symbol either way.","enumValues":["quotes","bars"],"required":false},{"name":"symbol","type":"string","description":"Stock or option symbol to stop.","required":true}]}]}],"headers":[],"jsonPayloadSchema":{"type":"object","required":["type","payload"],"properties":{"type":{"type":"string","enum":["unsubscribe"],"description":"Set this to `unsubscribe` to stop live updates.","example":"unsubscribe","x-parser-schema-id":"\u003canonymous-schema-9>"},"id":{"type":"string","description":"Optional. Add your own request ID here if you want the server to send it back in related replies.","example":"unsub-1","x-parser-schema-id":"\u003canonymous-schema-10>"},"payload":{"type":"object","required":["symbol"],"properties":{"type":{"type":"string","enum":["quotes","bars"],"description":"Optional chart data mode. If you send it, use the same value you used when subscribing. The current handler unsubscribes by symbol either way.","example":"quotes","x-parser-schema-id":"\u003canonymous-schema-12>"},"symbol":{"type":"string","description":"Stock or option symbol to stop.","example":"AAPL","x-parser-schema-id":"\u003canonymous-schema-13>"}},"description":"The symbol you want to stop receiving updates for.","example":{"symbol":"AAPL"},"x-parser-schema-id":"\u003canonymous-schema-11>"}},"description":"Use this message to stop live chart updates for one symbol.","x-parser-schema-id":"\u003canonymous-schema-8>"},"title":"Unsubscribe Request","description":"Unsubscribe from a symbol","example":"{\n \"type\": \"unsubscribe\",\n \"id\": \"unsub-1\",\n \"payload\": {\n \"type\": \"quotes\",\n \"symbol\": \"AAPL\"\n }\n}","bindings":[],"extensions":[{"id":"x-parser-unique-object-id","value":"unsubscribeRequest"}]}],"bindings":[],"extensions":[{"id":"x-parser-unique-object-id","value":"chartDataStream"}]},{"id":"ping","title":"Ping","description":"Keep-alive ping","type":"receive","messages":[{"id":"pingRequest","contentType":"application/json","payload":[{"name":"Ping Request","description":"Keep-alive ping","type":"object","properties":[{"name":"type","type":"string","description":"Set this to `ping` to check that the connection is still alive.","enumValues":["ping"],"required":true},{"name":"id","type":"string","description":"Optional. Add your own request ID here if you want it returned in the `pong` reply.","required":false}]}],"headers":[],"jsonPayloadSchema":{"type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["ping"],"description":"Set this to `ping` to check that the connection is still alive.","example":"ping","x-parser-schema-id":"\u003canonymous-schema-15>"},"id":{"type":"string","description":"Optional. Add your own request ID here if you want it returned in the `pong` reply.","example":"ping-001","x-parser-schema-id":"\u003canonymous-schema-16>"}},"description":"Use this message to check that the chart WebSocket is still alive.","x-parser-schema-id":"\u003canonymous-schema-14>"},"title":"Ping Request","description":"Keep-alive ping","example":"{\n \"type\": \"\u003cstring>\",\n \"id\": \"\u003cstring>\"\n}","bindings":[],"extensions":[{"id":"x-parser-unique-object-id","value":"pingRequest"}]}],"bindings":[],"extensions":[{"id":"x-parser-unique-object-id","value":"chartDataStream"}]}],"receiveOperations":[{"id":"receiveEvents","title":"Receive quote/trade events","description":"Receive real-time quote and trade data for subscribed symbols","type":"send","messages":[{"id":"quoteTradeEvent","contentType":"application/json","payload":[{"name":"Quote/Trade Event","description":"Server-pushed quote and/or trade update","type":"object","properties":[{"name":"type","type":"string","description":"The server sets this to `event` for live updates.","enumValues":["event"],"required":false},{"name":"timestamp","type":"string","description":"Time when the server sent this message, in RFC3339 format.","required":false},{"name":"payload","type":"object","description":"Inner fields: data type, symbol, nested quote/trade objects.","required":false,"properties":[{"name":"type","type":"string","description":"Data type for this update.","enumValues":["quotes"],"required":false},{"name":"symbol","type":"string","description":"Symbol this update is for.","required":false},{"name":"data","type":"object","description":"Quote and/or trade objects (TradingView-style fields inside `quote` / `trade`).","required":false,"properties":[{"name":"quote","type":"object","description":"TradingView-format quote snapshot.","required":false,"properties":[{"name":"s","type":"string","description":"Status (e.g. `ok`).","required":false},{"name":"n","type":"string","description":"Symbol name.","required":false},{"name":"v","type":"object","description":"Quote values.","required":false,"properties":[{"name":"ch","type":"number","description":"Price change.","required":false},{"name":"chp","type":"number","description":"Change percent.","required":false},{"name":"short_name","type":"string","description":"Symbol short name.","required":false},{"name":"exchange","type":"string","description":"Exchange.","required":false},{"name":"lp","type":"number","description":"Last price.","required":false},{"name":"ask","type":"number","description":"Ask price.","required":false},{"name":"bid","type":"number","description":"Bid price.","required":false},{"name":"open_price","type":"number","description":"Open price.","required":false},{"name":"high_price","type":"number","description":"High price.","required":false},{"name":"low_price","type":"number","description":"Low price.","required":false},{"name":"prev_close_price","type":"number","description":"Previous close price.","required":false},{"name":"volume","type":"number","description":"Cumulative volume.","required":false}]}]},{"name":"trade","type":"object","description":"Last trade data. Omitted if no recent trade is available.","required":false,"properties":[{"name":"s","type":"string","description":"Status (e.g. `ok`).","required":false},{"name":"t","type":"integer","description":"Trade timestamp (Unix seconds).","required":false},{"name":"lp","type":"number","description":"Last trade price.","required":false},{"name":"v","type":"integer","description":"Trade size.","required":false}]},{"name":"isDelayed","type":"boolean","description":"Indicates whether the data is delayed. The server currently always sends `false` (real-time); `true` is reserved for future use.","required":false}]},{"name":"error","type":"string","description":"Present when the server reports an error for this symbol/update.","required":false},{"name":"timestamp","type":"integer","description":"Event time in Unix milliseconds.","required":false}]}]}],"headers":[],"jsonPayloadSchema":{"type":"object","description":"Server event with the latest chart quote and trade data for one symbol.","properties":{"type":{"type":"string","enum":["event"],"description":"The server sets this to `event` for live updates.","x-parser-schema-id":"\u003canonymous-schema-18>"},"timestamp":{"type":"string","format":"date-time","description":"Time when the server sent this message, in RFC3339 format.","x-parser-schema-id":"\u003canonymous-schema-19>"},"payload":{"type":"object","description":"Inner fields: data type, symbol, nested quote/trade objects.","properties":{"type":{"type":"string","enum":["quotes"],"description":"Data type for this update.","x-parser-schema-id":"\u003canonymous-schema-21>"},"symbol":{"type":"string","description":"Symbol this update is for.","x-parser-schema-id":"\u003canonymous-schema-22>"},"data":{"type":"object","description":"Quote and/or trade objects (TradingView-style fields inside `quote` / `trade`).","properties":{"quote":{"type":"object","description":"TradingView-format quote snapshot.","properties":{"s":{"type":"string","description":"Status (e.g. `ok`).","x-parser-schema-id":"\u003canonymous-schema-25>"},"n":{"type":"string","description":"Symbol name.","x-parser-schema-id":"\u003canonymous-schema-26>"},"v":{"type":"object","description":"Quote values.","properties":{"ch":{"type":"number","description":"Price change.","x-parser-schema-id":"\u003canonymous-schema-28>"},"chp":{"type":"number","description":"Change percent.","x-parser-schema-id":"\u003canonymous-schema-29>"},"short_name":{"type":"string","description":"Symbol short name.","x-parser-schema-id":"\u003canonymous-schema-30>"},"exchange":{"type":"string","description":"Exchange.","x-parser-schema-id":"\u003canonymous-schema-31>"},"lp":{"type":"number","description":"Last price.","x-parser-schema-id":"\u003canonymous-schema-32>"},"ask":{"type":"number","description":"Ask price.","x-parser-schema-id":"\u003canonymous-schema-33>"},"bid":{"type":"number","description":"Bid price.","x-parser-schema-id":"\u003canonymous-schema-34>"},"open_price":{"type":"number","description":"Open price.","x-parser-schema-id":"\u003canonymous-schema-35>"},"high_price":{"type":"number","description":"High price.","x-parser-schema-id":"\u003canonymous-schema-36>"},"low_price":{"type":"number","description":"Low price.","x-parser-schema-id":"\u003canonymous-schema-37>"},"prev_close_price":{"type":"number","description":"Previous close price.","x-parser-schema-id":"\u003canonymous-schema-38>"},"volume":{"type":"number","description":"Cumulative volume.","x-parser-schema-id":"\u003canonymous-schema-39>"}},"x-parser-schema-id":"\u003canonymous-schema-27>"}},"x-parser-schema-id":"\u003canonymous-schema-24>"},"trade":{"type":"object","description":"Last trade data. Omitted if no recent trade is available.","properties":{"s":{"type":"string","description":"Status (e.g. `ok`).","x-parser-schema-id":"\u003canonymous-schema-41>"},"t":{"type":"integer","description":"Trade timestamp (Unix seconds).","x-parser-schema-id":"\u003canonymous-schema-42>"},"lp":{"type":"number","description":"Last trade price.","x-parser-schema-id":"\u003canonymous-schema-43>"},"v":{"type":"integer","description":"Trade size.","x-parser-schema-id":"\u003canonymous-schema-44>"}},"x-parser-schema-id":"\u003canonymous-schema-40>"},"isDelayed":{"type":"boolean","description":"Indicates whether the data is delayed. The server currently always sends `false` (real-time); `true` is reserved for future use.","x-parser-schema-id":"\u003canonymous-schema-45>"}},"x-parser-schema-id":"\u003canonymous-schema-23>"},"error":{"type":"string","description":"Present when the server reports an error for this symbol/update.","x-parser-schema-id":"\u003canonymous-schema-46>"},"timestamp":{"type":"integer","description":"Event time in Unix milliseconds.","x-parser-schema-id":"\u003canonymous-schema-47>"}},"x-parser-schema-id":"\u003canonymous-schema-20>"}},"x-parser-schema-id":"\u003canonymous-schema-17>"},"title":"Quote/Trade Event","description":"Server-pushed quote and/or trade update","example":"{\n \"type\": \"event\",\n \"timestamp\": \"2026-02-23T18:36:59Z\",\n \"payload\": {\n \"type\": \"quotes\",\n \"symbol\": \"AAPL\",\n \"data\": {\n \"isDelayed\": false,\n \"quote\": {\n \"s\": \"ok\",\n \"n\": \"AAPL\",\n \"v\": {\n \"ch\": 4.77,\n \"chp\": 1.8,\n \"short_name\": \"AAPL\",\n \"exchange\": \"NASDAQ\",\n \"lp\": 269.35,\n \"ask\": 269.36,\n \"bid\": 269.34,\n \"open_price\": 263.48,\n \"high_price\": 269.43,\n \"low_price\": 263.38,\n \"prev_close_price\": 264.58,\n \"volume\": 48234100\n }\n },\n \"trade\": {\n \"s\": \"ok\",\n \"t\": 1771871819,\n \"lp\": 269.35,\n \"v\": 100\n }\n },\n \"timestamp\": 1771871819072\n }\n}","bindings":[],"extensions":[{"id":"x-parser-unique-object-id","value":"quoteTradeEvent"}]}],"bindings":[],"extensions":[{"id":"x-parser-unique-object-id","value":"chartDataStream"}]},{"id":"receiveError","title":"Error Response","description":"Receive error messages from the server","type":"send","messages":[{"id":"errorResponse","contentType":"application/json","payload":[{"name":"Error Response","description":"Error response for subscribe/unsubscribe or auth","type":"object","properties":[{"name":"type","type":"string","description":"The server sets this to `response` in the reply.","enumValues":["response"],"required":false},{"name":"id","type":"string","description":"Request ID from the message that caused this error, if there was one.","required":false},{"name":"payload","type":"object","description":"Error details from the server.","required":false,"properties":[{"name":"action","type":"string","description":"Present only for auth errors (`error` or `authRequired`). Not included in subscribe/unsubscribe errors.","required":false},{"name":"error","type":"string","description":"Human-readable error message.","required":false},{"name":"timestamp","type":"integer","description":"Server time in Unix milliseconds.","required":false}]}]}],"headers":[],"jsonPayloadSchema":{"type":"object","description":"Error or failure response (subscribe/unsubscribe/auth).","properties":{"type":{"type":"string","enum":["response"],"description":"The server sets this to `response` in the reply.","x-parser-schema-id":"\u003canonymous-schema-49>"},"id":{"type":"string","description":"Request ID from the message that caused this error, if there was one.","x-parser-schema-id":"\u003canonymous-schema-50>"},"payload":{"type":"object","description":"Error details from the server.","properties":{"action":{"type":"string","description":"Present only for auth errors (`error` or `authRequired`). Not included in subscribe/unsubscribe errors.","x-parser-schema-id":"\u003canonymous-schema-52>"},"error":{"type":"string","description":"Human-readable error message.","x-parser-schema-id":"\u003canonymous-schema-53>"},"timestamp":{"type":"integer","description":"Server time in Unix milliseconds.","x-parser-schema-id":"\u003canonymous-schema-54>"}},"x-parser-schema-id":"\u003canonymous-schema-51>"}},"x-parser-schema-id":"\u003canonymous-schema-48>"},"title":"Error Response","description":"Error response for subscribe/unsubscribe or auth","example":"{\n \"type\": \"\u003cstring>\",\n \"id\": \"\u003cstring>\",\n \"payload\": {\n \"action\": \"\u003cstring>\",\n \"error\": \"\u003cstring>\",\n \"timestamp\": 123\n }\n}","bindings":[],"extensions":[{"id":"x-parser-unique-object-id","value":"errorResponse"}]}],"bindings":[],"extensions":[{"id":"x-parser-unique-object-id","value":"chartDataStream"}]},{"id":"receiveAuthRequired","title":"Receive Auth Required","description":"Server requests authentication from the client","type":"send","messages":[{"id":"authRequiredResponse","contentType":"application/json","payload":[{"name":"Auth Required Response","description":"Server requests authentication","type":"object","properties":[{"name":"type","type":"string","description":"Top-level message type. Always `response`.","enumValues":["response"],"required":false},{"name":"id","type":"string","description":"Request ID from the related client message, if there was one.","required":false},{"name":"payload","type":"object","description":"Auth-required details.","required":false,"properties":[{"name":"action","type":"string","description":"Always `authRequired` for this message.","enumValues":["authRequired"],"required":false},{"name":"id","type":"string","description":"Request ID from your auth message, if you sent one.","required":false},{"name":"error","type":"string","description":"Human-readable reason (e.g. missing token, timeout).","required":false},{"name":"timestamp","type":"integer","description":"Server time in Unix milliseconds.","required":false}]}]}],"headers":[],"jsonPayloadSchema":{"type":"object","description":"Server indicates the client must authenticate or re-authenticate.","properties":{"type":{"type":"string","enum":["response"],"description":"Top-level message type. Always `response`.","x-parser-schema-id":"\u003canonymous-schema-78>"},"id":{"type":"string","description":"Request ID from the related client message, if there was one.","x-parser-schema-id":"\u003canonymous-schema-79>"},"payload":{"type":"object","description":"Auth-required details.","properties":{"action":{"type":"string","enum":["authRequired"],"description":"Always `authRequired` for this message.","x-parser-schema-id":"\u003canonymous-schema-81>"},"id":{"type":"string","description":"Request ID from your auth message, if you sent one.","x-parser-schema-id":"\u003canonymous-schema-82>"},"error":{"type":"string","description":"Human-readable reason (e.g. missing token, timeout).","x-parser-schema-id":"\u003canonymous-schema-83>"},"timestamp":{"type":"integer","description":"Server time in Unix milliseconds.","x-parser-schema-id":"\u003canonymous-schema-84>"}},"x-parser-schema-id":"\u003canonymous-schema-80>"}},"x-parser-schema-id":"\u003canonymous-schema-77>"},"title":"Auth Required Response","description":"Server requests authentication","example":"{\n \"type\": \"response\",\n \"payload\": {\n \"action\": \"authRequired\",\n \"error\": \"authentication required\",\n \"timestamp\": 1701450000123\n }\n}","bindings":[],"extensions":[{"id":"x-parser-unique-object-id","value":"authRequiredResponse"}]}],"bindings":[],"extensions":[{"id":"x-parser-unique-object-id","value":"chartDataStream"}]},{"id":"receiveAuthSuccess","title":"Receive auth success","description":"Successful authentication response","type":"send","messages":[{"id":"authSuccessResponse","contentType":"application/json","payload":[{"name":"Auth Success Response","description":"Successful authentication response","type":"object","properties":[{"name":"type","type":"string","description":"Top-level message type. Always `response` for this message.","enumValues":["response"],"required":false},{"name":"id","type":"string","description":"Echo of the client `id` from the auth request, if one was sent.","required":false},{"name":"payload","type":"object","description":"Sign-in result, optional sign-in details, and server time.","required":false,"properties":[{"name":"action","type":"string","description":"Outcome of authentication. Always `authSuccess` for this message.","enumValues":["authSuccess"],"required":false},{"name":"id","type":"string","description":"Request ID from your auth message, if you sent one.","required":false},{"name":"data","type":"object","description":"Session details when provided by the server.","required":false,"properties":[{"name":"expiresIn","type":"integer","description":"Suggested sign-in lifetime in milliseconds.","required":false}]},{"name":"timestamp","type":"integer","description":"Server time in Unix milliseconds.","required":false}]}]}],"headers":[],"jsonPayloadSchema":{"type":"object","description":"Server reply sent when authentication succeeds.","properties":{"type":{"type":"string","enum":["response"],"description":"Top-level message type. Always `response` for this message.","x-parser-schema-id":"\u003canonymous-schema-69>"},"id":{"type":"string","description":"Echo of the client `id` from the auth request, if one was sent.","x-parser-schema-id":"\u003canonymous-schema-70>"},"payload":{"type":"object","description":"Sign-in result, optional sign-in details, and server time.","properties":{"action":{"type":"string","enum":["authSuccess"],"description":"Outcome of authentication. Always `authSuccess` for this message.","x-parser-schema-id":"\u003canonymous-schema-72>"},"id":{"type":"string","description":"Request ID from your auth message, if you sent one.","x-parser-schema-id":"\u003canonymous-schema-73>"},"data":{"type":"object","description":"Session details when provided by the server.","properties":{"expiresIn":{"type":"integer","description":"Suggested sign-in lifetime in milliseconds.","x-parser-schema-id":"\u003canonymous-schema-75>"}},"x-parser-schema-id":"\u003canonymous-schema-74>"},"timestamp":{"type":"integer","description":"Server time in Unix milliseconds.","x-parser-schema-id":"\u003canonymous-schema-76>"}},"x-parser-schema-id":"\u003canonymous-schema-71>"}},"x-parser-schema-id":"\u003canonymous-schema-68>"},"title":"Auth Success Response","description":"Successful authentication response","example":"{\n \"type\": \"response\",\n \"id\": \"auth-001\",\n \"payload\": {\n \"action\": \"authSuccess\",\n \"id\": \"auth-001\",\n \"data\": {\n \"expiresIn\": 2700000\n },\n \"timestamp\": 1701450000123\n }\n}","bindings":[],"extensions":[{"id":"x-parser-unique-object-id","value":"authSuccessResponse"}]}],"bindings":[],"extensions":[{"id":"x-parser-unique-object-id","value":"chartDataStream"}]},{"id":"receivePong","title":"Receive pong","description":"Keep-alive pong response to ping","type":"send","messages":[{"id":"pongResponse","contentType":"application/json","payload":[{"name":"Pong Response","description":"Pong reply to ping","type":"object","properties":[{"name":"type","type":"string","description":"Message type. Always `pong` in reply to `ping`.","enumValues":["pong"],"required":false},{"name":"id","type":"string","description":"Echo of the `id` from the client ping, if provided.","required":false},{"name":"timestamp","type":"string","description":"Time when the server sent this `pong`, in RFC3339 format.","required":false}]}],"headers":[],"jsonPayloadSchema":{"type":"object","description":"Reply to a `ping`. This message is flat and does not contain a nested `payload` object.","properties":{"type":{"type":"string","enum":["pong"],"description":"Message type. Always `pong` in reply to `ping`.","x-parser-schema-id":"\u003canonymous-schema-56>"},"id":{"type":"string","description":"Echo of the `id` from the client ping, if provided.","x-parser-schema-id":"\u003canonymous-schema-57>"},"timestamp":{"type":"string","format":"date-time","description":"Time when the server sent this `pong`, in RFC3339 format.","x-parser-schema-id":"\u003canonymous-schema-58>"}},"x-parser-schema-id":"\u003canonymous-schema-55>"},"title":"Pong Response","description":"Pong reply to ping","example":"{\n \"type\": \"\u003cstring>\",\n \"id\": \"\u003cstring>\",\n \"timestamp\": \"\u003cstring>\"\n}","bindings":[],"extensions":[{"id":"x-parser-unique-object-id","value":"pongResponse"}]}],"bindings":[],"extensions":[{"id":"x-parser-unique-object-id","value":"chartDataStream"}]}],"sendMessages":[{"id":"authRequest","contentType":"application/json","payload":[{"name":"Sign-in Request","description":"Sign in with access token","type":"object","properties":[{"name":"type","type":"string","description":"Set this to `request` when you authenticate.","enumValues":["request"],"required":true},{"name":"id","type":"string","description":"Optional. Add your own request ID here if you want it returned in the auth reply.","required":false},{"name":"timestamp","type":"string","description":"Optional time when your client created this message, in RFC3339 format.","required":false},{"name":"payload","type":"object","description":"Put the auth request details here.","required":true,"properties":[{"name":"method","type":"string","description":"Use `POST` to send the token for authentication.","enumValues":["POST"],"required":true},{"name":"path","type":"string","description":"Auth endpoint path. Always `/auth`.","enumValues":["/auth"],"required":true},{"name":"body","type":"object","description":"Request body for `/auth`. Put the token directly at `body.token`.","required":true,"properties":[{"name":"token","type":"string","description":"Access token for this WebSocket connection.","required":true}]}]}]}],"headers":[],"jsonPayloadSchema":{"type":"object","description":"Sign-in message. Send this first so the server can check your token.","required":["type","payload"],"properties":{"type":{"type":"string","enum":["request"],"description":"Set this to `request` when you authenticate.","example":"request","x-parser-schema-id":"\u003canonymous-schema-60>"},"id":{"type":"string","description":"Optional. Add your own request ID here if you want it returned in the auth reply.","example":"auth-001","x-parser-schema-id":"\u003canonymous-schema-61>"},"timestamp":{"type":"string","format":"date-time","description":"Optional time when your client created this message, in RFC3339 format.","x-parser-schema-id":"\u003canonymous-schema-62>"},"payload":{"type":"object","description":"Put the auth request details here.","required":["method","path","body"],"properties":{"method":{"type":"string","enum":["POST"],"description":"Use `POST` to send the token for authentication.","example":"POST","x-parser-schema-id":"\u003canonymous-schema-64>"},"path":{"type":"string","enum":["/auth"],"description":"Auth endpoint path. Always `/auth`.","example":"/auth","x-parser-schema-id":"\u003canonymous-schema-65>"},"body":{"type":"object","required":["token"],"description":"Request body for `/auth`. Put the token directly at `body.token`.","properties":{"token":{"type":"string","description":"Access token for this WebSocket connection.","example":"{{user_access_token}}","x-parser-schema-id":"\u003canonymous-schema-67>"}},"example":{"token":"{{user_access_token}}"},"x-parser-schema-id":"\u003canonymous-schema-66>"}},"example":{"method":"POST","path":"/auth","body":{"token":"{{user_access_token}}"}},"x-parser-schema-id":"\u003canonymous-schema-63>"}},"x-parser-schema-id":"\u003canonymous-schema-59>"},"title":"Sign-in Request","description":"Sign in with access token","example":"{\n \"type\": \"request\",\n \"id\": \"auth-001\",\n \"payload\": {\n \"method\": \"POST\",\n \"path\": \"/auth\",\n \"body\": {\n \"token\": \"{{user_access_token}}\"\n }\n }\n}","bindings":[],"extensions":[{"id":"x-parser-unique-object-id","value":"authRequest"}]},{"id":"subscribeRequest","contentType":"application/json","payload":[{"name":"Subscribe Request","description":"Subscribe to quotes/trades for a symbol","type":"object","properties":[{"name":"type","type":"string","description":"Set this to `subscribe` to start live updates.","enumValues":["subscribe"],"required":true},{"name":"id","type":"string","description":"Optional. Add your own request ID here if you want the server to send it back in related replies.","required":false},{"name":"payload","type":"object","description":"The symbol you want to start receiving updates for.","required":true,"properties":[{"name":"type","type":"string","description":"Optional data mode. Leave this empty to use the default `quotes` mode. `bars` is accepted, but the server currently streams the same `quotes`-shaped quote/trade events for it; it does not emit distinct OHLC bar/candle objects, resolutions, or intervals.","enumValues":["quotes","bars"],"required":false},{"name":"symbol","type":"string","description":"Stock or option symbol to stream. Examples: `AAPL`, `MSFT`, or `AAPL240119C00150000`.","required":true},{"name":"symbolType","type":"string","description":"Optional hint. Currently accepted but ignored by the server; it has no effect on the data returned. You can safely leave this empty.","enumValues":["symbol","option"],"required":false}]}]}],"headers":[],"jsonPayloadSchema":{"type":"object","required":["type","payload"],"properties":{"type":{"type":"string","enum":["subscribe"],"description":"Set this to `subscribe` to start live updates.","example":"subscribe","x-parser-schema-id":"\u003canonymous-schema-2>"},"id":{"type":"string","description":"Optional. Add your own request ID here if you want the server to send it back in related replies.","example":"sub-1","x-parser-schema-id":"\u003canonymous-schema-3>"},"payload":{"type":"object","required":["symbol"],"properties":{"type":{"type":"string","enum":["quotes","bars"],"description":"Optional data mode. Leave this empty to use the default `quotes` mode. `bars` is accepted, but the server currently streams the same `quotes`-shaped quote/trade events for it; it does not emit distinct OHLC bar/candle objects, resolutions, or intervals.","default":"quotes","example":"quotes","x-parser-schema-id":"\u003canonymous-schema-5>"},"symbol":{"type":"string","description":"Stock or option symbol to stream. Examples: `AAPL`, `MSFT`, or `AAPL240119C00150000`.","example":"AAPL","x-parser-schema-id":"\u003canonymous-schema-6>"},"symbolType":{"type":"string","enum":["symbol","option"],"description":"Optional hint. Currently accepted but ignored by the server; it has no effect on the data returned. You can safely leave this empty.","example":"option","x-parser-schema-id":"\u003canonymous-schema-7>"}},"description":"The symbol you want to start receiving updates for.","example":{"type":"quotes","symbol":"AAPL"},"x-parser-schema-id":"\u003canonymous-schema-4>"}},"description":"Use this message to start live chart updates for one symbol.","x-parser-schema-id":"\u003canonymous-schema-1>"},"title":"Subscribe Request","description":"Subscribe to quotes/trades for a symbol","example":"{\n \"type\": \"subscribe\",\n \"id\": \"sub-1\",\n \"payload\": {\n \"type\": \"quotes\",\n \"symbol\": \"AAPL\"\n }\n}","bindings":[],"extensions":[{"id":"x-parser-unique-object-id","value":"subscribeRequest"}]},{"id":"unsubscribeRequest","contentType":"application/json","payload":[{"name":"Unsubscribe Request","description":"Unsubscribe from a symbol","type":"object","properties":[{"name":"type","type":"string","description":"Set this to `unsubscribe` to stop live updates.","enumValues":["unsubscribe"],"required":true},{"name":"id","type":"string","description":"Optional. Add your own request ID here if you want the server to send it back in related replies.","required":false},{"name":"payload","type":"object","description":"The symbol you want to stop receiving updates for.","required":true,"properties":[{"name":"type","type":"string","description":"Optional chart data mode. If you send it, use the same value you used when subscribing. The current handler unsubscribes by symbol either way.","enumValues":["quotes","bars"],"required":false},{"name":"symbol","type":"string","description":"Stock or option symbol to stop.","required":true}]}]}],"headers":[],"jsonPayloadSchema":{"type":"object","required":["type","payload"],"properties":{"type":{"type":"string","enum":["unsubscribe"],"description":"Set this to `unsubscribe` to stop live updates.","example":"unsubscribe","x-parser-schema-id":"\u003canonymous-schema-9>"},"id":{"type":"string","description":"Optional. Add your own request ID here if you want the server to send it back in related replies.","example":"unsub-1","x-parser-schema-id":"\u003canonymous-schema-10>"},"payload":{"type":"object","required":["symbol"],"properties":{"type":{"type":"string","enum":["quotes","bars"],"description":"Optional chart data mode. If you send it, use the same value you used when subscribing. The current handler unsubscribes by symbol either way.","example":"quotes","x-parser-schema-id":"\u003canonymous-schema-12>"},"symbol":{"type":"string","description":"Stock or option symbol to stop.","example":"AAPL","x-parser-schema-id":"\u003canonymous-schema-13>"}},"description":"The symbol you want to stop receiving updates for.","example":{"symbol":"AAPL"},"x-parser-schema-id":"\u003canonymous-schema-11>"}},"description":"Use this message to stop live chart updates for one symbol.","x-parser-schema-id":"\u003canonymous-schema-8>"},"title":"Unsubscribe Request","description":"Unsubscribe from a symbol","example":"{\n \"type\": \"unsubscribe\",\n \"id\": \"unsub-1\",\n \"payload\": {\n \"type\": \"quotes\",\n \"symbol\": \"AAPL\"\n }\n}","bindings":[],"extensions":[{"id":"x-parser-unique-object-id","value":"unsubscribeRequest"}]},{"id":"pingRequest","contentType":"application/json","payload":[{"name":"Ping Request","description":"Keep-alive ping","type":"object","properties":[{"name":"type","type":"string","description":"Set this to `ping` to check that the connection is still alive.","enumValues":["ping"],"required":true},{"name":"id","type":"string","description":"Optional. Add your own request ID here if you want it returned in the `pong` reply.","required":false}]}],"headers":[],"jsonPayloadSchema":{"type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["ping"],"description":"Set this to `ping` to check that the connection is still alive.","example":"ping","x-parser-schema-id":"\u003canonymous-schema-15>"},"id":{"type":"string","description":"Optional. Add your own request ID here if you want it returned in the `pong` reply.","example":"ping-001","x-parser-schema-id":"\u003canonymous-schema-16>"}},"description":"Use this message to check that the chart WebSocket is still alive.","x-parser-schema-id":"\u003canonymous-schema-14>"},"title":"Ping Request","description":"Keep-alive ping","example":"{\n \"type\": \"\u003cstring>\",\n \"id\": \"\u003cstring>\"\n}","bindings":[],"extensions":[{"id":"x-parser-unique-object-id","value":"pingRequest"}]}],"receiveMessages":[{"id":"quoteTradeEvent","contentType":"application/json","payload":[{"name":"Quote/Trade Event","description":"Server-pushed quote and/or trade update","type":"object","properties":[{"name":"type","type":"string","description":"The server sets this to `event` for live updates.","enumValues":["event"],"required":false},{"name":"timestamp","type":"string","description":"Time when the server sent this message, in RFC3339 format.","required":false},{"name":"payload","type":"object","description":"Inner fields: data type, symbol, nested quote/trade objects.","required":false,"properties":[{"name":"type","type":"string","description":"Data type for this update.","enumValues":["quotes"],"required":false},{"name":"symbol","type":"string","description":"Symbol this update is for.","required":false},{"name":"data","type":"object","description":"Quote and/or trade objects (TradingView-style fields inside `quote` / `trade`).","required":false,"properties":[{"name":"quote","type":"object","description":"TradingView-format quote snapshot.","required":false,"properties":[{"name":"s","type":"string","description":"Status (e.g. `ok`).","required":false},{"name":"n","type":"string","description":"Symbol name.","required":false},{"name":"v","type":"object","description":"Quote values.","required":false,"properties":[{"name":"ch","type":"number","description":"Price change.","required":false},{"name":"chp","type":"number","description":"Change percent.","required":false},{"name":"short_name","type":"string","description":"Symbol short name.","required":false},{"name":"exchange","type":"string","description":"Exchange.","required":false},{"name":"lp","type":"number","description":"Last price.","required":false},{"name":"ask","type":"number","description":"Ask price.","required":false},{"name":"bid","type":"number","description":"Bid price.","required":false},{"name":"open_price","type":"number","description":"Open price.","required":false},{"name":"high_price","type":"number","description":"High price.","required":false},{"name":"low_price","type":"number","description":"Low price.","required":false},{"name":"prev_close_price","type":"number","description":"Previous close price.","required":false},{"name":"volume","type":"number","description":"Cumulative volume.","required":false}]}]},{"name":"trade","type":"object","description":"Last trade data. Omitted if no recent trade is available.","required":false,"properties":[{"name":"s","type":"string","description":"Status (e.g. `ok`).","required":false},{"name":"t","type":"integer","description":"Trade timestamp (Unix seconds).","required":false},{"name":"lp","type":"number","description":"Last trade price.","required":false},{"name":"v","type":"integer","description":"Trade size.","required":false}]},{"name":"isDelayed","type":"boolean","description":"Indicates whether the data is delayed. The server currently always sends `false` (real-time); `true` is reserved for future use.","required":false}]},{"name":"error","type":"string","description":"Present when the server reports an error for this symbol/update.","required":false},{"name":"timestamp","type":"integer","description":"Event time in Unix milliseconds.","required":false}]}]}],"headers":[],"jsonPayloadSchema":{"type":"object","description":"Server event with the latest chart quote and trade data for one symbol.","properties":{"type":{"type":"string","enum":["event"],"description":"The server sets this to `event` for live updates.","x-parser-schema-id":"\u003canonymous-schema-18>"},"timestamp":{"type":"string","format":"date-time","description":"Time when the server sent this message, in RFC3339 format.","x-parser-schema-id":"\u003canonymous-schema-19>"},"payload":{"type":"object","description":"Inner fields: data type, symbol, nested quote/trade objects.","properties":{"type":{"type":"string","enum":["quotes"],"description":"Data type for this update.","x-parser-schema-id":"\u003canonymous-schema-21>"},"symbol":{"type":"string","description":"Symbol this update is for.","x-parser-schema-id":"\u003canonymous-schema-22>"},"data":{"type":"object","description":"Quote and/or trade objects (TradingView-style fields inside `quote` / `trade`).","properties":{"quote":{"type":"object","description":"TradingView-format quote snapshot.","properties":{"s":{"type":"string","description":"Status (e.g. `ok`).","x-parser-schema-id":"\u003canonymous-schema-25>"},"n":{"type":"string","description":"Symbol name.","x-parser-schema-id":"\u003canonymous-schema-26>"},"v":{"type":"object","description":"Quote values.","properties":{"ch":{"type":"number","description":"Price change.","x-parser-schema-id":"\u003canonymous-schema-28>"},"chp":{"type":"number","description":"Change percent.","x-parser-schema-id":"\u003canonymous-schema-29>"},"short_name":{"type":"string","description":"Symbol short name.","x-parser-schema-id":"\u003canonymous-schema-30>"},"exchange":{"type":"string","description":"Exchange.","x-parser-schema-id":"\u003canonymous-schema-31>"},"lp":{"type":"number","description":"Last price.","x-parser-schema-id":"\u003canonymous-schema-32>"},"ask":{"type":"number","description":"Ask price.","x-parser-schema-id":"\u003canonymous-schema-33>"},"bid":{"type":"number","description":"Bid price.","x-parser-schema-id":"\u003canonymous-schema-34>"},"open_price":{"type":"number","description":"Open price.","x-parser-schema-id":"\u003canonymous-schema-35>"},"high_price":{"type":"number","description":"High price.","x-parser-schema-id":"\u003canonymous-schema-36>"},"low_price":{"type":"number","description":"Low price.","x-parser-schema-id":"\u003canonymous-schema-37>"},"prev_close_price":{"type":"number","description":"Previous close price.","x-parser-schema-id":"\u003canonymous-schema-38>"},"volume":{"type":"number","description":"Cumulative volume.","x-parser-schema-id":"\u003canonymous-schema-39>"}},"x-parser-schema-id":"\u003canonymous-schema-27>"}},"x-parser-schema-id":"\u003canonymous-schema-24>"},"trade":{"type":"object","description":"Last trade data. Omitted if no recent trade is available.","properties":{"s":{"type":"string","description":"Status (e.g. `ok`).","x-parser-schema-id":"\u003canonymous-schema-41>"},"t":{"type":"integer","description":"Trade timestamp (Unix seconds).","x-parser-schema-id":"\u003canonymous-schema-42>"},"lp":{"type":"number","description":"Last trade price.","x-parser-schema-id":"\u003canonymous-schema-43>"},"v":{"type":"integer","description":"Trade size.","x-parser-schema-id":"\u003canonymous-schema-44>"}},"x-parser-schema-id":"\u003canonymous-schema-40>"},"isDelayed":{"type":"boolean","description":"Indicates whether the data is delayed. The server currently always sends `false` (real-time); `true` is reserved for future use.","x-parser-schema-id":"\u003canonymous-schema-45>"}},"x-parser-schema-id":"\u003canonymous-schema-23>"},"error":{"type":"string","description":"Present when the server reports an error for this symbol/update.","x-parser-schema-id":"\u003canonymous-schema-46>"},"timestamp":{"type":"integer","description":"Event time in Unix milliseconds.","x-parser-schema-id":"\u003canonymous-schema-47>"}},"x-parser-schema-id":"\u003canonymous-schema-20>"}},"x-parser-schema-id":"\u003canonymous-schema-17>"},"title":"Quote/Trade Event","description":"Server-pushed quote and/or trade update","example":"{\n \"type\": \"event\",\n \"timestamp\": \"2026-02-23T18:36:59Z\",\n \"payload\": {\n \"type\": \"quotes\",\n \"symbol\": \"AAPL\",\n \"data\": {\n \"isDelayed\": false,\n \"quote\": {\n \"s\": \"ok\",\n \"n\": \"AAPL\",\n \"v\": {\n \"ch\": 4.77,\n \"chp\": 1.8,\n \"short_name\": \"AAPL\",\n \"exchange\": \"NASDAQ\",\n \"lp\": 269.35,\n \"ask\": 269.36,\n \"bid\": 269.34,\n \"open_price\": 263.48,\n \"high_price\": 269.43,\n \"low_price\": 263.38,\n \"prev_close_price\": 264.58,\n \"volume\": 48234100\n }\n },\n \"trade\": {\n \"s\": \"ok\",\n \"t\": 1771871819,\n \"lp\": 269.35,\n \"v\": 100\n }\n },\n \"timestamp\": 1771871819072\n }\n}","bindings":[],"extensions":[{"id":"x-parser-unique-object-id","value":"quoteTradeEvent"}]},{"id":"errorResponse","contentType":"application/json","payload":[{"name":"Error Response","description":"Error response for subscribe/unsubscribe or auth","type":"object","properties":[{"name":"type","type":"string","description":"The server sets this to `response` in the reply.","enumValues":["response"],"required":false},{"name":"id","type":"string","description":"Request ID from the message that caused this error, if there was one.","required":false},{"name":"payload","type":"object","description":"Error details from the server.","required":false,"properties":[{"name":"action","type":"string","description":"Present only for auth errors (`error` or `authRequired`). Not included in subscribe/unsubscribe errors.","required":false},{"name":"error","type":"string","description":"Human-readable error message.","required":false},{"name":"timestamp","type":"integer","description":"Server time in Unix milliseconds.","required":false}]}]}],"headers":[],"jsonPayloadSchema":{"type":"object","description":"Error or failure response (subscribe/unsubscribe/auth).","properties":{"type":{"type":"string","enum":["response"],"description":"The server sets this to `response` in the reply.","x-parser-schema-id":"\u003canonymous-schema-49>"},"id":{"type":"string","description":"Request ID from the message that caused this error, if there was one.","x-parser-schema-id":"\u003canonymous-schema-50>"},"payload":{"type":"object","description":"Error details from the server.","properties":{"action":{"type":"string","description":"Present only for auth errors (`error` or `authRequired`). Not included in subscribe/unsubscribe errors.","x-parser-schema-id":"\u003canonymous-schema-52>"},"error":{"type":"string","description":"Human-readable error message.","x-parser-schema-id":"\u003canonymous-schema-53>"},"timestamp":{"type":"integer","description":"Server time in Unix milliseconds.","x-parser-schema-id":"\u003canonymous-schema-54>"}},"x-parser-schema-id":"\u003canonymous-schema-51>"}},"x-parser-schema-id":"\u003canonymous-schema-48>"},"title":"Error Response","description":"Error response for subscribe/unsubscribe or auth","example":"{\n \"type\": \"\u003cstring>\",\n \"id\": \"\u003cstring>\",\n \"payload\": {\n \"action\": \"\u003cstring>\",\n \"error\": \"\u003cstring>\",\n \"timestamp\": 123\n }\n}","bindings":[],"extensions":[{"id":"x-parser-unique-object-id","value":"errorResponse"}]},{"id":"authRequiredResponse","contentType":"application/json","payload":[{"name":"Auth Required Response","description":"Server requests authentication","type":"object","properties":[{"name":"type","type":"string","description":"Top-level message type. Always `response`.","enumValues":["response"],"required":false},{"name":"id","type":"string","description":"Request ID from the related client message, if there was one.","required":false},{"name":"payload","type":"object","description":"Auth-required details.","required":false,"properties":[{"name":"action","type":"string","description":"Always `authRequired` for this message.","enumValues":["authRequired"],"required":false},{"name":"id","type":"string","description":"Request ID from your auth message, if you sent one.","required":false},{"name":"error","type":"string","description":"Human-readable reason (e.g. missing token, timeout).","required":false},{"name":"timestamp","type":"integer","description":"Server time in Unix milliseconds.","required":false}]}]}],"headers":[],"jsonPayloadSchema":{"type":"object","description":"Server indicates the client must authenticate or re-authenticate.","properties":{"type":{"type":"string","enum":["response"],"description":"Top-level message type. Always `response`.","x-parser-schema-id":"\u003canonymous-schema-78>"},"id":{"type":"string","description":"Request ID from the related client message, if there was one.","x-parser-schema-id":"\u003canonymous-schema-79>"},"payload":{"type":"object","description":"Auth-required details.","properties":{"action":{"type":"string","enum":["authRequired"],"description":"Always `authRequired` for this message.","x-parser-schema-id":"\u003canonymous-schema-81>"},"id":{"type":"string","description":"Request ID from your auth message, if you sent one.","x-parser-schema-id":"\u003canonymous-schema-82>"},"error":{"type":"string","description":"Human-readable reason (e.g. missing token, timeout).","x-parser-schema-id":"\u003canonymous-schema-83>"},"timestamp":{"type":"integer","description":"Server time in Unix milliseconds.","x-parser-schema-id":"\u003canonymous-schema-84>"}},"x-parser-schema-id":"\u003canonymous-schema-80>"}},"x-parser-schema-id":"\u003canonymous-schema-77>"},"title":"Auth Required Response","description":"Server requests authentication","example":"{\n \"type\": \"response\",\n \"payload\": {\n \"action\": \"authRequired\",\n \"error\": \"authentication required\",\n \"timestamp\": 1701450000123\n }\n}","bindings":[],"extensions":[{"id":"x-parser-unique-object-id","value":"authRequiredResponse"}]},{"id":"authSuccessResponse","contentType":"application/json","payload":[{"name":"Auth Success Response","description":"Successful authentication response","type":"object","properties":[{"name":"type","type":"string","description":"Top-level message type. Always `response` for this message.","enumValues":["response"],"required":false},{"name":"id","type":"string","description":"Echo of the client `id` from the auth request, if one was sent.","required":false},{"name":"payload","type":"object","description":"Sign-in result, optional sign-in details, and server time.","required":false,"properties":[{"name":"action","type":"string","description":"Outcome of authentication. Always `authSuccess` for this message.","enumValues":["authSuccess"],"required":false},{"name":"id","type":"string","description":"Request ID from your auth message, if you sent one.","required":false},{"name":"data","type":"object","description":"Session details when provided by the server.","required":false,"properties":[{"name":"expiresIn","type":"integer","description":"Suggested sign-in lifetime in milliseconds.","required":false}]},{"name":"timestamp","type":"integer","description":"Server time in Unix milliseconds.","required":false}]}]}],"headers":[],"jsonPayloadSchema":{"type":"object","description":"Server reply sent when authentication succeeds.","properties":{"type":{"type":"string","enum":["response"],"description":"Top-level message type. Always `response` for this message.","x-parser-schema-id":"\u003canonymous-schema-69>"},"id":{"type":"string","description":"Echo of the client `id` from the auth request, if one was sent.","x-parser-schema-id":"\u003canonymous-schema-70>"},"payload":{"type":"object","description":"Sign-in result, optional sign-in details, and server time.","properties":{"action":{"type":"string","enum":["authSuccess"],"description":"Outcome of authentication. Always `authSuccess` for this message.","x-parser-schema-id":"\u003canonymous-schema-72>"},"id":{"type":"string","description":"Request ID from your auth message, if you sent one.","x-parser-schema-id":"\u003canonymous-schema-73>"},"data":{"type":"object","description":"Session details when provided by the server.","properties":{"expiresIn":{"type":"integer","description":"Suggested sign-in lifetime in milliseconds.","x-parser-schema-id":"\u003canonymous-schema-75>"}},"x-parser-schema-id":"\u003canonymous-schema-74>"},"timestamp":{"type":"integer","description":"Server time in Unix milliseconds.","x-parser-schema-id":"\u003canonymous-schema-76>"}},"x-parser-schema-id":"\u003canonymous-schema-71>"}},"x-parser-schema-id":"\u003canonymous-schema-68>"},"title":"Auth Success Response","description":"Successful authentication response","example":"{\n \"type\": \"response\",\n \"id\": \"auth-001\",\n \"payload\": {\n \"action\": \"authSuccess\",\n \"id\": \"auth-001\",\n \"data\": {\n \"expiresIn\": 2700000\n },\n \"timestamp\": 1701450000123\n }\n}","bindings":[],"extensions":[{"id":"x-parser-unique-object-id","value":"authSuccessResponse"}]},{"id":"pongResponse","contentType":"application/json","payload":[{"name":"Pong Response","description":"Pong reply to ping","type":"object","properties":[{"name":"type","type":"string","description":"Message type. Always `pong` in reply to `ping`.","enumValues":["pong"],"required":false},{"name":"id","type":"string","description":"Echo of the `id` from the client ping, if provided.","required":false},{"name":"timestamp","type":"string","description":"Time when the server sent this `pong`, in RFC3339 format.","required":false}]}],"headers":[],"jsonPayloadSchema":{"type":"object","description":"Reply to a `ping`. This message is flat and does not contain a nested `payload` object.","properties":{"type":{"type":"string","enum":["pong"],"description":"Message type. Always `pong` in reply to `ping`.","x-parser-schema-id":"\u003canonymous-schema-56>"},"id":{"type":"string","description":"Echo of the `id` from the client ping, if provided.","x-parser-schema-id":"\u003canonymous-schema-57>"},"timestamp":{"type":"string","format":"date-time","description":"Time when the server sent this `pong`, in RFC3339 format.","x-parser-schema-id":"\u003canonymous-schema-58>"}},"x-parser-schema-id":"\u003canonymous-schema-55>"},"title":"Pong Response","description":"Pong reply to ping","example":"{\n \"type\": \"\u003cstring>\",\n \"id\": \"\u003cstring>\",\n \"timestamp\": \"\u003cstring>\"\n}","bindings":[],"extensions":[{"id":"x-parser-unique-object-id","value":"pongResponse"}]}],"extensions":[{"id":"x-parser-unique-object-id","value":"chartDataStream"}],"securitySchemes":[]},"channelId":"chartDataStream","metadata":{"id":3313,"subdomain":"ariesfinancialinc","eTag":"\"29b314ac83f02c2a5d357591ad4ae25e\"","originalFileLocation":"asyncapi-specs/tradingview-chart.json","uuid":"117e8678-8fde-4b15-8892-75685e1b4dc4","source":"LOCAL_FILE","createdAt":"2026-02-09T12:34:07.854Z","updatedAt":"2026-10-14T10:13:16.683Z","deletedAt":null,"retiredAt":null,"retiredByDeploymentHistoryId":null}},"subdomain":"ariesfinancialinc","siteName":"Aries API","title":"Charting WebSocket - Aries API","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-11-16T11:06:28.768Z","originalFileLocation":"websockets/tradingview-chart.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Real-time WebSocket API for TradingView chart data. Stream live quotes and trades for equities and options. Connect, authenticate, then subscribe to symbols.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Aries API\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/ariesfinancialinc/ylnD03T0GOb_wvQC/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/ariesfinancialinc/ylnD03T0GOb_wvQC/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/ariesfinancialinc/ylnD03T0GOb_wvQC/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/ariesfinancialinc/ylnD03T0GOb_wvQC/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/ariesfinancialinc/ylnD03T0GOb_wvQC/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/ariesfinancialinc/ylnD03T0GOb_wvQC/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/ariesfinancialinc/ylnD03T0GOb_wvQC/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/ariesfinancialinc/ylnD03T0GOb_wvQC/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/ariesfinancialinc/ylnD03T0GOb_wvQC/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Charting WebSocket - Aries API\">\u003cmeta data-mint-head property=\"og:description\" content=\"Real-time WebSocket API for TradingView chart data. Stream live quotes and trades for equities and options. Connect, authenticate, then subscribe to symbols.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Aries API\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://finance.dev/websockets/tradingview-chart\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://ariesfinancialinc.mintlify.site/_mintlify/api/og/v2?division=WebSockets\u0026amp;title=Charting+WebSocket\u0026amp;description=Real-time+WebSocket+API+for+TradingView+chart+data.+Stream+live+quotes+and+trades+for+equities+and+options.+Connect%2C+authenticate%2C+then+subscribe+to+symbols.\u0026amp;theme=ee60a00d22459cbc9960cbdc\u0026amp;signature=3af471a24ba6f8b847bcaa8e32a59ee973b9c6b486c2c98ebdf059bed9e1d8a5\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Charting WebSocket - Aries API\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Real-time WebSocket API for TradingView chart data. Stream live quotes and trades for equities and options. Connect, authenticate, then subscribe to symbols.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://ariesfinancialinc.mintlify.site/_mintlify/api/og/v2?division=WebSockets\u0026amp;title=Charting+WebSocket\u0026amp;description=Real-time+WebSocket+API+for+TradingView+chart+data.+Stream+live+quotes+and+trades+for+equities+and+options.+Connect%2C+authenticate%2C+then+subscribe+to+symbols.\u0026amp;theme=ee60a00d22459cbc9960cbdc\u0026amp;signature=3af471a24ba6f8b847bcaa8e32a59ee973b9c6b486c2c98ebdf059bed9e1d8a5\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/ariesfinancialinc/ylnD03T0GOb_wvQC/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Aries API\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#0BAA5E\">\u003clink data-mint-head rel=\"canonical\" href=\"https://finance.dev/websockets/tradingview-chart\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/websockets/tradingview-chart.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://finance.dev/#organization\",\"name\":\"Aries API\",\"url\":\"https://finance.dev\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/ariesfinancialinc/RAN-JEltzDnib-_A/logo/light.svg?fit=max\u0026auto=format\u0026n=RAN-JEltzDnib-_A\u0026q=85\u0026s=4eae127cdf55bb09159d2b5a625690e3\"}},{\"@type\":\"WebSite\",\"@id\":\"https://finance.dev#website\",\"name\":\"Aries API\",\"url\":\"https://finance.dev\",\"publisher\":{\"@id\":\"https://finance.dev/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://finance.dev/websockets/tradingview-chart#webpage\",\"url\":\"https://finance.dev/websockets/tradingview-chart\",\"name\":\"Charting WebSocket\",\"description\":\"Real-time WebSocket API for TradingView chart data. Stream live quotes and trades for equities and options. Connect, authenticate, then subscribe to symbols.\",\"dateModified\":\"2026-11-16T11:06:28.768Z\",\"isPartOf\":{\"@id\":\"https://finance.dev#website\"},\"breadcrumb\":{\"@id\":\"https://finance.dev/websockets/tradingview-chart#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://finance.dev/websockets/tradingview-chart#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"WebSockets\",\"item\":\"https://finance.dev/websockets/market-data\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Charting WebSocket\",\"item\":\"https://finance.dev/websockets/tradingview-chart\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://finance.dev/websockets/tradingview-chart#apireference\",\"headline\":\"Charting WebSocket\",\"name\":\"Charting WebSocket\",\"description\":\"Real-time WebSocket API for TradingView chart data. Stream live quotes and trades for equities and options. Connect, authenticate, then subscribe to symbols.\",\"url\":\"https://finance.dev/websockets/tradingview-chart\",\"mainEntityOfPage\":{\"@id\":\"https://finance.dev/websockets/tradingview-chart#webpage\"},\"dateModified\":\"2026-11-16T11:06:28.768Z\",\"publisher\":{\"@id\":\"https://finance.dev/#organization\"},\"isPartOf\":{\"@id\":\"https://finance.dev#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Aries API\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Aries API\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/websockets/tradingview-chart.md","siteName":"Aries API","nav":{"global":null,"tabs":[{"tab":"Welcome","icon":"house","pages":[{"title":"Welcome","href":"/welcome"}]},{"tab":"Quick Start","icon":"rocket","pages":[{"title":"Quick Start","href":"/api-reference/quickstart"}]},{"tab":"Auth","icon":"shield-halved","pages":[{"title":"Auth","href":"/api-reference/oauth2/overview"}]},{"tab":"Core API","icon":"bolt","pages":[{"title":"Core API","href":"/api-reference"}]},{"tab":"Supplemental API","icon":"chart-mixed","pages":[{"title":"Supplemental API","href":"/supplemental-api/overview"}]},{"tab":"Prediction API","icon":"landmark","pages":[{"title":"Prediction API","href":"/prediction-api/overview"}]},{"tab":"Streaming API","icon":"satellite-dish","pages":[{"group":"Overview","pages":[{"title":"WebSockets","href":"/websockets/overview"}]},{"group":"WebSockets","pages":[{"title":"Market Data WebSocket","description":"Real-time streaming API for equity quotes, trades, and market indices. Subscribe to specific symbols with field-level granularity to receive only the data you need, minimizing bandwidth and latency.","asyncapi":"asyncapi-specs/market-data.json marketDataStream","href":"/websockets/market-data"},{"title":"Charting WebSocket","asyncapi":"asyncapi-specs/tradingview-chart.json chartDataStream","href":"/websockets/tradingview-chart"},{"title":"Account Updates WebSocket","description":"Real-time WebSocket API for account updates, P\u0026L candles, watchlists, and news on a single authenticated connection.","asyncapi":"asyncapi-specs/account-updates.json accountUpdatesStream","href":"/websockets/account-updates"}]}]},{"tab":"AI Agents","icon":"robot","pages":[{"title":"AI Agents","href":"/ai-agents/add-skill"}]},{"tab":"MCP Auth","icon":"plug","pages":[{"title":"MCP Auth","href":"/mcp-auth"}]},{"tab":"SDKs","icon":"code","pages":[{"title":"SDKs","href":"/sdks/overview"}]},{"tab":"Changelog","icon":"newspaper","pages":[{"title":"Changelog","href":"/changelog"}]}]},"basePath":"","title":"Charting WebSocket - Aries API","deploymentId":"dpl_DyXGnKeCjZyA3sUdfMJ7FjkdBefg","buildId":"dpl_DyXGnKeCjZyA3sUdfMJ7FjkdBefg","dynamics":["3b021dca80","a4b48b4bee","a9bb46feb3"],"chunks":["MessageExamples-DDYc9_CX.js","CodeSnippet-D_HwgQO_.js","Page-BwtPZuTy.js","utils-DWvOwgy_.js","getApiPlaygroundDisplay-CmCoerhe.js","getPastedJson-Cb5mT31m.js","icon-BPCgijHy.js","MethodPill-GQ8DuY0c.js","Check2Icon-a7bUI6e8.js","DynamicMarkdown-CQM9Bhbv.js","cloneDeep-CAwdfOU2.js","_Uint8Array-BJr8e-ZL.js","isObject-FP1Yky1u.js","Markdown-CX2QY19L.js","AssistantPageLink-CY3bFglh.js","dist-Dl6_zDnT.js","lib-DMeTj1gb.js","lib-B8HbPgcC.js","katex-Dbtb6Wk7.js","html-void-elements-mCSPHezU.js","marked.esm-CZWythHk.js"]}