Documentation ¶
Index ¶
- type CoinDB
- func (driver *CoinDB) GetCurrencyPairs(market string) (data []Pair)
- func (driver *CoinDB) GetFirstDate(market string, pair Pair) time.Time
- func (driver *CoinDB) GetLastDate(market string, pair Pair) time.Time
- func (driver *CoinDB) GetMarkets() (data []string)
- func (driver *CoinDB) GetOHLC(market string, pair Pair, start, end time.Time, period string) (data []OHLC)
- func (db *CoinDB) PutMarketTake(market string, pair Pair, data MarketTake)
- func (db *CoinDB) PutMarketTakes(market string, pair Pair, data []MarketTake)
- func (db *CoinDB) PutOHLC(market string, pair Pair, data OHLC, date time.Time)
- func (db *CoinDB) PutOHLCs(market string, pair Pair, data ...OHLC)
- type Config
- type Fields
- type MarketTake
- type OHLC
- type Pair
- type Tags
- type TickerValue
- type TikerData
- func (ticker TikerData) Avg() TickerValue
- func (ticker TikerData) Close() TickerValue
- func (ticker TikerData) High() TickerValue
- func (ticker TikerData) Low() TickerValue
- func (ticker TikerData) Open() TickerValue
- func (ticker TikerData) Time() []int64
- func (ticker TikerData) Volume() TickerValue
- func (ticker TikerData) WeightedAvg() TickerValue
- type TradeData
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CoinDB ¶
type CoinDB struct {
// contains filtered or unexported fields
}
func (*CoinDB) GetCurrencyPairs ¶
GetMarkets return the list of GetCurrencyPair from market
func (*CoinDB) GetFirstDate ¶
func (*CoinDB) GetMarkets ¶
GetMarkets return the list of market name
func (*CoinDB) GetOHLC ¶
func (driver *CoinDB) GetOHLC(market string, pair Pair, start, end time.Time, period string) (data []OHLC)
GetOHLC return the list of OHLC from CurrencyPair TODO : This function is not tested.
func (*CoinDB) PutMarketTake ¶
func (db *CoinDB) PutMarketTake(market string, pair Pair, data MarketTake)
func (*CoinDB) PutMarketTakes ¶
func (db *CoinDB) PutMarketTakes(market string, pair Pair, data []MarketTake)
type MarketTake ¶
type Pair ¶
func (Pair) MarshalText ¶
type TickerValue ¶
type TickerValue []float64
ticker
func (TickerValue) Before ¶
func (value TickerValue) Before(offset int) float64
func (TickerValue) Last ¶
func (value TickerValue) Last() float64
func (TickerValue) Size ¶
func (value TickerValue) Size() int
type TikerData ¶
type TikerData map[string]interface{}
func (TikerData) Avg ¶
func (ticker TikerData) Avg() TickerValue
func (TikerData) Close ¶
func (ticker TikerData) Close() TickerValue
func (TikerData) High ¶
func (ticker TikerData) High() TickerValue
func (TikerData) Low ¶
func (ticker TikerData) Low() TickerValue
func (TikerData) Open ¶
func (ticker TikerData) Open() TickerValue
func (TikerData) Volume ¶
func (ticker TikerData) Volume() TickerValue
func (TikerData) WeightedAvg ¶
func (ticker TikerData) WeightedAvg() TickerValue
Click to show internal directories.
Click to hide internal directories.