# Orders Place, cancel, and query orders. ## Place order - [POST /v2/orders](https://docs.fxinside.net/openapi/integral-api-reference/rest/orders/placeorder.md): Place a new order. You can place various types of order such as limit, market, at best, previously quoted, stop, algo, pegged, and more. Under algo orders you can execute various strategies such as TWAP. Returns status code 202 if your order is accepted by the system for processing. Use the query order endpoints to get the current status of your order Query order (client ID or all active orders) or Query order (server ID). You can get all trades associated with an order using Query all trades on an order by ID. Trades contain information like counterparty, settlement date, and amount. ### Required request attributes for all order types All place-order requests must have the following attributes: - - - - - - ### Conditionally required request attributes and values Your request may require additional attributes based on the order type or attribute values. For example, if you place an order with (good-til-canceled) you must also specify . | Order type | Required attributes and values | |-|-| | Limit(IOC) | , , | | Limit(GTC) | , , | | Limit(GTT) | , , , | | Market(IOC) | , , | | At best | , , | | Stop | , , , execFlags=BidTrigger|OfferTrigger|MidTrigger | | Previously quoted | , , , | | Algo (TWAP) | , , | | On behalf of | , , | ## Query order (client ID or all active orders) - [GET /v2/orders](https://docs.fxinside.net/openapi/integral-api-reference/rest/orders/queryorderbyclientid.md): Get the order for the given client order ID. Omit the request parameter to return all active orders. ## Cancel all orders - [DELETE /v2/orders](https://docs.fxinside.net/openapi/integral-api-reference/rest/orders/cancelallorders.md): With best effort, cancel all active orders. This may require you to make the request multiple times until all of the open active orders are cancelled. You can call Query order (client ID or all active orders) to check if any order is still active. ## Query order (server ID) - [GET /v2/orders/{id}](https://docs.fxinside.net/openapi/integral-api-reference/rest/orders/queryorderbyserverid.md): Get the order for the given server order ID. ## Cancel individual order - [DELETE /v2/orders/{id}](https://docs.fxinside.net/openapi/integral-api-reference/rest/orders/cancelorder.md): Cancel a single active order by ID (the unique ID assigned by server, received in the place order response). Use Query order (server ID) or Query order (client ID or all active orders) to get the current status of your order.