Error
Positions
Close a position
Closes all or part of an open position at market price. Omit the request body to close the full position. Pass volume to do a partial close.
DELETE
Error
Documentation Index
Fetch the complete documentation index at: https://docs.novosky.app/llms.txt
Use this file to discover all available pages before exploring further.
Authorizations
Set API_TOKEN in .env to match the token configured on the server.
Path Parameters
Position ticket number
Example:
123456789
Body
application/json
Response
Closing deal result
A closed deal from trade history.
Example:
"novosky"
Example:
-0.05
0=entry (open), 1=exit (close), 2=reversal.
Example:
1
Example:
20250101
Linked order ticket.
Example:
123456789
Example:
123456789
Example:
95200
Profit in raw account currency (USC for cent accounts — NOT converted to USD).
Example:
200
Example:
-0.12
Example:
"BTCUSD"
Example:
111111111
Deal execution time as Unix epoch.
Example:
1777879100
0=BUY, 1=SELL, 2=BALANCE, 3=CREDIT.
Example:
1
Example:
0.01