AI natural-language advisor

POST/api/v1/px/ai/askBearer

PX Discovery & AccountE6 decimal strings throughoutA | B

Requires sign-in (a session access token, or an API key with the read scope); the query is never stored. query must be non-empty and at most 200 characters.

Both degraded states come back as HTTP 200, never an error: enabled=false means the feature is off, advice=null means this LLM call or its parsing failed. Decide from those two fields, not from the status code.

Send Authorization: Bearer <token>. The token is issued by POST /api/v1/auth/verify, and expires after 24h idle or 7d after issuance.

Request body

  • querystringrequired

    The question in natural language; non-empty and at most 200 characters

Response

200The advisor's reply (including both degraded states)
  • enabledboolean

    Whether the feature is on

    Examplefalse

  • advicestringnullable

    The advisor's reply. null means this call or its parsing failed — it does not mean "no advice"

  • picksobject(PxAiAskPick)[]

    Related events; may be an empty array

  • eventIdstring

    Event id

    Example"event_01K5H2M3N7"

  • slugstring

    Event slug

    Example"btc-above-120k-2026-12-31"

  • titlestring

    Event title

    Example"BTC above $12…c 31, 2026?"

  • endDateMsstringnullable

    Close time, as a millisecond string

  • pctTextstringnullable

    Probability, formatted for display

  • actionstringnullable

    Suggested action

  • sizeHintstringnullable

    Suggested position size

Switch status codes in the response example to view errors. For all codes, see the Errors page.