mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-26 08:45:16 +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
|
trades map[uint64]types.Trade
|
||||||
|
|
||||||
Symbol string
|
|
||||||
RemoveCancelled bool
|
RemoveCancelled bool
|
||||||
RemoveFilled bool
|
RemoveFilled bool
|
||||||
AddOrderUpdate bool
|
AddOrderUpdate bool
|
||||||
}
|
}
|
||||||
|
|
||||||
func NewTradeStore(symbol string) *TradeStore {
|
func NewTradeStore() *TradeStore {
|
||||||
return &TradeStore{
|
return &TradeStore{
|
||||||
Symbol: symbol,
|
|
||||||
trades: make(map[uint64]types.Trade),
|
trades: make(map[uint64]types.Trade),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -39,7 +39,7 @@ func NewTradeCollector(symbol string, position *types.Position, orderStore *Orde
|
||||||
orderSig: sigchan.New(1),
|
orderSig: sigchan.New(1),
|
||||||
|
|
||||||
tradeC: make(chan types.Trade, 100),
|
tradeC: make(chan types.Trade, 100),
|
||||||
tradeStore: NewTradeStore(symbol),
|
tradeStore: NewTradeStore(),
|
||||||
doneTrades: make(map[types.TradeKey]struct{}),
|
doneTrades: make(map[types.TradeKey]struct{}),
|
||||||
position: position,
|
position: position,
|
||||||
orderStore: orderStore,
|
orderStore: orderStore,
|
||||||
|
|
Loading…
Reference in New Issue
Block a user