git clone https://github.com/Cryptomancien/bot-spot-v2.git
cd bot-spot-v2
bun install
cp .env.example .env
- Create an account on XeggeX
- Enable 2FA
- Create API key
- Fill USDT
- Change keys in .env
Check the setup
bun run main.ts -c
Complete your keys in .env
Then fill your USDT balance.
Next run the bot.
bun run main.ts
A menu will appear
Simple Trading Bot v2
--check -c Check config
--new -n Start new cycle
--update -u Update running cycles
--server -s Run server
Then check the setup.
bun run main.ts -c
✅ .env ok
✅ API_PUBLIC ok
✅ API_SECRET ok
✅ database ok
✅ keys ok
✅ USDT wallet ok
✅ Project updated
Everything look's like good
You can run a new cycle or update not completed ones
Once it's done, you have 2 commands to run every day (or every week or what ever)
bun run main.ts -n
Once it's done, you can update uncompleted ones.
bun run main.ts -u
Buy order xxx still active
Buy order xxx still active
Buy order xxx still active
Buy order xxx still active
Buy order xxx still active
Buy order xxx still active
If you used the v1, do this:
bun run scripts/migrate-v1-to-v2.ts
Enjoy