Leader Chart Data
The /leader/chart/:leaderID endpoint returns main account data for one year since they joined to become a copy leader.
All timestamps are in UTC. Calculations start at 00:00:00 and end at 23:59:59 each day.
Method
GET /leader/chart/:leaderID
:leaderID— the unique identifier of the leader whose chart data is to be fetched.
Response
{
"status": 200,
"data": [
{
"day": "2024-07-09T00:00:00Z",
"pnl": "22.55",
"balance": "110.23509206502"
}
]
}
Fields Explained
Each object represents a daily data point.
- day: Date in ISO 8601 format (UTC).
- pnl: Profit and Loss for that day.
- balance: Account balance at the end of that day.