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
Response
Successful Response
{"stackTrail":"paths:/controllers/{controller_type}/{controller_name}:post:responses:201:content:application/json:schema","oasType":"schema","type":"unknown"}