# 分享-交易机器人（支持Binance、Coinbase、FTX永续合约等多种交易所）

By [jambestwick](https://paragraph.com/@vatalikbuterin) · 2022-04-14

---

1.环境搭建
------

对于小白来说，需要一些基础准备工作，一台Linux或mac的系统电脑，开发工具下载安装（webstorm或Visual Studio）

Webstorm

[https://www.jetbrains.com/webstorm/](https://www.jetbrains.com/webstorm/)

Visual Studio

[https://code.visualstudio.com/](https://code.visualstudio.com/)

Git下载工具

[https://git-scm.com/](https://git-scm.com/)

2.准备工作做好，下载代码运行
---------------

Crypto Trading Bot

[https://github.com/jambestwick/crypto-trading-bot](https://github.com/jambestwick/crypto-trading-bot)

3.简单说明
------

用于**Bitfinex**、Bitmex 和 Binance 等常见交易所的加密货币。由于大多数交易机器人只提供基本的买卖信号，因此它们提供了许多东西来获得利润，例如主要机器人不支持止损或止损限价等交易订单。也必须打破固定时间框架和技术指标的限制。

特征
--

*   充分利用 Websocket 进行交换通信，在市场上尽快做出反应
    
*   一个实例中的多对支持
    
*   sqlite3 存储蜡烛，股票行情，...
    
*   网络服务器用户界面
    
*   支持“做空”和“做多”
    
*   信号对的浏览器仪表板
    
*   Slack 和电子邮件通知
    
*   加入外汇蜡烛（例如，在 Bitmex 上使用移动速度更快的 Binance 交易/蜡烛进行交易）
    
*   TODO：显示可能的套利交易
    

### 交易支持

*   具有杠杆配置的[Bitmex](https://www.bitmex.com/register/jS4mLN)
    
*   [Bitmex 测试网](https://www.bitmex.com/register/jS4mLN)
    
*   [币安](https://www.binance.com/?ref=17569916)
    
*   [币安保证金](https://www.binance.com/?ref=17569916)
    
*   [币安期货](https://www.binance.com/en/futures/ref/302644)
    
*   [Coinbase Pro](https://www.coinbase.com/join/5a2ae60e76531100d3af2ee5)
    
*   [Bitfinex](https://www.bitfinex.com/?refcode=kDLceRHa)（保证金钱包）
    
*   [Bybit](https://www.bybit.com/app/register?ref=46AK7)杠杆配置
    
*   [FTX](https://ftx.com/#a=1494781)（仅限永续合约）
    

根据文档说明运行即可

![Dashboard](https://storage.googleapis.com/papyrus_images/a0898dbcc46ea6a3c8e485cbefba63ecc37cb7e23504d9bbf6f699956120306b.png)

Dashboard

![Trades / Positions / Orders](https://storage.googleapis.com/papyrus_images/276bdfc25aab75b83d8b61a249162ca1a3986147589b8d33a67be0fe1b4db3d9.png)

Trades / Positions / Orders

![Backtesting
Currently there is a the UI for backtesting](https://storage.googleapis.com/papyrus_images/8120f665a2d9b235b2d78cdb816f53804437eaf5bbb591305281fb158f6ef1c3.png)

Backtesting Currently there is a the UI for backtesting

![Manual Orders](https://storage.googleapis.com/papyrus_images/dad7730b68afbe9089786d77d3e8bb90e89f62dab394cf42e48ff654ad693ed2.png)

Manual Orders

![Slack测试效果](https://storage.googleapis.com/papyrus_images/ff4cd1ddb9dd5c69a40f2cb6430ea7bf32b9db0d936fc8652fbfd228f7294c7d.png)

Slack测试效果

---

*Originally published on [jambestwick](https://paragraph.com/@vatalikbuterin/binance-coinbase-ftx)*
