Get historical deals
Returns executed deals (fills) in a Unix epoch time range via mt5.history_deals_get(). Each position generates two deals: one on open (entry=0) and one on close (entry=1). The closing dealβs profit field is stored raw in Supabase (USC for cent accounts β not converted to USD).
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.
Query Parameters
Start of range as Unix epoch
1777800000
End of range as Unix epoch
1777900000
Filter by symbol (optional)
"BTCUSD"
Response
Historical deals
"novosky"
-0.05
0=entry (open), 1=exit (close), 2=reversal.
1
20250101
Linked order ticket.
123456789
123456789
95200
Profit in raw account currency (USC for cent accounts β NOT converted to USD).
200
-0.12
"BTCUSD"
111111111
Deal execution time as Unix epoch.
1777879100
0=BUY, 1=SELL, 2=BALANCE, 3=CREDIT.
1
0.01