Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
f0cii committed Oct 13, 2020
1 parent 2bdee6d commit 953c145
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion exchanges/exsim/exsim.go
Original file line number Diff line number Diff line change
Expand Up @@ -390,7 +390,7 @@ func (b *ExSim) matchLimitOrder(order *Order, immediate bool) (match bool, err e
order.Status = OrderStatusFilled
match = true
} else { // Ask order
filledAmount, avgPrice := b.matchBid(order.Amount, ob.Bids...)
filledAmount, avgPrice := b.matchAsk(order.Amount, ob.Bids...)
//if order.Price > ob.BidPrice() {
if filledAmount == 0 {
return
Expand Down

0 comments on commit 953c145

Please sign in to comment.