mirror of
https://github.com/d0zingcat/gocryptotrader.git
synced 2026-06-08 07:26:48 +00:00
Merge branch 'master' into engine
This commit is contained in:
@@ -379,7 +379,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),
|
||||
|
||||
Reference in New Issue
Block a user