polygon-io / client-go

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

Added WithPayDate method to ListDividendsParams #430

Closed justinpolygon closed 2 months ago

justinpolygon commented 2 months ago

Fixes https://github.com/polygon-io/client-go/issues/425. Added helper vs manually changing ListDividendsParams.

This will enable the following:

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