mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-22 06:53:52 +00:00
bbgo: remove unused trade store symbol argument
This commit is contained in:
parent
fa34a0ee70
commit
df8a4bef93
|
@ -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),
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue
Block a user