Description: This projects aims at providing a go web wrapper for the Messari api.
The current version v1 only supports messari's standard api's. V2 plans to introduce authentication for entreprise api access.
To see what api are available check out accessor.go.
field_query := accessor.FieldQuery{
ield: "?fields=id,slug,symbol,metrics/market_data/price_usd",
}
timeseries_query := accessor.TimeseriesQuery{
Start: "start=2021-04-15",
End: "end=2021-05-15",
Interval: INTERVAL_1DY,
}
package main
import (
"fmt"
"log"
"github.com/joshjwelsh/go-messari-wrapper/accessor"
)
func check(e error) {
if e != nil {
log.Fatalf("Fatal error: %v", e)
}
}
func main() {
fmt.Printf("")
ts_query := accessor.TimeseriesQuery{
Start: "start=2021-04-15",
End: "end=2021-09-15",
Interval: "1wk",
}
accessor_ := accessor.NewAccessor()
ts, err := accessor_.GetPriceTimeseries("ETH", ts_query)()
check(err)
fmt.Println(ts.Data)
}