Python - Telegram bot + API
Two Telegram clients;
1) bot
2) logging into an existing account to preview messages on channels
2) m-futures exchange
Main assumption;
The Python script/bot listens to the specified channels (ID) on Telegram, when a message arrives, it recognizes whether it is a signal for the exchange, if so, it places an order on the exchange
signal in the following format;
📉 #XXXX/USDT | BITGET
SHORT: 0.xxxx$ - 0.xxx$
1) 0.xxx$
2) 0.xxx$
3) 0.xxx$
STOP LOSS: 0.xxxx$
(note, the signal may contain special characters like * /, it does not have to contain the $ sign, sometimes TPs are given as 1. 2. 3., sometimes instead of STOP LOSS there is SL) - regexp must account for this
take profits can be from 1 to 8
functionality principle of the bot:
there is a price range for entering a position; 0.100 - 0.200 - the bot divides this entry into 3 orders (the option should be configurable by the user)
we set in the bot what % of the account balance should be on one signal, e.g. 5%. and this position size of a given currency pair is divided by the number of orders, so each order is of the same size, but the total does not exceed the given % of the deposit
exception; if the ask/bid price (rate on the exchange) is already within the range, then it opens 1 position at the market price, and the rest places limit orders. If the rate is outside the range, but still before SL, then it immediately opens the entire position with % of the account deposit.
the bot listens to whether positions have been opened, if so, it sets SL and TP (2nd and 3rd from the signal)
the bot continues to listen for positions, if the closing order on TP2 has disappeared from the list of open orders, then it moves SL to the entry price and removes the remaining pending orders in the range waiting to be filled
TP2 should be 50% of the position, TP3 the rest.
The bot must periodically check the position size as additional orders may open that it previously created on the exchange, if the position size has changed, it must adjust SL and TP2+3
The bot must check the maximum leverage available for a given currency pair, if the maximum leverage on the exchange is lower than defined by the user, it then sets the maximum possible for the given symbol.
Note, there are limits on the maximum position for given leverage, then it must adjust the leverage to the position size
The bot must support multiple exchanges simultaneously considering the priority of the exchange selected by the user, for example;
I have configured the API for 3 exchanges; Binance, Bitget, MEXC. I set the priority to Binance, upon receiving a signal, the bot must look for the matching symbol on the exchange with the highest priority, if it does not find it, it looks for it on the next exchange
Symbols may have different designations and prices, even though it is the same symbol, for example
on Binance: Symbol: 1000SATSUSDT, rate: 0.0000705
on Bitget: Symbol: 100SATUSDT, rate: 0.000705
On Binance Symbol: BROCCOLI714USDT rate; 0.03750
on Bitget symbol: BROCCOLIUSDT rate: 0.03750
Everything using the CCXT and Telethon libraries
+ script handling by the bot on Telegram;
menu layout:
/start
/api configuration
-- exchange selection + entering API keys
/trading settings
-- Risk per transaction
-- maximum leverage
-- minimum size
-- max number of order submission attempts
-- interval for monitoring open positions
-- exchange priority
/check balance
/help
/check positions - preview of all positions + options
-- ability to change SL/TP2/TP3
-- Close position
/admin panel
--list of channels to listen to
---- add channel
---- remove channel
-- preview users
--- preview user settings
The Telegram bot must send the user messages such as;
I found a signal - I opened/did not open a position because: error / I placed limit orders, price values: xxx, xxx, xxx, xxx TP xxx SL xxx
- I found an open position, setting SL TP
etc. etc..
Current freelance projects in the category Python
Development of software with AIIt is necessary to develop software for automatic detection, capturing, and tracking of an object using a video camera and a rotating mechanism.Output data: Video camera with optics. Rotating device on two axes (azimuth/elevation angle). Servomotors controlled via Modbus… AI & Machine Learning, Python ∙ 15 minutes back ∙ 3 proposals |
Technical Specification for Refinement of AI Bot for Generating Personalized SongsTECHNICAL TASK FOR IMPROVING THE AI PERSONAL SONG GENERATOR BOTMAIN GOAL Create a stable premium product that: generates the highest quality personal songs; does not fabricate facts about the client; works stably under load; is easily scalable; allows for analysis and… Python, Bot Development ∙ 1 hour 20 minutes back ∙ 12 proposals |
Excel Specialist / Process Automation (Excel + preferably programming)We are looking for a specialist with ADVANCED knowledge of Excel to optimize the existing file and automate processes. It will be a great advantage if you also have programming skills / VBA / Power Query / Power Automate or experience in creating complex logic in Excel. Project… Python, Databases & SQL ∙ 4 hours 19 minutes back ∙ 22 proposals |
Automation of processes through API and PythonBelow I described the current process and the result I would like to achieve. I also attach files of the real process to better understand how it looks in reality Current process Currently, the entire process is performed manually: uploading/downloading files, transferring… AI & Machine Learning, Python ∙ 5 hours 20 minutes back ∙ 29 proposals |
A bot needs to be created in Telegram for subscription payment.
45 USD
A bot needs to be created in Telegram where users can subscribe for access to the webcams located in the yard. Organize payment for two types of subscriptions (monthly and daily) in the bot. The bot should automatically check the payment and then provide access links. Python, Bot Development ∙ 18 hours 6 minutes back ∙ 71 proposals |