From 64dc278d53f0b88a81e0e08dce202bc3f52852a2 Mon Sep 17 00:00:00 2001 From: santhosh Date: Mon, 22 Jan 2024 23:12:35 -0800 Subject: [PATCH] Support strike price params for ListOptionsChainParams --- rest/models/snapshot.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/rest/models/snapshot.go b/rest/models/snapshot.go index 7418e17c..a9536e10 100644 --- a/rest/models/snapshot.go +++ b/rest/models/snapshot.go @@ -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"`