Skip to main content
POST
/
trading
/
positions
/
open
Open Position
curl --request POST \
  --url https://api.miteos.com/trading/positions/open \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "symbol": "<string>",
  "quantity": 123,
  "side": "long",
  "stop_loss": 123,
  "take_profit": 123
}
'
{
  "detail": [
    {
      "loc": [
        "<string>"
      ],
      "msg": "<string>",
      "type": "<string>",
      "input": "<unknown>",
      "ctx": {}
    }
  ]
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
symbol
string
required
quantity
number
required
side
string
default:long
stop_loss
number | null
take_profit
number | null

Response

Successful Response