add OrderStore accessor on ExchangeSession

This commit is contained in:
c9s 2021-01-24 19:08:12 +08:00
parent 9040f6ff0d
commit 42b66d6898

View File

@ -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{