package main
import (
"fmt"
"strings"
"net/http"
"io/ioutil"
)
func main() {
url := "https://deep-index.moralis.io/api/v2.2/erc20/prices?chain=eth&include=percent_change"
payload := strings.NewReader("{\"tokens\":[{\"token_address\":\"0xdac17f958d2ee523a2206206994597c13d831ec7\"},{\"token_address\":\"0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48\"},{\"exchange\":\"uniswapv2\",\"token_address\":\"0xae7ab96520de3a18e5e111b5eaab095312d7fe84\",\"to_block\":\"16314545\"},{\"token_address\":\"0x7d1afa7b718fb893db30a3abc0cfc608aacfebb0\"}]}")
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, _ := ioutil.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}