bybit-api
bybit-api copied to clipboard
OHLC2 struct
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"`
}