giansalex/binance-stoploss ? reverse-engineered prompt
Reverse engineered prompt
Build me a simple Go app that watches a Binance trading pair and places a stop loss or trailing stop order when the price moves against me. I want to be able to choose either buy or sell mode, set the pair like BTC/USDT, set a trailing percent or a fixed stop price, and optionally set an amount to trade. If the price changes, the bot should keep checking it on a timer and trigger the order when the stop condition is met.
Please also add optional notifications through Telegram and email so I can get alerts when the stop changes or an order is placed. Use environment variables for the Binance API key and secret, and make it easy to run from the command line or in Docker. If you need to, look up the current Binance and Telegram docs online so the setup is correct.
Are you gonna build this?
make sure you review the code using coderabbit