Skip to main content
POST
/
controllers
/
{controller_type}
/
{controller_name}
Create Or Update Controller
curl --request POST \
  --url http://localhost:8000/controllers/{controller_type}/{controller_name} \
  --header 'Authorization: Basic <encoded-value>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "content": "<string>",
  "type": "directional_trading"
}
'
{
  "detail": [
    {
      "loc": [
        "<string>"
      ],
      "msg": "<string>",
      "type": "<string>",
      "input": "<unknown>",
      "ctx": {}
    }
  ]
}

Authorizations

Authorization
string
header
required

Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.

Path Parameters

controller_type
enum<string>
required

Types of controllers available

Available options:
directional_trading,
market_making,
generic
controller_name
string
required

Body

application/json

Controller file content

content
string
required

Controller source code

type
enum<string> | null

Controller type (optional for flexibility)

Available options:
directional_trading,
market_making,
generic

Response

Successful Response