GithubHelp home page GithubHelp logo

bazickoff / multiexchangesarbitragemonitor Goto Github PK

View Code? Open in Web Editor NEW

This project forked from taekhyang/multiexchangesarbitragemonitor

0.0 0.0 0.0 16 KB

Monitoring arbitrages between multiple exchanges (Bianance, Bithumb, Huobi, Mexc, Upbit)

Python 100.00%

multiexchangesarbitragemonitor's Introduction

MultiExchangesArbitrageMonitor

Monitor arbitrages between multiple exchanges (Bianance, Bithumb, Huobi, Mexc, Upbit) and spot the meaningful arbitrage rate

  1. It spots the arbitrage based on "orderbook's highest and lowest bid-ask difference" between different exchanges
  2. It spots the arbitrage based on "latest trade price difference" between different exchanges
  • Added 5 exchange public & private baseapi, websocket subscriber (orderbook price, trade price)

  • MultiExchangeCrawler thread for updating ArbitrageByOrderBookHighLowPrice & ArbitrageByLastTradePrice & self.exchange_rates_dict and sending those to pyqt thread through arbitrage_queue

  • ArbitrageMonitorModel creates arbitrage_monitor sqlite3 memory db and creates default table by calling migrate()

  • ArbitrageMonitorModel's default table is exclude_set which stores user's excluding pairs

  • ArbitrageMonitor thread for reading two types of "arbitrage objects" & "exchange rates" in run() method, you can use object attributes in ArbitrageByOrderBookHighLowPrice & ArbitrageByLastTradePrice.

  • If ArbitrageMonitor gets excluding pair signal from user, you should call register_exclude() for updating exclude pairs in db and call trigger_exclude_queue(). When you call trigger_exclude_queue(), MultiExchangeCrawler gets trigger_flag which is True then calls _update_exclude_list() to update exclude list and filter those list.

  • telegram setting can be configured in config.ini file and it consists of two types which are orderbook_high_low & trade_price

  • If you want send telegram message, then call send_telegram()

Hid all exchanges baseapi except bithumb for personal reason

multiexchangesarbitragemonitor's People

Contributors

taekhyang avatar taekhyangkim avatar

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.