> For the complete documentation index, see [llms.txt](https://tradewithonyx.gitbook.io/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://tradewithonyx.gitbook.io/docs/trading/types-of-orders.md).

# Types of Orders

<figure><img src="/files/tvD45nE9Ke0yryZAagL6" alt="" width="354"><figcaption></figcaption></figure>

### Basic Order Types

* Market Order: Executes immediately at the current market price.
* Limit Order: Executes at a specified price or better.
* Stop Market Order: Becomes a market order once the asset reaches the chosen stop price. Commonly used to limit losses or secure profits.
* Stop Limit Order: Becomes a limit order once the stop price is hit.
* Scale Order: Places a series of limit orders across a defined price range.
* TWAP (Time-Weighted Average Price): Splits a large order into smaller chunks, executed every 30 seconds to minimize market impact. Each suborder is limited to a maximum slippage of 3%.

***

### **Additional Order Options**

* Reduce Only: Ensures the order only reduces an existing position, never increases or flips it.
* Good Til Canceled (GTC): Stays active on the order book until filled or manually canceled.
* Immediate or Cancel (IOC): Executes all or part of the order immediately; cancels any unfilled portion.
* Post Only (ALO): Adds the order to the book without matching immediately which ensures maker-only execution.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://tradewithonyx.gitbook.io/docs/trading/types-of-orders.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
