Skip to main content
Funds are named records you can link strategies to. Credentials store an exchange API key against your account. Both are optional. Krisis places a strategy’s orders through your Kairos trading account, so a strategy trades without either.
Gotcha: a fund does not cap spending. Krisis does not check or reserve a fund’s balance_limit when a strategy fires, and balance_used does not bound anything. To bound a strategy, set action_config.total_capital and guard on strategy_capital_remaining, or set a max_drawdown stop. The venue’s own balance checks still apply.
All endpoints require authentication: a Kairos API key (X-Client-Id, X-Api-Key, X-Api-Secret) or a session JWT. With an API key, reads need any active key and writes need the trade:execute scope.

Why an armed strategy is not trading

Gotcha: a skipped fire does not fail any request. When a strategy’s condition is true but the engine does not place an order, it records the attempt as an execution with action_taken: false and a skip_reason, and returns no error to anyone. A strategy can sit “armed” for days and never trade.
See skip_reason values for what each reason means. Poll GET /api/v1/executions or watch the trigger events on the SSE stream — both carry skip_reason — to see why a strategy is armed but not trading.

Funds

A fund is a named record with a balance_limit figure. Link one to a strategy with fund_id; the fund must be yours. Fills are not attributed to funds, so read what a strategy holds from GET /api/v1/positions rather than the per-fund views.
Gotcha: bound a strategy in its own condition. A strategy’s action_config.total_capital is what the strategy_capital_remaining and strategy_spent DSL variables read, so guard a buy leg on them (e.g. strategy_capital_remaining >= 10). Absent total_capital, the allocation is uncapped, and linking a fund does not change that.

List funds

Response

Array of fund objects.

Create fund

Returns 201 Created with the fund object.

Request

Example

Get fund

Returns one fund object, or 404.

Update fund

Returns the updated fund object.

Request

All fields optional. Disabling a fund does not stop the strategies linked to it. Disarm them with PUT /api/v1/strategies/{id} and is_active: false.

Delete fund

Returns 204 No Content.

Credentials

Credentials are per-exchange API keys. Krisis encrypts the secret material at rest and only ever returns a redacted hint — the raw key and secret are never echoed back, so store your own copy. Strategies do not need a stored credential to trade.

List credentials

Response

Array of credential objects.

Add or update a credential

Upserts the credential for an exchange — posting again for the same exchange_id replaces the stored key, it does not create a second one. Returns 201 Created with the credential object (redacted hint only).

Request

Example

Delete a credential

Returns 204 No Content.