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
| Name | Type | Required | Description | Example |
|---|---|---|---|---|
symbol | string | Yes | Stock symbol/ticker code | BAFS |
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
| Field | Type | Description |
|---|---|---|
date | string | Data timestamp (YYYY-MM-DD HH:MM:SS) |
symbol | string | Stock symbol/ticker |
open | number | Opening price |
high | number | Highest price |
low | number | Lowest price |
close | number | Closing price |
volume | number | Trading volume |
change | number | Absolute price change |
change_percent | number | Percentage price change |
bid_price | number | Current bid price |
bid_volume | number | Bid volume |
ask_price | number | Current ask price |
ask_volume | number | Ask 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