API documentation

Refer to this documentation for a more comprehensive understanding of the API, and explore some examples in this repository for further insight.

Data

Get Categories

get

API for getting metric categories

Responses
200
Successful Response
application/json
Responseany
get
GET /metric/categories HTTP/1.1
Host: 
Accept: */*

No content

Download Metric Data

get

API for downloading metric data

Authorizations
Path parameters
metric_idstringRequired

Metric Id

Query parameters
api_keystringRequired

API Key

symbolstringOptional

Symbol, if the metric has no symbol, this parameter is not required

resolutionstringOptional

Resolution, either 1h or 1d

Default: 1h
Responses
200
Successful Response
get
GET /metric/{metric_id}/download?api_key=text HTTP/1.1
Host: 
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*

No content

Download Latest Metric Data

get

API for downloading latest metric data

Authorizations
Path parameters
metric_idstringRequired

Metric Id

Query parameters
api_keystringRequired

API Key

symbolstringOptional

Symbol, if the metric has no symbol, this parameter is not required

resolutionstringOptional

Resolution, either 1h or 1d

Default: 1h
Responses
200
Successful Response
get
GET /metric/{metric_id}/download/latest?api_key=text HTTP/1.1
Host: 
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*

No content

Tournament

Get All Tournaments

get

API for getting all tournaments

Responses
200
Successful Response
application/json
get
GET /tournament/all HTTP/1.1
Host: 
Accept: */*
[
  {
    "name": "text",
    "search_id": "text",
    "description": "text",
    "open_status": true
  }
]

Get current round of tournament

get

API for getting current round of tournament.

Path parameters
tournament_search_idstringRequired

Tournament Search Id

Responses
200
Successful Response
application/json
Responseany
get
GET /tournament/{tournament_search_id}/current-round HTTP/1.1
Host: 
Accept: */*

No content

Get symbols supported in tournament

get

API for getting symbols supported in tournament

Path parameters
tournament_search_idstringRequired

Tournament Search Id

Responses
200
Successful Response
application/json
Responseany
get
GET /tournament/{tournament_search_id}/symbols HTTP/1.1
Host: 
Accept: */*

No content

Get all submission types supported in tournament

get

API for getting submission types supported in tournament, this submission types are used to submit results to tournament

Path parameters
tournament_search_idstringRequired

Tournament Search Id

Responses
200
Successful Response
application/json
Responseany
get
GET /tournament/{tournament_search_id}/submission-types HTTP/1.1
Host: 
Accept: */*

No content

Submit Results Via Api

post

Submit prediction results by API. If successful, return the submission time.

Path parameters
tournament_search_idstringRequired

Tournament Search Id

Query parameters
api_keystringRequired

API Key

submission_typestringRequired

Submission type

symbolstringRequired

Symbol

model_idstringRequired

Model Id

Bodyobject[]
object[]Optional
Responses
201
Successful Response
application/json
Responseany
post
POST /tournament/{tournament_search_id}/submit/api?api_key=text&submission_type=text&symbol=text&model_id=text HTTP/1.1
Host: 
Content-Type: application/json
Accept: */*
Content-Length: 4

[
  {}
]

No content

Get All Submissions Time

get

API for getting all submissions time of user.

Authorizations
Path parameters
tournament_search_idstringRequired

Tournament Search Id

Query parameters
api_keystringRequired

API Key

submission_typestringOptional

Submission type

symbolstringOptional

Symbol

model_idstringOptional

Model Id

Responses
200
Successful Response
application/json
Responseany
get
GET /tournament/{tournament_search_id}/submission-time/all?api_key=text HTTP/1.1
Host: 
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*

No content

Get User Overall Performance

get

API for retrieving the overall user performance, where the performance metrics are specific to each round of the tournament.

Authorizations
Path parameters
tournament_search_idstringRequired

Tournament Search Id

Query parameters
api_keystringRequired

API Key

submission_typestringRequired

Submission type

symbolstringRequired

Symbol

model_idstringRequired

Model Id

submission_timeintegerOptional

Submission time

Responses
200
Successful Response
application/json
Responseany
get
GET /tournament/{tournament_search_id}/submission/overall-performance?api_key=text&submission_type=text&symbol=text&model_id=text HTTP/1.1
Host: 
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*

No content

Delete Submission

delete

API for deleting submission record of user (used only for backtest mode)

Authorizations
Path parameters
tournament_search_idstringRequired

Tournament Search Id

Query parameters
api_keystringRequired

API Key

submission_typestringRequired

Submission Type

symbolstringRequired

Symbol

model_idstringRequired

Model Id

submission_timeintegerOptional

Submission time, if not provided, delete all submissions of the model

Responses
200
Successful Response
application/json
Responseany
delete
DELETE /tournament/{tournament_search_id}/submission?api_key=text&submission_type=text&symbol=text&model_id=text HTTP/1.1
Host: 
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*

No content

Last updated