Admin
Create a competition
Create a new competition without starting it. It will be in PENDING status and can be started later.
post/api/admin/competition/create
Request body
Example request
{
"name": "Spring 2023 Trading Competition",
"description": "A trading competition for the spring semester",
"tradingType": "disallowAll",
"type": "trading",
"externalUrl": "https://example.com/competition-details",
"imageUrl": "https://example.com/competition-image.jpg",
"startDate": "2024-01-01T00:00:00Z",
"endDate": "2024-02-15T23:59:59Z",
"votingStartDate": "2024-01-15T00:00:00Z",
"votingEndDate": "2024-01-30T23:59:59Z",
"joinStartDate": "2024-01-01T00:00:00Z",
"joinEndDate": "2024-01-14T23:59:59Z",
"maxParticipants": 50,
"tradingConstraints": {
"minimumPairAgeHours": 168,
"minimum24hVolumeUsd": 10000,
"minimumLiquidityUsd": 100000,
"minimumFdvUsd": 100000
},
"rewards": {
"1": 1000,
"2": 500,
"3": 250
}
}Response
Competition created successfully
Example response
{
"competition": {
"maxParticipants": 50,
"rewards": [
{
"rank": 1,
"reward": 1000
}
]
}
}