forked from JulianToledano/goingecko
-
Notifications
You must be signed in to change notification settings - Fork 0
/
endpoints.go
22 lines (20 loc) · 951 Bytes
/
endpoints.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
package goingecko
import "fmt"
var (
version = "v3"
baseURL = fmt.Sprintf("https://api.coingecko.com/api/%s", version)
pingURL = fmt.Sprintf("%s/ping", baseURL)
simpleURL = fmt.Sprintf("%s/simple", baseURL)
coinsURL = fmt.Sprintf("%s/coins", baseURL)
assetPlatformsURL = fmt.Sprintf("%s/asset_platforms", baseURL)
categoriesURL = fmt.Sprintf("%s/categories", coinsURL)
exchangesURL = fmt.Sprintf("%s/exchanges", baseURL)
derivativesURL = fmt.Sprintf("%s/derivatives", baseURL)
nftsURL = fmt.Sprintf("%s/nfts", baseURL)
searchURL = fmt.Sprintf("%s/search", baseURL)
contractURL = fmt.Sprintf("%s/coins", baseURL)
exchangeRatesURL = fmt.Sprintf("%s/exchange_rates", baseURL)
trendingURL = fmt.Sprintf("%s/search/trending", baseURL)
globalURL = fmt.Sprintf("%s/global", baseURL)
companiesURL = fmt.Sprintf("%s/companies", baseURL)
)