2
0
mirror of https://github.com/miguelmota/cointop synced 2024-11-18 15:25:31 +00:00
cointop/pkg/api/interface.go
Simon Roberts 9824c409ad
Feature/code cleanups (#191)
Lots of style/comment/redundancy cleanups. No functional change.
2021-10-01 17:03:36 +10:00

20 lines
720 B
Go

package api
import (
"github.com/cointop-sh/cointop/pkg/api/types"
)
// Interface interface
type Interface interface {
Ping() error
GetAllCoinData(convert string, ch chan []types.Coin) error
GetCoinGraphData(convert string, symbol string, name string, start int64, end int64) (types.CoinGraph, error)
GetGlobalMarketGraphData(convert string, start int64, end int64) (types.MarketGraph, error)
GetGlobalMarketData(convert string) (types.GlobalMarketData, error)
GetCoinData(name string, convert string) (types.Coin, error)
GetCoinDataBatch(names []string, convert string) ([]types.Coin, error)
CoinLink(name string) string
SupportedCurrencies() []string
Price(name string, convert string) (float64, error)
}