chore: Update function comments (#1938)

Signed-off-by: gcmutator <329964069@qq.com>
This commit is contained in:
gcmutator
2025-06-24 15:35:13 +08:00
committed by GitHub
parent 2d0a222278
commit 12748ffaa7
2 changed files with 4 additions and 2 deletions

View File

@@ -581,7 +581,6 @@ func (s *Storage) SeedForeignExchangeRates() error {
return s.updateExchangeRates(rates)
}
// UpdateForeignExchangeRates sets exchange rates on the FX map
func (s *Storage) updateExchangeRates(m map[string]float64) error {
return s.fxRates.Update(m)
}

View File

@@ -1485,7 +1485,10 @@ func (by *Bybit) GetServerTime(ctx context.Context, _ asset.Item) (time.Time, er
return info.TimeNano.Time(), err
}
// transformInstrumentInfoSymbol converts GetInstrumentInfo symbol to one stored in config with proper delimiters
// transformSymbol returns a symbol with a delimiter added if missing
// * Spot and Coin-M add "_"
// * Options, USDC-M USDT-M add "-"
// * CrossMargin is left without a delimiter
func (i *InstrumentInfo) transformSymbol(a asset.Item) string {
switch a {
case asset.Spot, asset.CoinMarginedFutures: