Poll of the Day > I'm making a bitcoin trading bot.

Topic List
Page List: 1
Yellow
06/09/19 12:47:54 AM
#1:


For shits, giggles, and possible fortunes.

Because I couldn't find an easy trading API, I just made a crawler that interacts directly with my RobinHood account, clicking on elements, reading text values, and submitting purchases.

jejNanV

Right now it's logged into my account and monitoring the value of bitcoin, logging it every second.

I can later on feed this to a learning algorithm, or just design my own. I'd finally have an excuse to learn Tensorflow. Either way, I don't have time tonight. Not bad for a day's work. :P

Should have it simulating buys and sells by tomorrow, when I'm confident I'll entrust it with an entire real $30.

Who am I kidding, I know I'm not getting any sleep tonight.
---
... Copied to Clipboard!
Yellow
06/11/19 11:06:55 PM
#2:


My bot just made 11 (simulated) cents after running for 5 hours. :)

Not bad, considering I only gave it a simulated $30. I gave it a very simple ruleset, trade if the price an hour ago was 0.5% higher/lower.

Three little details, I've obviously only run this for 5 hours, I've designed my own very primitive "algorithm" (such a silly word imo) instead of using a neural network, like anyone else making this project would, and I didn't take into account the loss that will come making trades that are not a 1:1 ratio with the price. (most likely not in my favor)

Programming is fun. I'm not looking forward to making a neural net, the concept of trying to think about it fills me with dread. It's so complicated, and I don't even know Python very well.

I hate Python. Why did it have to be Python?
---
... Copied to Clipboard!
JimCarrysToe
06/12/19 12:29:06 AM
#3:


Coool
---
"GET YOUR CLAWS OFF ME! YOU GOD DAMN BULLY DINOSAUR!"
<{\^/}>DEVOUT WORSHIPER OF THE MELON GODDESS<{\^/}> |`~=-_+*+_-=~`|
... Copied to Clipboard!
Yellow
06/15/19 3:05:09 AM
#4:


Yeah, right?

It's finally functional, too.

I stress tested it by having it submit orders every couple seconds, and it seems just about as stable as it needs to be to have me run it overnight. Web crawlers are very prone to crashing in general.

Edge is actually the best browser for making crawlers and it's not even close. I've used it several times.

Right now I have it set at

Time period = 1 hour
Sell At = 100.7%
Buy At = 99.7%
Limit Order Leniency = 1%

As in, look back 1 hour, if the current price is 100.7% what it was, sell, if it's 99.7% what it was, buy. Allow the buying price to be 1% worse than what it's asking for. (This is so orders mostly go through immediately)

I literally have no other settings atm. I'm just throwing $50 at it and seeing what it does overnight. It could very well get rid of all of it. Who knows.
---
... Copied to Clipboard!
Yellow
06/21/19 6:01:32 AM
#5:


One more before I let this topic die, but guess who was suspended from Robinhood?

https://www.youtube.com/watch?v=j2zlPNGuPbw" data-time="


I guess I'll be looking into paying for a proper trading API. Turns out Robinhood doesn't like bots. Sure I could get into avoiding bot detection, but that would be a pain in the ass, and I actually use my Robinhood account, on top of not really wanting or needing to break their rules.

There goes about 60% of my work. :) I'm just going to delete the crawler portion. It's no good. There's still a lot to do in AI prediction stuff.
---
... Copied to Clipboard!
crusty567
06/21/19 7:00:35 AM
#6:


That's a bummer to hear. Will most likely have to alter the parameters for fees, but have you thought about trading on a real exchange (i.e. Coinbase Pro, Binance, KuCoin)?

Some of them have nice API's
... Copied to Clipboard!
Yellow
06/22/19 2:03:55 AM
#7:


I forgot what you said, but I made a reminder to respond to you later.

I think you said something like, "That sucks, look into an API"

I guess I should, huh? I wonder if I could skip paying for an API by interacting directly with the blockchain. A 0.7% fee per trade might not seem like a lot, but that's a big deal with micro-transactions, where my target profit per trade is about 1.4%.

https://bitcoin.org/en/blockchain-guide#introduction

Time to start reading.

Also, Robinhood screwed me over through a mistake in their system, categorizing me as a pattern trader. Pattern trading restrictions are a government regulation imposed by FINRA. BitCoin is completely unregulated by FINRA. Their rules were meant to protect the US economy, not the stability of Bitcoin, Litecoin, or Dogecoin. The entire point of these coins is that they have no regulations. I believe that's the reason they suspended me, unless they detected my bot and just didn't like that.

Boo, Robinhood.

Thankfully I can just use Ameritrade, which I was going to switch to anyway.
---
... Copied to Clipboard!
Topic List
Page List: 1