A trading bot for binance. Still in progress.
Create .env file in server directory:
- binanceApiKey = "YOUR_BINANCE_PUBLIC_KEY"
- binanceApiSecretKey = "YOUR_BINANCE_SECRET_KEY"
- binanceApiUrl = "https://api.binance.com"
- clientUrl = "http://localhost:5173" If your client url different, make changes accordingly.
- mongoUri ="mongodb://127.0.0.1:27017/binanceData" (your mongodb connection string)
Also create .env file inside the client directory:
- VITE_serverUrl = "http://localhost:3000/binance-api/v1" If your server url different, make changes accordingly.
Execute inside the both client and server directories after cloning the repo:
npm install
Execute:
npm start
Or to start the server continuously with nodemon:
npm run devstart
Inside the frontend folder execute:
npm run dev
- It fetchs user data and shows the info of account.
- Shows a pie chart of assets.
- You can refresh any time your assets and max barrowable amount.
- You can use this page to calculate a manual order. It takes all the assets' value and calculates
5% risk as default. And than you can input your order risk, it will give you the maximum amount of
trade size. And it shows the profit and loss table.