v13

latestOpenAPI 3.1.0raw.githubusercontent.com2026-04-0815390371.2 KB
Controllers

Create Or Update Controller

Create or update a controller.

If controller exists as a package (folder), updates the file inside. Otherwise creates/updates as a single file.

Args: controller_type: Type of controller to create/update controller_name: Name of the controller (from URL path) controller: Controller object with content (and optional type for validation)

Returns: Success message when controller is saved

Raises: HTTPException: 400 if controller type mismatch or save error

post/controllers/{controller_type}/{controller_name}

Path parameters

controller_type'directional_trading' | 'market_making' | 'generic' required

Types of controllers available

controller_namestring required

Request body

contentstring required

Controller source code

type'directional_trading' | 'market_making' | 'generic'

Types of controllers available

Response

Successful Response

{"stackTrail":"paths:/controllers/{controller_type}/{controller_name}:post:responses:201:content:application/json:schema","oasType":"schema","type":"unknown"}