News for hackers. Stuff that matters.

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

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!

( 7 comments | 20 points | on HN )
Re:I coded a Binance trading bot that analyses news sentimen... by beforeolives on Sunday April 18, 2021 @10:40AM (#26852882)
> 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?

Re:I coded a Binance trading bot that analyses news sentimen... by Cryptomaton on Sunday April 18, 2021 @10:56AM (#26853023)
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.
Re:I coded a Binance trading bot that analyses news sentimen... by tsejerome97 on Monday April 19, 2021 @12:41PM (#26864779)
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!!

Re:I coded a Binance trading bot that analyses news sentimen... by mam3 on Sunday April 18, 2021 @11:43AM (#26853404)
Did you make money ?
Re:I coded a Binance trading bot that analyses news sentimen... by emteycz on Sunday April 18, 2021 @10:20AM (#26852689)
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.
Re:I coded a Binance trading bot that analyses news sentimen... by unforeseen9991 on Sunday April 18, 2021 @02:19PM (#26854905)
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.
Re:I coded a Binance trading bot that analyses news sentimen... by Cryptomaton on Sunday April 18, 2021 @10:38AM (#26852856)
Thank you, it's currently connected to the Testnet so you can safely test is without the risk of losing real money.