mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-10 09:11:55 +00:00
Merge pull request #1149 from c9s/grid2/emit-error
CHORE: max: add max auth authenticated log
This commit is contained in:
commit
9c53922512
|
@ -51,6 +51,9 @@ func NewStream(key, secret string) *Stream {
|
|||
stream.SetParser(max.ParseMessage)
|
||||
stream.SetDispatcher(stream.dispatchEvent)
|
||||
stream.OnConnect(stream.handleConnect)
|
||||
stream.OnAuthEvent(func(e max.AuthEvent) {
|
||||
log.Infof("max websocket connection authenticated: %+v", e)
|
||||
})
|
||||
stream.OnKLineEvent(stream.handleKLineEvent)
|
||||
stream.OnOrderSnapshotEvent(stream.handleOrderSnapshotEvent)
|
||||
stream.OnOrderUpdateEvent(stream.handleOrderUpdateEvent)
|
||||
|
|
Loading…
Reference in New Issue
Block a user