HNHacker News
TopNewBestAskShowJobs

sunnynagra

504 karma · joined February 8, 2012

submissionscomments
sunnynagra··on Show HN: Watch 3 AIs compete in real-time stock trading
Sorry if folks just got resent email verification emails, but I think I fixed the verification url issue and should be addressed.
sunnynagra··on Show HN: Watch 3 AIs compete in real-time stock trading
Thanks ccheney, I think I found the issue and fixed it. Sorry again for folks running into issues, really appreciate folks interested enough to follow along and help troubleshoot as well
sunnynagra··on Show HN: Watch 3 AIs compete in real-time stock trading
Hey ttul, can you try again? I fixed the issue, hit my API limit with my account on mailgun
sunnynagra··on Show HN: Watch 3 AIs compete in real-time stock trading
Done with Alpaca API, not trading fees

I only trade stocks that support fractional shares

sunnynagra··on Show HN: Watch 3 AIs compete in real-time stock trading
Currently it is never updated again with new info, this is one of the things at the top of my list to implement
sunnynagra··on Show HN: Watch 3 AIs compete in real-time stock trading
Can you try again? I had run into a rate limit
sunnynagra··on Show HN: Watch 3 AIs compete in real-time stock trading
Can you check again if you'd still like to subscribe? I had an API limit I hit
sunnynagra··on Show HN: Watch 3 AIs compete in real-time stock trading
Hey, can you try again? I ran into an API limit that should be resolved now
sunnynagra··on Show HN: Watch 3 AIs compete in real-time stock trading
Hey, can you try again? I ran into an API limit that should be resolved now
sunnynagra··on Show HN: Watch 3 AIs compete in real-time stock trading
Yes, the prompt that I am using does bias towards buying because I am specifically asking it to make a recommendation on a stock to buy and the holding period.
sunnynagra··on Show HN: Watch 3 AIs compete in real-time stock trading ($5/trade)
Great point, I will add that to the recent trades table at the bottom. It should use the total budget for the day.
sunnynagra··on Show HN: Watch 3 AIs compete in real-time stock trading
Data gets pulled from the Alpaca News API in the morning, then it gets sent to all three models. You can see a summary of the prompt used to determine the recommendations here: https://news.ycombinator.com/item?id=42560034

It currently makes up to recommendations, since not all stocks support fractional shares (I'm only doing $5 per trade). As part of the buy recommendation, a holding period is suggested as well.

Once the holding date is reached, that is when the sell order happens.

Would love to answer any other questions you may have.

sunnynagra··on Show HN: Watch 3 AIs compete in real-time stock trading ($5/trade)
Nice idea! I'll add it to my list of features to implement.
sunnynagra··on Show HN: Watch 3 AIs compete in real-time stock trading
You make fair points. Having them do actual trades is mostly to make it more personally fun and interesting to myself.
sunnynagra··on Show HN: Watch 3 AIs compete in real-time stock trading
I don't have a hard set maximum hold date, but planning on running at least buys for a year. I will re-evaluate consistently to see if it is still useful to keep up and running.
sunnynagra··on Show HN: Watch 3 AIs compete in real-time stock trading ($5/trade)
No, trying for simple buys and sells first and getting that to work well before getting into other trading strategies.
sunnynagra··on Show HN: Watch 3 AIs compete in real-time stock trading ($5/trade)
Yeah, this is only the second day of trading
sunnynagra··on Show HN: Watch 3 AIs compete in real-time stock trading
Yeah, I don't expect anything super novel to come out of this or have any unrealistic expectations. This is mostly a fun and unscientific project I'm using to learn and build some skills and thought some HN folks would find some fun in it.
sunnynagra··on Show HN: Watch 3 AIs compete in real-time stock trading ($5/trade)
Not yet, but this is a great idea to look into.
sunnynagra··on Show HN: Watch 3 AIs compete in real-time stock trading ($5/trade)
Another good suggestion I could implement is measuring against something like VOO, if all the money was invested in that instead of these individual trades.
sunnynagra··on Show HN: Watch 3 AIs compete in real-time stock trading ($5/trade)
I think this is a fair characterization. Its mostly meant to be a learning exercise for myself, just thought it would be fun to share.
sunnynagra··on Show HN: Watch 3 AIs compete in real-time stock trading
None of the stocks have been sold yet, this is just day 2, so once some sales happen, then performance will be better measured. If you scroll down, you can see the unrealized performance.
sunnynagra··on Show HN: Watch 3 AIs compete in real-time stock trading ($5/trade)
Each morning the trades are conducted with $5 each, which are mostly fractional shares that are bought.
sunnynagra··on Show HN: Watch 3 AIs compete in real-time stock trading ($5/trade)
No stocks have been sold yet, so no profit/loss has been calculated, if you look below, you can see the unrealized gains for stocks being held.
sunnynagra··on Show HN: Watch 3 AIs compete in real-time stock trading
Thanks! I use several key prompting techniques:

1. Role + Goal Setting: The AI acts as a creative market analyst focused on discovering overlooked opportunities and emerging trends.

2. Structured Analysis Framework: - Detailed evaluation criteria (innovation, moat, management, growth potential) - Sector diversity requirements - Focus on finding hidden gems vs obvious mega-cap tech stocks

3. Time-Bound Precision: Instead of vague "3-6 months" holding periods, I require exact hour calculations tied to specific catalysts like: - FDA approval dates - Earnings releases - Product launches - Conference presentations

4. Quality Controls: - Must be valid NYSE/NASDAQ symbols - Diverse across sectors/market caps - Conviction level scoring (1-10) - Each pick needs unique thesis + catalyst - JSON output format for consistency

The key is combining structured analysis with creative discovery - pushing the AI to look beyond obvious choices while maintaining some analytical rigor.

sunnynagra··on Show HN: Watch 3 AIs compete in real-time stock trading
The most recent 50 news articles are pulled via this API: https://docs.alpaca.markets/reference/news-3
sunnynagra··on Ask HN: Is there anything worth purchasing on Black Friday/Cyber Monday?
It is essentially $200 off through the Microsoft Store.

$100 off and $100 gift card

sunnynagra··on Ask HN: Feedback on an iOS Messages App
Clickable Links

App Link: https://itunes.apple.com/us/app/annotate!/id1161173401?mt=8&...

Promo Codes: http://codehookup.com/42a011ed

sunnynagra··on Ask HN: Those making over $1K/month on side projects, what did you make?
I tried releasing an iOS sticker pack app that had an actual use case (allowing you to markup and annotate iMessage conversations). I was hoping would give some passive income. Had a good first day and then dropped off a cliff.

Link: https://appsto.re/us/zMHnfb.i?app=messages

sunnynagra··on Show HN: Cupper – A specialty coffee guide curated by experts
Couple of key differences. CUPS is serving mainly as a platform to help you order coffee at a cafe. We use a certified Q Grader to grade every drink and cafe that shows up in the app. As far as I can tell, CUPS does not rate the cafes or drinks, simply acts as a portal to buy drinks.

You can learn more about us here: https://blog.cupperapp.com/what-is-cupper-b3f496d0097c#.mbns...

Page 1 of 4Next →