I coded a Binance trading bot that analyses news sentiment and places trades

20 points by Cryptomaton ↗ HN
I had a lot of fun building this algo, and I'm quite happy with how it turned out.

Here's quick overview of what the bot does:

Pulls and analyzes the last headline from the top 100 crypto news sites

Provide an overview on the most mentioned coin across all the headlines

Analyse the sentiment of each headline and categorises the output by coin

Places a Buy order if the compound sentiment is positive and the a coin is mentioned in multiple headlines

It works with any cryptocurrency available on Binance

Here are some considerations that I am planning address in the future:

I accidentally used Feedspospot's top 100 Bitcoin feeds, so the sources are a bit biased right now

During my testing the compound sentiment wasn't high enough and wouldn't place a lot of trades

It can probably make use of multiprocessing to increase performance

Anyway, here is the GitHub repo for the source code: https://github.com/CyberPunkMetalHead/Binance-News-Sentiment-Bot

And if you want a step by step guide, I wrote one too:

https://www.cryptomaton.org/2021/04/17/how-to-code-a-binance-crypto-trading-bot-that-trades-based-on-daily-news-sentiment/

If you like the project and want to improve on it, feel free to send a pull Request on GitHub. Any ideas on how to further improve the recipe are also welcome!

8 comments

[ 3.2 ms ] story [ 34.3 ms ] thread
Great work, all other opensourced trading bots I found are basically not finished and I have never had any profit with them. I'm looking forward trying yours.
Thank you, it's currently connected to the Testnet so you can safely test is without the risk of losing real money.
Sorry to break it to you, you aren't going to have any profit with this one either. Practically by definition anything open sourced would erode any edge it has until it's not worth running.
> Places a Buy order if the compound sentiment is positive and the a coin is mentioned in multiple headlines

Doesn't that mean that you're simply following the market (with some lag) and buying when prices go up?

I haven't been able to backtest it yet so you could be right. But it can easily be configured to sell the news instead.
Did you make money ?
(comment deleted)
Hello, I am also planning to make a Binance trading bot soon! I have several questions if you don't mind to answer - How did you come to a conclusion that news are the major reason/metrics to evaluate to do a buy or sell? - Why not doing automated technical analysis?

Thanks!!