Skip to content

Commit

Permalink
Bitmex compare initial orderbook snapsnot insensitive (thrasher-corp#331
Browse files Browse the repository at this point in the history
)
  • Loading branch information
mortensorensen authored and shazbert committed Jul 31, 2019
1 parent eb07c7e commit 3f71050
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion exchanges/bitmex/bitmex_websocket.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import (
"net/http"
"net/url"
"strconv"
"strings"
"time"

"github.com/gorilla/websocket"
Expand Down Expand Up @@ -376,7 +377,7 @@ func (b *Bitmex) processOrderbook(data []OrderBookL2, action string, currencyPai
var bids, asks []orderbook.Item

for _, orderbookItem := range data {
if orderbookItem.Side == exchange.SellOrderSide.ToString() {
if strings.EqualFold(orderbookItem.Side, exchange.SellOrderSide.ToString()) {
asks = append(asks, orderbook.Item{
Price: orderbookItem.Price,
Amount: float64(orderbookItem.Size),
Expand Down

0 comments on commit 3f71050

Please sign in to comment.