Skip to main content

Single Quote

Retrieve real-time quote data for a single stock including OHLC prices, trading volume, bid/ask spread, and price change.

GET/3.0/market/quote

Description

This endpoint returns quote data for a single stock symbol including OHLC prices, trading volume, bid/ask spread, and price change. This is ideal for real-time monitoring and quick lookups of a specific stock's trading data.

Request

Authentication

  • Type: Bearer Token
  • Required: Yes

Parameters

NameTypeRequiredDescriptionExample
symbolstringYesStock symbol/ticker codeBAFS

Response

Success Response (200)

{
"status": "ok",
"message": "",
"data": {
"date": "2025-12-11 12:26:54",
"symbol": "BAFS",
"open": 337,
"high": 337,
"low": 325,
"close": 332.99,
"volume": 1412,
"change": 2.11,
"change_percent": 0.0064,
"bid_price": 326.05,
"bid_volume": 50,
"ask_price": 332.99,
"ask_volume": 8
}
}

Response Fields

FieldTypeDescription
datestringData timestamp (YYYY-MM-DD HH:MM:SS)
symbolstringStock symbol/ticker
opennumberOpening price
highnumberHighest price
lownumberLowest price
closenumberClosing price
volumenumberTrading volume
changenumberAbsolute price change
change_percentnumberPercentage price change
bid_pricenumberCurrent bid price
bid_volumenumberBid volume
ask_pricenumberCurrent ask price
ask_volumenumberAsk volume

Error Responses

For detailed Common Error responses, see the Error Handling.

Missing Symbol (200)

{
"status": "error",
"message": "symbol not provided"
}

Stock Not Found (200)

{
"status": "error",
"message": "not found"
}

Examples

Get Single Stock Quote

curl -X GET "https://csapis.com/3.0/market/quote?symbol=BAFS" \
-H "Authorization: Bearer YOUR_API_TOKEN"

Use Cases

  • Real-time Quote Lookup: Get live pricing and bid/ask data for a specific stock
  • Trading Decisions: Access OHLC data and order book depth for a single symbol
  • Portfolio Monitoring: Track real-time quote data for individual holdings
  • Technical Analysis: Review intraday price action and volume for a specific stock
  • Order Placement: Check current bid/ask spread before placing trades