Technical Integration Docs

πŸ“ˆ RWA World Stock Streams

This service lets you subscribe to minute-level delayed aggregate stock data for individual tickers. Data includes OHLCV (open, high, low, close, volume) for each symbol.

Browser Client to interact with data: https://stocks.rwa.world/


πŸ”Œ WebSocket Endpoint

wss://ws.stocks.rwa.world

This WebSocket endpoint is always live. You can connect via browser, CLI, or any WebSocket-compatible client.


πŸ“₯ Subscription Message Format

To receive updates, send a JSON message with an action and a list of symbols.

Subscribe

{

"action": "subscribe",

"symbols": ["AAPL", "MSFT"]

}

Unsubscribe

{

"action": "unsubscribe",

"symbols": ["MSFT"]

}

You can subscribe to multiple symbols at once. Each WebSocket connection is scoped to its own subscription state.


πŸ“€ Response Format

Once subscribed, you’ll receive JSON-formatted messages for each matching symbol.

Example:

{

"ev": "AM",

"sym": "AAPL",

"v": 4100,

"av": 8200010,

"op": 172.31,

"vw": 173.20,

"o": 173.00,

"c": 173.22,

"h": 173.25,

"l": 172.75,

"a": 172.60,

"z": 675,

"s": 1713642540000,

"e": 1713642600000

}

Field Descriptions:

Field

Description

ev

Event type, always AM for aggregate minute data

sym

Ticker symbol

v

Volume for the minute

av

Accumulated volume for the day

op

Official opening price for the day

vw

Volume-weighted average price for this tick

o

Opening price of the minute window

c

Closing price of the minute window

h

High price during the minute

l

Low price during the minute

a

Daily VWAP up to this point

z

Average trade size

s

Start timestamp (Unix ms)

e

End timestamp (Unix ms)


πŸ§ͺ Quick Start Example (CLI)

Using wscat:

npx wscat -c wss://ws.stocks.rwa.world

Then paste this:

{"action": "subscribe", "symbols": ["AAPL"]}

You’ll start receiving minute-by-minute updates for AAPL.


❓ FAQ

What symbols are supported?

All U.S. stock tickers β€” NYSE, NASDAQ, and OTC.

Is the data real-time?

No β€” this feed uses a 15-minute delayed aggregate stream.


Β© 2025 RWA World. All rights reserved.

Last updated