Skip to content

Files

Latest commit

5c36a52 · Feb 10, 2025

History

History

examples

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
Feb 10, 2025
Jan 27, 2025

Node.js Sample Implementation

Websocket

Market stream feed

Node.js code to establish a connection with the Upstox Websocket API for streaming live market data. It fetches market data for a list of instrument keys and decodes the incoming protobuf data to a JSON format.

Market updates using Upstox's websocket

Porfolio stream feed

Node.js code to establish a connection with the Upstox WebSocket API for streaming live order updates. It fetches the order updates and prints them to the console.

Order updates using Upstox's websocket

ReactJS Market and Portfolio stream feed

A React app that streams both order and market updates in real-time using the Upstox WebSocket API. It connects to the API, listens for updates, and displays them dynamically on the screen as they arrive.

ReactJS websocket implementation