Giter Site home page Giter Site logo

guram-asanidze-1-btu-edu-ge / binance_triangular_arbitrage_bot Goto Github PK

View Code? Open in Web Editor NEW
4.0 2.0 3.0 30 KB

The Binance Triangular Arbitrage Repository enables searching profitable pairs, opening market positions, and checking balances in USDT for efficient trading on Binance.

Python 100.00%

binance_triangular_arbitrage_bot's Introduction

Binance Triangular Arbitrage Bot

The Binance Triangular Arbitrage Bot is a tool for efficient trading on the Binance platform. It enables searching for profitable pairs, opening market positions, and checking balances in USDT.

Referal link with Bonus up to 200$ on rebate trade commission.

https://www.binance.com/ru/activity/referral-entry/CPA?ref=CPA_006LFCFOXC

Generating an API Key for Binance

To generate an API key for Binance, follow these steps:

  1. Visit the Binance website and sign in to your account.
  2. Navigate to the user dashboard or account settings section.
  3. Look for the API Management or API Settings option.
  4. Click on the "Create New API Key" or similar button.
  5. You may be asked to provide additional verification, such as two-factor authentication.
  6. Once verified, you will receive an API key and a secret key. Keep these keys secure and confidential.
  7. Optionally, you may have the option to set certain restrictions or permissions for your API key, such as enabling only specific trading functions or limiting IP addresses for API access.

Identifying Profitable Pairs with find_profitable_combo.py

The find_profitable_combo.py script helps you identify profitable triangular arbitrage opportunities using USDT as a base currency. It scans pairs like leg1 = 'USDTTRY', leg2 = 'currency2TRY', and leg3 = 'currency2USDT' to find potential profitable combinations. You start and end with USDT.

The output will look like this:

APIError(code=-1121): Invalid symbol.
APIError(code=-1121): Invalid symbol.
Profit percentage for USDTTRY, SXPTRY, SXPUSDT: -0.33%
Profit percentage for USDTTRY, ANKRTRY, ANKRUSDT: -0.30%
Profit percentage for USDTTRY, UMATRY, UMAUSDT: 0.34%
Profit percentage for USDTTRY, MBOXTRY, MBOXUSDT: 0.31%
...

Choose the symbols with a profit percentage greater than 0%.

Configuring buildbin.py

In buildbin.py, paste your profitable pairs like this:

texti = '''
Profit percentage for USDTTRY, ANKRTRY, ANKRUSDT: 0.30%
Profit percentage for USDTTRY, DARTRY, DARUSDT: 0.34%
...
Profit percentage for USDTTRY, ACHTRY, ACHUSDT: 0.26%
'''

Create multiple API keys if necessary, as there is a whitelist limit of 30 pairs per API key. Paste the maximum number of pairs for each key and use them like this:

count += 1
if 1 <= count <= 12:
    client = Client(api_key[0], api_secret[0])
elif 13 <= count <= 26:
    client = Client(api_key[1], api_secret[1])
...
elif 55 <= count <= 66:
    client = Client(api_key[4], api_secret[4])

Run buildbin.py and balancecheck.py simultaneously to check if you have real income in general and not just in USDT. ALSO better if you will have BNB on your account it will take less comitions from order.

IMPORTANT: Use this bot at your own risk. Good luck! If you have any suggestions or improvements, please open an issue and share your ideas for a better implementation of the script.

binance_triangular_arbitrage_bot's People

Contributors

guram-asanidze-1-btu-edu-ge avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  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.