Skip to content

Commit

Permalink
Fix order book dumper
Browse files Browse the repository at this point in the history
  • Loading branch information
mshogin committed Dec 18, 2020
1 parent 8e0d555 commit bb50c46
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ debian/randomtrader
# Randomtrader binary
cmd/randomtrader/randomtrader

# python
pkg/predict/python
# predict
predict

# deployment configuration
dcf
Expand Down
2 changes: 1 addition & 1 deletion pkg/exchange/order.go
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ func GetOrderBook() (*OrderBook, error) {
ob.Asks = append(ob.Asks,
orderBookItem{Amount: ask.Amount, Price: ask.Price})
}
for _, bid := range result.GetAsks() {
for _, bid := range result.GetBids() {
ob.Bids = append(ob.Bids,
orderBookItem{Amount: bid.Amount, Price: bid.Price})
}
Expand Down

0 comments on commit bb50c46

Please sign in to comment.