Skip to content

Daily ticker summary preMarket type mismatch #571

@Americas

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.

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