mirror of
https://github.com/miguelmota/cointop
synced 2024-11-10 13:10:26 +00:00
36296b6446
Former-commit-id: 9dd23cec016dbde170e423180d24bc610caefcf4 [formerly 9dd23cec016dbde170e423180d24bc610caefcf4 [formerly 3ead24343eff902c60c345fc6bec7e780bd166a6 [formerly f7623d2699
]]]
Former-commit-id: 40b2646f106c3a6eda82e5846c40e9b8de8336f9
Former-commit-id: d66136a941af83c0c31a57d3cda716ccd3d15880 [formerly 16133181388d9b546e89d19b0cb6614090681fd8]
Former-commit-id: 5a05f52a7025e74a8bc614c1d239daf1aa458eda
18 lines
623 B
Go
18 lines
623 B
Go
package api
|
|
|
|
import (
|
|
types "github.com/miguelmota/cointop/pkg/api/types"
|
|
)
|
|
|
|
// Interface interface
|
|
type Interface interface {
|
|
GetAllCoinData() (map[string]types.Coin, error)
|
|
GetCoinGraphData(coin string, start int64, end int64) (types.CoinGraph, error)
|
|
GetGlobalMarketGraphData(start int64, end int64) (types.MarketGraph, error)
|
|
GetGlobalMarketData() (types.GlobalMarketData, error)
|
|
//GetCoinData(coin string) (types.Coin, error)
|
|
//GetAltcoinMarketGraphData(start int64, end int64) (types.MarketGraph, error)
|
|
//GetCoinPriceUSD(coin string) (float64, error)
|
|
//GetCoinMarkets(coin string) ([]types.Market, error)
|
|
}
|