mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-10 09:11:55 +00:00
add OrderStore accessor on ExchangeSession
This commit is contained in:
parent
9040f6ff0d
commit
42b66d6898
|
@ -195,6 +195,11 @@ func (session *ExchangeSession) Market(symbol string) (market types.Market, ok b
|
|||
return market, ok
|
||||
}
|
||||
|
||||
func (session *ExchangeSession) OrderStore(symbol string) (store *OrderStore, ok bool) {
|
||||
store, ok = session.orderStores[symbol]
|
||||
return store, ok
|
||||
}
|
||||
|
||||
// Subscribe save the subscription info, later it will be assigned to the stream
|
||||
func (session *ExchangeSession) Subscribe(channel types.Channel, symbol string, options types.SubscribeOptions) *ExchangeSession {
|
||||
sub := types.Subscription{
|
||||
|
|
Loading…
Reference in New Issue
Block a user