# setTakeProfit()
Changes the position take profit.
- Interface
class MidaPosition {
setTakeProfit (takeProfit: MidaDecimalConvertible | undefined): Promise<MidaProtectionChange>;
}
- Example 1
await myPosition.setTakeProfit(1000);
- Example 2
await myPosition.setTakeProfit("0.000001");
- Example 3
await myPosition.setTakeProfit(undefined);