Order Lifecycle
How orders move from creation to settlement.
Doji ensures a seamless trading experience by managing the complex lifecycle of an order across off-chain matching and on-chain settlement.
Intent & Creation
When you enter a trade in the Doji terminal, the application creates a structured Order Intent. This includes your selected market, side (Yes/No), price, and size.
Cryptographic Signing
To ensure security, every order intent must be signed by your wallet. Since Doji uses Magic Link and Gnosis Safe, this process is streamlined. Your signature authorizes the CLOB to match your intent.
API Submission
The signed order is submitted to the Polymarket CLOB API. At this stage, the order is "Open" and visible on the orderbook.
Matching (CLOB)
The CLOB matches buy and sell orders based on price-time priority. Once a match is found, the order is "Filled" or "Partially Filled".
On-chain Settlement
Matched orders are eventually batched and settled on the Polygon blockchain. This is where ownership of outcome tokens and collateral officially changes hands.
You can track the status of your orders in real-time within the Portfolio section of the Doji terminal.