Messages
{
"jsonrpc": "2.0",
"id": 1,
"method": "post",
"params": {
"type": "info",
"payload": {
"method": "instruments",
"params": {
"type": "all"
}
}
}
}{
"jsonrpc": "2.0",
"id": 1,
"result": {
"instruments": []
}
}Info + Exchange Requests
Info Requests
WSS
/
Use JSON-RPC
post with params.type: "info" to call all Info endpoints from the REST API reference over WebSocket.
Example Request
{
"jsonrpc": "2.0",
"id": "1",
"method": "post",
"params": {
"type": "info",
"payload": {
"method": "instruments",
"params": {
"type": "all"
}
}
}
}
Messages
{
"jsonrpc": "2.0",
"id": 1,
"method": "post",
"params": {
"type": "info",
"payload": {
"method": "instruments",
"params": {
"type": "all"
}
}
}
}{
"jsonrpc": "2.0",
"id": 1,
"result": {
"instruments": []
}
}JSON-RPC post info request
type:object
Request-response call over WebSocket for Info REST methods.
JSON-RPC post response
type:object
Success or error response for post requests.
⌘I