Code Monkey home page Code Monkey logo

goingecko's Introduction

Goingecko

Coingecko API client for golang.

goingecko

Endpoints

Endpoint Status Function
/ping Ping
/simple/price SimplePrice
/simple/token_price/{id} SimpleTokenPrice
/simple/supported_vs_currencies SimpleSupportedVsCurrency
/coins/list CoinsList
/coins/markets CoinsMarket
/coins/{id} CoinsId
/coins/{id}/tickers CoinsIdTickers
/coins/{id}/history CoinsIdHistory
/coins/{id}/market_chart CoinsIdMarketChart
/coins/{id}/market_chart/range CoinsIdMarketChartRange
/coins/{id}/ohlc CoinsOhlc
/coins/{id}/contract/{contract_address} ContractInfo
/coins/{id}/contract/{contract_address}/market_chart/ ContractMarketChart
/coins/{id}/contract/{contract_address}/market_chart/range ContractMarketChartRange
/asset_platforms AssetPlatforms
/coins/categories/list CategoriesList
/coins/categories/ Categories
/exchanges Exchanges
/exchanges/list ExchangesList
/exchanges/{id} ExchangesId
/exchanges/{id}/tickers ExchangesIdTickers
/exchanges/{id}/volume_chart ExchangesIdVolumeChart
/derivaties Derivatives
/derivaties/exchanges DerivativesExchanges
/derivaties/exchanges/{id} DerivativesExchangesId
/derivaties/exchanges/list DerivativesExchangesList
/nfts/list NftsList
/nfts/{id} NftsId
/nfts/{asset_platform_id}/contract/{contract_address} NftsContract
/exchange_rates ExchangeRates
/search Search
/search/trending Trending
/global Global
/global/decentralized_finance_defi DecentrilizedFinanceDEFI
/companies/public_treasury/{coin_id} PublicTreasuryCoinId

Usage

package main

import (
	"fmt"

	"github.com/JulianToledano/goingecko"
)

func main() {
	cgClient := goingecko.NewClient(nil, "")
	defer cgClient.Close()

	data, err := cgClient.CoinsId("bitcoin", true, true, true, false, false, false)
	if err != nil {
		fmt.Print("Somethig went wrong...")
		return
	}
	fmt.Printf("Bitcoin price is: %f$", data.MarketData.CurrentPrice.Usd)
}

Check dir examples for more.

Thanks

This repo is based somehow in superoo7/go-gecko work.

Image was created with Gophers

goingecko's People

Contributors

juliantoledano avatar hey avatar hleb-albau avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.