github.com/polygon-io/client-go@v1.16.4/rest/example/launchpad/README.md (about) 1 # Launchpad 2 3 Users of the Launchpad product will need to pass in certain headers in order to make API requests. 4 5 ```golang 6 params := &models.GetGroupedDailyAggsParams{ 7 Locale: models.US, 8 MarketType: models.Stocks, 9 Date: models.Date(time.Date(2021, 7, 22, 0, 0, 0, 0, time.Local)), 10 } 11 12 res, err := c.GetGroupedDailyAggs(context.Background(), params, 13 models.RequiredEdgeHeaders("EDGE_USER_ID", "EDGE_USER_IP_ADDRESS"), 14 ) 15 if err != nil { 16 log.Fatal(err) 17 } 18 log.Print(res) // do something with the result 19 ``` 20 21 Launchpad users can also provide the optional User Agent value describing their Edge User's origination request. 22 23 ```golang 24 params := &models.GetGroupedDailyAggsParams{ 25 Locale: models.US, 26 MarketType: models.Stocks, 27 Date: models.Date(time.Date(2021, 7, 22, 0, 0, 0, 0, time.Local)), 28 } 29 30 res, err := c.GetGroupedDailyAggs(context.Background(), params, 31 models.RequiredEdgeHeaders("EDGE_USER_ID", "EDGE_USER_IP_ADDRESS"), 32 models.EdgeUserAgent("EDGE_USER_AGENT"), 33 ) 34 if err != nil { 35 log.Fatal(err) 36 } 37 log.Print(res) // do something with the result 38 ```