• This repository has been archived on 17/Jan/2023
  • Stars
    star
    131
  • Rank 275,867 (Top 6 %)
  • Language
    Go
  • License
    MIT License
  • Created almost 6 years ago
  • Updated about 2 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Simple API Client for CoinGecko written in Go.

CoinGecko API Client for Go

Build Status GoDoc

Simple API Client for CoinGecko written in Go

gogecko

gopher resources from free-gophers-pack

Available endpoint

Refer to CoinGecko official API

Endpoint Status Testing Function
/ping [/] [/] Ping
/simple/price [/] [/] SimpleSinglePrice, SimplePrice
/simple/supported_vs_currencies [/] [/] SimpleSupportedVSCurrencies
/coins/list [/] [/] CoinsList
/coins/market [/] [/] CoinsMarket
/coins/{id} [/] CoinsID
/coins/{id}/history [/] CoinsIDHistory
/coins/{id}/market_chart [/] CoinsIDMarketChart
/events/countries [/] EventsCountries
/events/types [/] EventsType
/exchange_rates [/] ExchangeRate
/global [/] Global

Usage

Installation with go get.

go get -u github.com/superoo7/go-gecko

For usage, checkout Example folder for v3

For production, you might need to set time out for httpClient, here's a sample code:

package main

import (
	"net/http"
	"time"

	coingecko "github.com/superoo7/go-gecko/v3"
)

func main() {
	httpClient := &http.Client{
		Timeout: time.Second * 10,
	}
	CG := coingecko.NewClient(httpClient)
}

Convention

refer to https://medium.com/@marcus.olsson/writing-a-go-client-for-your-restful-api-c193a2f4998c

License

MIT

More Repositories

1

vue-cli-plugin-chrome-ext

vue cli plugin that setup vue project for chrome extension
JavaScript
94
star
2

statBot

A discord bot for steem
TypeScript
12
star
3

uniswap-degen-chrome-extension

Use at your own risk
JavaScript
7
star
4

blockchain-tutorial

TypeScript
6
star
5

steem_web_wallet

wallet for steem on the web
TypeScript
5
star
6

iOT_light

Creating an iOT light bulb that can be control using website and iOS app
Swift
4
star
7

ihashgen

Library to generate hash intergrity for CDN (CLI and Node) (SRI hash generator)
TypeScript
3
star
8

algorithms

Learn algorithms with TypeScript and Rust
TypeScript
3
star
9

websocket_with_rust

Just trying out rust with websocket
Rust
2
star
10

todo-app

To Do App build with Quasar Framework and Vue.js
JavaScript
2
star
11

embedded_system

Embedded System with Assembly with PIC 16 and C/C++ with Arduino
Makefile
2
star
12

statbot2

statbot v2 rewrite into Go
Go
2
star
13

CryptPriceBot

A bot that consume CoinMarketCap API and show the cryptocurrency price
JavaScript
2
star
14

oo7-discord

A discord bot that prevent spamming
JavaScript
2
star
15

solar_boat

The iOT part of the solar boat (DONE)
C++
2
star
16

stephard

a discord bot for prevent abuse
TypeScript
1
star
17

casper-starter

Setup Babel for casperjs
JavaScript
1
star
18

react-typescript

React + TypeScript with basic PWA Setup
JavaScript
1
star
19

mini-iOT-project

mini iOT project with Arduino, raspberry pi and some codings
Arduino
1
star
20

quasar-presentation

quasar presentation build with quasar, vue and reveal.js
Vue
1
star
21

api

Steemhunt back-end server
Ruby
1
star
22

BSwap

JavaScript
1
star
23

eth

learn to use web3, solidity and eth
JavaScript
1
star
24

raspberry-pi-php-iot

Mini iOT Project. Use php to send shell command to raspberry pi to turn on and off the GPIO.
PHP
1
star
25

Cert-BC

A certificate database build on top of blockchain
TypeScript
1
star
26

CryptoPriceDisplay

Python
1
star
27

Kopitiam_V2

Version 2.0 of Kopitiam discord bot (Complete rewrite in Elixir)
Elixir
1
star
28

react-starter

React, Redux, Flow, EsLint, Jest Starter Pack!
JavaScript
1
star
29

Kopitiam

TypeScript
1
star
30

cn-malaysia

TypeScript
1
star
31

dota2-auto-accept

Jupyter Notebook
1
star
32

steem-link-extractor

Link extractor from Steem App
TypeScript
1
star