package
Version:
v1.10.0
Opens a new window with list of versions in this module.
Published: Feb 22, 2023
License: MIT
Opens a new window with license information.
Imports: 7
Opens a new window with list of imports.
Imported by: 1
Opens a new window with list of known importers.
Documentation
¶
View Source
const (
APIURL = "https://api.polygon.io"
DefaultRetryCount = 3
)
type Client struct {
HTTP *resty.Client
}
Client defines an HTTP client for the Polygon REST API.
New returns a new client with the specified API key and default settings.
NewWithClient returns a new client with the specified API key and a custom HTTP client.
Call makes an API call based on the request params and options. The response is automatically unmarshaled.
CallURL makes an API call based on a request URI and options. The response is automatically unmarshaled.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.