Skip to main content
This page covers everything that applies to every Krisis endpoint: the base URL, authentication, wire conventions, the error shape, the tier limits that cap what you can create, and rate limiting. Read it once before using any other page in this chapter. Krisis is the Kairos conditional-order engine. It evaluates user-defined strategies against live market data and fires orders at the venue when their conditions are met — stop-losses, take-profits, trailing stops, OCO/OTO brackets, TWAP schedules, pegged and iceberg orders, and two-sided quotes.

Base URL

Every endpoint path in this chapter is relative to this base.

Authentication

Krisis accepts two credentials. Send one of them on every request. Every endpoint under /api/v1 requires one of them, except the public dsl/validate, dsl/evaluate, and market-data endpoints noted in their pages.

API key

Use the same API key you use for the Execution API. See Authentication to create one.
Scopes decide what the key can do: Every write is treated as a trading action, because a stop-loss, bracket, or strategy places orders when it fires. So a key without trade:execute is read-only in Krisis.
Gotcha: Krisis rejects keys that have an IP allowlist. Krisis cannot check the caller’s address, so it refuses the key instead of ignoring the restriction. The request fails 401 with "IP-whitelisted API credentials are not supported by Krisis". Use a key with no IP allowlist for Krisis.
X-Client-Id selects API-key auth. If you send it, you must also send X-Api-Key and X-Api-Secret. Krisis does not fall back to the Authorization header.

Session JWT

The web app sends the JWT issued by the user’s Kairos session. Krisis does not issue tokens itself; there is no login endpoint. A session JWT can read and write without scopes.

Ownership

Every request acts as the user who owns the key or the session. You can only read and change your own strategies, funds, orders, and positions.

Conventions

Gotcha: every order names its outcome. Send outcome (e.g. "Yes") on every venue, Kalshi included. Token venues such as Polymarket also require the outcome’s token_id. A request without them is rejected 400, e.g. "outcome is required for kalshi conditional orders".

Error responses

Errors return a JSON body with a single error field:
Gotcha: not every rejection is an HTTP error. POST /api/v1/dsl/validate answers a bad expression with 200 and valid: false. A strategy that can’t place its order records a skip_reason on its execution rather than failing a request — see Funds & Credentials. A 200 and a healthy-looking strategy do not mean the engine is trading.

Tier limits

Your account carries a Krisis tier that caps how much of the engine you can use. A create call that would exceed a cap fails 400 — e.g. { "error": "Strategy limit reached for your tier" }. The engine enforces two of the tier’s limits: Tiers are administered by Kairos; there is no public endpoint to read or change your own.

Rate limiting

The API allows 100 requests per second from each client IP. When exceeded, requests get 429 with:

What’s in this chapter

Most integrations start with Conditional Orders — the dedicated stop-loss, bracket, TWAP, peg, and market-maker endpoints — and only drop down to Strategies & DSL for custom conditions.