
GeckoTerminal Go
RESTful Go Client for GeckoTerminal API
Wrapper around the GeckoTerminal DeFi and DeX
aggregator operating across 90+ chains and 500+ dexes.
Features:
- Get the market data (price, volume, historical chart) of any token
- Find all the pools that are trading a specific token
- Plot a candlestick chart using OHLCV when given a pool address
The API is currently in beta and is subject to change, please report any issues you
find.
Installation
go get github.com/dineshpinto/geckoterminal-go
Examples
package main
import (
"fmt"
"log"
"github.com/dineshpinto/geckoterminal-go/syncclient"
)
func main() {
// Create an instance of the synchronous client
gt := syncclient.NewClient()
// Get list of networks
networks, err := gt.Networks(1)
if err != nil {
log.Fatal(err)
}
fmt.Println(networks)
// Get list of trending pools on a network
pools, err := gt.NetworkTrendingPools("solana", 1)
if err != nil {
log.Fatal(err)
}
fmt.Println(pools)
// and many more...
}
Disclaimer
This project is for educational purposes only. You should not construe any such
information or other material as legal, tax, investment, financial, or other advice.
Nothing contained here constitutes a solicitation, recommendation, endorsement, or
offer by me or any third party service provider to buy or sell any securities or other
financial instruments in this or in any other jurisdiction in which such solicitation or
offer would be unlawful under the securities laws of such jurisdiction.
Under no circumstances will I be held responsible or liable in any way for any claims,
damages, losses, expenses, costs, or liabilities whatsoever, including, without
limitation, any direct or indirect damages for loss of profits.