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/multiquotesSample 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
apikey
Your OpenAlgo API key
Mandatory
-
symbols
Array of symbol objects, at least one
Mandatory
-
MultiQuotesSchema declares only apikey and symbols. Any other top-level field returns HTTP 400.
Symbol Object Fields
symbol
Trading symbol. Mandatory
exchange
Any value in the shared VALID_EXCHANGES list. Mandatory
Each item accepts only these two keys; an extra key inside an item returns HTTP 400 for the whole request.
Response Fields
status
string
"success" or "error"
results
array
Array of quote results
Results Array Fields
symbol
string
Trading symbol
exchange
string
Exchange code
data
object
Quote data (same as Quotes endpoint). Present only on success
error
string
Error message. Present only when that symbol failed
An entry has either data or error, never both. The top-level status stays "success" when some symbols fail, so check each entry rather than the wrapper.
If every symbol is invalid the whole request fails with HTTP 400 and a different shape: status: "error", a message, and an invalid_symbols array of {symbol, exchange, error} objects. There is no results key in that response.
Data Object Fields
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
errorfield, and they appear first inresults, before the valid ones. Do not assumeresultsis in request order.The schema imposes no upper bound on the number of symbols; broker limits apply
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