在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称:lukeliasi/binance-dca-bot开源软件地址:https://github.com/lukeliasi/binance-dca-bot开源编程语言:JavaScript 95.1%开源软件介绍:Binance DCA (Dollar-Cost-Averaging) BotThis bot allows you to sit back and relax while it automatically invests in cryptocurrency on the Binance exchange for you. The bot allows you to set up recurring buys for any cryptocurrency supported on the exchange at any interval you want. Both fiat to crypto and crypto to crypto purchases supported. v2.0.0 breaking changesVersion ContentsSetupGenerate API keysCreate a new API key on Binance. You should select Enable Reading and Enable Spot & Margin Trading for the restrictions. Create the projectNode.js v13 or higher required. git clone https://github.com/lukeliasi/binance-dca-bot.git
cd binance-dca-bot
npm install Configure the botAll the required settings needs to be set using Environment Variables or Rename the Trades.js fileConfigure the NB: you may also define trades as an Environment Variables (see section below). Trades object
Environment Variables (.env)NB: These are all the supported settings:
Running the botUse this command to start the bot: Alternative: Using DockerYou can also build a Docker image of the bot and run it without having to install Node.js. To do that, and assuming Docker is installed, first build the image:
then you can execute it with:
DeploymentConsider running the bot in the cloud, so you do not need to run the bot constantly on your machine. Some options:
You will want to use PM2 process manager or similar on the server which keeps the bot running and can restart the bot automatically if the server or program crashes. Remember the remote server may be in a different timezone to you, run the command NB: If you are using Heroku, the free tier is enough for this bot. Please consider to use Kaffeine to keep the bot awake. Automating fiat deposits to BinanceFor further automation you can deposit funds into your Binance account automatically via bank transfer. Simply initiate a fiat deposit (bank transfer) via the Binance website and note down the bank details you need to pay to. The reference code and other details never change, so you can set up a standing order with your bank to automatically transfer money to Binance on a schedule with these details. As an exmaple, you could set up a standing order to deposit to Binance the day after you get paid, and then configure the bot to purchase your crypto the following day. DonationsIf you found this project helpful and would like to support me, you can donate to one of the following crypto addresses:
TODO list
DisclaimerUse at your own risk. I am not liable for how you use the bot. License |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论