Skip to content

max-lt/bot-spot-v2

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Simple Trading Bot V2

alt text

Required

Install

git clone https://github.com/Cryptomancien/bot-spot-v2.git
cd bot-spot-v2
bun install
cp .env.example .env

Config

  • Create an account on XeggeX
  • Enable 2FA
  • Create API key
  • Fill USDT
  • Change keys in .env

Launch

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 82.7%
  • HTML 17.3%