mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-10 09:11:55 +00:00
max: add resolution to the subscription
This commit is contained in:
parent
c224eb7af7
commit
fe1a25d735
|
@ -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 {
|
||||
|
|
|
@ -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)
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user