Skip to content

Commit 953c145

Browse files
committed
Update
1 parent 2bdee6d commit 953c145

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

exchanges/exsim/exsim.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -390,7 +390,7 @@ func (b *ExSim) matchLimitOrder(order *Order, immediate bool) (match bool, err e
390390
order.Status = OrderStatusFilled
391391
match = true
392392
} else { // Ask order
393-
filledAmount, avgPrice := b.matchBid(order.Amount, ob.Bids...)
393+
filledAmount, avgPrice := b.matchAsk(order.Amount, ob.Bids...)
394394
//if order.Price > ob.BidPrice() {
395395
if filledAmount == 0 {
396396
return

0 commit comments

Comments
 (0)