📚
Duality Documentation
  • What is Duality?
  • Concepts
    • AMMs and Orderbooks
    • Liquidity Pools
    • Ticks
    • TickLiquidity
      • Pool Reserves
        • Fees
      • Limit Order Tranches
    • Liquidity Iteration
    • Swaps
    • Overview
  • Module Documentation for Developers
    • DEX Module
      • Transaction Messages
        • Deposit
        • Withdrawal
        • MultiHop Swap
        • Place Limit Order
        • Cancel Limit Order Message
        • Withdraw Filled Limit Order
      • Queries
  • Dictionary
  • Advanced Concepts
    • Replicating Market Makers
    • Shared Liquidity
  • User Interface
Powered by GitBook
On this page
  • Overview
  • Cancel Limit Order Message
  • MsgCancelLimitOrder
  1. Module Documentation for Developers
  2. DEX Module
  3. Transaction Messages

Cancel Limit Order Message

Explanation of the CancelLimitOrder transaction

Overview

Standard Taker limit orders (Good-til-cancelled & Good-til-Time) can be canceled at any time if they have not been completely filled. Once a limit order is canceled any remaining “TokenIn” liquidity is returned to the user.

NOTE: Canceling a partially filled limit order does not withdraw the traded portion. A separate call must be made to WithdrawFilledLimitOrder to withdraw any proceeds from the limit order

Cancel Limit Order Message

message MsgCancelLimitOrder {
    string creator = 1;
    string tranche_key = 2;
}

MsgCancelLimitOrder

Field
Description

Creator string (sdk.AccAddress)

Account which controls the limit order and to which any untraded amount is credited

TrancheKey string

TrancheKey for the target limit order

PreviousPlace Limit OrderNextWithdraw Filled Limit Order

Last updated 1 year ago