Self-Trade Prevention

Self-trading is not allowed. Two orders from the same wallet will not result in a fill.

By default, the taker order is canceled. You can change this behavior by specifying the stp flag. Possible values are

  • CANCEL_TAKER(default if not specified): Cancel the new order
  • CANCEL_MAKER: Cancel resting (maker) order and continue executing the new incoming taker order