Giter Site home page Giter Site logo

binance-dual_currency_arbitrage's Introduction

Binance-Dual_Currency_Arbitrage

(Beta) Bi-directional price engine for triangular arbitrage. Need to hold 2 base currencies

Usage

  1. Add key and secret in key/key.json

  2. run python arb_engine.py cur1 cur2

example : python arb_engine.py BNB BTC or python arb_engine.py BTC BNB create websockets subscription to all price stream that have both BNB/X and X/BTC symbols, regardless of currencies being the base or quote currencies.

Output

(+BNB)s1b2: sell ANKRBNB buy ANKRBTC make 0.012(BNB) 1.2% 2543

Explanation :

+BNB: The flow results in a net gain of BNB in the first two legs( / net loss in BTC), thus the final leg would sell BNBBTC.

s1b2: selling symbol 1 and buying symbol 2. sell ANKRBNB and buy ANKRBTC in this example.

make 0.012(BNB): Expected profit (without discounting commission)

1.2%: Profit margin(%)

2543: Quantity in target currency, ANKR in this example

Dependency

pip install requests websocket websocket-client

binance-dual_currency_arbitrage's People

Contributors

chrisckwong821 avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

binance-dual_currency_arbitrage's Issues

Error

C:\Users\Administrator\Desktop\Binance-Dual_Currency_Arbitrage-main>py arb_engine.py BNB BTC
File "arb_engine.py", line 86
arb_engine = arb_engine((Basecur1=sys.argv[1], Basecur2=sys.argv[2],strategy=strategy)
^
SyntaxError: invalid syntax

Commercial version

Hi bro,

i've sent you an Email regarding making a deal about some commercial version of this bot maybe?

Let me know if you are interested,

Regards,

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.