mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-10 09:11:55 +00:00
move stream close call right after the connect
This commit is contained in:
parent
704c6eed96
commit
791a745951
|
@ -33,10 +33,9 @@ func (e *Exchange) QueryAveragePrice(ctx context.Context, symbol string) (float6
|
|||
return util.MustParseFloat(resp.Price), nil
|
||||
}
|
||||
|
||||
func (e *Exchange) NewPrivateStream(ctx context.Context) (*PrivateStream, error) {
|
||||
func (e *Exchange) NewPrivateStream() (*PrivateStream, error) {
|
||||
return &PrivateStream{
|
||||
Client: e.Client,
|
||||
// ListenKey: listenKey,
|
||||
}, nil
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user