2018-03-31 08:18:53 +00:00
|
|
|
package api
|
2018-03-30 18:34:45 +00:00
|
|
|
|
|
|
|
import (
|
2020-11-17 03:12:24 +00:00
|
|
|
types "github.com/miguelmota/cointop/pkg/api/types"
|
2018-03-30 18:34:45 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
// 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)
|
2020-08-10 08:34:50 +00:00
|
|
|
GetCoinData(name string, convert string) (types.Coin, error)
|
|
|
|
GetCoinDataBatch(names []string, convert string) ([]types.Coin, error)
|
2018-03-30 18:34:45 +00:00
|
|
|
//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
|
2019-07-02 05:47:54 +00:00
|
|
|
Price(name string, convert string) (float64, error)
|
2018-03-30 18:34:45 +00:00
|
|
|
}
|