Order Lifecycle
When a user places an order, it flows through Orderly’s layered architecture:- The Broker Front-end Layer forwards the signed order request
- The Messaging Layer verifies the request signature
- The Engine Layer matches the order off-chain using price-time priority
- The user receives order and execution updates
- On execution, matched trade data is batched and uploaded to the Settlement Layer
- After L2 inclusion, the matched trade data is publicly observable on Orderly L2
- Each L2 batch or block publishes its batch data to Ethereum as calldata or blob data, which becomes observable after the L1 publication is available
API Reference
Orders are managed through the following APIs:- Create order: POST
/v1/order - Batch create orders: POST
/v1/batch-orderbatches client order submissions; it is separate from post-match settlement batching. - Edit order: PUT
/v1/order - Cancel order: DELETE
/v1/order - Cancel all orders: DELETE
/v1/orders - Get order: GET
/v1/order/{oid} - Get orders: GET
/v1/orders