A market buy consumes the cheapest available asks first.
Implement market_buy.
market_buy
filled_at_level * price
Buying 6 base units:
6
3
100
300
105
315
Return:
6 615