랭킹으로 돌아가기

Haehnchen/crypto-trading-bot

TypeScript

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

cryptocurrencycryptoexchangetradingtrading-bottrading-strategieswebsocketnodejsbitfinexbitmexbinancetradingview
스타 성장
스타
3.5k
포크
1k
주간 성장
이슈
108
1k2k3k
2018년 9월2021년 4월2023년 12월2026년 7월
아티팩트npmnpm install crypto-trading-bot
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

관련 저장소
bitcoin/bitcoin

Bitcoin Core integration/staging tree

C++MIT Licensebitcoinc-plus-plus
bitcoincore.org/en/download
89.7k39.1k
freqtrade/freqtrade

Free, open source crypto trading bot

PythonPyPIGNU General Public License v3.0pythoncryptocurrencies
freqtrade.io
52.5k10.9k
ccxt/ccxt

A unified trading API with more than 100 crypto exchanges and prediction markets in JavaScript / TypeScript / Python / C# / PHP / Go / Java

PythonPyPIMIT Licensealtcoinapi
docs.ccxt.com
43.4k8.8k
hummingbot/hummingbot

Open source software that helps you create and deploy high-frequency crypto trading bots

PythonPyPIApache License 2.0cryptocurrencyarbitrage
hummingbot.org
19.2k4.8k
dogecoin/dogecoin

very currency

C++MIT Licensecryptocurrencydogecoin
15.2k3.1k
monero-project/monero

Monero: the secure, private, untraceable cryptocurrency

C++Otherc-plus-plusmonero
getmonero.org
10.7k3.5k
StockSharp/StockSharp

Algorithmic trading and quantitative trading open source platform to develop trading robots (stock markets, forex, crypto, bitcoins, and options).

C#Othertrading-strategiestrading-robots
stocksharp.com
10.4k2.2k
xmrig/xmrig

RandomX, KawPow, CryptoNight and GhostRider unified CPU/GPU miner and RandomX benchmark

CGNU General Public License v3.0moneroxmr
xmrig.com
10k3.8k
firmai/financial-machine-learning

A curated list of practical financial machine learning tools and applications.

PythonPyPIquantquantitative-finance
sov.ai
8.7k1.4k
polakowo/vectorbt

The backtesting engine that gives you an unfair advantage. Run thousands of trading ideas before others finish one.

PythonPyPIOtherbacktestingtrading
vectorbt.dev
8.4k1.1k
jesse-ai/jesse

An advanced crypto trading bot written in Python

JavaScriptnpmMIT Licensecryptocurrencytrading-bot
jesse.trade
8.2k1.2k
lightningnetwork/lnd

Lightning Network Daemon ⚡️

GoGo ModulesMIT Licensebitcoinlightning-network
8.2k2.3k