bybit-api icon indicating copy to clipboard operation
bybit-api copied to clipboard

OHLC2 struct

Open BlndMrn opened this issue 4 years ago • 0 comments

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"`
}

BlndMrn avatar Nov 11 '20 22:11 BlndMrn