- Notifications
You must be signed in to change notification settings - Fork3
仮想通貨Botトレード開発
NotificationsYou must be signed in to change notification settings
tsu-nera/bakuchi
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
仮想通貨 Bot トレード開発
仮想通貨 Bot を開発して利益を出すためのプロジェクト。
ログや分析レポートは別リポジトリで管理。
https://github.com/tsu-nera/bakuchi_analysis
戦略は、とりあえずローリスク・ローリターンのアービトラージ(裁定取引)で実装する。
- python 3.7
- ccxt 1.23
$ git clone https://github.com/tsu-nera/bakuchi.git$ cd bakuchi$ git clone https://github.com/tsu-nera/bakuchi_analysis data# 各取引所の認証情報を記載$ cp src/.env.sample src/.env$ emacs -nw src/.env# pythonのライブラリいろいろいれる(TODO: あとで必須のものを追記)$ conda install numpy pandas jupyter notebook matplotlib$ pip install ccxt invoke python-dotenv$ pip install tablulate urllib3 $ conda install psutil sortedcontainers$ pip install python-socketio[client]==4.6.1 # 5はダメっぽい$ # pip install liquidtap --use-deprecated=legacy-resolver # なんか0.56.0じゃないと動かないぞ?なんだこりゃ$ # https://reon777.com/2019/04/28/liquidtap/$ # pip install websocket-client==0.56.0$ pip install yapf flake8# Bot稼働$ inv bot
タスクランナーにはinvoke
を利用している。
$ pip install invoke
終了は Ctrl+c。
# bot稼働$ inv bot# デモトレード: 実際のorderは実施しない。$ inv demo-trade
バックテストのためには、事前にデータを用意する。
# バックテスト$ inv backtest [data/historicals配下のディレクトリ名]# シミュレーション: バックテストを走らせている時に1secずつdelayをいれているだけ$ inv simulate [data/historicals配下のディレクトリ名]
$ crontab -e# 1時間ごとに実行0 */1 * * * ~/repo/bakuchi/bin/asset-bot.sh
あとでちゃんと書く。
- Zaif
- BITPoint
- Huobi
- BTCBOX
- GMO コイン
5 年前の FX シストレ失敗作
About
仮想通貨Botトレード開発