1.6 KiB
1.6 KiB
Documentation Index
Fetch the complete documentation index at: https://docs.polymarket.com/llms.txt Use this file to discover all available pages before exploring further.
Get Active Orders
This endpoint requires a L2 Header.
Get active order(s) for a specific market.
HTTP REQUEST
GET /<clob-endpoint>/data/orders
Request Parameters
| Name | Required | Type | Description |
|---|---|---|---|
| id | no | string | id of order to get information about |
| market | no | string | condition id of market |
| asset_id | no | string | id of the asset/token |
Response Format
| Name | Type | Description |
|---|---|---|
| null | OpenOrder[] | list of open orders filtered by the query parameters |
resp = client.get_orders( OpenOrderParams( market="0xbd31dc8a20211944f6b70f31557f1001557b59905b7738480ca09bd4532f84af", ) ) print(resp) print("Done!")
```javascript Typescript theme={null}
async function main() {
const resp = await clobClient.getOpenOrders({
market:
"0xbd31dc8a20211944f6b70f31557f1001557b59905b7738480ca09bd4532f84af",
});
console.log(resp);
console.log(`Done!`);
}
main();