Skip to main content
POST
Hedge trade

Authorizations

X-API-Key
string
header
required

Client API key (prefixed with sk_). On /api/* endpoints the key is scoped to its own MT5 accounts. On /admin/* endpoints the key identifies its owning admin and grants access to all of that admin's keys — so any of your sk_ works to manage any of your other keys (cross-admin operations are rejected as 400 Key not found).

Body

application/json
prop_account_id
string<uuid>
required

Prop firm account ID

broker_account_id
string<uuid>
required

Personal broker account ID

symbol
string
required
Example:

"EURUSD"

direction
enum<string>
required
Available options:
long,
short
Example:

"long"

prop_lots
number
required

Lot size for the prop account

Example:

0.1

broker_lots
number
required

Lot size for the broker account

Example:

0.1

sl
number

Stop loss price

tp
number

Take profit price

comment
string

Order comment

Response

200 - application/json

Hedge result

ok
boolean
Example:

true

data
object