Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added experimental ticker events #113

Merged
merged 4 commits into from
Aug 10, 2023
Merged

Added experimental ticker events #113

merged 4 commits into from
Aug 10, 2023

Conversation

justinpolygon
Copy link
Contributor

Added the stocks ticker events experimental endpoint.

Running something like this:

// Stocks Ticker Events (experimental)
// https://polygon.io/docs/stocks/get_vx_reference_tickers__id__events
fun stocksTickerEvents(polygonClient: PolygonRestClient) {
    println("META events:")
    polygonClient.experimentalClient.getTickerEventsBlocking(TickerEventsParameters(id = "META")).pp()
}

Will print this:

TickerEventsResponse(
  Companion = Companion(
  )
  status = "OK"
  requestID = "4c65f82386fd8a8e4c4a5065cf27eabb"
  results = TickerEvents(
    Companion = Companion(
    )
    name = "Meta Platforms, Inc. Class A Common Stock"
    compositeFigi = "BBG000MM2P62"
    cik = "0001326801"
    events = [
               TickerEvent(
                 Companion = Companion(
                 )
                 tickerChange = TickerChange(
                   Companion = Companion(
                   )
                   ticker = "META"
                 )
                 type = "ticker_change"
                 date = "2022-06-09"
               ),
               TickerEvent(
                 Companion = Companion(
                 )
                 tickerChange = TickerChange(
                   Companion = Companion(
                   )
                   ticker = "FB"
                 )
                 type = "ticker_change"
                 date = "2012-05-18"
               )
             ]
  )
)

@justinpolygon justinpolygon marked this pull request as ready for review July 13, 2023 22:32
@justinpolygon justinpolygon merged commit 5b609d6 into master Aug 10, 2023
1 check passed
@justinpolygon justinpolygon deleted the jw-ticker-events branch August 10, 2023 18:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants