mirror of
https://github.com/d0zingcat/gocryptotrader.git
synced 2026-05-13 23:16:45 +00:00
chore: Update function comments (#1938)
Signed-off-by: gcmutator <329964069@qq.com>
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user