Files
trading_bot_v4/app/api/trading/reduce-position
mindesbunister a07bf9f4b2 Add position reduction feature via Telegram
- New endpoint: /api/trading/reduce-position to take partial profits
- Closes specified percentage at market price
- Recalculates and places new TP/SL orders for remaining size
- Entry price stays the same, only size is reduced
- Telegram command: /reduce [percent] (default 50%, range 10-90%)
- Shows realized P&L from the closed portion
- Example: /reduce 25 closes 25% and updates orders for remaining 75%
2025-10-27 20:34:47 +01:00
..