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

Terminal
curl "https://api.langbot.ai/v1/reference/series" \
  -H "Authorization: Bearer $LANGBOT_API_TOKEN"

Response

200 OK

JSON
{
  "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

StatuscodeWhen
401auth_requiredNo token was sent.
401token_invalidThe token was not recognised (mistyped, revoked or expired).
429rate_limitedOver your request budget; wait Retry-After seconds.

Every error body is {"detail": …, "code": "…"}; branch on code. All codes: Errors.