client

package
v0.0.0-...-dd16f27 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 12, 2020 License: BSD-3-Clause Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DecodeFillsHistoryResponse

func DecodeFillsHistoryResponse(decoder func(*http.Response) goahttp.Decoder, restoreBody bool) func(*http.Response) (interface{}, error)

DecodeFillsHistoryResponse returns a decoder for responses returned by the ChronosAPI fillsHistory endpoint. restoreBody controls whether the response body should be restored after having been read. DecodeFillsHistoryResponse may return the following errors:

  • "bad_request" (type *goa.ServiceError): http.StatusBadRequest
  • "not_found" (type *goa.ServiceError): http.StatusNotFound
  • "internal" (type *goa.ServiceError): http.StatusInternalServerError
  • error: internal error

func DecodeFuturesFillsHistoryResponse

func DecodeFuturesFillsHistoryResponse(decoder func(*http.Response) goahttp.Decoder, restoreBody bool) func(*http.Response) (interface{}, error)

DecodeFuturesFillsHistoryResponse returns a decoder for responses returned by the ChronosAPI futuresFillsHistory endpoint. restoreBody controls whether the response body should be restored after having been read. DecodeFuturesFillsHistoryResponse may return the following errors:

  • "bad_request" (type *goa.ServiceError): http.StatusBadRequest
  • "not_found" (type *goa.ServiceError): http.StatusNotFound
  • "internal" (type *goa.ServiceError): http.StatusInternalServerError
  • error: internal error

func DecodeFuturesHistoryResponse

func DecodeFuturesHistoryResponse(decoder func(*http.Response) goahttp.Decoder, restoreBody bool) func(*http.Response) (interface{}, error)

DecodeFuturesHistoryResponse returns a decoder for responses returned by the ChronosAPI futuresHistory endpoint. restoreBody controls whether the response body should be restored after having been read. DecodeFuturesHistoryResponse may return the following errors:

  • "bad_request" (type *goa.ServiceError): http.StatusBadRequest
  • "not_found" (type *goa.ServiceError): http.StatusNotFound
  • "internal" (type *goa.ServiceError): http.StatusInternalServerError
  • error: internal error

func DecodeFuturesMarketSummaryResponse

func DecodeFuturesMarketSummaryResponse(decoder func(*http.Response) goahttp.Decoder, restoreBody bool) func(*http.Response) (interface{}, error)

DecodeFuturesMarketSummaryResponse returns a decoder for responses returned by the ChronosAPI futuresMarketSummary endpoint. restoreBody controls whether the response body should be restored after having been read. DecodeFuturesMarketSummaryResponse may return the following errors:

  • "bad_request" (type *goa.ServiceError): http.StatusBadRequest
  • "not_found" (type *goa.ServiceError): http.StatusNotFound
  • "internal" (type *goa.ServiceError): http.StatusInternalServerError
  • error: internal error

func DecodeHistoryResponse

func DecodeHistoryResponse(decoder func(*http.Response) goahttp.Decoder, restoreBody bool) func(*http.Response) (interface{}, error)

DecodeHistoryResponse returns a decoder for responses returned by the ChronosAPI history endpoint. restoreBody controls whether the response body should be restored after having been read. DecodeHistoryResponse may return the following errors:

  • "bad_request" (type *goa.ServiceError): http.StatusBadRequest
  • "not_found" (type *goa.ServiceError): http.StatusNotFound
  • "internal" (type *goa.ServiceError): http.StatusInternalServerError
  • error: internal error

func DecodeMarketSummaryResponse

func DecodeMarketSummaryResponse(decoder func(*http.Response) goahttp.Decoder, restoreBody bool) func(*http.Response) (interface{}, error)

DecodeMarketSummaryResponse returns a decoder for responses returned by the ChronosAPI marketSummary endpoint. restoreBody controls whether the response body should be restored after having been read. DecodeMarketSummaryResponse may return the following errors:

  • "bad_request" (type *goa.ServiceError): http.StatusBadRequest
  • "not_found" (type *goa.ServiceError): http.StatusNotFound
  • "internal" (type *goa.ServiceError): http.StatusInternalServerError
  • error: internal error

func DecodeSymbolInfoResponse

func DecodeSymbolInfoResponse(decoder func(*http.Response) goahttp.Decoder, restoreBody bool) func(*http.Response) (interface{}, error)

DecodeSymbolInfoResponse returns a decoder for responses returned by the ChronosAPI symbolInfo endpoint. restoreBody controls whether the response body should be restored after having been read. DecodeSymbolInfoResponse may return the following errors:

  • "bad_request" (type *goa.ServiceError): http.StatusBadRequest
  • "not_found" (type *goa.ServiceError): http.StatusNotFound
  • "internal" (type *goa.ServiceError): http.StatusInternalServerError
  • error: internal error

func EncodeFillsHistoryRequest

func EncodeFillsHistoryRequest(encoder func(*http.Request) goahttp.Encoder) func(*http.Request, interface{}) error

EncodeFillsHistoryRequest returns an encoder for requests sent to the ChronosAPI fillsHistory server.

func EncodeFuturesFillsHistoryRequest

func EncodeFuturesFillsHistoryRequest(encoder func(*http.Request) goahttp.Encoder) func(*http.Request, interface{}) error

EncodeFuturesFillsHistoryRequest returns an encoder for requests sent to the ChronosAPI futuresFillsHistory server.

func EncodeFuturesHistoryRequest

func EncodeFuturesHistoryRequest(encoder func(*http.Request) goahttp.Encoder) func(*http.Request, interface{}) error

EncodeFuturesHistoryRequest returns an encoder for requests sent to the ChronosAPI futuresHistory server.

func EncodeFuturesMarketSummaryRequest

func EncodeFuturesMarketSummaryRequest(encoder func(*http.Request) goahttp.Encoder) func(*http.Request, interface{}) error

EncodeFuturesMarketSummaryRequest returns an encoder for requests sent to the ChronosAPI futuresMarketSummary server.

func EncodeHistoryRequest

func EncodeHistoryRequest(encoder func(*http.Request) goahttp.Encoder) func(*http.Request, interface{}) error

EncodeHistoryRequest returns an encoder for requests sent to the ChronosAPI history server.

func EncodeMarketSummaryRequest

func EncodeMarketSummaryRequest(encoder func(*http.Request) goahttp.Encoder) func(*http.Request, interface{}) error

EncodeMarketSummaryRequest returns an encoder for requests sent to the ChronosAPI marketSummary server.

func EncodeSymbolInfoRequest

func EncodeSymbolInfoRequest(encoder func(*http.Request) goahttp.Encoder) func(*http.Request, interface{}) error

EncodeSymbolInfoRequest returns an encoder for requests sent to the ChronosAPI symbolInfo server.

func FillsHistoryChronosAPIPath

func FillsHistoryChronosAPIPath() string

FillsHistoryChronosAPIPath returns the URL path to the ChronosAPI service fillsHistory HTTP endpoint.

func FuturesFillsHistoryChronosAPIPath

func FuturesFillsHistoryChronosAPIPath() string

FuturesFillsHistoryChronosAPIPath returns the URL path to the ChronosAPI service futuresFillsHistory HTTP endpoint.

func FuturesHistoryChronosAPIPath

func FuturesHistoryChronosAPIPath() string

FuturesHistoryChronosAPIPath returns the URL path to the ChronosAPI service futuresHistory HTTP endpoint.

func FuturesMarketSummaryChronosAPIPath

func FuturesMarketSummaryChronosAPIPath() string

FuturesMarketSummaryChronosAPIPath returns the URL path to the ChronosAPI service futuresMarketSummary HTTP endpoint.

func HistoryChronosAPIPath

func HistoryChronosAPIPath() string

HistoryChronosAPIPath returns the URL path to the ChronosAPI service history HTTP endpoint.

func MarketSummaryChronosAPIPath

func MarketSummaryChronosAPIPath() string

MarketSummaryChronosAPIPath returns the URL path to the ChronosAPI service marketSummary HTTP endpoint.

func NewFillsHistoryBadRequest

func NewFillsHistoryBadRequest(body *FillsHistoryBadRequestResponseBody) *goa.ServiceError

NewFillsHistoryBadRequest builds a ChronosAPI service fillsHistory endpoint bad_request error.

func NewFillsHistoryFillEventOK

func NewFillsHistoryFillEventOK(body []*FillEventResponse) []*chronosapi.FillEvent

NewFillsHistoryFillEventOK builds a "ChronosAPI" service "fillsHistory" endpoint result from a HTTP "OK" response.

func NewFillsHistoryInternal

func NewFillsHistoryInternal(body *FillsHistoryInternalResponseBody) *goa.ServiceError

NewFillsHistoryInternal builds a ChronosAPI service fillsHistory endpoint internal error.

func NewFillsHistoryNotFound

func NewFillsHistoryNotFound(body *FillsHistoryNotFoundResponseBody) *goa.ServiceError

NewFillsHistoryNotFound builds a ChronosAPI service fillsHistory endpoint not_found error.

func NewFuturesFillsHistoryBadRequest

func NewFuturesFillsHistoryBadRequest(body *FuturesFillsHistoryBadRequestResponseBody) *goa.ServiceError

NewFuturesFillsHistoryBadRequest builds a ChronosAPI service futuresFillsHistory endpoint bad_request error.

func NewFuturesFillsHistoryFuturesFillEventOK

func NewFuturesFillsHistoryFuturesFillEventOK(body []*FuturesFillEventResponse) []*chronosapi.FuturesFillEvent

NewFuturesFillsHistoryFuturesFillEventOK builds a "ChronosAPI" service "futuresFillsHistory" endpoint result from a HTTP "OK" response.

func NewFuturesFillsHistoryInternal

func NewFuturesFillsHistoryInternal(body *FuturesFillsHistoryInternalResponseBody) *goa.ServiceError

NewFuturesFillsHistoryInternal builds a ChronosAPI service futuresFillsHistory endpoint internal error.

func NewFuturesFillsHistoryNotFound

func NewFuturesFillsHistoryNotFound(body *FuturesFillsHistoryNotFoundResponseBody) *goa.ServiceError

NewFuturesFillsHistoryNotFound builds a ChronosAPI service futuresFillsHistory endpoint not_found error.

func NewFuturesHistoryBadRequest

func NewFuturesHistoryBadRequest(body *FuturesHistoryBadRequestResponseBody) *goa.ServiceError

NewFuturesHistoryBadRequest builds a ChronosAPI service futuresHistory endpoint bad_request error.

func NewFuturesHistoryInternal

func NewFuturesHistoryInternal(body *FuturesHistoryInternalResponseBody) *goa.ServiceError

NewFuturesHistoryInternal builds a ChronosAPI service futuresHistory endpoint internal error.

func NewFuturesHistoryNotFound

func NewFuturesHistoryNotFound(body *FuturesHistoryNotFoundResponseBody) *goa.ServiceError

NewFuturesHistoryNotFound builds a ChronosAPI service futuresHistory endpoint not_found error.

func NewFuturesHistoryResponseOK

func NewFuturesHistoryResponseOK(body *FuturesHistoryResponseBody) *chronosapi.FuturesHistoryResponse

NewFuturesHistoryResponseOK builds a "ChronosAPI" service "futuresHistory" endpoint result from a HTTP "OK" response.

func NewFuturesMarketSummaryBadRequest

func NewFuturesMarketSummaryBadRequest(body *FuturesMarketSummaryBadRequestResponseBody) *goa.ServiceError

NewFuturesMarketSummaryBadRequest builds a ChronosAPI service futuresMarketSummary endpoint bad_request error.

func NewFuturesMarketSummaryInternal

func NewFuturesMarketSummaryInternal(body *FuturesMarketSummaryInternalResponseBody) *goa.ServiceError

NewFuturesMarketSummaryInternal builds a ChronosAPI service futuresMarketSummary endpoint internal error.

func NewFuturesMarketSummaryNotFound

func NewFuturesMarketSummaryNotFound(body *FuturesMarketSummaryNotFoundResponseBody) *goa.ServiceError

NewFuturesMarketSummaryNotFound builds a ChronosAPI service futuresMarketSummary endpoint not_found error.

func NewFuturesMarketSummaryResponseOK

func NewFuturesMarketSummaryResponseOK(body *FuturesMarketSummaryResponseBody) *chronosapi.FuturesMarketSummaryResponse

NewFuturesMarketSummaryResponseOK builds a "ChronosAPI" service "futuresMarketSummary" endpoint result from a HTTP "OK" response.

func NewHistoryBadRequest

func NewHistoryBadRequest(body *HistoryBadRequestResponseBody) *goa.ServiceError

NewHistoryBadRequest builds a ChronosAPI service history endpoint bad_request error.

func NewHistoryInternal

func NewHistoryInternal(body *HistoryInternalResponseBody) *goa.ServiceError

NewHistoryInternal builds a ChronosAPI service history endpoint internal error.

func NewHistoryNotFound

func NewHistoryNotFound(body *HistoryNotFoundResponseBody) *goa.ServiceError

NewHistoryNotFound builds a ChronosAPI service history endpoint not_found error.

func NewHistoryResponseOK

func NewHistoryResponseOK(body *HistoryResponseBody) *chronosapi.HistoryResponse

NewHistoryResponseOK builds a "ChronosAPI" service "history" endpoint result from a HTTP "OK" response.

func NewMarketSummaryBadRequest

func NewMarketSummaryBadRequest(body *MarketSummaryBadRequestResponseBody) *goa.ServiceError

NewMarketSummaryBadRequest builds a ChronosAPI service marketSummary endpoint bad_request error.

func NewMarketSummaryInternal

func NewMarketSummaryInternal(body *MarketSummaryInternalResponseBody) *goa.ServiceError

NewMarketSummaryInternal builds a ChronosAPI service marketSummary endpoint internal error.

func NewMarketSummaryNotFound

func NewMarketSummaryNotFound(body *MarketSummaryNotFoundResponseBody) *goa.ServiceError

NewMarketSummaryNotFound builds a ChronosAPI service marketSummary endpoint not_found error.

func NewMarketSummaryResponseOK

func NewMarketSummaryResponseOK(body *MarketSummaryResponseBody) *chronosapi.MarketSummaryResponse

NewMarketSummaryResponseOK builds a "ChronosAPI" service "marketSummary" endpoint result from a HTTP "OK" response.

func NewSymbolInfoBadRequest

func NewSymbolInfoBadRequest(body *SymbolInfoBadRequestResponseBody) *goa.ServiceError

NewSymbolInfoBadRequest builds a ChronosAPI service symbolInfo endpoint bad_request error.

func NewSymbolInfoInternal

func NewSymbolInfoInternal(body *SymbolInfoInternalResponseBody) *goa.ServiceError

NewSymbolInfoInternal builds a ChronosAPI service symbolInfo endpoint internal error.

func NewSymbolInfoNotFound

func NewSymbolInfoNotFound(body *SymbolInfoNotFoundResponseBody) *goa.ServiceError

NewSymbolInfoNotFound builds a ChronosAPI service symbolInfo endpoint not_found error.

func NewSymbolInfoTradingViewSymbolInfoResponseOK

func NewSymbolInfoTradingViewSymbolInfoResponseOK(body *SymbolInfoResponseBody) *chronosapi.TradingViewSymbolInfoResponse

NewSymbolInfoTradingViewSymbolInfoResponseOK builds a "ChronosAPI" service "symbolInfo" endpoint result from a HTTP "OK" response.

func SymbolInfoChronosAPIPath

func SymbolInfoChronosAPIPath() string

SymbolInfoChronosAPIPath returns the URL path to the ChronosAPI service symbolInfo HTTP endpoint.

func ValidateFillEventResponse

func ValidateFillEventResponse(body *FillEventResponse) (err error)

ValidateFillEventResponse runs the validations defined on FillEventResponse

func ValidateFillsHistoryBadRequestResponseBody

func ValidateFillsHistoryBadRequestResponseBody(body *FillsHistoryBadRequestResponseBody) (err error)

ValidateFillsHistoryBadRequestResponseBody runs the validations defined on fillsHistory_bad_request_response_body

func ValidateFillsHistoryInternalResponseBody

func ValidateFillsHistoryInternalResponseBody(body *FillsHistoryInternalResponseBody) (err error)

ValidateFillsHistoryInternalResponseBody runs the validations defined on fillsHistory_internal_response_body

func ValidateFillsHistoryNotFoundResponseBody

func ValidateFillsHistoryNotFoundResponseBody(body *FillsHistoryNotFoundResponseBody) (err error)

ValidateFillsHistoryNotFoundResponseBody runs the validations defined on fillsHistory_not_found_response_body

func ValidateFuturesFillEventResponse

func ValidateFuturesFillEventResponse(body *FuturesFillEventResponse) (err error)

ValidateFuturesFillEventResponse runs the validations defined on FuturesFillEventResponse

func ValidateFuturesFillsHistoryBadRequestResponseBody

func ValidateFuturesFillsHistoryBadRequestResponseBody(body *FuturesFillsHistoryBadRequestResponseBody) (err error)

ValidateFuturesFillsHistoryBadRequestResponseBody runs the validations defined on futuresFillsHistory_bad_request_response_body

func ValidateFuturesFillsHistoryInternalResponseBody

func ValidateFuturesFillsHistoryInternalResponseBody(body *FuturesFillsHistoryInternalResponseBody) (err error)

ValidateFuturesFillsHistoryInternalResponseBody runs the validations defined on futuresFillsHistory_internal_response_body

func ValidateFuturesFillsHistoryNotFoundResponseBody

func ValidateFuturesFillsHistoryNotFoundResponseBody(body *FuturesFillsHistoryNotFoundResponseBody) (err error)

ValidateFuturesFillsHistoryNotFoundResponseBody runs the validations defined on futuresFillsHistory_not_found_response_body

func ValidateFuturesHistoryBadRequestResponseBody

func ValidateFuturesHistoryBadRequestResponseBody(body *FuturesHistoryBadRequestResponseBody) (err error)

ValidateFuturesHistoryBadRequestResponseBody runs the validations defined on futuresHistory_bad_request_response_body

func ValidateFuturesHistoryInternalResponseBody

func ValidateFuturesHistoryInternalResponseBody(body *FuturesHistoryInternalResponseBody) (err error)

ValidateFuturesHistoryInternalResponseBody runs the validations defined on futuresHistory_internal_response_body

func ValidateFuturesHistoryNotFoundResponseBody

func ValidateFuturesHistoryNotFoundResponseBody(body *FuturesHistoryNotFoundResponseBody) (err error)

ValidateFuturesHistoryNotFoundResponseBody runs the validations defined on futuresHistory_not_found_response_body

func ValidateFuturesHistoryResponseBody

func ValidateFuturesHistoryResponseBody(body *FuturesHistoryResponseBody) (err error)

ValidateFuturesHistoryResponseBody runs the validations defined on FuturesHistoryResponseBody

func ValidateFuturesMarketSummaryBadRequestResponseBody

func ValidateFuturesMarketSummaryBadRequestResponseBody(body *FuturesMarketSummaryBadRequestResponseBody) (err error)

ValidateFuturesMarketSummaryBadRequestResponseBody runs the validations defined on futuresMarketSummary_bad_request_response_body

func ValidateFuturesMarketSummaryInternalResponseBody

func ValidateFuturesMarketSummaryInternalResponseBody(body *FuturesMarketSummaryInternalResponseBody) (err error)

ValidateFuturesMarketSummaryInternalResponseBody runs the validations defined on futuresMarketSummary_internal_response_body

func ValidateFuturesMarketSummaryNotFoundResponseBody

func ValidateFuturesMarketSummaryNotFoundResponseBody(body *FuturesMarketSummaryNotFoundResponseBody) (err error)

ValidateFuturesMarketSummaryNotFoundResponseBody runs the validations defined on futuresMarketSummary_not_found_response_body

func ValidateFuturesMarketSummaryResponseBody

func ValidateFuturesMarketSummaryResponseBody(body *FuturesMarketSummaryResponseBody) (err error)

ValidateFuturesMarketSummaryResponseBody runs the validations defined on FuturesMarketSummaryResponseBody

func ValidateHistoryBadRequestResponseBody

func ValidateHistoryBadRequestResponseBody(body *HistoryBadRequestResponseBody) (err error)

ValidateHistoryBadRequestResponseBody runs the validations defined on history_bad_request_response_body

func ValidateHistoryInternalResponseBody

func ValidateHistoryInternalResponseBody(body *HistoryInternalResponseBody) (err error)

ValidateHistoryInternalResponseBody runs the validations defined on history_internal_response_body

func ValidateHistoryNotFoundResponseBody

func ValidateHistoryNotFoundResponseBody(body *HistoryNotFoundResponseBody) (err error)

ValidateHistoryNotFoundResponseBody runs the validations defined on history_not_found_response_body

func ValidateHistoryResponseBody

func ValidateHistoryResponseBody(body *HistoryResponseBody) (err error)

ValidateHistoryResponseBody runs the validations defined on HistoryResponseBody

func ValidateMarketSummaryBadRequestResponseBody

func ValidateMarketSummaryBadRequestResponseBody(body *MarketSummaryBadRequestResponseBody) (err error)

ValidateMarketSummaryBadRequestResponseBody runs the validations defined on marketSummary_bad_request_response_body

func ValidateMarketSummaryInternalResponseBody

func ValidateMarketSummaryInternalResponseBody(body *MarketSummaryInternalResponseBody) (err error)

ValidateMarketSummaryInternalResponseBody runs the validations defined on marketSummary_internal_response_body

func ValidateMarketSummaryNotFoundResponseBody

func ValidateMarketSummaryNotFoundResponseBody(body *MarketSummaryNotFoundResponseBody) (err error)

ValidateMarketSummaryNotFoundResponseBody runs the validations defined on marketSummary_not_found_response_body

func ValidateMarketSummaryResponseBody

func ValidateMarketSummaryResponseBody(body *MarketSummaryResponseBody) (err error)

ValidateMarketSummaryResponseBody runs the validations defined on MarketSummaryResponseBody

func ValidateSymbolInfoBadRequestResponseBody

func ValidateSymbolInfoBadRequestResponseBody(body *SymbolInfoBadRequestResponseBody) (err error)

ValidateSymbolInfoBadRequestResponseBody runs the validations defined on symbolInfo_bad_request_response_body

func ValidateSymbolInfoInternalResponseBody

func ValidateSymbolInfoInternalResponseBody(body *SymbolInfoInternalResponseBody) (err error)

ValidateSymbolInfoInternalResponseBody runs the validations defined on symbolInfo_internal_response_body

func ValidateSymbolInfoNotFoundResponseBody

func ValidateSymbolInfoNotFoundResponseBody(body *SymbolInfoNotFoundResponseBody) (err error)

ValidateSymbolInfoNotFoundResponseBody runs the validations defined on symbolInfo_not_found_response_body

func ValidateSymbolInfoResponseBody

func ValidateSymbolInfoResponseBody(body *SymbolInfoResponseBody) (err error)

ValidateSymbolInfoResponseBody runs the validations defined on SymbolInfoResponseBody

Types

type Client

type Client struct {
	// SymbolInfo Doer is the HTTP client used to make requests to the symbolInfo
	// endpoint.
	SymbolInfoDoer goahttp.Doer

	// History Doer is the HTTP client used to make requests to the history
	// endpoint.
	HistoryDoer goahttp.Doer

	// FillsHistory Doer is the HTTP client used to make requests to the
	// fillsHistory endpoint.
	FillsHistoryDoer goahttp.Doer

	// MarketSummary Doer is the HTTP client used to make requests to the
	// marketSummary endpoint.
	MarketSummaryDoer goahttp.Doer

	// FuturesHistory Doer is the HTTP client used to make requests to the
	// futuresHistory endpoint.
	FuturesHistoryDoer goahttp.Doer

	// FuturesFillsHistory Doer is the HTTP client used to make requests to the
	// futuresFillsHistory endpoint.
	FuturesFillsHistoryDoer goahttp.Doer

	// FuturesMarketSummary Doer is the HTTP client used to make requests to the
	// futuresMarketSummary endpoint.
	FuturesMarketSummaryDoer goahttp.Doer

	// CORS Doer is the HTTP client used to make requests to the  endpoint.
	CORSDoer goahttp.Doer

	// RestoreResponseBody controls whether the response bodies are reset after
	// decoding so they can be read again.
	RestoreResponseBody bool
	// contains filtered or unexported fields
}

Client lists the ChronosAPI service endpoint HTTP clients.

func NewClient

func NewClient(
	scheme string,
	host string,
	doer goahttp.Doer,
	enc func(*http.Request) goahttp.Encoder,
	dec func(*http.Response) goahttp.Decoder,
	restoreBody bool,
) *Client

NewClient instantiates HTTP clients for all the ChronosAPI service servers.

func (*Client) BuildFillsHistoryRequest

func (c *Client) BuildFillsHistoryRequest(ctx context.Context, v interface{}) (*http.Request, error)

BuildFillsHistoryRequest instantiates a HTTP request object with method and path set to call the "ChronosAPI" service "fillsHistory" endpoint

func (*Client) BuildFuturesFillsHistoryRequest

func (c *Client) BuildFuturesFillsHistoryRequest(ctx context.Context, v interface{}) (*http.Request, error)

BuildFuturesFillsHistoryRequest instantiates a HTTP request object with method and path set to call the "ChronosAPI" service "futuresFillsHistory" endpoint

func (*Client) BuildFuturesHistoryRequest

func (c *Client) BuildFuturesHistoryRequest(ctx context.Context, v interface{}) (*http.Request, error)

BuildFuturesHistoryRequest instantiates a HTTP request object with method and path set to call the "ChronosAPI" service "futuresHistory" endpoint

func (*Client) BuildFuturesMarketSummaryRequest

func (c *Client) BuildFuturesMarketSummaryRequest(ctx context.Context, v interface{}) (*http.Request, error)

BuildFuturesMarketSummaryRequest instantiates a HTTP request object with method and path set to call the "ChronosAPI" service "futuresMarketSummary" endpoint

func (*Client) BuildHistoryRequest

func (c *Client) BuildHistoryRequest(ctx context.Context, v interface{}) (*http.Request, error)

BuildHistoryRequest instantiates a HTTP request object with method and path set to call the "ChronosAPI" service "history" endpoint

func (*Client) BuildMarketSummaryRequest

func (c *Client) BuildMarketSummaryRequest(ctx context.Context, v interface{}) (*http.Request, error)

BuildMarketSummaryRequest instantiates a HTTP request object with method and path set to call the "ChronosAPI" service "marketSummary" endpoint

func (*Client) BuildSymbolInfoRequest

func (c *Client) BuildSymbolInfoRequest(ctx context.Context, v interface{}) (*http.Request, error)

BuildSymbolInfoRequest instantiates a HTTP request object with method and path set to call the "ChronosAPI" service "symbolInfo" endpoint

func (*Client) FillsHistory

func (c *Client) FillsHistory() goa.Endpoint

FillsHistory returns an endpoint that makes HTTP requests to the ChronosAPI service fillsHistory server.

func (*Client) FuturesFillsHistory

func (c *Client) FuturesFillsHistory() goa.Endpoint

FuturesFillsHistory returns an endpoint that makes HTTP requests to the ChronosAPI service futuresFillsHistory server.

func (*Client) FuturesHistory

func (c *Client) FuturesHistory() goa.Endpoint

FuturesHistory returns an endpoint that makes HTTP requests to the ChronosAPI service futuresHistory server.

func (*Client) FuturesMarketSummary

func (c *Client) FuturesMarketSummary() goa.Endpoint

FuturesMarketSummary returns an endpoint that makes HTTP requests to the ChronosAPI service futuresMarketSummary server.

func (*Client) History

func (c *Client) History() goa.Endpoint

History returns an endpoint that makes HTTP requests to the ChronosAPI service history server.

func (*Client) MarketSummary

func (c *Client) MarketSummary() goa.Endpoint

MarketSummary returns an endpoint that makes HTTP requests to the ChronosAPI service marketSummary server.

func (*Client) SymbolInfo

func (c *Client) SymbolInfo() goa.Endpoint

SymbolInfo returns an endpoint that makes HTTP requests to the ChronosAPI service symbolInfo server.

type FillEventResponse

type FillEventResponse struct {
	// Account's side in the trade
	Side *string `form:"side,omitempty" json:"side,omitempty" xml:"side,omitempty"`
	// UNIX timestamp of the fill event
	Ts *int64 `form:"ts,omitempty" json:"ts,omitempty" xml:"ts,omitempty"`
	// Filled amount in quote currency
	Size *float64 `form:"size,omitempty" json:"size,omitempty" xml:"size,omitempty"`
	// Filled amount in base currency
	Filled *float64 `form:"filled,omitempty" json:"filled,omitempty" xml:"filled,omitempty"`
	// Price in quote currency
	Price *float64 `form:"price,omitempty" json:"price,omitempty" xml:"price,omitempty"`
	// Transaction hash related to this fill
	TxHash *string `form:"txHash,omitempty" json:"txHash,omitempty" xml:"txHash,omitempty"`
}

FillEventResponse is used to define fields on response body types.

type FillsHistoryBadRequestResponseBody

type FillsHistoryBadRequestResponseBody struct {
	// Name is the name of this class of errors.
	Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"`
	// ID is a unique identifier for this particular occurrence of the problem.
	ID *string `form:"id,omitempty" json:"id,omitempty" xml:"id,omitempty"`
	// Message is a human-readable explanation specific to this occurrence of the
	// problem.
	Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"`
	// Is the error temporary?
	Temporary *bool `form:"temporary,omitempty" json:"temporary,omitempty" xml:"temporary,omitempty"`
	// Is the error a timeout?
	Timeout *bool `form:"timeout,omitempty" json:"timeout,omitempty" xml:"timeout,omitempty"`
	// Is the error a server-side fault?
	Fault *bool `form:"fault,omitempty" json:"fault,omitempty" xml:"fault,omitempty"`
}

FillsHistoryBadRequestResponseBody is the type of the "ChronosAPI" service "fillsHistory" endpoint HTTP response body for the "bad_request" error.

type FillsHistoryInternalResponseBody

type FillsHistoryInternalResponseBody struct {
	// Name is the name of this class of errors.
	Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"`
	// ID is a unique identifier for this particular occurrence of the problem.
	ID *string `form:"id,omitempty" json:"id,omitempty" xml:"id,omitempty"`
	// Message is a human-readable explanation specific to this occurrence of the
	// problem.
	Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"`
	// Is the error temporary?
	Temporary *bool `form:"temporary,omitempty" json:"temporary,omitempty" xml:"temporary,omitempty"`
	// Is the error a timeout?
	Timeout *bool `form:"timeout,omitempty" json:"timeout,omitempty" xml:"timeout,omitempty"`
	// Is the error a server-side fault?
	Fault *bool `form:"fault,omitempty" json:"fault,omitempty" xml:"fault,omitempty"`
}

FillsHistoryInternalResponseBody is the type of the "ChronosAPI" service "fillsHistory" endpoint HTTP response body for the "internal" error.

type FillsHistoryNotFoundResponseBody

type FillsHistoryNotFoundResponseBody struct {
	// Name is the name of this class of errors.
	Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"`
	// ID is a unique identifier for this particular occurrence of the problem.
	ID *string `form:"id,omitempty" json:"id,omitempty" xml:"id,omitempty"`
	// Message is a human-readable explanation specific to this occurrence of the
	// problem.
	Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"`
	// Is the error temporary?
	Temporary *bool `form:"temporary,omitempty" json:"temporary,omitempty" xml:"temporary,omitempty"`
	// Is the error a timeout?
	Timeout *bool `form:"timeout,omitempty" json:"timeout,omitempty" xml:"timeout,omitempty"`
	// Is the error a server-side fault?
	Fault *bool `form:"fault,omitempty" json:"fault,omitempty" xml:"fault,omitempty"`
}

FillsHistoryNotFoundResponseBody is the type of the "ChronosAPI" service "fillsHistory" endpoint HTTP response body for the "not_found" error.

type FillsHistoryResponseBody

type FillsHistoryResponseBody []*FillEventResponse

FillsHistoryResponseBody is the type of the "ChronosAPI" service "fillsHistory" endpoint HTTP response body.

type FuturesFillEventResponse

type FuturesFillEventResponse struct {
	// Account's side in the trade
	Side *string `form:"side,omitempty" json:"side,omitempty" xml:"side,omitempty"`
	// UNIX timestamp of the fill event
	Ts *int64 `form:"ts,omitempty" json:"ts,omitempty" xml:"ts,omitempty"`
	// Filled amount in quote currency
	Size *float64 `form:"size,omitempty" json:"size,omitempty" xml:"size,omitempty"`
	// Filled amount in base currency
	Filled *float64 `form:"filled,omitempty" json:"filled,omitempty" xml:"filled,omitempty"`
	// Price in quote currency
	Price *float64 `form:"price,omitempty" json:"price,omitempty" xml:"price,omitempty"`
	// Transaction hash related to this fill
	TxHash *string `form:"txHash,omitempty" json:"txHash,omitempty" xml:"txHash,omitempty"`
}

FuturesFillEventResponse is used to define fields on response body types.

type FuturesFillsHistoryBadRequestResponseBody

type FuturesFillsHistoryBadRequestResponseBody struct {
	// Name is the name of this class of errors.
	Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"`
	// ID is a unique identifier for this particular occurrence of the problem.
	ID *string `form:"id,omitempty" json:"id,omitempty" xml:"id,omitempty"`
	// Message is a human-readable explanation specific to this occurrence of the
	// problem.
	Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"`
	// Is the error temporary?
	Temporary *bool `form:"temporary,omitempty" json:"temporary,omitempty" xml:"temporary,omitempty"`
	// Is the error a timeout?
	Timeout *bool `form:"timeout,omitempty" json:"timeout,omitempty" xml:"timeout,omitempty"`
	// Is the error a server-side fault?
	Fault *bool `form:"fault,omitempty" json:"fault,omitempty" xml:"fault,omitempty"`
}

FuturesFillsHistoryBadRequestResponseBody is the type of the "ChronosAPI" service "futuresFillsHistory" endpoint HTTP response body for the "bad_request" error.

type FuturesFillsHistoryInternalResponseBody

type FuturesFillsHistoryInternalResponseBody struct {
	// Name is the name of this class of errors.
	Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"`
	// ID is a unique identifier for this particular occurrence of the problem.
	ID *string `form:"id,omitempty" json:"id,omitempty" xml:"id,omitempty"`
	// Message is a human-readable explanation specific to this occurrence of the
	// problem.
	Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"`
	// Is the error temporary?
	Temporary *bool `form:"temporary,omitempty" json:"temporary,omitempty" xml:"temporary,omitempty"`
	// Is the error a timeout?
	Timeout *bool `form:"timeout,omitempty" json:"timeout,omitempty" xml:"timeout,omitempty"`
	// Is the error a server-side fault?
	Fault *bool `form:"fault,omitempty" json:"fault,omitempty" xml:"fault,omitempty"`
}

FuturesFillsHistoryInternalResponseBody is the type of the "ChronosAPI" service "futuresFillsHistory" endpoint HTTP response body for the "internal" error.

type FuturesFillsHistoryNotFoundResponseBody

type FuturesFillsHistoryNotFoundResponseBody struct {
	// Name is the name of this class of errors.
	Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"`
	// ID is a unique identifier for this particular occurrence of the problem.
	ID *string `form:"id,omitempty" json:"id,omitempty" xml:"id,omitempty"`
	// Message is a human-readable explanation specific to this occurrence of the
	// problem.
	Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"`
	// Is the error temporary?
	Temporary *bool `form:"temporary,omitempty" json:"temporary,omitempty" xml:"temporary,omitempty"`
	// Is the error a timeout?
	Timeout *bool `form:"timeout,omitempty" json:"timeout,omitempty" xml:"timeout,omitempty"`
	// Is the error a server-side fault?
	Fault *bool `form:"fault,omitempty" json:"fault,omitempty" xml:"fault,omitempty"`
}

FuturesFillsHistoryNotFoundResponseBody is the type of the "ChronosAPI" service "futuresFillsHistory" endpoint HTTP response body for the "not_found" error.

type FuturesFillsHistoryResponseBody

type FuturesFillsHistoryResponseBody []*FuturesFillEventResponse

FuturesFillsHistoryResponseBody is the type of the "ChronosAPI" service "futuresFillsHistory" endpoint HTTP response body.

type FuturesHistoryBadRequestResponseBody

type FuturesHistoryBadRequestResponseBody struct {
	// Name is the name of this class of errors.
	Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"`
	// ID is a unique identifier for this particular occurrence of the problem.
	ID *string `form:"id,omitempty" json:"id,omitempty" xml:"id,omitempty"`
	// Message is a human-readable explanation specific to this occurrence of the
	// problem.
	Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"`
	// Is the error temporary?
	Temporary *bool `form:"temporary,omitempty" json:"temporary,omitempty" xml:"temporary,omitempty"`
	// Is the error a timeout?
	Timeout *bool `form:"timeout,omitempty" json:"timeout,omitempty" xml:"timeout,omitempty"`
	// Is the error a server-side fault?
	Fault *bool `form:"fault,omitempty" json:"fault,omitempty" xml:"fault,omitempty"`
}

FuturesHistoryBadRequestResponseBody is the type of the "ChronosAPI" service "futuresHistory" endpoint HTTP response body for the "bad_request" error.

type FuturesHistoryInternalResponseBody

type FuturesHistoryInternalResponseBody struct {
	// Name is the name of this class of errors.
	Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"`
	// ID is a unique identifier for this particular occurrence of the problem.
	ID *string `form:"id,omitempty" json:"id,omitempty" xml:"id,omitempty"`
	// Message is a human-readable explanation specific to this occurrence of the
	// problem.
	Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"`
	// Is the error temporary?
	Temporary *bool `form:"temporary,omitempty" json:"temporary,omitempty" xml:"temporary,omitempty"`
	// Is the error a timeout?
	Timeout *bool `form:"timeout,omitempty" json:"timeout,omitempty" xml:"timeout,omitempty"`
	// Is the error a server-side fault?
	Fault *bool `form:"fault,omitempty" json:"fault,omitempty" xml:"fault,omitempty"`
}

FuturesHistoryInternalResponseBody is the type of the "ChronosAPI" service "futuresHistory" endpoint HTTP response body for the "internal" error.

type FuturesHistoryNotFoundResponseBody

type FuturesHistoryNotFoundResponseBody struct {
	// Name is the name of this class of errors.
	Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"`
	// ID is a unique identifier for this particular occurrence of the problem.
	ID *string `form:"id,omitempty" json:"id,omitempty" xml:"id,omitempty"`
	// Message is a human-readable explanation specific to this occurrence of the
	// problem.
	Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"`
	// Is the error temporary?
	Temporary *bool `form:"temporary,omitempty" json:"temporary,omitempty" xml:"temporary,omitempty"`
	// Is the error a timeout?
	Timeout *bool `form:"timeout,omitempty" json:"timeout,omitempty" xml:"timeout,omitempty"`
	// Is the error a server-side fault?
	Fault *bool `form:"fault,omitempty" json:"fault,omitempty" xml:"fault,omitempty"`
}

FuturesHistoryNotFoundResponseBody is the type of the "ChronosAPI" service "futuresHistory" endpoint HTTP response body for the "not_found" error.

type FuturesHistoryResponseBody

type FuturesHistoryResponseBody struct {
	// Status of the response.
	S *string `form:"s,omitempty" json:"s,omitempty" xml:"s,omitempty"`
	// Error message.
	Errmsg *string `form:"errmsg,omitempty" json:"errmsg,omitempty" xml:"errmsg,omitempty"`
	// Unix time of the next bar if there is no data in the requested period
	// (optional).
	Nb *int `form:"nb,omitempty" json:"nb,omitempty" xml:"nb,omitempty"`
	// Bar time, Unix timestamp (UTC). Daily bars should only have the date part,
	// time should be 0.
	T []int `form:"t,omitempty" json:"t,omitempty" xml:"t,omitempty"`
	// Open price.
	O []float64 `form:"o,omitempty" json:"o,omitempty" xml:"o,omitempty"`
	// High price.
	H []float64 `form:"h,omitempty" json:"h,omitempty" xml:"h,omitempty"`
	// Low price.
	L []float64 `form:"l,omitempty" json:"l,omitempty" xml:"l,omitempty"`
	// Close price.
	C []float64 `form:"c,omitempty" json:"c,omitempty" xml:"c,omitempty"`
	// Volume.
	V []float64 `form:"v,omitempty" json:"v,omitempty" xml:"v,omitempty"`
}

FuturesHistoryResponseBody is the type of the "ChronosAPI" service "futuresHistory" endpoint HTTP response body.

type FuturesMarketSummaryBadRequestResponseBody

type FuturesMarketSummaryBadRequestResponseBody struct {
	// Name is the name of this class of errors.
	Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"`
	// ID is a unique identifier for this particular occurrence of the problem.
	ID *string `form:"id,omitempty" json:"id,omitempty" xml:"id,omitempty"`
	// Message is a human-readable explanation specific to this occurrence of the
	// problem.
	Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"`
	// Is the error temporary?
	Temporary *bool `form:"temporary,omitempty" json:"temporary,omitempty" xml:"temporary,omitempty"`
	// Is the error a timeout?
	Timeout *bool `form:"timeout,omitempty" json:"timeout,omitempty" xml:"timeout,omitempty"`
	// Is the error a server-side fault?
	Fault *bool `form:"fault,omitempty" json:"fault,omitempty" xml:"fault,omitempty"`
}

FuturesMarketSummaryBadRequestResponseBody is the type of the "ChronosAPI" service "futuresMarketSummary" endpoint HTTP response body for the "bad_request" error.

type FuturesMarketSummaryInternalResponseBody

type FuturesMarketSummaryInternalResponseBody struct {
	// Name is the name of this class of errors.
	Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"`
	// ID is a unique identifier for this particular occurrence of the problem.
	ID *string `form:"id,omitempty" json:"id,omitempty" xml:"id,omitempty"`
	// Message is a human-readable explanation specific to this occurrence of the
	// problem.
	Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"`
	// Is the error temporary?
	Temporary *bool `form:"temporary,omitempty" json:"temporary,omitempty" xml:"temporary,omitempty"`
	// Is the error a timeout?
	Timeout *bool `form:"timeout,omitempty" json:"timeout,omitempty" xml:"timeout,omitempty"`
	// Is the error a server-side fault?
	Fault *bool `form:"fault,omitempty" json:"fault,omitempty" xml:"fault,omitempty"`
}

FuturesMarketSummaryInternalResponseBody is the type of the "ChronosAPI" service "futuresMarketSummary" endpoint HTTP response body for the "internal" error.

type FuturesMarketSummaryNotFoundResponseBody

type FuturesMarketSummaryNotFoundResponseBody struct {
	// Name is the name of this class of errors.
	Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"`
	// ID is a unique identifier for this particular occurrence of the problem.
	ID *string `form:"id,omitempty" json:"id,omitempty" xml:"id,omitempty"`
	// Message is a human-readable explanation specific to this occurrence of the
	// problem.
	Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"`
	// Is the error temporary?
	Temporary *bool `form:"temporary,omitempty" json:"temporary,omitempty" xml:"temporary,omitempty"`
	// Is the error a timeout?
	Timeout *bool `form:"timeout,omitempty" json:"timeout,omitempty" xml:"timeout,omitempty"`
	// Is the error a server-side fault?
	Fault *bool `form:"fault,omitempty" json:"fault,omitempty" xml:"fault,omitempty"`
}

FuturesMarketSummaryNotFoundResponseBody is the type of the "ChronosAPI" service "futuresMarketSummary" endpoint HTTP response body for the "not_found" error.

type FuturesMarketSummaryResponseBody

type FuturesMarketSummaryResponseBody struct {
	// Open price.
	Open *float64 `form:"open,omitempty" json:"open,omitempty" xml:"open,omitempty"`
	// High price.
	High *float64 `form:"high,omitempty" json:"high,omitempty" xml:"high,omitempty"`
	// Low price.
	Low *float64 `form:"low,omitempty" json:"low,omitempty" xml:"low,omitempty"`
	// Volume.
	Volume *float64 `form:"volume,omitempty" json:"volume,omitempty" xml:"volume,omitempty"`
	// Current price based on latest fill event.
	Price *float64 `form:"price,omitempty" json:"price,omitempty" xml:"price,omitempty"`
	// Change percent from the previous period on the same resolution.
	Change *float64 `form:"change,omitempty" json:"change,omitempty" xml:"change,omitempty"`
}

FuturesMarketSummaryResponseBody is the type of the "ChronosAPI" service "futuresMarketSummary" endpoint HTTP response body.

type HistoryBadRequestResponseBody

type HistoryBadRequestResponseBody struct {
	// Name is the name of this class of errors.
	Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"`
	// ID is a unique identifier for this particular occurrence of the problem.
	ID *string `form:"id,omitempty" json:"id,omitempty" xml:"id,omitempty"`
	// Message is a human-readable explanation specific to this occurrence of the
	// problem.
	Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"`
	// Is the error temporary?
	Temporary *bool `form:"temporary,omitempty" json:"temporary,omitempty" xml:"temporary,omitempty"`
	// Is the error a timeout?
	Timeout *bool `form:"timeout,omitempty" json:"timeout,omitempty" xml:"timeout,omitempty"`
	// Is the error a server-side fault?
	Fault *bool `form:"fault,omitempty" json:"fault,omitempty" xml:"fault,omitempty"`
}

HistoryBadRequestResponseBody is the type of the "ChronosAPI" service "history" endpoint HTTP response body for the "bad_request" error.

type HistoryInternalResponseBody

type HistoryInternalResponseBody struct {
	// Name is the name of this class of errors.
	Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"`
	// ID is a unique identifier for this particular occurrence of the problem.
	ID *string `form:"id,omitempty" json:"id,omitempty" xml:"id,omitempty"`
	// Message is a human-readable explanation specific to this occurrence of the
	// problem.
	Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"`
	// Is the error temporary?
	Temporary *bool `form:"temporary,omitempty" json:"temporary,omitempty" xml:"temporary,omitempty"`
	// Is the error a timeout?
	Timeout *bool `form:"timeout,omitempty" json:"timeout,omitempty" xml:"timeout,omitempty"`
	// Is the error a server-side fault?
	Fault *bool `form:"fault,omitempty" json:"fault,omitempty" xml:"fault,omitempty"`
}

HistoryInternalResponseBody is the type of the "ChronosAPI" service "history" endpoint HTTP response body for the "internal" error.

type HistoryNotFoundResponseBody

type HistoryNotFoundResponseBody struct {
	// Name is the name of this class of errors.
	Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"`
	// ID is a unique identifier for this particular occurrence of the problem.
	ID *string `form:"id,omitempty" json:"id,omitempty" xml:"id,omitempty"`
	// Message is a human-readable explanation specific to this occurrence of the
	// problem.
	Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"`
	// Is the error temporary?
	Temporary *bool `form:"temporary,omitempty" json:"temporary,omitempty" xml:"temporary,omitempty"`
	// Is the error a timeout?
	Timeout *bool `form:"timeout,omitempty" json:"timeout,omitempty" xml:"timeout,omitempty"`
	// Is the error a server-side fault?
	Fault *bool `form:"fault,omitempty" json:"fault,omitempty" xml:"fault,omitempty"`
}

HistoryNotFoundResponseBody is the type of the "ChronosAPI" service "history" endpoint HTTP response body for the "not_found" error.

type HistoryResponseBody

type HistoryResponseBody struct {
	// Status of the response.
	S *string `form:"s,omitempty" json:"s,omitempty" xml:"s,omitempty"`
	// Error message.
	Errmsg *string `form:"errmsg,omitempty" json:"errmsg,omitempty" xml:"errmsg,omitempty"`
	// Unix time of the next bar if there is no data in the requested period
	// (optional).
	Nb *int `form:"nb,omitempty" json:"nb,omitempty" xml:"nb,omitempty"`
	// Bar time, Unix timestamp (UTC). Daily bars should only have the date part,
	// time should be 0.
	T []int `form:"t,omitempty" json:"t,omitempty" xml:"t,omitempty"`
	// Open price.
	O []float64 `form:"o,omitempty" json:"o,omitempty" xml:"o,omitempty"`
	// High price.
	H []float64 `form:"h,omitempty" json:"h,omitempty" xml:"h,omitempty"`
	// Low price.
	L []float64 `form:"l,omitempty" json:"l,omitempty" xml:"l,omitempty"`
	// Close price.
	C []float64 `form:"c,omitempty" json:"c,omitempty" xml:"c,omitempty"`
	// Volume.
	V []float64 `form:"v,omitempty" json:"v,omitempty" xml:"v,omitempty"`
}

HistoryResponseBody is the type of the "ChronosAPI" service "history" endpoint HTTP response body.

type MarketSummaryBadRequestResponseBody

type MarketSummaryBadRequestResponseBody struct {
	// Name is the name of this class of errors.
	Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"`
	// ID is a unique identifier for this particular occurrence of the problem.
	ID *string `form:"id,omitempty" json:"id,omitempty" xml:"id,omitempty"`
	// Message is a human-readable explanation specific to this occurrence of the
	// problem.
	Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"`
	// Is the error temporary?
	Temporary *bool `form:"temporary,omitempty" json:"temporary,omitempty" xml:"temporary,omitempty"`
	// Is the error a timeout?
	Timeout *bool `form:"timeout,omitempty" json:"timeout,omitempty" xml:"timeout,omitempty"`
	// Is the error a server-side fault?
	Fault *bool `form:"fault,omitempty" json:"fault,omitempty" xml:"fault,omitempty"`
}

MarketSummaryBadRequestResponseBody is the type of the "ChronosAPI" service "marketSummary" endpoint HTTP response body for the "bad_request" error.

type MarketSummaryInternalResponseBody

type MarketSummaryInternalResponseBody struct {
	// Name is the name of this class of errors.
	Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"`
	// ID is a unique identifier for this particular occurrence of the problem.
	ID *string `form:"id,omitempty" json:"id,omitempty" xml:"id,omitempty"`
	// Message is a human-readable explanation specific to this occurrence of the
	// problem.
	Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"`
	// Is the error temporary?
	Temporary *bool `form:"temporary,omitempty" json:"temporary,omitempty" xml:"temporary,omitempty"`
	// Is the error a timeout?
	Timeout *bool `form:"timeout,omitempty" json:"timeout,omitempty" xml:"timeout,omitempty"`
	// Is the error a server-side fault?
	Fault *bool `form:"fault,omitempty" json:"fault,omitempty" xml:"fault,omitempty"`
}

MarketSummaryInternalResponseBody is the type of the "ChronosAPI" service "marketSummary" endpoint HTTP response body for the "internal" error.

type MarketSummaryNotFoundResponseBody

type MarketSummaryNotFoundResponseBody struct {
	// Name is the name of this class of errors.
	Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"`
	// ID is a unique identifier for this particular occurrence of the problem.
	ID *string `form:"id,omitempty" json:"id,omitempty" xml:"id,omitempty"`
	// Message is a human-readable explanation specific to this occurrence of the
	// problem.
	Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"`
	// Is the error temporary?
	Temporary *bool `form:"temporary,omitempty" json:"temporary,omitempty" xml:"temporary,omitempty"`
	// Is the error a timeout?
	Timeout *bool `form:"timeout,omitempty" json:"timeout,omitempty" xml:"timeout,omitempty"`
	// Is the error a server-side fault?
	Fault *bool `form:"fault,omitempty" json:"fault,omitempty" xml:"fault,omitempty"`
}

MarketSummaryNotFoundResponseBody is the type of the "ChronosAPI" service "marketSummary" endpoint HTTP response body for the "not_found" error.

type MarketSummaryResponseBody

type MarketSummaryResponseBody struct {
	// Open price.
	Open *float64 `form:"open,omitempty" json:"open,omitempty" xml:"open,omitempty"`
	// High price.
	High *float64 `form:"high,omitempty" json:"high,omitempty" xml:"high,omitempty"`
	// Low price.
	Low *float64 `form:"low,omitempty" json:"low,omitempty" xml:"low,omitempty"`
	// Volume.
	Volume *float64 `form:"volume,omitempty" json:"volume,omitempty" xml:"volume,omitempty"`
	// Current price based on latest fill event.
	Price *float64 `form:"price,omitempty" json:"price,omitempty" xml:"price,omitempty"`
	// Change percent from the previous period on the same resolution.
	Change *float64 `form:"change,omitempty" json:"change,omitempty" xml:"change,omitempty"`
}

MarketSummaryResponseBody is the type of the "ChronosAPI" service "marketSummary" endpoint HTTP response body.

type SymbolInfoBadRequestResponseBody

type SymbolInfoBadRequestResponseBody struct {
	// Name is the name of this class of errors.
	Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"`
	// ID is a unique identifier for this particular occurrence of the problem.
	ID *string `form:"id,omitempty" json:"id,omitempty" xml:"id,omitempty"`
	// Message is a human-readable explanation specific to this occurrence of the
	// problem.
	Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"`
	// Is the error temporary?
	Temporary *bool `form:"temporary,omitempty" json:"temporary,omitempty" xml:"temporary,omitempty"`
	// Is the error a timeout?
	Timeout *bool `form:"timeout,omitempty" json:"timeout,omitempty" xml:"timeout,omitempty"`
	// Is the error a server-side fault?
	Fault *bool `form:"fault,omitempty" json:"fault,omitempty" xml:"fault,omitempty"`
}

SymbolInfoBadRequestResponseBody is the type of the "ChronosAPI" service "symbolInfo" endpoint HTTP response body for the "bad_request" error.

type SymbolInfoInternalResponseBody

type SymbolInfoInternalResponseBody struct {
	// Name is the name of this class of errors.
	Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"`
	// ID is a unique identifier for this particular occurrence of the problem.
	ID *string `form:"id,omitempty" json:"id,omitempty" xml:"id,omitempty"`
	// Message is a human-readable explanation specific to this occurrence of the
	// problem.
	Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"`
	// Is the error temporary?
	Temporary *bool `form:"temporary,omitempty" json:"temporary,omitempty" xml:"temporary,omitempty"`
	// Is the error a timeout?
	Timeout *bool `form:"timeout,omitempty" json:"timeout,omitempty" xml:"timeout,omitempty"`
	// Is the error a server-side fault?
	Fault *bool `form:"fault,omitempty" json:"fault,omitempty" xml:"fault,omitempty"`
}

SymbolInfoInternalResponseBody is the type of the "ChronosAPI" service "symbolInfo" endpoint HTTP response body for the "internal" error.

type SymbolInfoNotFoundResponseBody

type SymbolInfoNotFoundResponseBody struct {
	// Name is the name of this class of errors.
	Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"`
	// ID is a unique identifier for this particular occurrence of the problem.
	ID *string `form:"id,omitempty" json:"id,omitempty" xml:"id,omitempty"`
	// Message is a human-readable explanation specific to this occurrence of the
	// problem.
	Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"`
	// Is the error temporary?
	Temporary *bool `form:"temporary,omitempty" json:"temporary,omitempty" xml:"temporary,omitempty"`
	// Is the error a timeout?
	Timeout *bool `form:"timeout,omitempty" json:"timeout,omitempty" xml:"timeout,omitempty"`
	// Is the error a server-side fault?
	Fault *bool `form:"fault,omitempty" json:"fault,omitempty" xml:"fault,omitempty"`
}

SymbolInfoNotFoundResponseBody is the type of the "ChronosAPI" service "symbolInfo" endpoint HTTP response body for the "not_found" error.

type SymbolInfoResponseBody

type SymbolInfoResponseBody struct {
	// Status of the response.
	S *string `form:"s,omitempty" json:"s,omitempty" xml:"s,omitempty"`
	// Error message.
	Errmsg *string `form:"errmsg,omitempty" json:"errmsg,omitempty" xml:"errmsg,omitempty"`
	// This is the name of the symbol - a string that the users will see. It should
	// contain uppercase letters, numbers, a dot or an underscore. Also, it will be
	// used for data requests if you are not using tickers.
	Symbol []string `form:"symbol,omitempty" json:"symbol,omitempty" xml:"symbol,omitempty"`
	// Description of a symbol. Will be displayed in the chart legend for this
	// symbol.
	Description []string `form:"description,omitempty" json:"description,omitempty" xml:"description,omitempty"`
	// Symbol currency, also named as counter currency. If a symbol is a currency
	// pair, then the currency field has to contain the second currency of this
	// pair. For example, USD is a currency for EURUSD ticker. Fiat currency must
	// meet the ISO 4217 standard. The default value is null.
	Currency []string `form:"currency,omitempty" json:"currency,omitempty" xml:"currency,omitempty"`
	// Short name of exchange where this symbol is listed.
	ExchangeListed []string `form:"exchange-listed,omitempty" json:"exchange-listed,omitempty" xml:"exchange-listed,omitempty"`
	// Short name of exchange where this symbol is traded.
	ExchangeTraded []string `form:"exchange-traded,omitempty" json:"exchange-traded,omitempty" xml:"exchange-traded,omitempty"`
	// Minimal integer price change.
	Minmovement []int `form:"minmovement,omitempty" json:"minmovement,omitempty" xml:"minmovement,omitempty"`
	// Indicates how many decimal points the price has. For example, if the price
	// has 2 decimal points (ex., 300.01), then pricescale is 100. If it has 3
	// decimals, then pricescale is 1000 etc. If the price doesn't have decimals,
	// set pricescale to 1
	Pricescale []int `form:"pricescale,omitempty" json:"pricescale,omitempty" xml:"pricescale,omitempty"`
	// Timezone of the exchange for this symbol. We expect to get the name of the
	// time zone in olsondb format.
	Timezone []string `form:"timezone,omitempty" json:"timezone,omitempty" xml:"timezone,omitempty"`
	// Symbol type (forex/stock, crypto etc.).
	Type []string `form:"type,omitempty" json:"type,omitempty" xml:"type,omitempty"`
	// Bitcoin and other cryptocurrencies: the session string should be 24x7
	SessionRegular []string `form:"session-regular,omitempty" json:"session-regular,omitempty" xml:"session-regular,omitempty"`
	// For currency pairs only. This field contains the first currency of the pair.
	// For example, base currency for EURUSD ticker is EUR. Fiat currency must meet
	// the ISO 4217 standard.
	BaseCurrency []string `form:"base-currency,omitempty" json:"base-currency,omitempty" xml:"base-currency,omitempty"`
	// This is a number for complex price formatting cases.
	Minmov2 []int `form:"minmov2,omitempty" json:"minmov2,omitempty" xml:"minmov2,omitempty"`
	// Boolean showing whether this symbol wants to have complex price formatting
	// (see minmov2) or not. The default value is false.
	Fractional []bool `form:"fractional,omitempty" json:"fractional,omitempty" xml:"fractional,omitempty"`
	// Root of the features. It's required for futures symbol types only. Provide a
	// null value for other symbol types. The default value is null.
	Root []string `form:"root,omitempty" json:"root,omitempty" xml:"root,omitempty"`
	// Short description of the futures root that will be displayed in the symbol
	// search. It's required for futures only. Provide a null value for other
	// symbol types. The default value is null.
	RootDescription []string `form:"root-description,omitempty" json:"root-description,omitempty" xml:"root-description,omitempty"`
	// Boolean value showing whether the symbol includes intraday (minutes)
	// historical data.
	HasIntraday []bool `form:"has-intraday,omitempty" json:"has-intraday,omitempty" xml:"has-intraday,omitempty"`
	// Boolean showing whether the symbol includes volume data or not. The default
	// value is false.
	HasNoVolume []bool `form:"has-no-volume,omitempty" json:"has-no-volume,omitempty" xml:"has-no-volume,omitempty"`
	// Boolean value showing whether the symbol is CFD. The base instrument type is
	// set using the type field.
	IsCfd []bool `form:"is-cfd,omitempty" json:"is-cfd,omitempty" xml:"is-cfd,omitempty"`
	// This is a unique identifier for this particular symbol in your symbology. If
	// you specify this property then its value will be used for all data requests
	// for this symbol.
	Ticker []string `form:"ticker,omitempty" json:"ticker,omitempty" xml:"ticker,omitempty"`
	// The boolean value showing whether data feed has its own daily resolution
	// bars or not.
	HasDaily []bool `form:"has-daily,omitempty" json:"has-daily,omitempty" xml:"has-daily,omitempty"`
	// This is an array containing intraday resolutions (in minutes) that the data
	// feed may provide
	IntradayMultipliers []string `form:"intraday-multipliers,omitempty" json:"intraday-multipliers,omitempty" xml:"intraday-multipliers,omitempty"`
	// The boolean value showing whether data feed has its own weekly and monthly
	// resolution bars or not.
	HasWeeklyAndMonthly []bool `form:"has-weekly-and-monthly,omitempty" json:"has-weekly-and-monthly,omitempty" xml:"has-weekly-and-monthly,omitempty"`
	// The currency value of a single whole unit price change in the instrument's
	// currency. If the value is not provided it is assumed to be 1.
	Pointvalue []int `form:"pointvalue,omitempty" json:"pointvalue,omitempty" xml:"pointvalue,omitempty"`
	// Expiration of the futures in the following format: YYYYMMDD. Required for
	// futures type symbols only.
	Expiration []int `form:"expiration,omitempty" json:"expiration,omitempty" xml:"expiration,omitempty"`
	// The principle of building bars. The default value is trade.
	BarSource []string `form:"bar-source,omitempty" json:"bar-source,omitempty" xml:"bar-source,omitempty"`
	// The principle of bar alignment. The default value is none.
	BarTransform []string `form:"bar-transform,omitempty" json:"bar-transform,omitempty" xml:"bar-transform,omitempty"`
	// Is used to create the zero-volume bars in the absence of any trades
	BarFillgaps []bool `form:"bar-fillgaps,omitempty" json:"bar-fillgaps,omitempty" xml:"bar-fillgaps,omitempty"`
}

SymbolInfoResponseBody is the type of the "ChronosAPI" service "symbolInfo" endpoint HTTP response body.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL