upstox-js-sdk
Version:
The official Node Js client for communicating with the Upstox API
22 lines (11 loc) • 926 B
Markdown
# 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](websocket/market_data/v3)
### 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](websocket/order_updates/)
### 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](websocket/react_websocket/)