Errors
Error bodies are JSON:
json
{
"error": {
"code": "INVALID_SYMBOL",
"message": "Symbol '600519' is ambiguous. Use 600519.SH."
}
}1
2
3
4
5
6
2
3
4
5
6
Error codes
| HTTP | code | Description |
|---|---|---|
| 400 | INVALID_SYMBOL | Malformed or unsupported symbol |
| 400 | INVALID_PARAMETER | Invalid parameter (e.g. from > to) |
| 400 | UNSUPPORTED_INTERVAL | Only 1/day is supported in v1 |
| 401 | UNAUTHORIZED | Invalid, missing, or revoked API key |
| 402 | INSUFFICIENT_CREDITS | Insufficient credits |
| 403 | PLAN_LIMIT | Plan limit exceeded (history, limit, symbol count) |
| 200 | — | Valid symbol but no bars in range: ohlc: [], resultsCount: 0 |
| 500 | INTERNAL_ERROR | Server error |
For a valid
symbolwith no trading-day bars in the range, the API returns HTTP 200 with an emptyohlcarray—not404.
Symbol format
Use 600519.SH, 000001.SZ, or 430017.BJ. See REST Overview · Conventions.