Skip to content

Daily ticker summary preMarket type mismatch #571

Description

@Americas

Describe the bug
The PreMarket response on the daily ticker summary (/v1/open-close/{stocksTicker}/{date}) has type int (PreMarket *int "json:\"preMarket,omitempty\"";) but the json response has decimals.

Expected behavior
I expect to receive a float, but it returns an errorjson: cannot unmarshal number 406.03 into Go struct field .preMarket of type int.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions