qkl123

package
v0.0.0-...-41c3c42 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 8, 2021 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Get

func Get(url string, headers map[string]string, inter interface{}) error

GET

Types

type Api

type Api struct {
	ApiKey     string
	SecretKey  string
	Passphrase string
	Auth       string
	Token      string
}

func (*Api) Candles

func (self *Api) Candles(pair, level, end_time string) []Candle

func (*Api) InitKeys

func (self *Api) InitKeys(apikey, secretkey, passphrase, auth, token string)

type Base

type Base struct {
	*Api
}

func (*Base) Plat

func (self *Base) Plat() conset.PLAT

func (*Base) Pull

func (self *Base) Pull(symbol conset.SYMBOL, period conset.PERIOD, times conset.TIMES, start time.Time) bool

func (*Base) Times

func (self *Base) Times(times conset.TIMES) string

type Candle

type Candle struct {
	Close       float32 `json:"close"`
	Date        int64   `json:"date"`
	FundsBigIn  float32 `json:"funds_big_in"`
	FundsBigOut float32 `json:"funds_big_out"`
	FundsIn     float32 `json:"funds_in"`
	FundsOut    float32 `json:"funds_out"`
	High        float32 `json:"high"`
	Low         float32 `json:"low"`
	Open        float32 `json:"open"`
	Vol         float32 `json:"vol"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL