Skip to main content

Strategies Overview

The strategies module is a metadata registry for strategy definitions. It does not place orders, deploy bots, or run code. A separate executor process reads from the registry — the executor binding is captured by the bot_name field on each strategy.

Resource shape

FieldTypeNotes
idintegerDB-assigned, auto-increment.
namestringHuman-readable label, unique per platform.
authorstring | nullFree-form author tag.
descriptionstring | nullFree-form description.
entry_conditionstring | nullFree-form text — typically a DSL or natural-language description consumed by the executor.
exit_conditionstring | nullFree-form text, same as above.
bot_namestring | nullReference key linking this strategy to an executor instance.
created_atstring (ISO 8601)Creation timestamp.
updated_atstring (ISO 8601)Last modification timestamp.

Endpoints

MethodPathPurpose
POST/strategiesCreate a new strategy
GET/strategiesList all strategies
GET/strategies/{strategy_id}Get one strategy
PUT/strategies/{strategy_id}Update editable fields (not name)
DELETE/strategies/{strategy_id}Delete a strategy

All five endpoints are public (no auth header).

What this module does not do

  • Deploy or pause execution. (No deploy / pause endpoints exist.)
  • Stream live status. (No WebSocket exists.)
  • Validate entry_condition / exit_condition content — they are stored as opaque strings.
  • Paginate GET /strategies — the response is the full list ordered by created_at desc.