Lost gold to auction house

So i bought 9990x8 T1 Guardian stones for 2g a stack, Reput them on AH for 999 gold per 999 stacks(there are 10 in a stack) Sold them all for 3g a pop hoping for a profit, but ended up selling everything and still losing 5k gold, the deposits never come back. is this how the AH supposed to work?

The deposit is equal to the market tax. So if your item sells you don’t get it back because it goes to paying that tax.

But i sold them at 3g a pop, i should have made a profit

actually nvm i think i only had 30k instead of 35k, cause i bid on my main 5k on something

so i just evened out, sadge