For the complete documentation index, see llms.txt. This page is also available as Markdown.

MultiQuotes

Get real-time quotes for multiple symbols in a single API call.

Endpoint URL

Local Host   :  POST http://127.0.0.1:5000/api/v1/multiquotes
Ngrok Domain :  POST https://<your-ngrok-domain>.ngrok-free.app/api/v1/multiquotes
Custom Domain:  POST https://<your-custom-domain>/api/v1/multiquotes

Sample API Request

{
  "apikey": "<your_app_apikey>",
  "symbols": [
    {"symbol": "RELIANCE", "exchange": "NSE"},
    {"symbol": "TCS", "exchange": "NSE"},
    {"symbol": "INFY", "exchange": "NSE"}
  ]
}

Sample cURL Request

curl -X POST http://127.0.0.1:5000/api/v1/multiquotes \
  -H 'Content-Type: application/json' \
  -d '{
  "apikey": "<your_app_apikey>",
  "symbols": [
    {"symbol": "RELIANCE", "exchange": "NSE"},
    {"symbol": "TCS", "exchange": "NSE"},
    {"symbol": "INFY", "exchange": "NSE"}
  ]
}'

Sample API Response

Request Body

Parameter
Description
Mandatory/Optional
Default Value

apikey

Your OpenAlgo API key

Mandatory

-

symbols

Array of symbol objects

Mandatory

-

Symbol Object Fields

Field
Description

symbol

Trading symbol

exchange

Exchange code: NSE, BSE, NFO, BFO, CDS, BCD, MCX

Response Fields

Field
Type
Description

status

string

"success" or "error"

results

array

Array of quote results

Results Array Fields

Field
Type
Description

symbol

string

Trading symbol

exchange

string

Exchange code

data

object

Quote data (same as Quotes endpoint)

error

string

Error message if symbol lookup failed

Data Object Fields

Field
Type
Description

open

number

Day's open price

high

number

Day's high price

low

number

Day's low price

ltp

number

Last traded price

ask

number

Best ask price

bid

number

Best bid price

prev_close

number

Previous day's close

oi

number

Open interest (for F&O)

volume

number

Total traded volume

Notes

  • More efficient than making multiple Quotes calls

  • Invalid symbols are returned with an error field

  • Maximum symbols per request depends on broker limits

  • If broker doesn't support multiquotes natively, the API fetches quotes individually

  • For F&O symbols, oi (open interest) field is populated

Use Cases

  • Watchlist updates: Refresh quotes for all watchlist symbols

  • Portfolio valuation: Get LTP for all holdings

  • Multi-symbol strategies: Monitor multiple correlated symbols


Back to: API Documentation

Last updated