polygon-io / client-go

The official Go client library for the Polygon REST and WebSocket API.
MIT License
127 stars 36 forks source link

Update ListOptionsChainParams.WithStrikePrice to support comparators #414

Closed justinpolygon closed 3 months ago

justinpolygon commented 3 months ago

This is a breaking change to models.ListOptionsChainParams.models.ListOptionsChainParams that adds support for strike price comparators via things like .WithStrikePrice("gte", 500.00) and WithStrikePrice("lte", 600.00). A customer wanted to filter using the additional params but couldn't figure out the example. So, I wanted to update the example and found that we didn't support this without directly modifying ListOptionsChainParams with a pointer.

justinpolygon commented 3 months ago

Thank you. When we do the release notes I'll call this out and do a major version.