mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-26 08:45:16 +00:00
ftx: invoke SetPublicOnly in orderbook command
This commit is contained in:
parent
34548f185c
commit
24254a869d
|
@ -44,6 +44,7 @@ var orderbookCmd = &cobra.Command{
|
||||||
}
|
}
|
||||||
|
|
||||||
s := ex.NewStream()
|
s := ex.NewStream()
|
||||||
|
s.SetPublicOnly()
|
||||||
s.Subscribe(types.BookChannel, symbol, types.SubscribeOptions{})
|
s.Subscribe(types.BookChannel, symbol, types.SubscribeOptions{})
|
||||||
s.OnBookSnapshot(func(book types.OrderBook) {
|
s.OnBookSnapshot(func(book types.OrderBook) {
|
||||||
log.Infof("orderbook snapshot: %s", book.String())
|
log.Infof("orderbook snapshot: %s", book.String())
|
||||||
|
|
Loading…
Reference in New Issue
Block a user