bot

package
v0.0.0-...-c0f340f Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2019 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Candle

type Candle struct {
	High float64 `json:"high,string"`
	Low  float64 `json:"low,string"`
}

Candle ...

type Handler

type Handler interface {
	Handle(tgbotapi.Update)
}

Handler ...

func NewHandler

func NewHandler(a *tgbotapi.BotAPI) Handler

NewHandler ...

type Pair

type Pair struct {
	BaseCode    string  `json:"baseCode"`
	CounterCode string  `json:"counterCode"`
	Price       float64 `json:"price,string"`
}

Pair ...

type PairResponse

type PairResponse struct {
	Pairs []Pair `json:"availablePairs"`
}

PairResponse ...

type PriceCandle

type PriceCandle struct {
	Candles []Candle `json:"candles"`
}

PriceCandle ...

type Ticker

type Ticker struct {
	Volume float64 `json:"rolling_24_hour_volume,string"`
}

Ticker ...

Jump to

Keyboard shortcuts

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