Get Trading Competition Leader Board By Competition ID
GET
/public/v1/tradingCompetition/leaderboard?competition_id=&limit=
Query Parameters
Key | Type | Required | Rule | Description |
---|---|---|---|---|
competition_id | string | Mandatory | The unique id for competition | |
limit | number | Mandatory | The number of competitors |
Expected HTTP status code
- 200
Response
Name | Type | Description |
---|---|---|
competitors | array | The competitors. |
competitors[].user_id | string | The unique id of user. |
competitors[].user_name | string | The name of user. |
competitors[].country | string | The country of user. |
competitors[].profit_percent | number | The profit of user. |
competitors[].suspend | boolean | whether user has been suspended. |
last_update_time | long | Last update time of leader board. (utc) |
Error
Code | Type | Description |
---|---|---|
400 | competition_not_exists | competition id is not exist |