binance: support more depth level

This commit is contained in:
c9s 2024-01-24 17:51:02 +08:00
parent 805fea32df
commit 07eb723da4
No known key found for this signature in database
GPG Key ID: 7385E7E464CB0A54
2 changed files with 6 additions and 1 deletions

View File

@ -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:

View File

@ -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"