TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Show HN: 400-Line Binance CryptoCurrency Bot

114 pointsby klhugoover 5 years ago

9 comments

klhugoover 5 years ago
The Money Maker Machine - Monker<p>This was a hobby project of myself to create the simplest Cryptocurrency bot possible. It was written in Python, operates on Binance, and stores all logging and trading information into a MongoDB database. The trading strategy is extremely simple:<p>- Assume that crypto prices will fluctuate, but eventually be restored to its original quote - Buy small quantities every time the price falls below a threshold, keeping track of the amount purchased and the price payed - Sell those exact quantities when the price is above what was payed for it<p>It was a lot of fun developing it, and I guess I made something around 3 dollars before shutting it down. It is my first contribution to opensource world, and I hope others can benefit from it :)
评论 #21565363 未加载
评论 #21566687 未加载
评论 #21565213 未加载
评论 #21565094 未加载
haolezover 5 years ago
Nice! It&#x27;s very simple, but has a few interesting qualities, like not using any third-party library to interact with Binance, giving the bot more flexibility to make use of Binance-specific features in a future extension of this work. For example: Binance&#x27;s margin trading works a little different from other exchanges.<p>I would use order book data instead of ticker data, though, since you have more control of your risks regarding the exchange&#x27;s liquidity.<p>Well done!
评论 #21565900 未加载
评论 #21565265 未加载
glofishover 5 years ago
I have a feeling that the vast majority of transactions are from bots like this, from the naive &quot;moneymakers&quot; (like this one with a $3 return) to ones with extreme sophistication.<p>The naivete here is that it only makes money if the market is rising long term. If it is falling over the long term then you&#x27;ll get stuck with a bunch of losses.<p>The results it generates are no different than buying at random times and selling random bets at random times.
评论 #21565862 未加载
评论 #21567763 未加载
studio816over 5 years ago
If you like crypto bots, check out our project called <a href="https:&#x2F;&#x2F;quadency.com" rel="nofollow">https:&#x2F;&#x2F;quadency.com</a> We have common strategies you can deploy to all major exchanges. You can also code your own real-time strategy in python using <a href="https:&#x2F;&#x2F;support.quadency.com&#x2F;en&#x2F;articles&#x2F;3459678-strategy-coder" rel="nofollow">https:&#x2F;&#x2F;support.quadency.com&#x2F;en&#x2F;articles&#x2F;3459678-strategy-co...</a>
评论 #21570460 未加载
csomarover 5 years ago
I think there should be a big (maybe red?) disclaimer at the very top explaining that this should only be used for fun, experimental and learning purposes. No real money should be invested into it too.<p>Just in case somebody thinks it&#x27;s real and go full retard with it.
评论 #21566152 未加载
评论 #21569347 未加载
Akababaover 5 years ago
Very cool! I might try to pick this up later and test some stuff out. Why did you choose to stop it? Did you find a more profitable algorithm ;)<p>I wonder how much of the volume on cryptocurrency exchanges are due to bots.
评论 #21565283 未加载
gmm1990over 5 years ago
Looks pretty cool! I&#x27;m always unsure of separating my buy and sell side logic. Was there a deliberate decision to separate those functions, rather than passing the side as an argument?
sheluneover 5 years ago
How much did you put in the bot initially and how long have you kept it running before shutting it down?
mocha_nateover 5 years ago
Great idea. Thank you for sharing! I’ve had this same thought with Tesla’s stock