With Polygon.io, a competitor to Alpaca, I can place a simple API request from a URL.
The only information I need is stock price. Installing the alpaca packages seems like overkill.
Here is the entire string I use to access the polygon api:
const tempURL = https://api.polygon.io/v3/snapshot/options/
+ SYM +?strike_price=
+ strikePrice +&expiration_date=
+ dateToday_api +&apiKey=
+ APIKEY;
When copied into Browser address bar, this returns my JSON data.
I then use axios, a node.js package, to make the call to the API.
How would I build a URL to continue making the request with my preferred package?
To rephrase, where do I find the URL to enter into address bar to make a request?
Thanks!