-
Notifications
You must be signed in to change notification settings - Fork 21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Discord Suggestment #34
Comments
Yes! Work is being done on this. I use discord often but I'm leaning towards prioritising the Telegram bot before the discord scraper. It's hard to judge what the better option might be. The panic sell button is coming very soon |
Thank you! |
Actually the telegram tag come faster then the discord one. |
Okay....im thinking if there is some other way around this. |
Actually the events comes only from Telegram or discord. No better idea |
From what I have researched, the Mproto core library acts as a telegram client just like your phone would. It shouldn't require adding a bot to the group |
Well that would be awesome, if that is the case. |
Hi, |
Cool. I cant wait to try it out! |
I will send a PM to Yomi tomorrow |
@ffbboy30 Could you upload the code for me to try somewhere? |
You could put it in this thread too |
#xxxx the ID you get when you register in the telegram API api_id = xxxxxxxx Group name can be found in group link(Example group link : https://t.me/c0ban_global, group name = 'c0ban_global')client = TelegramClient('yyyyy', api_id, api_hash).start() @client.on(events.NewMessage) client.start() |
now it need to parse the message text with regex to get the coin, correct? |
@ffbboy30 think i actually need to wait for the integration from @abayomi185. i will mess it up otherwise :) |
Okey, so this is python? i think we are working on nodejs now |
@ffbboy30 however, i got it working aswell, though |
|
works with eg. The coin we picked is BTM/BTC ELA/USDT Coin is: YOP/USDT but not coins without the / |
so this is nothing fancy |
Here is some previous pump with channels #Binance Royal Pump #Crypto Pump Squad #WallStreetBets | Market Makers #Binance Pump Signals |
Now the most important is to share channels with no VIP pumps to have chance to make money. |
Thanks! I should have some time to work on this later today. I'm currently looking at having both manual and telegram entry work simultaneously, particularly while it's still untested how performant it would be. |
I'm looking if there is a solution equivalent with discord , to have the both in parallel and take the first message received |
It's possible. I've made the UI in the last Node commit to choose multiple pump-groups at launch. |
@ffbboy30 did you manage to add it to send the coin to the prompt in the bot-kucoin.py? if so, then do you have the code? |
I suck on the Regex formula, here is the different sentence I've found I thoughtabout a loop waiting while the sentence size is not null, and I put the Coin detected in the Event like this the loop break and you can make the order instantly. |
Nice. It's similar to how I want to implement it in Node. I haven't used Regex extensively so I would have to learn it. |
The @calamarcus regex works for |
I can check more regex tomorrow! |
this works with all. although feel free to change anything.
|
i hope this works with the nodejs also....please try that @abayomi185 when you have time. |
@ffbboy30 Could you integrate the telegram function into the pythoncode? |
I will look at it tonight |
.js files in the node_wip folder. but @abayomi185 will look at that as the python version is no priority for him. but i think you can try to integrate the telegram function into the python bot. i know most of everything except programming well :-) |
Ok, The final regex is like this 👍 I've problem to make the event message non blocking |
#Here is the baby from future import print_function, unicode_literals from telethon import TelegramClient, sync, events Kucoin API Helper - https://github.com/Kucoin/kucoin-python-sdk.gitfrom kucoin.client import Market SQLite3 to save local records of tradesimport sqlite3 Connect to records.db databaseconn = sqlite3.connect('records.db') Import user config and instantiate variablesconf_Telegram = "./conf-Telegram.yaml" Switched to .yaml as it offers commenting and other features#It shouldn't be an issue for speed as dict is loaded into memory with open(conf_Telegram, "r") as conf_file: Open secret.json, retrieve keys and place in config dictionarywith open(secrets, "r") as secrets_file: config['api_key'] = api_keys['api_key'] Command Line interface prompts for PyInquirerquestion1 = [ Show crypto-bot bannerdef show_header(): Binance API Helper Debug modedef debug_mode(client):
Get account balance for "pairing" in config before tradedef acct_balance():
Get account balance for "pairing" in config after tradedef acct_balance2():
def pump_duration(start_time, end_time): Get available trading amount with user configdef trading_amount(): Execute market order - buy and/or selldef market_order(selected_coin_pair, order_type):
Displays order details asynchronously - see 'main' blockdef display_order_details(order): Check user configs margin in to sell orderasync def check_margin():
async def fallback_action():
Save orders to local db asynchronouslydef insert_into_db(order, order_id):
async def main():
if name == 'main':
|
#The binance one from telethon import TelegramClient, sync, events Binance API Helper - https://github.com/sammchardy/python-binance.gitfrom binance.client import Client SQLite3 to save local records of tradesimport sqlite3 Connect to records.db databaseconn = sqlite3.connect('records.db') Import user config and instantiate variablesconf_Telegram = "./conf-Telegram.yaml" Switched to .yaml as it offers commenting and other features#It shouldn't be an issue for speed as dict is loaded into memory with open(conf_Telegram, "r") as conf_file: Open secret.json, retrieve keys and place in config dictionarywith open(secrets, "r") as secrets_file: config['api_key'] = api_keys['api_key'] #print(config) Command Line interface prompts for PyInquirerquestion1 = [ Show crypto-bot bannerdef show_header(): Binance API Helper Debug modedef debug_mode(client):
Get account balance for "pairing" in config before tradedef acct_balance(send_output=False):
Get account balance for "pairing" in config after tradedef acct_balance2(send_output=False):
def pump_duration(start_time, end_time): Get available trading amount with user configdef trading_amount(): Execute market order - buy and/or selldef market_order(client, selected_coin_pair, order_type, coin_pair_info, balance):
Displays order details asynchronously - see 'main' blockdef display_order_details(order): Check user configs margin in to sell orderasync def check_margin():
async def fallback_action():
Save orders to local db asynchronouslydef insert_into_db(order):
async def main():
if name == 'main':
|
i tried telegram with binance just now. i think it took 5 seconds for the telegram message to reach the function. That will not work unless there is something to do to fix it.. |
And i am getting the message fast in my telegram windows app, and 4-5 seconds later in the python function. |
I test the code with a chat channel it works without delay. |
Hey @calamarcus and @ffbboy30 how do I go about getting the group channel id? |
If you click on the name of the channel, in the telegram window you should see the channel properties. Possibly even right click on the channelname in the list of channels on the left side in telegram, to get a dropdown option list. |
What platform and client should I do this on? I have yet to see it on the web client and iOS app |
Sorry, its windows i was referring to.
|
I've just start a Discord server to list all the usefull pump channel without VIP or pre pump. |
Just an update, I have done some testing and I'm able to get messages from telegram groups with no perceivable delay. I have yet to parse the messages and feed them into the exchange bot. I am able to commit time into this after next week. If you have more suggestions. I'm happy to hear and implement them. |
Yes i think for a tiny log during pump to have delay feedback for the next
pump.
For example :
Timestamp; Price
Le ven. 4 juin 2021 à 19:39, Yomi Ikuru ***@***.***> a écrit :
… Just an update, I have done some testing and I'm able to get messages from
telegram groups with no perceivable delay. I have yet to parse the messages
and feed them into the exchange bot.
I am able to commit time into this after next week. If you have more
suggestions. I'm happy to hear and implement them.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#34 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABUEJ427GDUDECPELVELZQ3TREFTVANCNFSM45K2WV5Q>
.
|
I am doing some testing @ffbboy30 Your regex was helpful. I've refined it to allow for different text formats. |
Hey! Is there some way we could integrate this bot into discord so it automatically buys the coin for us? It would really help out! Also, is there a panic sell button on the bot?
The text was updated successfully, but these errors were encountered: