You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
569 B
20 lines
569 B
package market
|
|
|
|
import "github.com/shopspring/decimal"
|
|
|
|
type GetCandlestickResponse struct {
|
|
Status string `json:"status"`
|
|
Ch string `json:"ch"`
|
|
Ts int64 `json:"ts"`
|
|
Data []Candlestick `json:"data"`
|
|
}
|
|
type Candlestick struct {
|
|
Amount decimal.Decimal `json:"amount"`
|
|
Open decimal.Decimal `json:"open"`
|
|
Close decimal.Decimal `json:"close"`
|
|
High decimal.Decimal `json:"high"`
|
|
Id int64 `json:"id"`
|
|
Count int64 `json:"count"`
|
|
Low decimal.Decimal `json:"low"`
|
|
Vol decimal.Decimal `json:"vol"`
|
|
}
|
|
|