API Documentation
API Documentation

WebSocket Errors

Server will return an error message in the below format

{ 
"event": "ERROR",  "ERROR",   
"code": "400",  "400",   
"message": "Invalid event type provided",  "Invalid event type provided",   
"timestamp": "2018-09-05T01:34:39Z"  "2018-09-05T01:34:39Z" 
}

Error Code Summary

Error Code Description
400 - Bad RequestThe request was unacceptable, often due to missing a required parameter.
401 - UnauthorizedNo valid OAuth2 token provided
403 - ForbiddenNot authorized to access this resource (please contact sales about adding access to your profile)
404 - Not FoundRequested resource not found (typically the marketId or exchangeId passed through the subscription request not found)

There may be other types of errors that may be returned and we recommend handling the ERROR type gracefully.