Get Open Orders
Get all open (not filled or canceled) orders for a user by specified parameters.
Request
Method:
GET ./api/v2/openbook/open-orders/{market}
Parameters:
Parameter | Type | Description |
---|---|---|
| string | Smart contract address/symbol of the market. |
| string | OPTIONAL. Trading account address to be fetched. Leave blank for all accounts. |
| string | OPTIONAL. Open orders address to be fetched. |
| string | OPTIONAL. Specify which future contract to fetch position details. Ex. |
| number | OPTIONAL. The maximum number of orders to fetch. Use "0" for no limits. Default |
Note that only one of address
or openOrdersAddress
should be specified. If you specify an address
, all open orders addresses associated with your address and the specified market will be fetched, which can be a time-consuming lookup.
Request example:
Response:
Fields:
Parameter | Description |
---|---|
| See Orders below. |
| Name of the DEX project. |
Orders:
Field | Description |
---|---|
| Unique order ID |
| Market of the order. |
| Side of order: β |
| Types of order, β |
| The price of the order. |
| Original size of the order. |
| Size of order not yet filled. |
| Timestamp when the fill was created. |
| Order status |
Example:
Last updated