General API Information
• The base endpoint is: https://api.easybit.com
• Server time is configured as UTC.
• All timestamps are defined in milliseconds.
• All endpoints return a JSON object.
• Data is returned in descending order. Newest first, oldest last.
• All endpoints will return a Successful or an Error response.
• Parameters definition:
⚬ For GET methods you need to define the parameters as a query string.
⚬ For POST methods you need to define the parameters as a JSON body.
Successful Response Example
Field | Type | Description |
---|---|---|
success | Integer | Success flag. (1:success, 0:error) |
data | Object | The response data object |
HTTP/1.1 200 OK
{
"success": 1,
"data": {}
}
Error Response Example
Name | Type | Description |
---|---|---|
success | Integer | Success flag. (1:success, 0:error) |
errorMessage | String | Error message |
errorCode | Integer | Error code |
data optional | Object | Data object |
HTTP/1.1 400 Bad Request
{
"success": 0,
"errorMessage": "Error Message",
"errorCode": 400,
"data": {}
}