Place a new order
Places a market or pending order via mt5.order_send(). The NOVOSKY bot only places BUY and SELL market orders. Limit, stop, and stop-limit order types are available for manual use.
Authorizations
Set API_TOKEN in .env to match the token configured on the server.
Body
Request body for placing a new order.
"BTCUSD"
Order type. The bot only uses BUY and SELL; the rest are available for manual use.
BUY, SELL, BUY_LIMIT, SELL_LIMIT, BUY_STOP, SELL_STOP, BUY_STOP_LIMIT, SELL_STOP_LIMIT "BUY"
Lot size.
0.01
"novosky"
Max allowed price deviation in points.
20
Expiry time as Unix epoch (for SPECIFIED type_time).
EA magic number for trade identification.
20250101
Order price (required for limit/stop orders).
95000
Stop loss price.
94800
Limit price for BUY_STOP_LIMIT / SELL_STOP_LIMIT orders.
Take profit price.
95300
Order expiry type: GTC, TODAY, SPECIFIED, SPECIFIED_DAY.
"GTC"
Response
Order filled — open position returned
An open position.
"novosky"
EA magic number.
20250101
95050
95000
Floating profit in account currency.
5
94800
-0.12
"BTCUSD"
123456789
Position open time as Unix epoch.
1777879028
95300
0 = BUY, 1 = SELL.
0
0.01