Giter Site home page Giter Site logo

btc_bot_framework's Introduction

暗号通貨高頻度取引bot用websocketベースフレームワーク

概要

Pythonによる暗号通貨の高頻度取引bot向けフレームワークです。
このフレームワークの役割は主に以下の3つです。

  • websocketを最大限利用することでAPI制限とデータ取得遅延の問題を緩和すること。
  • 取引所毎のwebsocketの仕様の差異を吸収すること。
  • Bot開発において頻繁に出現する処理を再利用可能な形でモジュール化すること。

簡単な動作確認しかできていないので、バグが多く残っているものと思われます。
コードを参考にする程度に留めるか、実行する際はご自身で十分に検証を行ってください。
プログラムの実行は自己責任です。不具合等によって損失が生じた場合でもこちらでは責任を負えません。

主な機能

  • websocket経由の約定データ、板情報、注文イベントの取得
  • 注文・キャンセル
  • 注文イベントの処理: 注文管理、ポジションサイズ計算、(未確定)損益計算
  • ポジションの仮想的な分割(複数ロジックの実行)
  • リアルタイムシミュレーション
  • UDP経由の操作(webインターフェース等との連携用)
  • クラス(ロジックファイル)の動的なロード・アンロード

取引所対応状況

取引所 API 約定情報 板情報 建玉管理・注文管理 バグ取り
bitbank ×
bitflyer
bitmex
binance
bybit
gmocoin ×
liquid △(JPYペアのみ)

動作環境

  • UNIX互換環境(Windowsは未検証)
  • python>=3.6.1

依存ライブラリ

  • ccxt>=1.40.51
  • websockets
  • sortedcontainers

インストールと使い方

wikiをご覧ください。

このプロジェクトの対象外

  • STOP、IFDOCO等の親注文
  • ローソク足やインジケータ等のチャート情報
  • 実用的な売買ロジック

今後の予定

  • gmocoin, bitbank 注文周りの実装

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.