Enumeration SelfTradePrevention

Provides all available self-trade prevention policies in a way that provides inline documentation, auto-completion, and linking for easy type/code navigation.

Enumeration Members

Enumeration Members

dc: "dc"

Decrement And Cancel (dc)

  • When two orders from the same user cross, the smaller order will be canceled and the larger order size will be decremented by the smaller order size.
  • If the two orders are the same size, both will be canceled.
co: "co"

Cancel Oldest (co)

  • Cancel the older (maker) order in full
cn: "cn"

Cancel Newest (cn)

cb: "cb"

Cancel Both (cb)

  • Cancel both orders