From f7d0d2c1bea90b5207c805359a49809c26915e24 Mon Sep 17 00:00:00 2001 From: Kevin Cotugno Date: Mon, 28 Sep 2020 22:14:59 -0700 Subject: [PATCH] Update api endpoints --- order_book.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/order_book.go b/order_book.go index 950465c..eed9701 100644 --- a/order_book.go +++ b/order_book.go @@ -78,7 +78,7 @@ func NewOrderBook(coin string) (*OrderBook, error) { var o OrderBook var err error - o.conn, _, err = websocket.DefaultDialer.Dial("wss://ws-feed.gdax.com", nil) + o.conn, _, err = websocket.DefaultDialer.Dial("wss://ws-feed.pro.coinbase.com", nil) if err != nil { return nil, err } @@ -254,7 +254,7 @@ func (o *OrderBook) loadOrderBook() { o.askLock.Unlock() o.bidLock.Unlock() - resp, err := http.Get(fmt.Sprintf("https://api.gdax.com/products/%v/book?level=3", coin)) + resp, err := http.Get(fmt.Sprintf("https://api.pro.coinbase.com/products/%v/book?level=3", coin)) if err != nil { o.sendError(err) o.Shutdown()