Skip to content

Commit

Permalink
Support strike price params for ListOptionsChainParams (#389)
Browse files Browse the repository at this point in the history
  • Loading branch information
syeduguri authored Jan 24, 2024
1 parent 9287ad0 commit 7f4b4ff
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion rest/models/snapshot.go
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,11 @@ type ListOptionsChainParams struct {
UnderlyingAsset string `validate:"required" path:"underlyingAsset"`

// The strike price of the option contract.
StrikePrice *float64 `query:"strike_price"`
StrikePrice *float64 `query:"strike_price"`
StrikePriceLT *float64 `query:"strike_price.lt"`
StrikePriceLTE *float64 `query:"strike_price.lte"`
StrikePriceGT *float64 `query:"strike_price.gt"`
StrikePriceGTE *float64 `query:"strike_price.gte"`

// The type of contract. Can be ContractCall, ContractPut, or in some rare cases, ContractOther.
ContractType *ContractType `query:"contract_type"`
Expand Down

0 comments on commit 7f4b4ff

Please sign in to comment.