A very basic rule based trading bot for Binance. For fun, not profit.
-
git clone https://github.com/nikosandronikos/cryptotrader9000.git
-
Install dependencies with
npm install
ornpm install --production
-
Set environment variables (see [Environment Variables](#Environment Variables))
-
Run the test bot with
npm start
Note , if running nodejs directly rather than via the 'npm start
'
command, the '--experimental-modules
' flag is required to enable ES6
module support in NodeJS.
The following environment variables are required. They may be configured in a '.env' file or within the OS environment:
- BINANCEACCOUNT_NAME; A human readable name for the account
- BINANCEACCOUNT_KEY; The account key from Binance
- BINANCEACCOUNT_SECRET; The account key secret from Binance
- TELEGRAM_KEY; (optional) A key for a telegram bot
- TELEGRAM_CHANNEL; (optional) The telegram channel to send messages to
There is currently no mechanism to simply import this as a library into your own packages. In the future this module will be available via NPM.
The initial entry point is the BinanceAccess class.
Full documentation is available at: https://nikosandronikos.github.io/cryptotrader9000/
Note that esdoc doesn't like the method used to mixin ObservableMixin to other classes. This results in blank documentation for any class using ObservableMixin. Sorry! You'll just have to look at the source for now.
Run the tests with
npm test