Script for cryptocurrency exchanges
1. Main requirements:
✅ Monitoring balances on Binance, OKX, Bybit, Tapbit.
✅ Automatic transfer of funds between exchanges in case of liquidation risk (>80%).
✅ Sending messages to Telegram about all transactions.
✅ Handling failures and unstable internet connection.
✅ Running locally (without a server).
2. Script architecture:
2.1. Main modules:
- API request module to exchanges:
- Binance, OKX, Bybit – via official API.
- Tapbit – via HTTP requests (if possible, or simulating actions through the web interface - very extreme case).
- Balance processing module:
- Requests balance every
Xseconds. - Determines the most risky exchange (>80% margin usage).
- Determines where funds can be transferred from.
- Requests balance every
- Funds transfer module:
- Transfers funds between exchanges as needed.
- Sends notifications to Telegram.
- Error handling module:
- Restarts the script in case of failures.
- Uses retries in case of incorrect response.
3. Logic of operation:
- Obtaining balances from all exchanges.
- Calculating the level of margin load
- If the exchange has a liquidation risk (>80%):
- Find the exchange with the largest free balance.
- Transfer part of the funds to the risky exchange.
- Log the transaction and send a message to Telegram.
-
93973 1266 1 10 Hello. I have extensive experience in developing Telegram bots. I am ready to collaborate.
-
6195 53 4 Good morning. Overall, the task is clear and it will not be difficult to implement it, but there is one nuance that needs to be discussed. I will be waiting in private messages for this discussion.
-
1251 35 1 3 Hello Andrey, I am ready to complete the task.
I have the necessary work experience and would be happy to collaborate.
Message me privately, we will discuss the development.
-
598 12 2 I will complete your task immediately. Quickly and with quality. Over 6 years of experience in programming and administration.
-
доброго дня
чи є можливість надати більше деталей , хотя би приклад як має все працювати -