GithubHelp home page GithubHelp logo

gschurck / tradoge Goto Github PK

View Code? Open in Web Editor NEW
127.0 12.0 27.0 643 KB

DOGE trading bot for instantly buying and selling DOGE cryptocurrency on Binance when Elon Musk tweets about it.

Home Page: https://gschurck.github.io/projects/tradoge

License: MIT License

Python 100.00%
dogecoin doge trading trading-bot twitter-bot crypto cryptocurrency elonmusk elon-musk binance

tradoge's Introduction

Github All Releases

Donate : doge btc eth usdt doge

📈 TraDOGE

⚠️ TraDOGE is currently broken due to changes on Twitter. Stay tuned for the next update.

Tradoge is a Binance trading bot that instantly buys and sells DOGE cryptocurrency on Binance when Elon Musk tweets about it.

alt text

Main features :

  • 👍 User-friendly command-line interface
  • 🔐 Binance API keys are encrypted with a password using SHA-256
  • ⚙️ Full configuration can be changed easily in menu, without coding
    • Change tweet refresh frequency, trading pair, sell delay, buying mode and amount to buy
    • 💲 Choose between buy a fixed DOGE amount or an adaptative DOGE amount with a fixed dollar amount
  • 💱 Binance trading pairs : DOGE/USDT, DOGE/BUSD, DOGE/BTC, DOGE/EUR
  • ℹ️ Checking for update at start-up

By default, TraDOGE ignores retweets, comments and citations to be safer. Main tweets have more impact.

Installation

ℹ️ I recommend to run tradoge in the new Windows terminal for full support of Unicode characters and better visual experience.

Windows

📥 Download tradoge.zip

  • Download and unzip
  • Run tradoge.exe

OR

Python script

Require Python 3.7

Git :

git clone https://github.com/gschurck/tradoge.git
cd tradoge
pip install -r requirements.txt
tradoge.py

⚠️ If you experience issues during installation try to restart the script a few times.

If you have errors with twint import, try :

pip install --upgrade -e git+https://github.com/twintproject/twint.git@origin/master#egg=twint

On Raspberry Pi, numpy import can cause an error. Try :

sudo apt-get install libatlas-base-dev

Why use Tradoge ?

alt text alt text +10%


alt text alt text +17.5%


alt text alt text +8%

Binance issues

If TraDOGE shows "CONNECTED TO YOUR BINANCE ACCOUNT" on login, everything should work on your account. Just make sure to use a sufficient amount of money when buying, or Binance can return an error.

Buy me a coffee

If you want to support me, thank you !

My crypto adresses :

DOGE : DJbbN3nYKMYneJuKU4QKicLjSfggToU4az

BTC : bc1q20m4d3f2469q34wpprldhezhw5x4duxxgg7v27

ETH : 0x2C95a4aFFCb9A92e38Fcf0943A4ed314EC90bfCB

USDT : 0x2C95a4aFFCb9A92e38Fcf0943A4ed314EC90bfCB

BNB : bnb1q5g5zr8nxqk55lajesk0x4xf8r9yex795az6m4

XMR : 42VkGVJoQFPAWm5Km1rA1UiEt7hQMdaf9Z3ki1pBA9LR4iaoXDU9S1sMr1ik38HXAsgKvvw8442zKTHPj9dsDxkaGc4amVT

tradoge's People

Contributors

gschurck avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

tradoge's Issues

Problème

Bonjour Guillaume tout d'abord merci pour cette idée génialissime, j'ai un soucis avec la version Windows

ERROR :

Cannot connect to host api.twitter.com:443 ssl:True [Connect call failed ('104.244.42.2', 443)]

←[KRestarting the program in |←[33m$←[39m←[33m$←[39m←[33m$←[39m

j'ai essayé de jouer avec le tweet frequency de 1 a 60 voir 90 mais rien n'y fait, ça ferme le programme a chaque fois, aurait tu une solution ? merci bonne continuation !

Need help please

Hi, I have followed transcript showed:

? Menu Start TraDOGE
CRITICAL:root:twint.run:Twint:Feed:noData'globalObjects' to stop)
sleeping for 1.0 secs
CRITICAL:root:twint.run:Twint:Feed:noData'globalObjects'
sleeping for 8.0 secs
CRITICAL:root:twint.run:Twint:Feed:noData'globalObjects'
sleeping for 27.0 secs
CRITICAL:root:twint.run:Twint:Feed:noData'globalObjects'
sleeping for 64.0 secs
CRITICAL:root:twint.run:Twint:Feed:noData'globalObjects'
sleeping for 125.0 secs
CRITICAL:root:twint.run:Twint:Feed:noData'globalObjects'
sleeping for 216.0 secs
CRITICAL:root:twint.run:Twint:Feed:noData'globalObjects'
sleeping for 343.0 secs
CRITICAL:root:twint.run:Twint:Feed:noData'globalObjects'
sleeping for 512.0 secs
CRITICAL:root:twint.run:Twint:Feed:noData'globalObjects'
sleeping for 729.0 secs

I'm not sure what is wrong.

help

Traceback (most recent call last):
File "tradoge.py", line 594, in
main()
File "tradoge.py", line 501, in main
if last_tweet.id == tweets[0].id:
IndexError: list index out of range

Purchase not happening

Hi, thank you for the twint update in the other post, it's correctly scraping.

However, the buy order seems successful, there's PURCHASE COMPLETED and the timestamp with the order, but it's not buying.

I have checked the binance API client and everything seems spot on, no changes in the client methods you are using. My API key has permissions for trading.

The code part purchasing (with preset dollar amount) is working, as the try is successful, but there is no real buy order. Binance history has no record of the order and the code fails trying to sell, as there was no actual doge purchase.

Regards.

Receiving an error in the Windows version

After configuring the bot i receive this error every time i start the bot:
Your Binance API keys are present in config file
? Enter your password to decrypt your Binance API keys **********
Traceback (most recent call last):
File "tradoge.py", line 594, in
File "tradoge.py", line 468, in main
File "tradoge.py", line 376, in login
File "binance\client.py", line 1999, in get_system_status
File "binance\client.py", line 270, in _request_withdraw_api
File "binance\client.py", line 260, in _request
File "binance\client.py", line 313, in _handle_response
binance.exceptions.BinanceAPIException: APIError(code=0): Invalid JSON error message from Binance: This endpoint has been deprecated, please integrate with “GET@/sapi/v1/system/status”. See details in the announcement: https://www.binance.com/en/support/announcement/f45dde7da58b473aa885349946bed269
[16932] Failed to execute script tradoge

I am running the newest version (1.3.2)

Binance Futures ?

Hello Guillaume,
Could it be possible to do the same with Binance Futures account and set a custom leverage ?
Thanks !

Binance API error -2015

Getting error -2015 from the Binance API. I copy/pasted the keys from the website and verified my IP. Since everything is encrypted I can't verify the keys. Maybe add an option to display them via the menu? I have created 2 separate keys just to make sure I didn't paste wrong.

question

not an issue, im wonder if changing the ticker i can make it run on futures, or i need to make more modifications?

TypeError: 'NoneType' object is not subscriptable

After setting up the API and connecting to the Binance account the following message appears:

Traceback (most recent call last): File "tradoge.py", line 382, in <module> main() File "tradoge.py", line 297, in main menu(new_config, client) File "tradoge.py", line 117, in menu doge_balance = client.get_asset_balance(asset='DOGE')['free'] TypeError: 'NoneType' object is not subscriptable

New error !

Eyo man, thank you for creating this, it's a gem.

Got an error since yesterday, it was fine for a week but the next day i got a weird error i can't pass on, here's the error :

TraDOGE is up to date : v1.2.2

Traceback (most recent call last):
File "tradoge.py", line 543, in
main()
File "tradoge.py", line 421, in main
menu(config_obj, client)
File "tradoge.py", line 188, in menu
doge_balance = client.get_asset_balance(asset='DOGE')['free']
File "binance\client.py", line 1792, in get_asset_balance
File "binance\client.py", line 1767, in get_account
File "binance\client.py", line 237, in _get
File "binance\client.py", line 202, in _request_api
File "binance\client.py", line 197, in _request
File "binance\client.py", line 230, in _handle_response
binance.exceptions.BinanceAPIException: APIError(code=-1021): Timestamp for this request was 1000ms ahead of the server's time.

I got a very good connection but you can read what it says, i found it weird and tried to search for the answer, but without responses.

Thank's for giving me a little of your time !

Read Timeout Error

Works fine on Mac OS Big Sur but, I got this error when use with windows 10:

WARNING:root:Error retrieving https://twitter.com/: ReadTimeout(ReadTimeoutError("HTTPSConnectionPool(host='twitter.com', port=443): Read timed out. (read timeout=10)")), retrying

Both Mac and win10 using anaconda in python 3.8

Does anyone know how to resolve this error?

ApiError (code =-1100)

Hi, ApiError (code =-1100) illegal characters found in parameter 'quantity' after Musk tweet((

Please help


| _ _ | |_ _ . .' . .' ___ | |_ __ |
|/ | | _| _ .--. ,--. | | . \ / .-. \ / .' \_| | |_ \_| | | [ /'\] '\ : | | | | | | | | | | ____ | | _
| | | | // | |, | |.' / \ -' / \ .
] | _| |/ |
|| [] '-;/ |.' .___.' ..' |_______|

TraDOGE is up to date : v1.2.2

Traceback (most recent call last):
File "C:\Users\qinzh\tradoge\tradoge.py", line 543, in
main()
File "C:\Users\qinzh\tradoge\tradoge.py", line 421, in main
menu(config_obj, client)
File "C:\Users\qinzh\tradoge\tradoge.py", line 188, in menu
doge_balance = client.get_asset_balance(asset='DOGE')['free']
File "C:\Users\qinzh\AppData\Local\Programs\Python\Python39\lib\site-packages\binance\client.py", line 1792, in get_asset_balance
res = self.get_account(**params)
File "C:\Users\qinzh\AppData\Local\Programs\Python\Python39\lib\site-packages\binance\client.py", line 1767, in get_account
return self._get('account', True, data=params)
File "C:\Users\qinzh\AppData\Local\Programs\Python\Python39\lib\site-packages\binance\client.py", line 237, in _get
return self._request_api('get', path, signed, version, **kwargs)
File "C:\Users\qinzh\AppData\Local\Programs\Python\Python39\lib\site-packages\binance\client.py", line 202, in _request_api
return self._request(method, uri, signed, **kwargs)
File "C:\Users\qinzh\AppData\Local\Programs\Python\Python39\lib\site-packages\binance\client.py", line 197, in _request
return self._handle_response()
File "C:\Users\qinzh\AppData\Local\Programs\Python\Python39\lib\site-packages\binance\client.py", line 230, in _handle_response
raise BinanceAPIException(self.response)
binance.exceptions.BinanceAPIException: APIError(code=-1021): Timestamp for this request was 1000ms ahead of the server's time.

Twitter SSL error

Hi!

I'm getting this error while using the script:

? Menu Start TraDOGE
07:05:37 : Waiting for new DOGE tweet from Elon (CTRL+C to stop)
ERROR :

Cannot connect to host api.twitter.com:443 ssl:True [Connection reset by peer]

It might be my extreme 1 second refresh rate doing it - should I just go with 5 or something?

Use max amount

Hi,

Is it in the Windows version possible to setup the max of fiat that can be used in place of the max dogecoin? (for example max 100 EUR in place of max 100 DOGE)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.