> For the complete documentation index, see [llms.txt](https://docs.infoway.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.infoway.io/en-docs/websocket/subscription-address.md).

# Subscription Address

### WebSocket Addresses

<table><thead><tr><th width="180">Market</th><th>Subscription Address</th></tr></thead><tbody><tr><td>Stocks</td><td><code>wss://data.infoway.io/ws?business=stock&#x26;apikey=YourAPIKey</code></td></tr><tr><td>Crypto</td><td><code>wss://data.infoway.io/ws?business=crypto&#x26;apikey=YourAPIKey</code></td></tr><tr><td>Japan</td><td><code>wss://data.infoway.io/ws?business=japan&#x26;apikey=YourAPIKey</code></td></tr><tr><td>India</td><td><code>wss://data.infoway.io/ws?business=india&#x26;apikey=YourAPIKey</code></td></tr><tr><td>Korea</td><td><code>wss://data.infoway.io/ws?business=korea&#x26;apikey=YourAPIKey</code></td></tr><tr><td>Taiwan</td><td><code>wss://data.infoway.io/ws?business=taiwan&#x26;apikey=YourAPIKey</code></td></tr><tr><td>Forex, Commodities, Futures</td><td><code>wss://data.infoway.io/ws?business=common&#x26;apikey=YourAPIKey</code></td></tr></tbody></table>

### Connect and subscribe

Use the lowercase query parameter `apikey` in the connection URL. Open a separate connection for each `business` and copy the exact `symbol` from the relevant market symbol list. `stock` serves US, Hong Kong, and mainland Chinese equities; Japan, India, Korea, and Taiwan use their dedicated channels. `common` serves forex, precious metals, and futures.

After connecting, send a JSON text subscription with `code`, `trace`, and `data`; the protocol field is not `cmd`. Send application heartbeat `10010` every 30 seconds. A successful subscription acknowledgement does not guarantee immediate data. Resend subscriptions and optional field settings after reconnecting.
