2
0
mirror of https://github.com/miguelmota/cointop synced 2024-11-10 13:10:26 +00:00
cointop/pkg/api/interface.go

23 lines
910 B
Go
Raw Normal View History

package api
import (
2020-11-17 03:12:24 +00:00
types "github.com/miguelmota/cointop/pkg/api/types"
)
// Interface interface
type Interface interface {
2018-05-13 01:47:06 +00:00
Ping() error
2019-05-13 02:24:10 +00:00
GetAllCoinData(convert string, ch chan []types.Coin) error
2020-02-14 17:26:43 +00:00
GetCoinGraphData(convert string, symbol string, name string, start int64, end int64) (types.CoinGraph, error)
2020-02-13 14:58:46 +00:00
GetGlobalMarketGraphData(convert string, start int64, end int64) (types.MarketGraph, error)
2018-05-07 04:07:33 +00:00
GetGlobalMarketData(convert string) (types.GlobalMarketData, error)
GetCoinData(name string, convert string) (types.Coin, error)
GetCoinDataBatch(names []string, convert string) ([]types.Coin, error)
//GetAltcoinMarketGraphData(start int64, end int64) (types.MarketGraph, error)
//GetCoinPriceUSD(coin string) (float64, error)
//GetCoinMarkets(coin string) ([]types.Market, error)
2019-05-13 02:24:10 +00:00
CoinLink(name string) string
SupportedCurrencies() []string
Price(name string, convert string) (float64, error)
}