polygon-io / client-go

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

`models.ListDividendsParams` does not have a `WithPayDate` option method #425

Closed ryanmoran closed 2 months ago

ryanmoran commented 2 months ago

Is your feature request related to a problem? Please describe.

I'd like to be able to easily assign the PayDate... fields on the models.ListDividendsParams type. This can still be done manually, but it would be easier if there was a WithPayDate option method.

Describe the solution you'd like

I'd like to be able to specify this parameter setting with a method like the following:

params := models.ListDividendsParams{}.WithPayDate(models.EQ, models.Date(date))

Describe alternatives you've considered

I can do this manually by assigning the fields directly on the models.ListDividendsParams type.

Additional context

Nope.