This endpoint requires a L2 Header.
Get single order by id.
HTTP REQUEST
GET /<clob-endpoint>/data/order/<order_hash>
Request Parameters
| Name | Required | Type | Description |
|---|
| id | no | string | id of order to get information about |
| Name | Type | Description |
|---|
| order | OpenOrder | order if it exists |
An OpenOrder object is of the form:
| Name | Type | Description |
|---|
| associate_trades | string[] | any Trade id the order has been partially included in |
| id | string | order id |
| status | string | order current status |
| market | string | market id (condition id) |
| original_size | string | original order size at placement |
| outcome | string | human readable outcome the order is for |
| maker_address | string | maker address (funder) |
| owner | string | api key |
| price | string | price |
| side | string | buy or sell |
| size_matched | string | size of order that has been matched/filled |
| asset_id | string | token id |
| expiration | string | unix timestamp when the order expired, 0 if it does not expire |
| type | string | order type (GTC, FOK, GTD) |
| created_at | string | unix timestamp when the order was created |
order = clob_client.get_order("0xb816482a5187a3d3db49cbaf6fe3ddf24f53e6c712b5a4bf5e01d0ec7b11dabc")
print(order)