massive-com / massive-com/client-go
Daily ticker summary preMarket type mismatch
Nobody has claimed this yet.
- 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
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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