Trade

Subscribe (Trade)

WSRequest · cmd 16

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

NameTypeRequiredDescription
topicsstring[]OptionalTopics to subscribe

Response fields

NameTypeRequiredDescription
successstring[]OptionalSuccess topics
failobject[]OptionalFailed topics
└ topicstringOptionalTopic
└ reasonstringOptionalFailure reason
currentstring[]OptionalCurrent subscriptions after subscribe

Response JSON example

{
  "success": [
    "private"
  ],
  "fail": [],
  "current": [
    "private"
  ]
}