# Opening a New Order

```bash
export MARKET_ID=<your_market_id>
export TARGET_TOKEN_ADDRESS=<base_or_quote_token_address>
export ORDER_PRICE=<price>                          # Price is multiplied by 10**18              
export ORDER_SIZE=<amount_in_base_token_units>
export ORDER_SIDE=<0_for_Bid_or_1_for_Ask>          # MakerOrderSide enum
export ORDER_TYPE=<0_Post|1_IOC|2_Basic>            # MakerOrderType enum
export TIME_LIMIT=<0_GTC>                           # Only GTC supported currently

starkli invoke \
  <DEX_ADDRESS> \
  submit_maker_order \
  $MARKET_ID \
  $TARGET_TOKEN_ADDRESS \
  $ORDER_PRICE \
  $ORDER_SIZE \
  $ORDER_SIDE \
  $ORDER_TYPE \
  $TIME_LIMIT
```

**Important**:

* Approve tokens beforehand.
* If placing a **bid**, ensure you have approved the **quote** token.
* If placing an **ask**, ensure you have approved the **base** token.
* **IOC** can simulate a “market” or taker order if priced beyond the current best price.


---

# Agent Instructions: 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:

```
GET https://remusdex.gitbook.io/remusdex-docs/how-to-interact/opening-a-new-order.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
