Your newly submitted order is stored in the trading contract. The dark oracle network then picks up and prices your order. When you close your position in profit, the pool pays you your profit. When you close at a loss, your loss is sent to the pool.