From 24254a869d68698c992a78bb0ff030f93d8f408c Mon Sep 17 00:00:00 2001 From: ycdesu Date: Sat, 27 Mar 2021 17:37:16 +0800 Subject: [PATCH] ftx: invoke SetPublicOnly in orderbook command --- pkg/cmd/orderbook.go | 1 + 1 file changed, 1 insertion(+) diff --git a/pkg/cmd/orderbook.go b/pkg/cmd/orderbook.go index e0a0fb09d..37cfe7afc 100644 --- a/pkg/cmd/orderbook.go +++ b/pkg/cmd/orderbook.go @@ -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())