I was able to buy all items of a stack at the market by pressing ctrl and left mouseclick. Sadly i did not have enough money to buy all the items. Now i got a negative balance.