Skip to content

Go client library for interacting with Coinpaprika's API

License

Notifications You must be signed in to change notification settings

EPguy/coinpaprika-api-go-client

Repository files navigation

Coinpaprika API Go Client

Build Status go-doc Go Report Card

Usage

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.

Getting started

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("----")
	}
}

Setting custom HTTP client

customClient := &http.Client{Timeout: 10 * time.Second}
paprikaClient := coinpaprika.NewClient(customClient)

Examples

Check out the ./examples directory.

Implementation status (API v1.3.0)

Global

  • Get market overview data

Coins

  • 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

People

  • Get people by ID

Tags

  • List tags
  • Get tag by ID

Tickers

  • Get tickers for all coins
  • Get ticker information for specific coin
  • Get historical ticker for specific coin

Exchanges

  • List exchanges
  • Get exchange by ID
  • List markets by exchange ID

Search

  • Search tool

License

CoinpaprikaAPI is available under the MIT license. See the LICENSE file for more info.

About

Go client library for interacting with Coinpaprika's API

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 98.2%
  • Makefile 1.8%