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.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 abalance_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
201 Created with the fund object.
Request
Example
Get fund
404.
Update fund
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
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
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
204 No Content.
