This library provides convenient way to use coinpaprika.com API in Go.
Coinpaprika delivers full market data to the world of crypto: coin prices, volumes, market caps, ATHs, return rates and more.
package main
import (
"fmt"
"github.com/coinpaprika/coinpaprika-api-go-client/coinpaprika"
)
func main() {
paprikaClient := coinpaprika.NewClient(nil)
tickers, err := paprikaClient.Tickers.List()
if err != nil {
panic(err)
}
for _, t := range tickers {
fmt.Println("Name:", *t.Name)
fmt.Println("Symbol:", *t.Symbol)
fmt.Println("Rank:", *t.Rank)
fmt.Println("----")
}
}
customClient := &http.Client{Timeout: 10 * time.Second}
paprikaClient := coinpaprika.NewClient(customClient)
Check out the ./examples
directory.
- Get market overview data
- List coins
- Get coin by ID
- Get twitter timeline for coin
- Get coin events by coin ID
- Get exchanges by coin ID
- Get markets by coin ID
- Get latest OHLC
- Get historical OHLC
- Get people by ID
- List tags
- Get tag by ID
- Get tickers for all coins
- Get ticker information for specific coin
- Get historical ticker for specific coin
- List exchanges
- Get exchange by ID
- List markets by exchange ID
- Search tool
CoinpaprikaAPI is available under the MIT license. See the LICENSE file for more info.