Skip to content

Navigation Menu

Sign in
Sign up

Cannot get full list of option chain to return #158

Unanswered
The-Market-Maven asked this question in Q&A
Discussion options

https://docs.alpaca.markets/reference/optionchain

https://javadoc.io/doc/net.jacobpeterson.alpaca/alpaca-java/latest/net/jacobpeterson/alpaca/openapi/marketdata/api/OptionApi.html#optionChain(java.lang.String,net.jacobpeterson.alpaca.openapi.marketdata.model.OptionFeed)

If i make a request using OptionApi#optionChain(symbol,feed) if you check SONO for example it returns the full chain since there are only a few strike price contracts, however if you check something like SPY there are way too many contracts for the response, the alpaca api has params where you can check by expiration date, also use a limit which defaults to 100, but can go up to 1,000, and page token as well.

Wondering if we can get an update to this method to allow the additional params, or if I'm missing something and can already view full option chains in some way.

Kindly appreciated!

You must be logged in to vote

Replies: 0 comments

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant

AltStyle によって変換されたページ (->オリジナル) /