max: add resolution to the subscription

This commit is contained in:
c9s 2020-10-18 00:09:37 +08:00
parent c224eb7af7
commit fe1a25d735
2 changed files with 1 additions and 6 deletions

View File

@ -21,6 +21,7 @@ type Subscription struct {
Channel string `json:"channel"`
Market string `json:"market"`
Depth int `json:"depth,omitempty"`
Resolution string `json:"resolution,omitempty"`
}
type WebsocketCommand struct {

View File

@ -73,12 +73,6 @@ func NewStream(key, secret string) *Stream {
}
func (s *Stream) Subscribe(channel types.Channel, symbol string, options types.SubscribeOptions) {
// "book"
switch channel {
case types.KLineChannel:
panic("kline channel is not supported in max")
}
s.websocketService.Subscribe(string(channel), symbol)
}