When min(ask) <= max(bid) this script will fill both orders up to the amount of the lowest quantity order so that the order books become correct: min(ask) > max(bid)
When min(ask) <= max(bid) this script will fill both orders up to the amount of the lowest quantity order so that the order books become correct: min(ask) > max(bid)