RemusDEX Docs
  • Introduction
  • Audit
  • Key Features
  • Architecture & Concepts
  • Contract Addresses
  • How to Interact
    • Checking Market Status
    • Opening a New Order
    • Fetching All User Orders
    • Removing (Canceling) an Order
    • Claiming Matched Proceeds
    • Claiming Fees (For Contract Owner)
    • Viewing the Orderbook
  • IRemusDEX Trait Reference
Powered by GitBook
On this page
  1. How to Interact

Opening a New Order

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.

PreviousChecking Market StatusNextFetching All User Orders

Last updated 4 months ago