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: Stock Trading with Insomnia REST Client and Alpaca API

71 pointsby shift8over 6 years ago
I&#x27;ve created an Insomnia workspace to make it easier to debug your stock trading code and learn the Alpaca API. You can read about how here: <a href="https:&#x2F;&#x2F;medium.com&#x2F;automation-generation&#x2F;using-alpacas-stock-trading-api-with-insomnia-client-a796f064a5d7" rel="nofollow">https:&#x2F;&#x2F;medium.com&#x2F;automation-generation&#x2F;using-alpacas-stock...</a><p>The actual workspace JSON for you to import into Insomnia can be found here: <a href="https:&#x2F;&#x2F;github.com&#x2F;alpacahq&#x2F;insomnia-workspace" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;alpacahq&#x2F;insomnia-workspace</a>

6 comments

nodesocketover 6 years ago
I&#x27;ve been playing with the Alpaca streaming API&#x27;s in Node to get quotes. I have it working, the next step is figure out a trading algorithm.<p>I am a pretty traditional long term investor, $AAPL, Berkshire, Bank of America, Ford, Amazon, AMD, $SPY, with 10+ years in the market. However with the crazy volatility, I have been toying with the idea of buying ProShares UltraPro Short $SQQQ to hedge my losses on big pre-market open down days. Today for example would have been a good day to own $SQQQ for the day (up 7.3%). Any insight on how to go about this hedge strategy using Alpaca? Can I get pre-market quotes for the Nasdaq?
9712263over 6 years ago
Seems inherit the same limitation of RobinHood: you can&#x27;t do short selling. Not sure how actually they could do a free commission order, so not sure why short selling is not supported, but it limits the use of long only strategy.
评论 #18688887 未加载
ta1234567890over 6 years ago
Open question: If, for one stock, you could predict tomorrow&#x27;s closing price today (with 80% accuracy within 2% of the actual price), how would you trade that stock?
评论 #18687730 未加载
评论 #18687507 未加载
评论 #18687199 未加载
评论 #18687191 未加载
评论 #18688531 未加载
评论 #18688457 未加载
rpedelaover 6 years ago
Alpaca looks awesome, but doesn&#x27;t support after hours trading. Does anyone know of a good API that does?
评论 #18691850 未加载
hellofunkover 6 years ago
How is the access to historical data with these services?
kaycebasquesover 6 years ago
A commission-free trading API? How does Alpaca make money?
评论 #18686770 未加载
评论 #18686987 未加载
评论 #18690366 未加载
评论 #18713284 未加载