Quote from jjw:
each time your order for 100 is filled, another order of 100 is appended to the order book at 1180 until your total of 5000 is depleted.
in your example, the first 100 traded were yours. as soon as that order was filled, another order of yours would go on the book at 1180, so the available quantity would still show 300. if 200 then traded, the quantity available would drop to 100 as those 200 were not yours. the next 100 to trade would be yours and if no one else put in offers at 1180, all subsequent orders would be yours, each with a quantity of 100.