package main
import (
  "fmt"
  "strings"
  "net/http"
  "io"
)
func main() {
  url := "https://deep-index.moralis.io/api/v2.2/erc20/prices?chain=eth"
  payload := strings.NewReader("{\"tokens\":[{\"token_address\":\"0xdac17f958d2ee523a2206206994597c13d831ec7\"},{\"token_address\":\"0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48\"}]}")
  req, _ := http.NewRequest("POST", url, payload)
  req.Header.Add("Accept", "application/json")
  req.Header.Add("Content-Type", "application/json")
  req.Header.Add("X-API-Key", "YOUR_API_KEY")
  res, _ := http.DefaultClient.Do(req)
  defer res.Body.Close()
  body, _ := io.ReadAll(res.Body)
  fmt.Println(res)
  fmt.Println(string(body))
}