mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-11 09:33:50 +00:00
16 lines
302 B
Go
16 lines
302 B
Go
package rebalance
|
|
|
|
import "github.com/c9s/bbgo/pkg/types"
|
|
|
|
type ProfitStatsMap map[string]*types.ProfitStats
|
|
|
|
func NewProfitStatsMap(markets []types.Market) ProfitStatsMap {
|
|
m := make(ProfitStatsMap)
|
|
|
|
for _, market := range markets {
|
|
m[market.Symbol] = types.NewProfitStats(market)
|
|
}
|
|
|
|
return m
|
|
}
|