Documentation ¶
Index ¶
- Constants
- func BinanceFutures(n int) chan string
- func GetBinancePrice(tickerid string) (float64, error)
- func GetPrice(tickerid string) (float64, error)
- type Data
- type DataFrame
- func (df *DataFrame) Close() []float64
- func (df *DataFrame) CloseAt(i int) float64
- func (df *DataFrame) High() []float64
- func (df *DataFrame) HighAt(i int) float64
- func (df *DataFrame) Len() int
- func (df *DataFrame) Low() []float64
- func (df *DataFrame) LowAt(i int) float64
- func (df *DataFrame) Open() []float64
- func (df *DataFrame) OpenAt(i int) float64
- func (df *DataFrame) Print()
- func (df *DataFrame) Quantity() []float64
- func (df *DataFrame) QuantityAt(i int) float64
- func (df *DataFrame) SearchByTime(t time.Time) int
- func (df *DataFrame) SetCloseAt(i int, v float64)
- func (df *DataFrame) SetHighAt(i int, v float64)
- func (df *DataFrame) SetLowAt(i int, v float64)
- func (df *DataFrame) SetOpenAt(i int, v float64)
- func (df *DataFrame) SetQuantityAt(i int, v float64)
- func (df *DataFrame) SetUnixAt(i int, v float64)
- func (df *DataFrame) SetVolumeAt(i int, v float64)
- func (df *DataFrame) Slice(i, k, j, l int) *DataFrame
- func (df *DataFrame) Unix() []float64
- func (df *DataFrame) UnixAt(i int) float64
- func (df *DataFrame) Volume() []float64
- func (df *DataFrame) VolumeAt(i int) float64
- type Data_
- type KLine
- type List
- type Market
- type Pair2
- type PriceResponse
Constants ¶
View Source
const ( Unix = iota // unix second High Open Low Close Quantity Volume )
View Source
const Columns = 7
Variables ¶
This section is empty.
Functions ¶
func BinanceFutures ¶
func GetBinancePrice ¶
Types ¶
type DataFrame ¶
func (*DataFrame) QuantityAt ¶
func (*DataFrame) SetCloseAt ¶
func (*DataFrame) SetQuantityAt ¶
func (*DataFrame) SetVolumeAt ¶
type KLine ¶
{ "data": { "kline": [ [ 1603065600, //时间 39.7777, // 最高价 32.3569, // 开盘 20.6023, // 最低价 38.6663, // 收盘 5387902.82, // 成交量 154196745.159039 // 交易额 ] ] }, "code": 200, "msg": "success" }
func (*KLine) ToDataFrame ¶
type List ¶
type List struct { Code string `json:"code"` Symbol string `json:"symbol"` Name string `json:"name"` Price float64 `json:"price"` Contracttype string `json:"contracttype"` Contractvalue string `json:"contractvalue"` Minunitchange string `json:"minunitchange"` Leveragechoose string `json:"leveragechoose"` Openingcharge string `json:"openingcharge"` Closingcharge string `json:"closingcharge"` Tradingtime string `json:"tradingtime"` Fundsrate float64 `json:"fundsrate"` OpenInterest float64 `json:"open_interest"` Markets []Market `json:"martkets"` }
type Market ¶
type Market struct { Tickerid string `json:"tickerid"` Code string `json:"code"` Name string `json:"name"` Pair1 string `json:"pair1"` Pair2 Pair2 `json:"pair2"` Title string `json:"title"` Logo string `json:"logo"` Price float64 `json:"price"` Changerate float64 `json:"changerate"` Amount float64 `json:"amount"` OpenInterest float64 `json:"open_interest"` Refreshtime int64 `json:"refreshtime"` IsFocus int64 `json:"is_focus"` Showkline int64 `json:"showkline"` }
type PriceResponse ¶
Click to show internal directories.
Click to hide internal directories.