Links

Fill Types

Like in traditional trading exchanges, proton DEX supports different fill types.
GTC(Good-Till-Cancel)(= 0): Order will be in queue until it gets executed/fills completely or user can cacel at anytime.
IOC(Immediate-Or-Cancel)(= 1): Order will be executed/filled immediately based on the quantity available in the open orders in the orderbook, remaining unfilled orders will be cancelled. Incase of no matching fills, entire order will get cancelled.
POST_ONLY(= 2): it will not be executed/filled immediately even though matching orders available in the orderbook. This kind of orders adds liquidity to the market.