Jsonrpc response
All Websocket JSON RPC Responses are housed in this wrapper. It returns a confirmation of the JSON RPC subscribe request.
If a request_id
is supplied in the JSON RPC request, it will be propagated back in this JSON RPC response.
NameLite |
Type | RequiredDefault |
Description |
---|---|---|---|
jsonrpcj |
string | True | The JSON RPC version to use for the request |
resultr |
object | Falsenull |
The result for the request |
errore |
Error | Falsenull |
The error for the request |
idi |
integer | False0 |
Optional Field which is used to match the response by the client. If not passed, this field will not be returned |
methodm |
string | True | The method used in the request for this response (eg: subscribe / unsubscribe / v1/instrument ) |
Error
An error response
NameLite |
Type | RequiredDefault |
Description |
---|---|---|---|
codec |
integer | True | The error code for the request |
messagem |
string | True | The error message for the request |