> For the complete documentation index, see [llms.txt](https://remusdex.gitbook.io/remusdex-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://remusdex.gitbook.io/remusdex-docs/how-to-interact/opening-a-new-order.md).

# 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.
