mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-21 22:43:52 +00:00
max: set max websocket book default level
This commit is contained in:
parent
41529264b7
commit
e6f911380d
|
@ -91,7 +91,7 @@ func (s *Stream) handleConnect() {
|
|||
if len(sub.Options.Depth) > 0 {
|
||||
switch sub.Options.Depth {
|
||||
case types.DepthLevelFull:
|
||||
depth = 0
|
||||
depth = 50
|
||||
|
||||
case types.DepthLevelMedium:
|
||||
depth = 20
|
||||
|
@ -102,6 +102,9 @@ func (s *Stream) handleConnect() {
|
|||
case types.DepthLevel5:
|
||||
depth = 5
|
||||
|
||||
default:
|
||||
depth = 20
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user