Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OHLC2 struct #6

Open
BlndMrn opened this issue Nov 11, 2020 · 0 comments
Open

OHLC2 struct #6

BlndMrn opened this issue Nov 11, 2020 · 0 comments

Comments

@BlndMrn
Copy link

BlndMrn commented Nov 11, 2020

Json cant read OHLC2 struct with types float64 beacuse of Bybit returns numbers with dot.

Rewrote struct, works fine

type OHLC2 struct {
	Symbol   string  `json:"symbol"`
	Interval string  `json:"interval"`
	OpenTime int64   `json:"open_time"`
	Open     float64 `json:"open,string"`
	High     float64 `json:"high,string"`
	Low      float64 `json:"low,string"`
	Close    float64 `json:"close,string"`
	Volume   float64 `json:"volume,string"`
	Turnover float64 `json:"turnover,string"`
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant