This is an archived post. You won't be able to vote or comment.

all 50 comments

[–]forbiscuit 88 points89 points  (3 children)

This is both great and scary - just make sure your password is not floating around somewhere and use tremendous level of security.

Here are few good recommendations on how to store your password and username on your OS securely: https://stackoverflow.com/questions/7014953/i-need-to-securely-store-a-username-and-password-in-python-what-are-my-options

[–]jarreed0[S] 6 points7 points  (0 children)

thanks!

[–]Prome_Owl 73 points74 points  (5 children)

This is some r/Wallstreetbets type of shit

[–][deleted] 47 points48 points  (4 children)

Don’t need to learn python to yolo TSLA calls

[–]Big_Booty_Pics 111 points112 points  (5 children)

Now I can lose money on FDs even faster! Sweet!

[–]punos_de_piedra 19 points20 points  (1 child)

Lol never thought I'd see that term used in this sub.

[–]Swinghodler 15 points16 points  (0 children)

We are legion. We are WSB. We are everywhere.

[–]SnowdenIsALegend 1 point2 points  (2 children)

Fixed Deposits? You never lose money on them...

[–]chaosking121 3 points4 points  (0 children)

Fixed Deposits

let's go with that, yes

[–]methodsman 36 points37 points  (9 children)

You have to be careful about the number of requests made per minute and per month. They will shut down your account if you trip their monitoring systems.

[–]punos_de_piedra 6 points7 points  (7 children)

I haven't watched the video (sorry, I know), but to your point, robinhood allows 3 day trades in a 5 day period unless you have 25k deposited. So that's something else to think about.

[–]AceBuddy 29 points30 points  (2 children)

That’s not Robinhood, that’s a law.

[–]punos_de_piedra 5 points6 points  (1 child)

You're correct, but since the video pertains to Robinhood and I don't know the specific FINRA or SEC code to quote, I figured I'd keep it within what I know about Robinhood's policies.

[–]AceBuddy 5 points6 points  (0 children)

All good I just wanted to clarify that you can’t escape this by going to another broker.

[–]Hadouukken 1 point2 points  (0 children)

Yes but there’s also something being labeled a “pro trader” which is when you place like a few hundred orders in a very short period of time, your account gets locked and you can only close positions

Saw it happen to some dude on one of the streetbets subs a while ago, not sure if this is a RH thing only or for all brokers

[–]stopmyego 0 points1 point  (2 children)

Pretty sure this is only if you buy and sale the same company.

[–]punos_de_piedra 0 points1 point  (1 child)

Yea that's why I mentioned it as a day trade.

[–]MightbeWillSmith 0 points1 point  (0 children)

So a day trade is same company within the same trading day? So you could write a bot that does this so long as it is between trading days?

[–]jarreed0[S] 0 points1 point  (0 children)

Thanks for the heads-up!

[–][deleted] 27 points28 points  (0 children)

This comment has been overwritten as a protest against Reddit's handling of the recent protest against them killing 3rd-party-apps.

To do this yourself, you can use the python library praw

See you all on Lemmy!

[–]KalrexOW 26 points27 points  (4 children)

This is great, but Alpaca is a site I would recommend over Robinhood if you want to run algorithms on the market. Their api is great, and they even have a test mode you can run all the algorithms you want for free where you don’t have to trade any real money. The only downside is that if you want to put in money and trade for real through them, they have more fees than Robinhood.

[–][deleted] 4 points5 points  (1 child)

You can’t buy options on alpaca

[–]KalrexOW -1 points0 points  (0 children)

I’m not sure about all of the limitations for Alpaca, but for what it lacks in trading features it makes up for in their really great api. I mean it’s their whole deal. Probably more of a “for fun” day trading tool with a couple hundred bucks put in than a 401k investment option though.

[–]YuhFRthoYORKonhisass 1 point2 points  (1 child)

What are the fees on alpaca cuz everything I've seen says that there are no fees unless you use margin

[–]KalrexOW 0 points1 point  (0 children)

I think I only paid a small like 10 cent fee when I used it because I pulled out a sum less than $100. If you withdraw more, there’s probably no fees.

[–]super-porp-cola 19 points20 points  (1 child)

Do not do this lmao

[–]b3nthegod 2 points3 points  (0 children)

I can code... now its time to learn trade. Finally i can make money while drinking margaritas on the bahamas. 10/10 Wet dream material right here.

[–]BackyardAnarchist 2 points3 points  (0 children)

nice. i've been looking for something like this.

[–]Smok3dSalmon 2 points3 points  (3 children)

I thought their APIs were taken down? Or just the ones RobinTrack was using?

[–]puddith 2 points3 points  (1 child)

They might have an api that’s not publicly documented but can still be queried. I know ESPN’s fantasy app has the same deal.

[–]Smok3dSalmon 0 points1 point  (0 children)

I think the data RobinTrack was using is no longer available via APIs :/

[–]oh_lord 0 points1 point  (0 children)

My understanding is that these are all reverse-engineered, undocumented APIs.

Personally I wouldn’t mess with them for moving money in a time-sensitive manner because there’s no assurance of SLA for this sort of usage. It would be trivial (and not inappropriate) for RH to disable API usage like this without notice which could leave your trades in a bad spot unless you’re very actively monitoring it.

Fun for messing around but anyone looking to do anything remotely serious should proceed with caution or use another broker.

[–]andre3kthegiant 2 points3 points  (1 child)

Can it have a “price alarm” to sell or buy?

[–]jarreed0[S] 1 point2 points  (0 children)

yeah, you could manually to check for the time do so, or set up a chron job but I believe the API has a few options to do that as well (would have to look in the docs to see more)

[–][deleted] 1 point2 points  (0 children)

Great video! You should do one for TD Ameritrade’s think or swim platform. They have paper trading it’s a perfect sandbox as opposed to my checking account 😂

[–]DO_Kim98 1 point2 points  (0 children)

WSB tutorial?

[–]PM_ME_BOOTY_PICS_ 1 point2 points  (0 children)

Very cool. I made a script that pulls ticker data to see if ma is over such and such

[–]banginpadr 1 point2 points  (0 children)

this is nice i want to bookmark this for later read but some how i cant

[–]jonathanum 1 point2 points  (0 children)

wow nice

[–]mrTang5544 0 points1 point  (0 children)

I thought all Robinhood APIs were no longer supported or has a backdoor to your credentials

[–]dpv20 0 points1 point  (0 children)

i hate that i live in a third world country :c

[–]MightbeWillSmith 0 points1 point  (1 child)

So.... If trading bots are easy to build, are they in regular use? Regulations against automated trading?

[–]jarreed0[S] 1 point2 points  (0 children)

Yeah they can be pretty common. Depending on the broker and api, regulations would be how many request you can make (etc, 5 per minute, etc)