mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-22 23:05:15 +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.SetPublicOnly()
|
||||
s.Subscribe(types.BookChannel, symbol, types.SubscribeOptions{})
|
||||
s.OnBookSnapshot(func(book types.OrderBook) {
|
||||
log.Infof("orderbook snapshot: %s", book.String())
|
||||
|
|
Loading…
Reference in New Issue
Block a user