Documentation ¶
Overview ¶
Package market provides primitives to interact with the openapi HTTP API.
Code generated by github.com/deepmap/oapi-codegen version v1.9.0 DO NOT EDIT.
Index ¶
- func GetSwagger() (swagger *openapi3.T, err error)
- func NewGetApiV5MarketBooksRequest(server string, params *GetApiV5MarketBooksParams) (*http.Request, error)
- func NewGetApiV5MarketCandlesRequest(server string, params *GetApiV5MarketCandlesParams) (*http.Request, error)
- func NewGetApiV5MarketHistoryCandlesRequest(server string, params *GetApiV5MarketHistoryCandlesParams) (*http.Request, error)
- func NewGetApiV5MarketIndexCandlesRequest(server string, params *GetApiV5MarketIndexCandlesParams) (*http.Request, error)
- func NewGetApiV5MarketIndexComponentsRequest(server string, params *GetApiV5MarketIndexComponentsParams) (*http.Request, error)
- func NewGetApiV5MarketIndexTickersRequest(server string, params *GetApiV5MarketIndexTickersParams) (*http.Request, error)
- func NewGetApiV5MarketMarkPriceCandlesRequest(server string, params *GetApiV5MarketMarkPriceCandlesParams) (*http.Request, error)
- func NewGetApiV5MarketOpenOracleRequest(server string) (*http.Request, error)
- func NewGetApiV5MarketPlatform24VolumeRequest(server string) (*http.Request, error)
- func NewGetApiV5MarketTickerRequest(server string, params *GetApiV5MarketTickerParams) (*http.Request, error)
- func NewGetApiV5MarketTickersRequest(server string, params *GetApiV5MarketTickersParams) (*http.Request, error)
- func NewGetApiV5MarketTradesRequest(server string, params *GetApiV5MarketTradesParams) (*http.Request, error)
- func PathToRawSpec(pathToFile string) map[string]func() ([]byte, error)
- type Client
- func (c *Client) GetApiV5MarketBooks(ctx context.Context, params *GetApiV5MarketBooksParams, ...) (*http.Response, error)
- func (c *Client) GetApiV5MarketCandles(ctx context.Context, params *GetApiV5MarketCandlesParams, ...) (*http.Response, error)
- func (c *Client) GetApiV5MarketHistoryCandles(ctx context.Context, params *GetApiV5MarketHistoryCandlesParams, ...) (*http.Response, error)
- func (c *Client) GetApiV5MarketIndexCandles(ctx context.Context, params *GetApiV5MarketIndexCandlesParams, ...) (*http.Response, error)
- func (c *Client) GetApiV5MarketIndexComponents(ctx context.Context, params *GetApiV5MarketIndexComponentsParams, ...) (*http.Response, error)
- func (c *Client) GetApiV5MarketIndexTickers(ctx context.Context, params *GetApiV5MarketIndexTickersParams, ...) (*http.Response, error)
- func (c *Client) GetApiV5MarketMarkPriceCandles(ctx context.Context, params *GetApiV5MarketMarkPriceCandlesParams, ...) (*http.Response, error)
- func (c *Client) GetApiV5MarketOpenOracle(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetApiV5MarketPlatform24Volume(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetApiV5MarketTicker(ctx context.Context, params *GetApiV5MarketTickerParams, ...) (*http.Response, error)
- func (c *Client) GetApiV5MarketTickers(ctx context.Context, params *GetApiV5MarketTickersParams, ...) (*http.Response, error)
- func (c *Client) GetApiV5MarketTrades(ctx context.Context, params *GetApiV5MarketTradesParams, ...) (*http.Response, error)
- type ClientInterface
- type ClientOption
- type ClientWithResponses
- func (c *ClientWithResponses) GetApiV5MarketBooksWithResponse(ctx context.Context, params *GetApiV5MarketBooksParams, ...) (*GetApiV5MarketBooksResponse, error)
- func (c *ClientWithResponses) GetApiV5MarketCandlesWithResponse(ctx context.Context, params *GetApiV5MarketCandlesParams, ...) (*GetApiV5MarketCandlesResponse, error)
- func (c *ClientWithResponses) GetApiV5MarketHistoryCandlesWithResponse(ctx context.Context, params *GetApiV5MarketHistoryCandlesParams, ...) (*GetApiV5MarketHistoryCandlesResponse, error)
- func (c *ClientWithResponses) GetApiV5MarketIndexCandlesWithResponse(ctx context.Context, params *GetApiV5MarketIndexCandlesParams, ...) (*GetApiV5MarketIndexCandlesResponse, error)
- func (c *ClientWithResponses) GetApiV5MarketIndexComponentsWithResponse(ctx context.Context, params *GetApiV5MarketIndexComponentsParams, ...) (*GetApiV5MarketIndexComponentsResponse, error)
- func (c *ClientWithResponses) GetApiV5MarketIndexTickersWithResponse(ctx context.Context, params *GetApiV5MarketIndexTickersParams, ...) (*GetApiV5MarketIndexTickersResponse, error)
- func (c *ClientWithResponses) GetApiV5MarketMarkPriceCandlesWithResponse(ctx context.Context, params *GetApiV5MarketMarkPriceCandlesParams, ...) (*GetApiV5MarketMarkPriceCandlesResponse, error)
- func (c *ClientWithResponses) GetApiV5MarketOpenOracleWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetApiV5MarketOpenOracleResponse, error)
- func (c *ClientWithResponses) GetApiV5MarketPlatform24VolumeWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetApiV5MarketPlatform24VolumeResponse, error)
- func (c *ClientWithResponses) GetApiV5MarketTickerWithResponse(ctx context.Context, params *GetApiV5MarketTickerParams, ...) (*GetApiV5MarketTickerResponse, error)
- func (c *ClientWithResponses) GetApiV5MarketTickersWithResponse(ctx context.Context, params *GetApiV5MarketTickersParams, ...) (*GetApiV5MarketTickersResponse, error)
- func (c *ClientWithResponses) GetApiV5MarketTradesWithResponse(ctx context.Context, params *GetApiV5MarketTradesParams, ...) (*GetApiV5MarketTradesResponse, error)
- type ClientWithResponsesInterface
- type GetApiV5MarketBooksParams
- type GetApiV5MarketBooksResponse
- type GetApiV5MarketCandlesParams
- type GetApiV5MarketCandlesResponse
- type GetApiV5MarketHistoryCandlesParams
- type GetApiV5MarketHistoryCandlesResponse
- type GetApiV5MarketIndexCandlesParams
- type GetApiV5MarketIndexCandlesResponse
- type GetApiV5MarketIndexComponentsParams
- type GetApiV5MarketIndexComponentsResponse
- type GetApiV5MarketIndexTickersParams
- type GetApiV5MarketIndexTickersResponse
- type GetApiV5MarketMarkPriceCandlesParams
- type GetApiV5MarketMarkPriceCandlesResponse
- type GetApiV5MarketOpenOracleResponse
- type GetApiV5MarketPlatform24VolumeResponse
- type GetApiV5MarketTickerParams
- type GetApiV5MarketTickerResponse
- type GetApiV5MarketTickersParams
- type GetApiV5MarketTickersResponse
- type GetApiV5MarketTradesParams
- type GetApiV5MarketTradesResponse
- type HttpRequestDoer
- type RequestEditorFn
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetSwagger ¶
GetSwagger returns the Swagger specification corresponding to the generated code in this file. The external references of Swagger specification are resolved. The logic of resolving external references is tightly connected to "import-mapping" feature. Externally referenced files must be embedded in the corresponding golang packages. Urls can be supported but this task was out of the scope.
func NewGetApiV5MarketBooksRequest ¶
func NewGetApiV5MarketBooksRequest(server string, params *GetApiV5MarketBooksParams) (*http.Request, error)
NewGetApiV5MarketBooksRequest generates requests for GetApiV5MarketBooks
func NewGetApiV5MarketCandlesRequest ¶
func NewGetApiV5MarketCandlesRequest(server string, params *GetApiV5MarketCandlesParams) (*http.Request, error)
NewGetApiV5MarketCandlesRequest generates requests for GetApiV5MarketCandles
func NewGetApiV5MarketHistoryCandlesRequest ¶
func NewGetApiV5MarketHistoryCandlesRequest(server string, params *GetApiV5MarketHistoryCandlesParams) (*http.Request, error)
NewGetApiV5MarketHistoryCandlesRequest generates requests for GetApiV5MarketHistoryCandles
func NewGetApiV5MarketIndexCandlesRequest ¶
func NewGetApiV5MarketIndexCandlesRequest(server string, params *GetApiV5MarketIndexCandlesParams) (*http.Request, error)
NewGetApiV5MarketIndexCandlesRequest generates requests for GetApiV5MarketIndexCandles
func NewGetApiV5MarketIndexComponentsRequest ¶
func NewGetApiV5MarketIndexComponentsRequest(server string, params *GetApiV5MarketIndexComponentsParams) (*http.Request, error)
NewGetApiV5MarketIndexComponentsRequest generates requests for GetApiV5MarketIndexComponents
func NewGetApiV5MarketIndexTickersRequest ¶
func NewGetApiV5MarketIndexTickersRequest(server string, params *GetApiV5MarketIndexTickersParams) (*http.Request, error)
NewGetApiV5MarketIndexTickersRequest generates requests for GetApiV5MarketIndexTickers
func NewGetApiV5MarketMarkPriceCandlesRequest ¶
func NewGetApiV5MarketMarkPriceCandlesRequest(server string, params *GetApiV5MarketMarkPriceCandlesParams) (*http.Request, error)
NewGetApiV5MarketMarkPriceCandlesRequest generates requests for GetApiV5MarketMarkPriceCandles
func NewGetApiV5MarketOpenOracleRequest ¶
NewGetApiV5MarketOpenOracleRequest generates requests for GetApiV5MarketOpenOracle
func NewGetApiV5MarketPlatform24VolumeRequest ¶
NewGetApiV5MarketPlatform24VolumeRequest generates requests for GetApiV5MarketPlatform24Volume
func NewGetApiV5MarketTickerRequest ¶
func NewGetApiV5MarketTickerRequest(server string, params *GetApiV5MarketTickerParams) (*http.Request, error)
NewGetApiV5MarketTickerRequest generates requests for GetApiV5MarketTicker
func NewGetApiV5MarketTickersRequest ¶
func NewGetApiV5MarketTickersRequest(server string, params *GetApiV5MarketTickersParams) (*http.Request, error)
NewGetApiV5MarketTickersRequest generates requests for GetApiV5MarketTickers
func NewGetApiV5MarketTradesRequest ¶
func NewGetApiV5MarketTradesRequest(server string, params *GetApiV5MarketTradesParams) (*http.Request, error)
NewGetApiV5MarketTradesRequest generates requests for GetApiV5MarketTrades
Types ¶
type Client ¶
type Client struct { // The endpoint of the server conforming to this interface, with scheme, // https://api.deepmap.com for example. This can contain a path relative // to the server, such as https://api.deepmap.com/dev-test, and all the // paths in the swagger spec will be appended to the server. Server string // Doer for performing requests, typically a *http.Client with any // customized settings, such as certificate chains. Client HttpRequestDoer // A list of callbacks for modifying requests which are generated before sending over // the network. RequestEditors []RequestEditorFn }
Client which conforms to the OpenAPI3 specification for this service.
func NewClient ¶
func NewClient(server string, opts ...ClientOption) (*Client, error)
Creates a new Client, with reasonable defaults
func (*Client) GetApiV5MarketBooks ¶
func (c *Client) GetApiV5MarketBooks(ctx context.Context, params *GetApiV5MarketBooksParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) GetApiV5MarketCandles ¶
func (c *Client) GetApiV5MarketCandles(ctx context.Context, params *GetApiV5MarketCandlesParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) GetApiV5MarketHistoryCandles ¶
func (c *Client) GetApiV5MarketHistoryCandles(ctx context.Context, params *GetApiV5MarketHistoryCandlesParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) GetApiV5MarketIndexCandles ¶
func (c *Client) GetApiV5MarketIndexCandles(ctx context.Context, params *GetApiV5MarketIndexCandlesParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) GetApiV5MarketIndexComponents ¶
func (c *Client) GetApiV5MarketIndexComponents(ctx context.Context, params *GetApiV5MarketIndexComponentsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) GetApiV5MarketIndexTickers ¶
func (c *Client) GetApiV5MarketIndexTickers(ctx context.Context, params *GetApiV5MarketIndexTickersParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) GetApiV5MarketMarkPriceCandles ¶
func (c *Client) GetApiV5MarketMarkPriceCandles(ctx context.Context, params *GetApiV5MarketMarkPriceCandlesParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) GetApiV5MarketOpenOracle ¶
func (*Client) GetApiV5MarketPlatform24Volume ¶
func (*Client) GetApiV5MarketTicker ¶
func (c *Client) GetApiV5MarketTicker(ctx context.Context, params *GetApiV5MarketTickerParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) GetApiV5MarketTickers ¶
func (c *Client) GetApiV5MarketTickers(ctx context.Context, params *GetApiV5MarketTickersParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) GetApiV5MarketTrades ¶
func (c *Client) GetApiV5MarketTrades(ctx context.Context, params *GetApiV5MarketTradesParams, reqEditors ...RequestEditorFn) (*http.Response, error)
type ClientInterface ¶
type ClientInterface interface { // GetApiV5MarketBooks request GetApiV5MarketBooks(ctx context.Context, params *GetApiV5MarketBooksParams, reqEditors ...RequestEditorFn) (*http.Response, error) // GetApiV5MarketCandles request GetApiV5MarketCandles(ctx context.Context, params *GetApiV5MarketCandlesParams, reqEditors ...RequestEditorFn) (*http.Response, error) // GetApiV5MarketHistoryCandles request GetApiV5MarketHistoryCandles(ctx context.Context, params *GetApiV5MarketHistoryCandlesParams, reqEditors ...RequestEditorFn) (*http.Response, error) // GetApiV5MarketIndexCandles request GetApiV5MarketIndexCandles(ctx context.Context, params *GetApiV5MarketIndexCandlesParams, reqEditors ...RequestEditorFn) (*http.Response, error) // GetApiV5MarketIndexComponents request GetApiV5MarketIndexComponents(ctx context.Context, params *GetApiV5MarketIndexComponentsParams, reqEditors ...RequestEditorFn) (*http.Response, error) // GetApiV5MarketIndexTickers request GetApiV5MarketIndexTickers(ctx context.Context, params *GetApiV5MarketIndexTickersParams, reqEditors ...RequestEditorFn) (*http.Response, error) // GetApiV5MarketMarkPriceCandles request GetApiV5MarketMarkPriceCandles(ctx context.Context, params *GetApiV5MarketMarkPriceCandlesParams, reqEditors ...RequestEditorFn) (*http.Response, error) // GetApiV5MarketOpenOracle request GetApiV5MarketOpenOracle(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) // GetApiV5MarketPlatform24Volume request GetApiV5MarketPlatform24Volume(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) // GetApiV5MarketTicker request GetApiV5MarketTicker(ctx context.Context, params *GetApiV5MarketTickerParams, reqEditors ...RequestEditorFn) (*http.Response, error) // GetApiV5MarketTickers request GetApiV5MarketTickers(ctx context.Context, params *GetApiV5MarketTickersParams, reqEditors ...RequestEditorFn) (*http.Response, error) // GetApiV5MarketTrades request GetApiV5MarketTrades(ctx context.Context, params *GetApiV5MarketTradesParams, reqEditors ...RequestEditorFn) (*http.Response, error) }
The interface specification for the client above.
type ClientOption ¶
ClientOption allows setting custom parameters during construction
func WithHTTPClient ¶
func WithHTTPClient(doer HttpRequestDoer) ClientOption
WithHTTPClient allows overriding the default Doer, which is automatically created using http.Client. This is useful for tests.
func WithRequestEditorFn ¶
func WithRequestEditorFn(fn RequestEditorFn) ClientOption
WithRequestEditorFn allows setting up a callback function, which will be called right before sending the request. This can be used to mutate the request.
type ClientWithResponses ¶
type ClientWithResponses struct {
ClientInterface
}
ClientWithResponses builds on ClientInterface to offer response payloads
func NewClientWithResponses ¶
func NewClientWithResponses(server string, opts ...ClientOption) (*ClientWithResponses, error)
NewClientWithResponses creates a new ClientWithResponses, which wraps Client with return type handling
func (*ClientWithResponses) GetApiV5MarketBooksWithResponse ¶
func (c *ClientWithResponses) GetApiV5MarketBooksWithResponse(ctx context.Context, params *GetApiV5MarketBooksParams, reqEditors ...RequestEditorFn) (*GetApiV5MarketBooksResponse, error)
GetApiV5MarketBooksWithResponse request returning *GetApiV5MarketBooksResponse
func (*ClientWithResponses) GetApiV5MarketCandlesWithResponse ¶
func (c *ClientWithResponses) GetApiV5MarketCandlesWithResponse(ctx context.Context, params *GetApiV5MarketCandlesParams, reqEditors ...RequestEditorFn) (*GetApiV5MarketCandlesResponse, error)
GetApiV5MarketCandlesWithResponse request returning *GetApiV5MarketCandlesResponse
func (*ClientWithResponses) GetApiV5MarketHistoryCandlesWithResponse ¶
func (c *ClientWithResponses) GetApiV5MarketHistoryCandlesWithResponse(ctx context.Context, params *GetApiV5MarketHistoryCandlesParams, reqEditors ...RequestEditorFn) (*GetApiV5MarketHistoryCandlesResponse, error)
GetApiV5MarketHistoryCandlesWithResponse request returning *GetApiV5MarketHistoryCandlesResponse
func (*ClientWithResponses) GetApiV5MarketIndexCandlesWithResponse ¶
func (c *ClientWithResponses) GetApiV5MarketIndexCandlesWithResponse(ctx context.Context, params *GetApiV5MarketIndexCandlesParams, reqEditors ...RequestEditorFn) (*GetApiV5MarketIndexCandlesResponse, error)
GetApiV5MarketIndexCandlesWithResponse request returning *GetApiV5MarketIndexCandlesResponse
func (*ClientWithResponses) GetApiV5MarketIndexComponentsWithResponse ¶
func (c *ClientWithResponses) GetApiV5MarketIndexComponentsWithResponse(ctx context.Context, params *GetApiV5MarketIndexComponentsParams, reqEditors ...RequestEditorFn) (*GetApiV5MarketIndexComponentsResponse, error)
GetApiV5MarketIndexComponentsWithResponse request returning *GetApiV5MarketIndexComponentsResponse
func (*ClientWithResponses) GetApiV5MarketIndexTickersWithResponse ¶
func (c *ClientWithResponses) GetApiV5MarketIndexTickersWithResponse(ctx context.Context, params *GetApiV5MarketIndexTickersParams, reqEditors ...RequestEditorFn) (*GetApiV5MarketIndexTickersResponse, error)
GetApiV5MarketIndexTickersWithResponse request returning *GetApiV5MarketIndexTickersResponse
func (*ClientWithResponses) GetApiV5MarketMarkPriceCandlesWithResponse ¶
func (c *ClientWithResponses) GetApiV5MarketMarkPriceCandlesWithResponse(ctx context.Context, params *GetApiV5MarketMarkPriceCandlesParams, reqEditors ...RequestEditorFn) (*GetApiV5MarketMarkPriceCandlesResponse, error)
GetApiV5MarketMarkPriceCandlesWithResponse request returning *GetApiV5MarketMarkPriceCandlesResponse
func (*ClientWithResponses) GetApiV5MarketOpenOracleWithResponse ¶
func (c *ClientWithResponses) GetApiV5MarketOpenOracleWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetApiV5MarketOpenOracleResponse, error)
GetApiV5MarketOpenOracleWithResponse request returning *GetApiV5MarketOpenOracleResponse
func (*ClientWithResponses) GetApiV5MarketPlatform24VolumeWithResponse ¶
func (c *ClientWithResponses) GetApiV5MarketPlatform24VolumeWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetApiV5MarketPlatform24VolumeResponse, error)
GetApiV5MarketPlatform24VolumeWithResponse request returning *GetApiV5MarketPlatform24VolumeResponse
func (*ClientWithResponses) GetApiV5MarketTickerWithResponse ¶
func (c *ClientWithResponses) GetApiV5MarketTickerWithResponse(ctx context.Context, params *GetApiV5MarketTickerParams, reqEditors ...RequestEditorFn) (*GetApiV5MarketTickerResponse, error)
GetApiV5MarketTickerWithResponse request returning *GetApiV5MarketTickerResponse
func (*ClientWithResponses) GetApiV5MarketTickersWithResponse ¶
func (c *ClientWithResponses) GetApiV5MarketTickersWithResponse(ctx context.Context, params *GetApiV5MarketTickersParams, reqEditors ...RequestEditorFn) (*GetApiV5MarketTickersResponse, error)
GetApiV5MarketTickersWithResponse request returning *GetApiV5MarketTickersResponse
func (*ClientWithResponses) GetApiV5MarketTradesWithResponse ¶
func (c *ClientWithResponses) GetApiV5MarketTradesWithResponse(ctx context.Context, params *GetApiV5MarketTradesParams, reqEditors ...RequestEditorFn) (*GetApiV5MarketTradesResponse, error)
GetApiV5MarketTradesWithResponse request returning *GetApiV5MarketTradesResponse
type ClientWithResponsesInterface ¶
type ClientWithResponsesInterface interface { // GetApiV5MarketBooks request GetApiV5MarketBooksWithResponse(ctx context.Context, params *GetApiV5MarketBooksParams, reqEditors ...RequestEditorFn) (*GetApiV5MarketBooksResponse, error) // GetApiV5MarketCandles request GetApiV5MarketCandlesWithResponse(ctx context.Context, params *GetApiV5MarketCandlesParams, reqEditors ...RequestEditorFn) (*GetApiV5MarketCandlesResponse, error) // GetApiV5MarketHistoryCandles request GetApiV5MarketHistoryCandlesWithResponse(ctx context.Context, params *GetApiV5MarketHistoryCandlesParams, reqEditors ...RequestEditorFn) (*GetApiV5MarketHistoryCandlesResponse, error) // GetApiV5MarketIndexCandles request GetApiV5MarketIndexCandlesWithResponse(ctx context.Context, params *GetApiV5MarketIndexCandlesParams, reqEditors ...RequestEditorFn) (*GetApiV5MarketIndexCandlesResponse, error) // GetApiV5MarketIndexComponents request GetApiV5MarketIndexComponentsWithResponse(ctx context.Context, params *GetApiV5MarketIndexComponentsParams, reqEditors ...RequestEditorFn) (*GetApiV5MarketIndexComponentsResponse, error) // GetApiV5MarketIndexTickers request GetApiV5MarketIndexTickersWithResponse(ctx context.Context, params *GetApiV5MarketIndexTickersParams, reqEditors ...RequestEditorFn) (*GetApiV5MarketIndexTickersResponse, error) // GetApiV5MarketMarkPriceCandles request GetApiV5MarketMarkPriceCandlesWithResponse(ctx context.Context, params *GetApiV5MarketMarkPriceCandlesParams, reqEditors ...RequestEditorFn) (*GetApiV5MarketMarkPriceCandlesResponse, error) // GetApiV5MarketOpenOracle request GetApiV5MarketOpenOracleWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetApiV5MarketOpenOracleResponse, error) // GetApiV5MarketPlatform24Volume request GetApiV5MarketPlatform24VolumeWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetApiV5MarketPlatform24VolumeResponse, error) // GetApiV5MarketTicker request GetApiV5MarketTickerWithResponse(ctx context.Context, params *GetApiV5MarketTickerParams, reqEditors ...RequestEditorFn) (*GetApiV5MarketTickerResponse, error) // GetApiV5MarketTickers request GetApiV5MarketTickersWithResponse(ctx context.Context, params *GetApiV5MarketTickersParams, reqEditors ...RequestEditorFn) (*GetApiV5MarketTickersResponse, error) // GetApiV5MarketTrades request GetApiV5MarketTradesWithResponse(ctx context.Context, params *GetApiV5MarketTradesParams, reqEditors ...RequestEditorFn) (*GetApiV5MarketTradesResponse, error) }
ClientWithResponsesInterface is the interface specification for the client with responses above.
type GetApiV5MarketBooksParams ¶
type GetApiV5MarketBooksParams struct { // 产品ID,如:`BTC-USDT` InstId string `json:"instId"` // 深度档位数量<br>最大值可传400,即买卖深度共800条<br>不填写此参数,默认返回1档深度数据 Sz *string `json:"sz,omitempty"` }
GetApiV5MarketBooksParams defines parameters for GetApiV5MarketBooks.
type GetApiV5MarketBooksResponse ¶
type GetApiV5MarketBooksResponse struct { Body []byte HTTPResponse *http.Response JSON200 *map[string]interface{} }
func ParseGetApiV5MarketBooksResponse ¶
func ParseGetApiV5MarketBooksResponse(rsp *http.Response) (*GetApiV5MarketBooksResponse, error)
ParseGetApiV5MarketBooksResponse parses an HTTP response from a GetApiV5MarketBooksWithResponse call
func (GetApiV5MarketBooksResponse) Status ¶
func (r GetApiV5MarketBooksResponse) Status() string
Status returns HTTPResponse.Status
func (GetApiV5MarketBooksResponse) StatusCode ¶
func (r GetApiV5MarketBooksResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetApiV5MarketCandlesParams ¶
type GetApiV5MarketCandlesParams struct { // 产品ID,如:`BTC-USDT` InstId string `json:"instId"` // 时间粒度,默认值`1m`<br>如 [1m/3m/5m/15m/30m/1H/2H/4H/6H/12H/1D/1W/1M/3M/6M/1Y] Bar *string `json:"bar,omitempty"` // 请求此时间戳之前(更旧的数据)的分页内容,传的值为对应接口的`ts` After *string `json:"after,omitempty"` // 请求此时间戳之后(更新的数据)的分页内容,传的值为对应接口的`ts` Before *string `json:"before,omitempty"` // 分页返回的结果集数量,最大为100,不填默认返回100条 Limit *string `json:"limit,omitempty"` }
GetApiV5MarketCandlesParams defines parameters for GetApiV5MarketCandles.
type GetApiV5MarketCandlesResponse ¶
type GetApiV5MarketCandlesResponse struct { Body []byte HTTPResponse *http.Response JSON200 *map[string]interface{} }
func ParseGetApiV5MarketCandlesResponse ¶
func ParseGetApiV5MarketCandlesResponse(rsp *http.Response) (*GetApiV5MarketCandlesResponse, error)
ParseGetApiV5MarketCandlesResponse parses an HTTP response from a GetApiV5MarketCandlesWithResponse call
func (GetApiV5MarketCandlesResponse) Status ¶
func (r GetApiV5MarketCandlesResponse) Status() string
Status returns HTTPResponse.Status
func (GetApiV5MarketCandlesResponse) StatusCode ¶
func (r GetApiV5MarketCandlesResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetApiV5MarketHistoryCandlesParams ¶
type GetApiV5MarketHistoryCandlesParams struct { // 产品ID,如:`BTC-USDT` InstId string `json:"instId"` // 时间粒度,默认值`1m`<br>如 [1m/3m/5m/15m/30m/1H/2H/4H/6H/12H/1D/1W/1M/3M/6M/1Y] Bar *string `json:"bar,omitempty"` // 请求此时间戳之前(更旧的数据)的分页内容,传的值为对应接口的`ts` After *string `json:"after,omitempty"` // 请求此时间戳之后(更新的数据)的分页内容,传的值为对应接口的`ts` Before *string `json:"before,omitempty"` // 分页返回的结果集数量,最大为100,不填默认返回100条 Limit *string `json:"limit,omitempty"` }
GetApiV5MarketHistoryCandlesParams defines parameters for GetApiV5MarketHistoryCandles.
type GetApiV5MarketHistoryCandlesResponse ¶
type GetApiV5MarketHistoryCandlesResponse struct { Body []byte HTTPResponse *http.Response JSON200 *map[string]interface{} }
func ParseGetApiV5MarketHistoryCandlesResponse ¶
func ParseGetApiV5MarketHistoryCandlesResponse(rsp *http.Response) (*GetApiV5MarketHistoryCandlesResponse, error)
ParseGetApiV5MarketHistoryCandlesResponse parses an HTTP response from a GetApiV5MarketHistoryCandlesWithResponse call
func (GetApiV5MarketHistoryCandlesResponse) Status ¶
func (r GetApiV5MarketHistoryCandlesResponse) Status() string
Status returns HTTPResponse.Status
func (GetApiV5MarketHistoryCandlesResponse) StatusCode ¶
func (r GetApiV5MarketHistoryCandlesResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetApiV5MarketIndexCandlesParams ¶
type GetApiV5MarketIndexCandlesParams struct { // 现货指数,如:`BTC-USD` InstId string `json:"instId"` // 时间粒度,默认值`1m`<br>如 [1m/3m/5m/15m/30m/1H/2H/4H/6H/12H/1D/1W/1M/3M/6M/1Y] Bar *string `json:"bar,omitempty"` // 请求此时间戳之前(更旧的数据)的分页内容,传的值为对应接口的`ts` After *string `json:"after,omitempty"` // 请求此时间戳之后(更新的数据)的分页内容,传的值为对应接口的`ts` Before *string `json:"before,omitempty"` // 分页返回的结果集数量,最大为100,不填默认返回100条 Limit *string `json:"limit,omitempty"` }
GetApiV5MarketIndexCandlesParams defines parameters for GetApiV5MarketIndexCandles.
type GetApiV5MarketIndexCandlesResponse ¶
type GetApiV5MarketIndexCandlesResponse struct { Body []byte HTTPResponse *http.Response JSON200 *map[string]interface{} }
func ParseGetApiV5MarketIndexCandlesResponse ¶
func ParseGetApiV5MarketIndexCandlesResponse(rsp *http.Response) (*GetApiV5MarketIndexCandlesResponse, error)
ParseGetApiV5MarketIndexCandlesResponse parses an HTTP response from a GetApiV5MarketIndexCandlesWithResponse call
func (GetApiV5MarketIndexCandlesResponse) Status ¶
func (r GetApiV5MarketIndexCandlesResponse) Status() string
Status returns HTTPResponse.Status
func (GetApiV5MarketIndexCandlesResponse) StatusCode ¶
func (r GetApiV5MarketIndexCandlesResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetApiV5MarketIndexComponentsParams ¶
type GetApiV5MarketIndexComponentsParams struct { // 指数,如:`BTC-USDT` Index string `json:"index"` }
GetApiV5MarketIndexComponentsParams defines parameters for GetApiV5MarketIndexComponents.
type GetApiV5MarketIndexComponentsResponse ¶
type GetApiV5MarketIndexComponentsResponse struct { Body []byte HTTPResponse *http.Response JSON200 *map[string]interface{} }
func ParseGetApiV5MarketIndexComponentsResponse ¶
func ParseGetApiV5MarketIndexComponentsResponse(rsp *http.Response) (*GetApiV5MarketIndexComponentsResponse, error)
ParseGetApiV5MarketIndexComponentsResponse parses an HTTP response from a GetApiV5MarketIndexComponentsWithResponse call
func (GetApiV5MarketIndexComponentsResponse) Status ¶
func (r GetApiV5MarketIndexComponentsResponse) Status() string
Status returns HTTPResponse.Status
func (GetApiV5MarketIndexComponentsResponse) StatusCode ¶
func (r GetApiV5MarketIndexComponentsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetApiV5MarketIndexTickersParams ¶
type GetApiV5MarketIndexTickersParams struct { // 指数,如:`BTC-USD`<br>`instId`和`quoteCcy`必须填写一个 InstId *string `json:"instId,omitempty"` // 指数计价单位<br>目前只有`USD`/`USDT`/`BTC`为计价单位的指数 QuoteCcy *string `json:"quoteCcy,omitempty"` }
GetApiV5MarketIndexTickersParams defines parameters for GetApiV5MarketIndexTickers.
type GetApiV5MarketIndexTickersResponse ¶
type GetApiV5MarketIndexTickersResponse struct { Body []byte HTTPResponse *http.Response JSON200 *map[string]interface{} }
func ParseGetApiV5MarketIndexTickersResponse ¶
func ParseGetApiV5MarketIndexTickersResponse(rsp *http.Response) (*GetApiV5MarketIndexTickersResponse, error)
ParseGetApiV5MarketIndexTickersResponse parses an HTTP response from a GetApiV5MarketIndexTickersWithResponse call
func (GetApiV5MarketIndexTickersResponse) Status ¶
func (r GetApiV5MarketIndexTickersResponse) Status() string
Status returns HTTPResponse.Status
func (GetApiV5MarketIndexTickersResponse) StatusCode ¶
func (r GetApiV5MarketIndexTickersResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetApiV5MarketMarkPriceCandlesParams ¶
type GetApiV5MarketMarkPriceCandlesParams struct { // 现货指数,如:`BTC-USD-SWAP` InstId string `json:"instId"` // 时间粒度,默认值`1m`<br>如 [1m/3m/5m/15m/30m/1H/2H/4H/6H/12H/1D/1W/1M/3M/6M/1Y] Bar *string `json:"bar,omitempty"` // 请求此时间戳之前(更旧的数据)的分页内容,传的值为对应接口的`ts` After *string `json:"after,omitempty"` // 请求此时间戳之后(更新的数据)的分页内容,传的值为对应接口的`ts` Before *string `json:"before,omitempty"` // 分页返回的结果集数量,最大为100,不填默认返回100条 Limit *string `json:"limit,omitempty"` }
GetApiV5MarketMarkPriceCandlesParams defines parameters for GetApiV5MarketMarkPriceCandles.
type GetApiV5MarketMarkPriceCandlesResponse ¶
type GetApiV5MarketMarkPriceCandlesResponse struct { Body []byte HTTPResponse *http.Response JSON200 *map[string]interface{} }
func ParseGetApiV5MarketMarkPriceCandlesResponse ¶
func ParseGetApiV5MarketMarkPriceCandlesResponse(rsp *http.Response) (*GetApiV5MarketMarkPriceCandlesResponse, error)
ParseGetApiV5MarketMarkPriceCandlesResponse parses an HTTP response from a GetApiV5MarketMarkPriceCandlesWithResponse call
func (GetApiV5MarketMarkPriceCandlesResponse) Status ¶
func (r GetApiV5MarketMarkPriceCandlesResponse) Status() string
Status returns HTTPResponse.Status
func (GetApiV5MarketMarkPriceCandlesResponse) StatusCode ¶
func (r GetApiV5MarketMarkPriceCandlesResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetApiV5MarketOpenOracleResponse ¶
type GetApiV5MarketOpenOracleResponse struct { Body []byte HTTPResponse *http.Response JSON200 *map[string]interface{} }
func ParseGetApiV5MarketOpenOracleResponse ¶
func ParseGetApiV5MarketOpenOracleResponse(rsp *http.Response) (*GetApiV5MarketOpenOracleResponse, error)
ParseGetApiV5MarketOpenOracleResponse parses an HTTP response from a GetApiV5MarketOpenOracleWithResponse call
func (GetApiV5MarketOpenOracleResponse) Status ¶
func (r GetApiV5MarketOpenOracleResponse) Status() string
Status returns HTTPResponse.Status
func (GetApiV5MarketOpenOracleResponse) StatusCode ¶
func (r GetApiV5MarketOpenOracleResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetApiV5MarketPlatform24VolumeResponse ¶
type GetApiV5MarketPlatform24VolumeResponse struct { Body []byte HTTPResponse *http.Response JSON200 *map[string]interface{} }
func ParseGetApiV5MarketPlatform24VolumeResponse ¶
func ParseGetApiV5MarketPlatform24VolumeResponse(rsp *http.Response) (*GetApiV5MarketPlatform24VolumeResponse, error)
ParseGetApiV5MarketPlatform24VolumeResponse parses an HTTP response from a GetApiV5MarketPlatform24VolumeWithResponse call
func (GetApiV5MarketPlatform24VolumeResponse) Status ¶
func (r GetApiV5MarketPlatform24VolumeResponse) Status() string
Status returns HTTPResponse.Status
func (GetApiV5MarketPlatform24VolumeResponse) StatusCode ¶
func (r GetApiV5MarketPlatform24VolumeResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetApiV5MarketTickerParams ¶
type GetApiV5MarketTickerParams struct { // 产品ID,如:`BTC-USD-SWAP` InstId string `json:"instId"` }
GetApiV5MarketTickerParams defines parameters for GetApiV5MarketTicker.
type GetApiV5MarketTickerResponse ¶
type GetApiV5MarketTickerResponse struct { Body []byte HTTPResponse *http.Response JSON200 *map[string]interface{} }
func ParseGetApiV5MarketTickerResponse ¶
func ParseGetApiV5MarketTickerResponse(rsp *http.Response) (*GetApiV5MarketTickerResponse, error)
ParseGetApiV5MarketTickerResponse parses an HTTP response from a GetApiV5MarketTickerWithResponse call
func (GetApiV5MarketTickerResponse) Status ¶
func (r GetApiV5MarketTickerResponse) Status() string
Status returns HTTPResponse.Status
func (GetApiV5MarketTickerResponse) StatusCode ¶
func (r GetApiV5MarketTickerResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetApiV5MarketTickersParams ¶
type GetApiV5MarketTickersParams struct { // 产品类型<br>`SPOT`:币币<br>`SWAP`:永续合约<br>`FUTURES`:交割合约<br>`OPTION`:期权 InstType string `json:"instType"` // 合约标的指数<br>仅适用于`交割/永续/期权`,如 `BTC-USD` Uly *string `json:"uly,omitempty"` }
GetApiV5MarketTickersParams defines parameters for GetApiV5MarketTickers.
type GetApiV5MarketTickersResponse ¶
type GetApiV5MarketTickersResponse struct { Body []byte HTTPResponse *http.Response JSON200 *map[string]interface{} }
func ParseGetApiV5MarketTickersResponse ¶
func ParseGetApiV5MarketTickersResponse(rsp *http.Response) (*GetApiV5MarketTickersResponse, error)
ParseGetApiV5MarketTickersResponse parses an HTTP response from a GetApiV5MarketTickersWithResponse call
func (GetApiV5MarketTickersResponse) Status ¶
func (r GetApiV5MarketTickersResponse) Status() string
Status returns HTTPResponse.Status
func (GetApiV5MarketTickersResponse) StatusCode ¶
func (r GetApiV5MarketTickersResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetApiV5MarketTradesParams ¶
type GetApiV5MarketTradesParams struct { // 产品ID,如:`BTC-USDT` InstId string `json:"instId"` // 分页返回的结果集数量,最大为500,不填默认返回100条 Limit *string `json:"limit,omitempty"` }
GetApiV5MarketTradesParams defines parameters for GetApiV5MarketTrades.
type GetApiV5MarketTradesResponse ¶
type GetApiV5MarketTradesResponse struct { Body []byte HTTPResponse *http.Response JSON200 *map[string]interface{} }
func ParseGetApiV5MarketTradesResponse ¶
func ParseGetApiV5MarketTradesResponse(rsp *http.Response) (*GetApiV5MarketTradesResponse, error)
ParseGetApiV5MarketTradesResponse parses an HTTP response from a GetApiV5MarketTradesWithResponse call
func (GetApiV5MarketTradesResponse) Status ¶
func (r GetApiV5MarketTradesResponse) Status() string
Status returns HTTPResponse.Status
func (GetApiV5MarketTradesResponse) StatusCode ¶
func (r GetApiV5MarketTradesResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type HttpRequestDoer ¶
Doer performs HTTP requests.
The standard http.Client implements this interface.