Giter Site home page Giter Site logo

mfaxyz / crypto-triangular-arbitrage-bot Goto Github PK

View Code? Open in Web Editor NEW
80.0 6.0 33.0 72 KB

The algorithm to calculate Triangular Arbitrage with depth on Centralised exchanges.

Home Page: https://github.com/MfaXyz/Crypto-Triangular-Arbitrage-Bot

License: MIT License

Python 100.00%
algorithmic-trading arbitrage arbitrage-bot arbitrage-opportunity arbitrage-trading blockchain crypto cryptocurrency exchange market-data python triangular-arbitrage

crypto-triangular-arbitrage-bot's Introduction

Crypto-Triangular-Arbitrage-Bot

The algorithm to calculate Triangular Arbitrage with depth on Centralized exchanges.

Introduction

This algorithmic trading bot checks and detects arbitrage opportunities. This works on any Exchange with minor configuration. I'm just right now config script for kucoin exchange.

Features

  • Establish all traceable Triangular Arbitrage pairs unseen by others.
  • Calculate surface rate opportunities across all pairs.
  • Calculate real rates for arbitrage with depth.

Setup & Guide

git clone https://github.com/MfaXyz/Crypto-Triangular-Arbitrage-Bot.git
Install Python!
set path of python https://stackoverflow.com/questions/3701646/how-to-add-to-the-pythonpath-in-windows
and run python file: python main.py

for find structuring pairs your must uncomment these two lines:

coin_list = first_step()
structured_pairs = second_step(coin_list)

and comment last line:

while True:
    third_step()

after a while a json file named structured_triangular_pairs.json will create.

Contributions & Further Improvement

Feel free to contribute! You are so much welcome! We have huge problem in our code, execution part, which is related to the execution of the transaction in the exchange, does not work properly and you will most likely lose money after its execution! I look forward to your commits to make this part profitable.

crypto-triangular-arbitrage-bot's People

Contributors

mfaxyz avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

crypto-triangular-arbitrage-bot's Issues

bug

hi
thanks for this source
when run this project get error :
Traceback (most recent call last):
File "C:\Users\Hossein\PycharmProjects\arbitrage2\triarb_kucoin.py", line 20, in
"USDT": float(user.get_account('account_id')['available']),
File "C:\Users\Hossein\PycharmProjects\arbitrage2\venv\lib\site-packages\kucoin\user\user.py", line 130, in get_account
return self._request('GET', '/api/v1/accounts/{accountId}'.format(accountId=accountId))
File "C:\Users\Hossein\PycharmProjects\arbitrage2\venv\lib\site-packages\kucoin\base_request\base_request.py", line 99, in _request
return self.check_response_data(response_data)
File "C:\Users\Hossein\PycharmProjects\arbitrage2\venv\lib\site-packages\kucoin\base_request\base_request.py", line 116, in check_response_data
raise Exception("{}-{}".format(response_data.status_code, response_data.text))
Exception: 200-{"code":"230008","msg":"account not exist"}

Video explanation

Pls can you make a YouTube video on how to run the software giving problem
"No Module named request'

Account not exist

*When i try to start the bot exception: 200- "code":"230008","msg":"account not exist" error
All the API information I entered is complete and correct.

Go to '"python triarb_kucoin'
See error

Screenshots
accountnotexist

**Desktop
Windows 10

local variable 'pair_a_ask' referenced before assignment

hi . i run this project and get this error :

Traceback (most recent call last):
File "C:\Users\Hosein\PycharmProjects\Crypto-Triangular-Arbitrage-Bot\triarb_kucoin.py", line 661, in
third_step()
File "C:\Users\Hosein\PycharmProjects\Crypto-Triangular-Arbitrage-Bot\triarb_kucoin.py", line 572, in third_step
prices_dict = get_price_for_t_pair(t_pair, prices_json)
File "C:\Users\Hosein\PycharmProjects\Crypto-Triangular-Arbitrage-Bot\triarb_kucoin.py", line 126, in get_price_for_t_pair
"pair_a_ask": pair_a_ask,
UnboundLocalError: local variable 'pair_a_ask' referenced before assignment

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.