massive-com / massive-com/client-go

Daily ticker summary preMarket type mismatch

Open Beginner friendly
#571 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
Go
Stars
198
Forks
59
Avg merge
33m
Merged PRs (30d)
2

Description

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.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the Go response type for the daily ticker summary endpoint /v1/open-close/{stocksTicker}/{date}, focusing on the PreMarket field. Reproduce unmarshalling with a decimal such as 406.03, then verify the response accepts decimal pre-market values without an error.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
api
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
68/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.