Bybit: Fix UpdateAccountInfo coin balance issue, improve GetWalletBalance and enhance test coverage (#1588)

* Bybit: Fix UpdateAccountInfo and enhance GetWalletBalance

* Update struct field and comments
This commit is contained in:
Adrian Gallagher
2024-07-29 12:36:10 +10:00
committed by GitHub
parent d1e36691b3
commit ba3dcc8e25
8 changed files with 308 additions and 214 deletions

View File

@@ -414,17 +414,23 @@ var m sync.Mutex
var set bool
var exclusionFile = DefaultDirectory + "exclusion.json"
var defaultExcludedHeaders = []string{"Key",
var defaultExcludedHeaders = []string{
"Key",
"X-Mbx-Apikey",
"Rest-Key",
"Apiauth-Key"}
var defaultExcludedVariables = []string{"bsb",
"Apiauth-Key",
"X-Bapi-Api-Key",
}
var defaultExcludedVariables = []string{
"bsb",
"user",
"name",
"real_name",
"receiver_name",
"account_number",
"username"}
"username",
"apiKey",
}
// Exclusion defines a list of items to be excluded from the main mock output
// this attempts a catch all approach and needs to be updated per exchange basis