# setStopLoss()

Changes the position stop loss.

  • Interface
class MidaPosition {
    setStopLoss (stopLoss: MidaDecimalConvertible | undefined): Promise<MidaProtectionChange>;
}
  • Example 1
await myPosition.setStopLoss(1000);
  • Example 2
await myPosition.setStopLoss("0.000001");
  • Example 3
await myPosition.setStopLoss(undefined);