mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-22 06:53:52 +00:00
binance: support more depth level
This commit is contained in:
parent
805fea32df
commit
07eb723da4
|
@ -318,9 +318,13 @@ func convertSubscription(s types.Subscription) string {
|
|||
case types.DepthLevel5:
|
||||
n += "5"
|
||||
|
||||
case types.DepthLevelMedium:
|
||||
case types.DepthLevel10:
|
||||
n += "10"
|
||||
|
||||
case types.DepthLevel20, types.DepthLevelMedium:
|
||||
n += "20"
|
||||
|
||||
// default to full
|
||||
case types.DepthLevelFull:
|
||||
default:
|
||||
|
||||
|
|
|
@ -549,6 +549,7 @@ const (
|
|||
DepthLevelMedium Depth = "MEDIUM"
|
||||
DepthLevel1 Depth = "1"
|
||||
DepthLevel5 Depth = "5"
|
||||
DepthLevel10 Depth = "10"
|
||||
DepthLevel15 Depth = "15"
|
||||
DepthLevel20 Depth = "20"
|
||||
DepthLevel50 Depth = "50"
|
||||
|
|
Loading…
Reference in New Issue
Block a user