Skip to content
This repository has been archived by the owner on Nov 29, 2022. It is now read-only.

TriggerHistory struct type mismatch #33

Closed
sanjujosh opened this issue Aug 18, 2021 · 0 comments
Closed

TriggerHistory struct type mismatch #33

sanjujosh opened this issue Aug 18, 2021 · 0 comments

Comments

@sanjujosh
Copy link

Hello There,

Thanks for the amazing library.

Is there any specific reason to use int instead of float64 for Size and FilledSize under TriggerHistory struct.

image

JSON decoding is failing since its not a float with below error

rest.Response.Error: Result: orders.ResponseForOrderTriggerHistories: orders.TriggerHistory.Size: assertInteger: can not decode float as int, error found in #10 byte of ...|0,"size":1.0,"status|..., bigger context ...|t","orderPrice":null,"triggerPrice":100.0,"size":1.0,"status":"cancelled","createdAt":"2021-08-17T01|...

@go-numb go-numb closed this as completed Jun 30, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants