API reference · Reference markets
List reference series
GET/v1/reference/series
The reference markets recorded on Langbot's clock that your account can read, with their periods and time range.
On this page
Auth. An API token: Authorization: Bearer lb_… (create one). Signed-in web sessions work too.
Limits. Counts against your plan's API requests (60, 600 or 3,000 a minute on Free, Builder and Standard).
Request
curl "https://api.langbot.ai/v1/reference/series" \
-H "Authorization: Bearer $LANGBOT_API_TOKEN"from langbot import LangbotClient
async with LangbotClient() as lb: # reads LANGBOT_API_TOKEN
for s in await lb.reference_series():
print(s.symbol, s.kind, s.periods, s.last_ts)import { LangbotClient } from "@langbotai/sdk";
const lb = new LangbotClient(); // reads LANGBOT_API_TOKEN
const { series } = await lb.referenceSeries();Response
200 OK
{
"count": 2,
"series": [
{ "symbol": "UST-2Y", "source": "treasury", "source_name": "U.S. Treasury daily par yield curve", "rights": "public_domain", "kind": "daily", "periods": [86400], "first_ts": 1577941200000, "last_ts": 1793854800000 },
{ "symbol": "UST-10Y", "source": "treasury", "source_name": "U.S. Treasury daily par yield curve", "rights": "public_domain", "kind": "daily", "periods": [86400], "first_ts": 1577941200000, "last_ts": 1793854800000 }
]
}kind is crypto (24/7, 1-second and 1-minute bars) or daily (official daily series such as Treasury par yields). rights is the source's terms: only series whose terms allow Langbot to serve them are listed, so the list can be shorter than what is recorded.
Errors
| Status | code | When |
|---|---|---|
| 401 | auth_required | No token was sent. |
| 401 | token_invalid | The token was not recognised (mistyped, revoked or expired). |
| 429 | rate_limited | Over your request budget; wait Retry-After seconds. |
Every error body is {"detail": …, "code": "…"}; branch on code. All codes: Errors.