Trade
Subscribe trade-gateway topics. Topic private delivers order/execution notifications. The response reports success / fail / current topics.
message Sub {
repeated string topics = 1;
}
message SubResponse {
repeated string success = 1;
repeated Fail fail = 2;
repeated string current = 3;
}
Request parameters
| Name | Type | Required | Description |
|---|---|---|---|
topics | string[] | Optional | Topics to subscribe |
Response fields
| Name | Type | Required | Description |
|---|---|---|---|
success | string[] | Optional | Success topics |
fail | object[] | Optional | Failed topics |
└ topic | string | Optional | Topic |
└ reason | string | Optional | Failure reason |
current | string[] | Optional | Current subscriptions after subscribe |
Response JSON example
{
"success": [
"private"
],
"fail": [],
"current": [
"private"
]
}