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)
Elon Musk will Tesla-Autos zur Sicherheit furzen lassen 05/09/2023 - In Other News - 25 Replies Furzende Elektro-Autos – eine Idee, die selbst für Elon Musk, den da Vinci des 21. Jahrhunderts, etwas schräg erscheint. Dabei ist der Hintergrund ernstzunehmender, als er im ersten Moment wirkt. Denn was in der EU schon seit Juli geregelt ist, soll im kommenden Jahr auch in den USA in Kraft treten: Elektro-Autos müssen ein künstliches Geräusch von sich geben, wenn sie sehr langsam fahren. Während die EU dies bei einer Geschwindigkeit von unter 20 Kilometern pro Stunde vorsieht, soll es bei...
FUN FUN FUN FUN FUN FUN FUN FUN FUN 03/11/2011 - WarRock Trading - 6 Replies Moin kenne 2 acc die haben beide retail
aba die acc,s kennen viele
will dafür 1 e gold pro acc ^^
1. xam8888 hat famas retail
2. den namen weiß ich net so genau cr44nk glabe ich
m134 retail
Also pro acc 1 e gold ^^