INNER CODE UNIT · Go
func
coinrust/trading-strategies · fxmacrodata/client.go:21
func (p Page) values() url.Values {
values := url.Values{}
if p.Limit > 0 {
values.Set("limit", strconv.Itoa(p.Limit))
}
if p.Offset > 0 {
values.Set("offset", strconv.Itoa(p.Offset))
}
return values
}
type Client struct {
BaseURL string
APIKey string
HTTPClient *http.Client
}
func NewClient(apiKey string) *Client {