MIT License

项目介绍

Haehnchen/crypto-trading-bot 是一个托管在 GitHub 上的开源项目,主要使用 TypeScript 编写,采用 MIT License 许可证,目前获得 3.5k 个 Star、956 次 Fork。

仓库全名
Haehnchen/crypto-trading-bot
开源许可证
MIT License
Star 数
3.5k
Fork 数
956
未关闭 Issue
108

README 摘要

Crypto Trading Bot A cryptocurrency trading bot supporting multiple exchanges via CCXT. Not production ready only basic functionality Features Multi pair support in one instance sqlite3 storage for candles, tickers, ... Webserver UI with dashboard Support for going "Short" and "Long" Signal browser dashboard for pairs Slack, Telegram and email notification Profile-based bot management with strategy execution…

完整内容见 GitHub 原始 README 或本页 。

常见问题

crypto-trading-bot 用什么语言开发?

主要使用 TypeScript 编写,采用 MIT License 许可证,目前有 3.5k 个 Star。

crypto-trading-bot 可以免费商用吗?

仓库采用 MIT License 许可证,可免费使用与修改,商业使用请遵守许可证条款(例如保留版权声明与许可声明)。

如何获取 crypto-trading-bot 的源码?

可以直接克隆仓库:git clone https://github.com/Haehnchen/crypto-trading-bot.git,默认分支为 master;安装与运行步骤见仓库 README。

crypto-trading-bot 最近还在维护吗?

仓库最近一次更新为 8月2日,当前有 108 个未关闭 Issue;Star 数为 3.5k,可作为社区活跃度的参考。

关于

GitHub 原始描述(英文)

Cryptocurrency trading bot in javascript for Bitfinex, Bitmex, Binance, Bybit ... (public edition)

描述取自 GitHub 官方 API,保持仓库作者书写的原文。

语言占比

EJS
JavaScript
TypeScript

README

Crypto Trading Bot

Build Status

A cryptocurrency trading bot supporting multiple exchanges via CCXT.

Not production ready only basic functionality

Features

  • Multi pair support in one instance
  • sqlite3 storage for candles, tickers, …
  • Webserver UI with dashboard
  • Support for going “Short” and “Long”
  • Signal browser dashboard for pairs
  • Slack, Telegram and email notification
  • Profile-based bot management with strategy execution
  • CCXT-based exchange support (100+ exchanges)

Technical stuff and packages

How to use

[optional] Preinstall

For building sqlite and indicators libraries (if needed)

sudo apt-get install build-essential

Start

npm install --production
npm start
# or with special port
# npm start -- --port=55555
open browser: http://127.0.0.1:8080

Web UI

Dashboard

Webserver UI

Trades / Positions / Orders

Webserver UI

Manual Orders

Webserver UI

Build In Strategies

Common strategy with indicators are inside, which most of the time are not profitable. See some more advanced strategy in the list below

Find some example strategies inside src/strategy/strategies

Custom Strategies

For custom strategies use var/strategies folder.

# simple file structure
var/strategies/your_strategy.js

# or wrap strategy into any sub folder depth
var/strategies/my_strategy/my_strategy.js

Signals

Slack

Webserver UI

Tests

npm test

Security / Authentication

As the webserver provides just basic auth for access you should combine some with eh a https for public server. Here s simple proxy_pass for nginx.

# /etc/nginx/sites-available/YOURHOST
server {
    server_name YOURHOST;

    location / {
        proxy_pass http://127.0.0.1:8080;
    }

    listen 443 ssl; # managed by Certbot
    ssl_certificate /etc/letsencrypt/live/YOURHOST/fullchain.pem; # managed by Certbot
    ssl_certificate_key /etc/letsencrypt/live/YOURHOST/privkey.pem; # managed by Certbot
    include /etc/letsencrypt/options-ssl-nginx.conf; # managed by Certbot
    ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem; # managed by Certbot
}

Setting Up Telegram Bot

First, you’ll need to create a bot for Telegram. Just talk to BotFather and follow simple steps until it gives you a token for it. You’ll also need to create a Telegram group, the place where you and crypto-trading-bot will communicate. After creating it, add the bot as administrator (make sure to uncheck “All Members Are Admins”).

Retrieving Chat IDs

Invite @RawDataBot to your group and get your group id in sended chat id field

Message
 ├ message_id: 338
 ├ from
 ┊  ├ id: *****
 ┊  ├ is_bot: false
 ┊  ├ first_name: 사이드
 ┊  ├ username: ******
 ┊  └ language_code: en
 ├ chat
 ┊  ├ id: -1001118554477
 ┊  ├ title: Test Group
 ┊  └ type: supergroup
 ├ date: 1544948900
 └ text: A

Look for id: -1001118554477 is your chat id (with the negative sign).

Trading Bots Inspiration

Other bots with possible design pattern

Strategies

Some strategies based on technical indicators for collection some ideas

评论

暂无评论