Crypto Trading Bot Github Reddit

Crypto Trading Bot Github Reddit

Crypto Trading Bot Github Reddit – There’s power in numbers, but what if that number is actually the cryptocurrency sentiment in a Reddit post? And what if we build a cryptocurrency trading bot that buys crypto based on the Reddit sentiment of certain coins?

Is Reddit Feeling Positive About Bitcoin? Let’s buy some. Reddit loves ALGO today – great let’s get some.

Crypto Trading Bot Github Reddit

I created an algorithm to do that, you can see detailed instructions for the Reddit Bhavana crypto trading bot here , and I’ve been testing it for about three weeks now.

I Made A Crypto (bsc) Trading Bot (python, Tkinter, Web3py)

Last time I put the numbers together it was a week after my run and I made a profit. Reddit really made me money. Technically it was the market because I deployed the bot 3 weeks ago during a mini-bull run.

Today it’s time to look at the overall performance and also how the bot logic performed in general.

During this test period, the bot accumulated 20 of the top 40 coins in the market: BTC, ETH, ALGO, XLM, ADA, SOL, LINK, DOGE, MATIC, XTZ, LTC, VET, DAI, CAKE, DOT, EOS, AAVE , XMR, MKR, ATOM.

The parameters I gave my crypto trading bot was to search for keywords in the top 40 coins by market capitalization to avoid buying into scams or other dubious projects. In 3 weeks the bot invested half of the top 40 coins.

Buckle Up, Reddit: Closed Apis Cost More Than You’d Expect — Blockchair News

Looking at some of the coins that were not picked up by our bot shows an interesting conclusion: USDT, BUSD, BNB, USDC, UNI, Crypto.com, SHIBA. Even though he was in his 40s, Reddit didn’t bother talking about him or being positive in any way.

Most of what these coins have in common are trading tokens, storetocoins or bare coins (see SHIBA for you). As a Redditor myself, I’m very proud of the result created by Hivemind, yes there is DOGE but it’s okay. Most of the coins that the trading bot picks with the help of Reddit sentiment are coins that I have invested in myself.

Currently, the return on our investments does not look that good. But again, no accumulation strategy gives good results in a downtrend so this is not representative of the overall results. The result is relatively predictable, if the market goes up, we are because we are buying real assets and not using CFD or futures trading.

See also  Perfect Gifts For Dads Christmas

The scatter plot below helps clean up the spaghetti running on the previous chart a bit to better visualize daily performance.

Best Ai Crypto Trading Bots And Algorithms Worth Your Investment In 2023

In general, I am at a loss of 15%, but since the whole market is down, this is not an indicator of performance. The information that interests me is the quality of the coins you buy, which means that if nothing else, this can be an automatic buy and hold diversification strategy. What are your thoughts on this?

If you like my content and want to see more, you can support me by donating here or via Brave Browser. I really appreciate this as it helps me keep content free and open source. Thank you! It’s been an interesting couple of weeks since I decided to put my crypto trading algorithm in my portfolio based on the sentiment of a Reddit post. While it wasn’t the best decision to let the reddit hivemind control my money (although it’s part of them, I’m not advocating defunding), I hope to answer the age-old question – “Should you use reddit as crypto?” Financial advice?”

So I created a cryptocurrency trading algorithm that analyzes the sentiment of Reddit posts and trades on coins that are being talked about positively on Reddit. I have been running this bot continuously for about 2 weeks and last week I shared a performance report with a total profit of 4.1% in the first week. This can be taken from last week’s bull market.

This crypto trading bot (like all the others I’ve built before) is open source on GitHub, but for those of you who want to approach it more as a learning exercise, this week’s article is a complete guide on how the bot actually works. . And what does the code do? So grab yourself a cup of coffee, set your phone on airplane mode and burn some incense, because we’re about to dive into the heart of the beast.

Exchange De Criptomonedas │ Comprar, Vender Bitcoin Y Altcoins

This article mainly focuses on the code-base, so see this post here for setting up Binance and Reddit. That post also includes the .yml configuration files, which we won’t go into detail here.

Start by creating some configuration files: config.yml, keywords.yml and auth.yml. These files contain the necessary parameters to tell your crypto trading bot how to behave. See the article linked above for more information about configuration files.

See also  Update Mildliners Whsmith Review

We store the validation part of the script in separate files to keep the main file as clean as possible to make things easier to understand.

Binance_auth.py extracts the Binance credits from the auth.yml file and returns it to the Binance client to issue orders to the trading algorithm.

Trading Bot 101: Kucoin Trading Bot Now Supports 4 Strategies! How To Find The Bot Fits You Most?

Reddit_auth.py – This file does a few things. It uses the legal library to first authenticate with the Reddit API through our Reddit app. Loads and returns our configuration and keyword options from our config.yml and keywords.yml.

We need our bot to remember the transactions you’ve made for a few reasons. We need to be able to track the profit of each trade, as well as verify that the coin has not been purchased, to stop buying again if that is your case.

Store_order.py contains two functions, which are called in the main program. store_order dumps the order into json file, while load_order is used to update the file with new order. Note that we are passing file and command as arguments.

Trade_client.py is another helper file that does some important things. Most of the functions in this file can be used on any crypto trading algorithm that works with Binance. Check out the code below and we’ll get to it later.

A Binance And Gate.io Crypto Trading Bot For New Coin Announcements

Next, we want to know the latest value of each coin that our crypto trading bot has found on Reddit. get_price(coin) is called by the main program.

The next task is to tool the trading bot for each crypto. convert_volumet takes coins, price, and volume as arguments to convert your input volume to the coins you buy. For example, let’s say in your configuration file you want the bot to trade 100 USDT to BTC amount.

The convert_volume function fetches the latest price on BTCSDT and returns 100 USDT in Bitcoin – so around 0.0030 at the time of writing. It also returns this number with appropriate precision for each signal. BTC can have up to 6 decimal places of precision, XRP has only 1. It is important to get this right as feeding the wrong format to the Binance client will cause an error.

Everything is put together with some additional logic to analyze post sentiment and how to handle orders. I’ve split this file in two so it doesn’t look too complicated.

See also  Windows 10 Latest Update Download

New Data Visualization With Python Course Up On Github For Free

The reddit, config and keywords call their respective functions to launch the Reddit client and configuration. Next, we’ll write a get_post() function that fetches reddit posts based on our criteria in the config.yml file. Sticky posts are not included by default.

Store_posts, load_posts and compare_posts work with the json file to ensure that posts are not parsed twice. When new posts arrive, they are compared to the current json file. If they are the same, there is no point in analyzing them again.

Find_keywords looks at the posts in our json file and determines if the crypt keywords we defined in keywords.yml are in the body or title of the post and then returns the post with the corresponding keywords.

Analyze_postsadds determines whether the sentiment score of all posts returned by find_keywords is positive, negative, or neutral using the SIA model pre-trained by nlk.

I’ve Been Using A Trading Bot That Buys Coins Based On What Reddit Thinks About Them For Over A Month Now, Here Are The Results

But in order for our crypto trading algorithm to work properly and only place orders on Binance when it makes sense, we need to make sure Reddit sentiment analysis returns an average. Therefore, the bot should classify the posts based on the keywords found in them and find the average sentiment of all these posts.

Let’s say there are 8 posts related to Bitcoin – we need to know the average sentiment for all these posts and that’s what get_avg_sentiment does.

The second part of the script puts it all together and makes all the tasks work in the right order. Everything is wrapped in a true: loop and so it continues to execute until it is manually stopped or an uncaught exception is caught.

There are some circumstantial reasons for distinguishing between direct and indirect testing.

Create A Crypto Trading Bot Using Ccxt

Crypto trading bot, best crypto trading bot, best crypto day trading platform reddit, python crypto trading bot, reddit crypto trading, trading bot github, crypto trading bot github, algo trading crypto reddit, crypto algo trading github, binance trading bot github, poloniex trading bot github, crypto day trading reddit

Originally posted 2023-07-17 17:58:40.

Leave a Reply

Your email address will not be published. Required fields are marked *