Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/maddeveloper/trading-bot
https://github.com/maddeveloper/trading-bot
Last synced: 22 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/maddeveloper/trading-bot
- Owner: MadDeveloper
- License: mit
- Created: 2020-05-31T11:28:39.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2022-12-07T05:16:04.000Z (about 2 years ago)
- Last Synced: 2024-11-08T20:19:15.597Z (3 months ago)
- Language: TypeScript
- Size: 317 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Theddy the bot
## Installation
```bash
git clone https://gitlab.com/MadDeveloper/bot-warhead.git theddy
cd theddy
npm install --global typescript lite-server
npm install
```Create your API keys on the platform (binance, gdax, etc.) and export them as environment vars.
For exemple, on Linux, add to your ~/.bashrc the following lines:```bash
export BINANCE_API_KEY=lorem
export BINANCE_API_SECRET=lorem
export BINANCE_API_PASSPHRASE=lorem
export GDAX_API_KEY=lorem
export GDAX_API_SECRET=lorem
export GDAX_API_PASSPHRASE=lorem
```## Getting started
You can configure the bot with the config file, one file per market (for example: `config.binance.ts` for the Binance market).
When you are ready, you can build and start the bot with one command:```bash
npm run build:start
```Or one by step:
```bash
npm run build && npm start
````If you want to see in realtime the chart:
```bash
npm run chart
```And then you can go to http://localhost:3000 and watch the magic happening!
## Docker
### Setup```bash
touch envfile
```Then add the following lines to the envfile:
```bash
BINANCE_API_KEY=xxxxxx
BINANCE_API_SECRET=xxxxx
BINANCE_API_PASSPHRASE=xxxxx
GDAX_API_KEY=xxxx
GDAX_API_SECRET=xxxxx
GDAX_API_PASSPHRASE=xxxxx
```### Build
```bash
docker build -t theddy .
```or
```bash
npm run docker:build
```### Run
```bash
docker run -it --env-file envfile -p 3000:3000 theddy
```or
```bash
npm run docker:run
```