ftx: invoke SetPublicOnly in orderbook command

This commit is contained in:
ycdesu 2021-03-27 17:37:16 +08:00
parent 34548f185c
commit 24254a869d

View File

@ -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())