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

Quotes

Get real-time market quotes for a single symbol including OHLC, LTP, bid/ask, and volume.

Endpoint URL

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

Sample API Request

{
  "apikey": "<your_app_apikey>",
  "symbol": "RELIANCE",
  "exchange": "NSE"
}

Sample cURL Request

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

Sample API Response

Request Body

Parameter
Description
Mandatory/Optional
Default Value

apikey

Your OpenAlgo API key

Mandatory

-

symbol

Trading symbol

Mandatory

-

exchange

Any value in the shared VALID_EXCHANGES list

Mandatory

-

These three fields are the complete QuotesSchema. Any other field returns HTTP 400.

Response Fields

Field
Type
Description

status

string

"success" or "error"

data

object

Quote data object

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 price

volume

number

Total traded volume

oi

number

Open interest. 0 for cash instruments and for brokers that do not report it

The data object is the broker adapter's normalized quote. The fields above are the common contract; individual brokers may add fields, and a broker that cannot supply a value returns 0 rather than omitting the key.

Notes

  • Quotes are real-time and refresh with each trade

  • For F&O symbols, use the OpenAlgo standard format (e.g., NIFTY30JAN25FUT)

  • For multiple symbols, use the MultiQuotes endpoint

  • The bid/ask spread indicates liquidity

Example: F&O Quote


Back to: API Documentation

Last updated