bbgo: remove unused trade store symbol argument

This commit is contained in:
c9s 2022-08-11 13:57:12 +08:00
parent fa34a0ee70
commit df8a4bef93
No known key found for this signature in database
GPG Key ID: 7385E7E464CB0A54
2 changed files with 2 additions and 4 deletions

View File

@ -12,15 +12,13 @@ type TradeStore struct {
trades map[uint64]types.Trade
Symbol string
RemoveCancelled bool
RemoveFilled bool
AddOrderUpdate bool
}
func NewTradeStore(symbol string) *TradeStore {
func NewTradeStore() *TradeStore {
return &TradeStore{
Symbol: symbol,
trades: make(map[uint64]types.Trade),
}
}

View File

@ -39,7 +39,7 @@ func NewTradeCollector(symbol string, position *types.Position, orderStore *Orde
orderSig: sigchan.New(1),
tradeC: make(chan types.Trade, 100),
tradeStore: NewTradeStore(symbol),
tradeStore: NewTradeStore(),
doneTrades: make(map[types.TradeKey]struct{}),
position: position,
orderStore: orderStore,