[FUN] Elon Musk give me money[Python]

06/08/2021 19:42 12gamer34#1
This is for entertainment purposes and should be viewed with caution. Trading with leverage can lead to total loss within seconds.

Hello everybody,

As you all have probably already noticed, Elon Musk's tweets have a very, very big influence on the crypto markets.
In this post I want to show you how I've benefited from these tweets over the past few months.

I've automated the whole thing.
Via the Twitter API, I ask every 0.1 seconds whether a new tweet is being posted by Elon Musk. Then I check whether this tweet contains some strings like "DOGE", "Doge", "doge" or "Ð", if yes I buy automatically via the Binance API Binance Futures (DOGE/USDT) with 50x leverage and sell it for a few minutes later again. (Yes if he writes something negative you will be directly liquidated)

So it was for me to get a return of 1500% as quickly as possible.

What you need for it:
  • little knowledge of python
  • Twitter with API access
  • Binance account with API access
  • USDT on Binance USD-M Futures


The code works like that but is just a base. You can still expand it. Please understand the code and only then use it.
You can lose everything but with DOGE it was only profitable at the moment.

Code:
 
    import tweepy as tw
    import time
    from binance.client import Client
    api_key = "Your Binance API Key"
    api_secret = "Your Binance API Secret"
    client = Client(api_key, api_secret)
    print ("login")
    
    consumer_key= 'Your Twitter API consumer key'
    consumer_secret= 'Your Twitter API consumer secret'
    access_token= 'Your Twitter API access token'
    access_token_secret= 'Your Twitter API access token secret'
    
    auth = tw.OAuthHandler(consumer_key, consumer_secret)
    auth.set_access_token(access_token, access_token_secret)
    api = tw.API(auth, wait_on_rate_limit=True)
    Elon_Tweet = "GiveMeMoney"
    Doge = 0
    Tweetneu = "GiveMeMoneyPls"
    sinceid = "1368344522413903872"
    Tweetnumber = "1"
    
    cursor2 = tw.Cursor(api.user_timeline, id='elonmusk', since_id=sinceid, tweet_mode="extended").items(1)
    for m in cursor2:
        Tweetneu = m.full_text
        Tweetnumber = m.id
        print("IGNORE", m.full_text)
    Elon_Tweet = Tweetneu
    sinceid = Tweetnumber + 1
    #Adjust leverage 
    leverage = client.futures_change_leverage(symbol='DOGEUSDT', leverage='50')
    
    while Doge == 0:
        #Query rhythm 1 = 1sec
        time.sleep(1)
        cursor = tw.Cursor(api.user_timeline, id='elonmusk', since_id=sinceid, tweet_mode="extended").items(1)
        lt = time.localtime()
        for i in cursor:
            Tweetneu = i.full_text
            Tweetnumber = i.id
            print("{0:02d}:{1:02d}:{2:02d}".format(lt[3], lt[4], lt[5]), i.full_text)
        if Elon_Tweet != Tweetneu:
            Elon_Tweet = Tweetneu
            sinceid = Tweetnumber
            #String you are looking for
            if "DOGE" in Elon_Tweet or "Doge" in Elon_Tweet  or "doge" in Elon_Tweet or "Ð" in Elon_Tweet:
                print("found Doge")
                Doge = 1
                # Buy order
                order = client.futures_create_order(symbol='DOGEUSDT', side='BUY', type='MARKET', quantity='10000')
                print(order)
                # Waitingtime till sell order
                time.sleep(600)
                # Sell order
                close = client.futures_create_order(symbol='DOGEUSDT', side='SELL', type='MARKET', quantity='10000')
                print(close)
For Question feel free German and English!


Elon give me a Tesla Plaid +
06/17/2021 20:36 tehpwnerer69#2
A very unique idea.

Has this actualy worked for you? Haha
06/17/2021 20:41 Hypeman#3
lol this is so nice :pogchamp:
06/20/2021 12:10 12gamer34#4
Quote:
Originally Posted by tehpwnerer69 View Post
A very unique idea.

Has this actualy worked for you? Haha

[Only registered and activated users can see links. Click Here To Register...]

Yeah i do this since December 2020 it works awesome. now it is not as profitable as it was in the beginning.
07/05/2021 02:02 Wowhab#5
Hahah what a funny and nice idea:D
Congrats to your success
07/05/2021 02:04 Powerful. Functions#6
Smart, and very interesting.
07/06/2021 17:22 12gamer34#7
Thank you!

A New good string is „Shiba“ Elon loves it