Documentation
¶
Index ¶
- func DecodeGetAccountResponse(decoder func(*http.Response) goahttp.Decoder, restoreBody bool) func(*http.Response) (interface{}, error)
- func DecodeGetActiveOrderResponse(decoder func(*http.Response) goahttp.Decoder, restoreBody bool) func(*http.Response) (interface{}, error)
- func DecodeGetArchiveOrderResponse(decoder func(*http.Response) goahttp.Decoder, restoreBody bool) func(*http.Response) (interface{}, error)
- func DecodeGetOnlineAccountsResponse(decoder func(*http.Response) goahttp.Decoder, restoreBody bool) func(*http.Response) (interface{}, error)
- func DecodeGetTradePairResponse(decoder func(*http.Response) goahttp.Decoder, restoreBody bool) func(*http.Response) (interface{}, error)
- func DecodeListDerivativeMarketsResponse(decoder func(*http.Response) goahttp.Decoder, restoreBody bool) func(*http.Response) (interface{}, error)
- func DecodeListOrdersResponse(decoder func(*http.Response) goahttp.Decoder, restoreBody bool) func(*http.Response) (interface{}, error)
- func DecodeListTradePairsResponse(decoder func(*http.Response) goahttp.Decoder, restoreBody bool) func(*http.Response) (interface{}, error)
- func EncodeGetAccountRequest(encoder func(*http.Request) goahttp.Encoder) func(*http.Request, interface{}) error
- func EncodeGetActiveOrderRequest(encoder func(*http.Request) goahttp.Encoder) func(*http.Request, interface{}) error
- func EncodeGetArchiveOrderRequest(encoder func(*http.Request) goahttp.Encoder) func(*http.Request, interface{}) error
- func EncodeGetOnlineAccountsRequest(encoder func(*http.Request) goahttp.Encoder) func(*http.Request, interface{}) error
- func EncodeGetTradePairRequest(encoder func(*http.Request) goahttp.Encoder) func(*http.Request, interface{}) error
- func EncodeListOrdersRequest(encoder func(*http.Request) goahttp.Encoder) func(*http.Request, interface{}) error
- func EncodeListTradePairsRequest(encoder func(*http.Request) goahttp.Encoder) func(*http.Request, interface{}) error
- func GetAccountRestAPIPath() string
- func GetActiveOrderRestAPIPath() string
- func GetArchiveOrderRestAPIPath() string
- func GetOnlineAccountsRestAPIPath() string
- func GetTradePairRestAPIPath() string
- func ListDerivativeMarketsRestAPIPath() string
- func ListOrdersRestAPIPath() string
- func ListTradePairsRestAPIPath() string
- func NewGetAccountInternal(body *GetAccountInternalResponseBody) *goa.ServiceError
- func NewGetAccountNotFound(body *GetAccountNotFoundResponseBody) *goa.ServiceError
- func NewGetAccountResultOK(body *GetAccountResponseBody) *restapi.GetAccountResult
- func NewGetAccountValidationError(body *GetAccountValidationErrorResponseBody) *restapi.RESTValidationErrorResponse
- func NewGetActiveOrderInternal(body *GetActiveOrderInternalResponseBody) *goa.ServiceError
- func NewGetActiveOrderNotFound(body *GetActiveOrderNotFoundResponseBody) *goa.ServiceError
- func NewGetActiveOrderResultOK(body *GetActiveOrderResponseBody) *restapi.GetActiveOrderResult
- func NewGetActiveOrderValidationError(body *GetActiveOrderValidationErrorResponseBody) *restapi.RESTValidationErrorResponse
- func NewGetArchiveOrderInternal(body *GetArchiveOrderInternalResponseBody) *goa.ServiceError
- func NewGetArchiveOrderNotFound(body *GetArchiveOrderNotFoundResponseBody) *goa.ServiceError
- func NewGetArchiveOrderResultOK(body *GetArchiveOrderResponseBody) *restapi.GetArchiveOrderResult
- func NewGetArchiveOrderValidationError(body *GetArchiveOrderValidationErrorResponseBody) *restapi.RESTValidationErrorResponse
- func NewGetOnlineAccountsInternal(body *GetOnlineAccountsInternalResponseBody) *goa.ServiceError
- func NewGetOnlineAccountsResultOK(body *GetOnlineAccountsResponseBody) *restapi.GetOnlineAccountsResult
- func NewGetOnlineAccountsValidationError(body *GetOnlineAccountsValidationErrorResponseBody) *restapi.RESTValidationErrorResponse
- func NewGetTradePairInternal(body *GetTradePairInternalResponseBody) *goa.ServiceError
- func NewGetTradePairNotFound(body *GetTradePairNotFoundResponseBody) *goa.ServiceError
- func NewGetTradePairResultOK(body *GetTradePairResponseBody) *restapi.GetTradePairResult
- func NewGetTradePairValidationError(body *GetTradePairValidationErrorResponseBody) *restapi.RESTValidationErrorResponse
- func NewListDerivativeMarketsInternal(body *ListDerivativeMarketsInternalResponseBody) *goa.ServiceError
- func NewListDerivativeMarketsResultOK(body *ListDerivativeMarketsResponseBody) *restapi.ListDerivativeMarketsResult
- func NewListDerivativeMarketsValidationError(body *ListDerivativeMarketsValidationErrorResponseBody) *restapi.RESTValidationErrorResponse
- func NewListOrdersInternal(body *ListOrdersInternalResponseBody) *goa.ServiceError
- func NewListOrdersResultOK(body *ListOrdersResponseBody) *restapi.ListOrdersResult
- func NewListOrdersValidationError(body *ListOrdersValidationErrorResponseBody) *restapi.RESTValidationErrorResponse
- func NewListTradePairsInternal(body *ListTradePairsInternalResponseBody) *goa.ServiceError
- func NewListTradePairsResultOK(body *ListTradePairsResponseBody) *restapi.ListTradePairsResult
- func NewListTradePairsValidationError(body *ListTradePairsValidationErrorResponseBody) *restapi.RESTValidationErrorResponse
- func ValidateDerivativeMarketResponseBody(body *DerivativeMarketResponseBody) (err error)
- func ValidateGetAccountInternalResponseBody(body *GetAccountInternalResponseBody) (err error)
- func ValidateGetAccountNotFoundResponseBody(body *GetAccountNotFoundResponseBody) (err error)
- func ValidateGetAccountResponseBody(body *GetAccountResponseBody) (err error)
- func ValidateGetAccountValidationErrorResponseBody(body *GetAccountValidationErrorResponseBody) (err error)
- func ValidateGetActiveOrderInternalResponseBody(body *GetActiveOrderInternalResponseBody) (err error)
- func ValidateGetActiveOrderNotFoundResponseBody(body *GetActiveOrderNotFoundResponseBody) (err error)
- func ValidateGetActiveOrderResponseBody(body *GetActiveOrderResponseBody) (err error)
- func ValidateGetActiveOrderValidationErrorResponseBody(body *GetActiveOrderValidationErrorResponseBody) (err error)
- func ValidateGetArchiveOrderInternalResponseBody(body *GetArchiveOrderInternalResponseBody) (err error)
- func ValidateGetArchiveOrderNotFoundResponseBody(body *GetArchiveOrderNotFoundResponseBody) (err error)
- func ValidateGetArchiveOrderResponseBody(body *GetArchiveOrderResponseBody) (err error)
- func ValidateGetArchiveOrderValidationErrorResponseBody(body *GetArchiveOrderValidationErrorResponseBody) (err error)
- func ValidateGetOnlineAccountsInternalResponseBody(body *GetOnlineAccountsInternalResponseBody) (err error)
- func ValidateGetOnlineAccountsResponseBody(body *GetOnlineAccountsResponseBody) (err error)
- func ValidateGetOnlineAccountsValidationErrorResponseBody(body *GetOnlineAccountsValidationErrorResponseBody) (err error)
- func ValidateGetTradePairInternalResponseBody(body *GetTradePairInternalResponseBody) (err error)
- func ValidateGetTradePairNotFoundResponseBody(body *GetTradePairNotFoundResponseBody) (err error)
- func ValidateGetTradePairResponseBody(body *GetTradePairResponseBody) (err error)
- func ValidateGetTradePairValidationErrorResponseBody(body *GetTradePairValidationErrorResponseBody) (err error)
- func ValidateListDerivativeMarketsInternalResponseBody(body *ListDerivativeMarketsInternalResponseBody) (err error)
- func ValidateListDerivativeMarketsResponseBody(body *ListDerivativeMarketsResponseBody) (err error)
- func ValidateListDerivativeMarketsValidationErrorResponseBody(body *ListDerivativeMarketsValidationErrorResponseBody) (err error)
- func ValidateListOrdersInternalResponseBody(body *ListOrdersInternalResponseBody) (err error)
- func ValidateListOrdersResponseBody(body *ListOrdersResponseBody) (err error)
- func ValidateListOrdersValidationErrorResponseBody(body *ListOrdersValidationErrorResponseBody) (err error)
- func ValidateListTradePairsInternalResponseBody(body *ListTradePairsInternalResponseBody) (err error)
- func ValidateListTradePairsResponseBody(body *ListTradePairsResponseBody) (err error)
- func ValidateListTradePairsValidationErrorResponseBody(body *ListTradePairsValidationErrorResponseBody) (err error)
- func ValidateOrderResponseBody(body *OrderResponseBody) (err error)
- func ValidateRESTValidationErrorResponseBody(body *RESTValidationErrorResponseBody) (err error)
- func ValidateRelayerAccountResponseBody(body *RelayerAccountResponseBody) (err error)
- func ValidateTradePairResponseBody(body *TradePairResponseBody) (err error)
- type Client
- func (c *Client) BuildGetAccountRequest(ctx context.Context, v interface{}) (*http.Request, error)
- func (c *Client) BuildGetActiveOrderRequest(ctx context.Context, v interface{}) (*http.Request, error)
- func (c *Client) BuildGetArchiveOrderRequest(ctx context.Context, v interface{}) (*http.Request, error)
- func (c *Client) BuildGetOnlineAccountsRequest(ctx context.Context, v interface{}) (*http.Request, error)
- func (c *Client) BuildGetTradePairRequest(ctx context.Context, v interface{}) (*http.Request, error)
- func (c *Client) BuildListDerivativeMarketsRequest(ctx context.Context, v interface{}) (*http.Request, error)
- func (c *Client) BuildListOrdersRequest(ctx context.Context, v interface{}) (*http.Request, error)
- func (c *Client) BuildListTradePairsRequest(ctx context.Context, v interface{}) (*http.Request, error)
- func (c *Client) GetAccount() goa.Endpoint
- func (c *Client) GetActiveOrder() goa.Endpoint
- func (c *Client) GetArchiveOrder() goa.Endpoint
- func (c *Client) GetOnlineAccounts() goa.Endpoint
- func (c *Client) GetTradePair() goa.Endpoint
- func (c *Client) ListDerivativeMarkets() goa.Endpoint
- func (c *Client) ListOrders() goa.Endpoint
- func (c *Client) ListTradePairs() goa.Endpoint
- type DerivativeMarketResponseBody
- type GetAccountInternalResponseBody
- type GetAccountNotFoundResponseBody
- type GetAccountResponseBody
- type GetAccountValidationErrorResponseBody
- type GetActiveOrderInternalResponseBody
- type GetActiveOrderNotFoundResponseBody
- type GetActiveOrderResponseBody
- type GetActiveOrderValidationErrorResponseBody
- type GetArchiveOrderInternalResponseBody
- type GetArchiveOrderNotFoundResponseBody
- type GetArchiveOrderResponseBody
- type GetArchiveOrderValidationErrorResponseBody
- type GetOnlineAccountsInternalResponseBody
- type GetOnlineAccountsResponseBody
- type GetOnlineAccountsValidationErrorResponseBody
- type GetTradePairInternalResponseBody
- type GetTradePairNotFoundResponseBody
- type GetTradePairResponseBody
- type GetTradePairValidationErrorResponseBody
- type ListDerivativeMarketsInternalResponseBody
- type ListDerivativeMarketsResponseBody
- type ListDerivativeMarketsValidationErrorResponseBody
- type ListOrdersInternalResponseBody
- type ListOrdersRequestBody
- type ListOrdersResponseBody
- type ListOrdersValidationErrorResponseBody
- type ListTradePairsInternalResponseBody
- type ListTradePairsRequestBody
- type ListTradePairsResponseBody
- type ListTradePairsValidationErrorResponseBody
- type OrderResponseBody
- type RESTValidationErrorResponseBody
- type RelayerAccountResponseBody
- type TradePairResponseBody
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DecodeGetAccountResponse ¶
func DecodeGetAccountResponse(decoder func(*http.Response) goahttp.Decoder, restoreBody bool) func(*http.Response) (interface{}, error)
DecodeGetAccountResponse returns a decoder for responses returned by the RestAPI getAccount endpoint. restoreBody controls whether the response body should be restored after having been read. DecodeGetAccountResponse may return the following errors:
- "not_found" (type *goa.ServiceError): http.StatusNotFound
- "internal" (type *goa.ServiceError): http.StatusInternalServerError
- "validation_error" (type *restapi.RESTValidationErrorResponse): http.StatusExpectationFailed
- error: internal error
func DecodeGetActiveOrderResponse ¶
func DecodeGetActiveOrderResponse(decoder func(*http.Response) goahttp.Decoder, restoreBody bool) func(*http.Response) (interface{}, error)
DecodeGetActiveOrderResponse returns a decoder for responses returned by the RestAPI getActiveOrder endpoint. restoreBody controls whether the response body should be restored after having been read. DecodeGetActiveOrderResponse may return the following errors:
- "not_found" (type *goa.ServiceError): http.StatusNotFound
- "internal" (type *goa.ServiceError): http.StatusInternalServerError
- "validation_error" (type *restapi.RESTValidationErrorResponse): http.StatusExpectationFailed
- error: internal error
func DecodeGetArchiveOrderResponse ¶
func DecodeGetArchiveOrderResponse(decoder func(*http.Response) goahttp.Decoder, restoreBody bool) func(*http.Response) (interface{}, error)
DecodeGetArchiveOrderResponse returns a decoder for responses returned by the RestAPI getArchiveOrder endpoint. restoreBody controls whether the response body should be restored after having been read. DecodeGetArchiveOrderResponse may return the following errors:
- "not_found" (type *goa.ServiceError): http.StatusNotFound
- "internal" (type *goa.ServiceError): http.StatusInternalServerError
- "validation_error" (type *restapi.RESTValidationErrorResponse): http.StatusExpectationFailed
- error: internal error
func DecodeGetOnlineAccountsResponse ¶
func DecodeGetOnlineAccountsResponse(decoder func(*http.Response) goahttp.Decoder, restoreBody bool) func(*http.Response) (interface{}, error)
DecodeGetOnlineAccountsResponse returns a decoder for responses returned by the RestAPI getOnlineAccounts endpoint. restoreBody controls whether the response body should be restored after having been read. DecodeGetOnlineAccountsResponse may return the following errors:
- "internal" (type *goa.ServiceError): http.StatusInternalServerError
- "validation_error" (type *restapi.RESTValidationErrorResponse): http.StatusExpectationFailed
- error: internal error
func DecodeGetTradePairResponse ¶
func DecodeGetTradePairResponse(decoder func(*http.Response) goahttp.Decoder, restoreBody bool) func(*http.Response) (interface{}, error)
DecodeGetTradePairResponse returns a decoder for responses returned by the RestAPI getTradePair endpoint. restoreBody controls whether the response body should be restored after having been read. DecodeGetTradePairResponse may return the following errors:
- "not_found" (type *goa.ServiceError): http.StatusNotFound
- "internal" (type *goa.ServiceError): http.StatusInternalServerError
- "validation_error" (type *restapi.RESTValidationErrorResponse): http.StatusExpectationFailed
- error: internal error
func DecodeListDerivativeMarketsResponse ¶
func DecodeListDerivativeMarketsResponse(decoder func(*http.Response) goahttp.Decoder, restoreBody bool) func(*http.Response) (interface{}, error)
DecodeListDerivativeMarketsResponse returns a decoder for responses returned by the RestAPI listDerivativeMarkets endpoint. restoreBody controls whether the response body should be restored after having been read. DecodeListDerivativeMarketsResponse may return the following errors:
- "internal" (type *goa.ServiceError): http.StatusInternalServerError
- "validation_error" (type *restapi.RESTValidationErrorResponse): http.StatusExpectationFailed
- error: internal error
func DecodeListOrdersResponse ¶
func DecodeListOrdersResponse(decoder func(*http.Response) goahttp.Decoder, restoreBody bool) func(*http.Response) (interface{}, error)
DecodeListOrdersResponse returns a decoder for responses returned by the RestAPI listOrders endpoint. restoreBody controls whether the response body should be restored after having been read. DecodeListOrdersResponse may return the following errors:
- "internal" (type *goa.ServiceError): http.StatusInternalServerError
- "validation_error" (type *restapi.RESTValidationErrorResponse): http.StatusExpectationFailed
- error: internal error
func DecodeListTradePairsResponse ¶
func DecodeListTradePairsResponse(decoder func(*http.Response) goahttp.Decoder, restoreBody bool) func(*http.Response) (interface{}, error)
DecodeListTradePairsResponse returns a decoder for responses returned by the RestAPI listTradePairs endpoint. restoreBody controls whether the response body should be restored after having been read. DecodeListTradePairsResponse may return the following errors:
- "internal" (type *goa.ServiceError): http.StatusInternalServerError
- "validation_error" (type *restapi.RESTValidationErrorResponse): http.StatusExpectationFailed
- error: internal error
func EncodeGetAccountRequest ¶
func EncodeGetAccountRequest(encoder func(*http.Request) goahttp.Encoder) func(*http.Request, interface{}) error
EncodeGetAccountRequest returns an encoder for requests sent to the RestAPI getAccount server.
func EncodeGetActiveOrderRequest ¶
func EncodeGetActiveOrderRequest(encoder func(*http.Request) goahttp.Encoder) func(*http.Request, interface{}) error
EncodeGetActiveOrderRequest returns an encoder for requests sent to the RestAPI getActiveOrder server.
func EncodeGetArchiveOrderRequest ¶
func EncodeGetArchiveOrderRequest(encoder func(*http.Request) goahttp.Encoder) func(*http.Request, interface{}) error
EncodeGetArchiveOrderRequest returns an encoder for requests sent to the RestAPI getArchiveOrder server.
func EncodeGetOnlineAccountsRequest ¶
func EncodeGetOnlineAccountsRequest(encoder func(*http.Request) goahttp.Encoder) func(*http.Request, interface{}) error
EncodeGetOnlineAccountsRequest returns an encoder for requests sent to the RestAPI getOnlineAccounts server.
func EncodeGetTradePairRequest ¶
func EncodeGetTradePairRequest(encoder func(*http.Request) goahttp.Encoder) func(*http.Request, interface{}) error
EncodeGetTradePairRequest returns an encoder for requests sent to the RestAPI getTradePair server.
func EncodeListOrdersRequest ¶
func EncodeListOrdersRequest(encoder func(*http.Request) goahttp.Encoder) func(*http.Request, interface{}) error
EncodeListOrdersRequest returns an encoder for requests sent to the RestAPI listOrders server.
func EncodeListTradePairsRequest ¶
func EncodeListTradePairsRequest(encoder func(*http.Request) goahttp.Encoder) func(*http.Request, interface{}) error
EncodeListTradePairsRequest returns an encoder for requests sent to the RestAPI listTradePairs server.
func GetAccountRestAPIPath ¶
func GetAccountRestAPIPath() string
GetAccountRestAPIPath returns the URL path to the RestAPI service getAccount HTTP endpoint.
func GetActiveOrderRestAPIPath ¶
func GetActiveOrderRestAPIPath() string
GetActiveOrderRestAPIPath returns the URL path to the RestAPI service getActiveOrder HTTP endpoint.
func GetArchiveOrderRestAPIPath ¶
func GetArchiveOrderRestAPIPath() string
GetArchiveOrderRestAPIPath returns the URL path to the RestAPI service getArchiveOrder HTTP endpoint.
func GetOnlineAccountsRestAPIPath ¶
func GetOnlineAccountsRestAPIPath() string
GetOnlineAccountsRestAPIPath returns the URL path to the RestAPI service getOnlineAccounts HTTP endpoint.
func GetTradePairRestAPIPath ¶
func GetTradePairRestAPIPath() string
GetTradePairRestAPIPath returns the URL path to the RestAPI service getTradePair HTTP endpoint.
func ListDerivativeMarketsRestAPIPath ¶
func ListDerivativeMarketsRestAPIPath() string
ListDerivativeMarketsRestAPIPath returns the URL path to the RestAPI service listDerivativeMarkets HTTP endpoint.
func ListOrdersRestAPIPath ¶
func ListOrdersRestAPIPath() string
ListOrdersRestAPIPath returns the URL path to the RestAPI service listOrders HTTP endpoint.
func ListTradePairsRestAPIPath ¶
func ListTradePairsRestAPIPath() string
ListTradePairsRestAPIPath returns the URL path to the RestAPI service listTradePairs HTTP endpoint.
func NewGetAccountInternal ¶
func NewGetAccountInternal(body *GetAccountInternalResponseBody) *goa.ServiceError
NewGetAccountInternal builds a RestAPI service getAccount endpoint internal error.
func NewGetAccountNotFound ¶
func NewGetAccountNotFound(body *GetAccountNotFoundResponseBody) *goa.ServiceError
NewGetAccountNotFound builds a RestAPI service getAccount endpoint not_found error.
func NewGetAccountResultOK ¶
func NewGetAccountResultOK(body *GetAccountResponseBody) *restapi.GetAccountResult
NewGetAccountResultOK builds a "RestAPI" service "getAccount" endpoint result from a HTTP "OK" response.
func NewGetAccountValidationError ¶
func NewGetAccountValidationError(body *GetAccountValidationErrorResponseBody) *restapi.RESTValidationErrorResponse
NewGetAccountValidationError builds a RestAPI service getAccount endpoint validation_error error.
func NewGetActiveOrderInternal ¶
func NewGetActiveOrderInternal(body *GetActiveOrderInternalResponseBody) *goa.ServiceError
NewGetActiveOrderInternal builds a RestAPI service getActiveOrder endpoint internal error.
func NewGetActiveOrderNotFound ¶
func NewGetActiveOrderNotFound(body *GetActiveOrderNotFoundResponseBody) *goa.ServiceError
NewGetActiveOrderNotFound builds a RestAPI service getActiveOrder endpoint not_found error.
func NewGetActiveOrderResultOK ¶
func NewGetActiveOrderResultOK(body *GetActiveOrderResponseBody) *restapi.GetActiveOrderResult
NewGetActiveOrderResultOK builds a "RestAPI" service "getActiveOrder" endpoint result from a HTTP "OK" response.
func NewGetActiveOrderValidationError ¶
func NewGetActiveOrderValidationError(body *GetActiveOrderValidationErrorResponseBody) *restapi.RESTValidationErrorResponse
NewGetActiveOrderValidationError builds a RestAPI service getActiveOrder endpoint validation_error error.
func NewGetArchiveOrderInternal ¶
func NewGetArchiveOrderInternal(body *GetArchiveOrderInternalResponseBody) *goa.ServiceError
NewGetArchiveOrderInternal builds a RestAPI service getArchiveOrder endpoint internal error.
func NewGetArchiveOrderNotFound ¶
func NewGetArchiveOrderNotFound(body *GetArchiveOrderNotFoundResponseBody) *goa.ServiceError
NewGetArchiveOrderNotFound builds a RestAPI service getArchiveOrder endpoint not_found error.
func NewGetArchiveOrderResultOK ¶
func NewGetArchiveOrderResultOK(body *GetArchiveOrderResponseBody) *restapi.GetArchiveOrderResult
NewGetArchiveOrderResultOK builds a "RestAPI" service "getArchiveOrder" endpoint result from a HTTP "OK" response.
func NewGetArchiveOrderValidationError ¶
func NewGetArchiveOrderValidationError(body *GetArchiveOrderValidationErrorResponseBody) *restapi.RESTValidationErrorResponse
NewGetArchiveOrderValidationError builds a RestAPI service getArchiveOrder endpoint validation_error error.
func NewGetOnlineAccountsInternal ¶
func NewGetOnlineAccountsInternal(body *GetOnlineAccountsInternalResponseBody) *goa.ServiceError
NewGetOnlineAccountsInternal builds a RestAPI service getOnlineAccounts endpoint internal error.
func NewGetOnlineAccountsResultOK ¶
func NewGetOnlineAccountsResultOK(body *GetOnlineAccountsResponseBody) *restapi.GetOnlineAccountsResult
NewGetOnlineAccountsResultOK builds a "RestAPI" service "getOnlineAccounts" endpoint result from a HTTP "OK" response.
func NewGetOnlineAccountsValidationError ¶
func NewGetOnlineAccountsValidationError(body *GetOnlineAccountsValidationErrorResponseBody) *restapi.RESTValidationErrorResponse
NewGetOnlineAccountsValidationError builds a RestAPI service getOnlineAccounts endpoint validation_error error.
func NewGetTradePairInternal ¶
func NewGetTradePairInternal(body *GetTradePairInternalResponseBody) *goa.ServiceError
NewGetTradePairInternal builds a RestAPI service getTradePair endpoint internal error.
func NewGetTradePairNotFound ¶
func NewGetTradePairNotFound(body *GetTradePairNotFoundResponseBody) *goa.ServiceError
NewGetTradePairNotFound builds a RestAPI service getTradePair endpoint not_found error.
func NewGetTradePairResultOK ¶
func NewGetTradePairResultOK(body *GetTradePairResponseBody) *restapi.GetTradePairResult
NewGetTradePairResultOK builds a "RestAPI" service "getTradePair" endpoint result from a HTTP "OK" response.
func NewGetTradePairValidationError ¶
func NewGetTradePairValidationError(body *GetTradePairValidationErrorResponseBody) *restapi.RESTValidationErrorResponse
NewGetTradePairValidationError builds a RestAPI service getTradePair endpoint validation_error error.
func NewListDerivativeMarketsInternal ¶
func NewListDerivativeMarketsInternal(body *ListDerivativeMarketsInternalResponseBody) *goa.ServiceError
NewListDerivativeMarketsInternal builds a RestAPI service listDerivativeMarkets endpoint internal error.
func NewListDerivativeMarketsResultOK ¶
func NewListDerivativeMarketsResultOK(body *ListDerivativeMarketsResponseBody) *restapi.ListDerivativeMarketsResult
NewListDerivativeMarketsResultOK builds a "RestAPI" service "listDerivativeMarkets" endpoint result from a HTTP "OK" response.
func NewListDerivativeMarketsValidationError ¶
func NewListDerivativeMarketsValidationError(body *ListDerivativeMarketsValidationErrorResponseBody) *restapi.RESTValidationErrorResponse
NewListDerivativeMarketsValidationError builds a RestAPI service listDerivativeMarkets endpoint validation_error error.
func NewListOrdersInternal ¶
func NewListOrdersInternal(body *ListOrdersInternalResponseBody) *goa.ServiceError
NewListOrdersInternal builds a RestAPI service listOrders endpoint internal error.
func NewListOrdersResultOK ¶
func NewListOrdersResultOK(body *ListOrdersResponseBody) *restapi.ListOrdersResult
NewListOrdersResultOK builds a "RestAPI" service "listOrders" endpoint result from a HTTP "OK" response.
func NewListOrdersValidationError ¶
func NewListOrdersValidationError(body *ListOrdersValidationErrorResponseBody) *restapi.RESTValidationErrorResponse
NewListOrdersValidationError builds a RestAPI service listOrders endpoint validation_error error.
func NewListTradePairsInternal ¶
func NewListTradePairsInternal(body *ListTradePairsInternalResponseBody) *goa.ServiceError
NewListTradePairsInternal builds a RestAPI service listTradePairs endpoint internal error.
func NewListTradePairsResultOK ¶
func NewListTradePairsResultOK(body *ListTradePairsResponseBody) *restapi.ListTradePairsResult
NewListTradePairsResultOK builds a "RestAPI" service "listTradePairs" endpoint result from a HTTP "OK" response.
func NewListTradePairsValidationError ¶
func NewListTradePairsValidationError(body *ListTradePairsValidationErrorResponseBody) *restapi.RESTValidationErrorResponse
NewListTradePairsValidationError builds a RestAPI service listTradePairs endpoint validation_error error.
func ValidateDerivativeMarketResponseBody ¶
func ValidateDerivativeMarketResponseBody(body *DerivativeMarketResponseBody) (err error)
ValidateDerivativeMarketResponseBody runs the validations defined on DerivativeMarketResponseBody
func ValidateGetAccountInternalResponseBody ¶
func ValidateGetAccountInternalResponseBody(body *GetAccountInternalResponseBody) (err error)
ValidateGetAccountInternalResponseBody runs the validations defined on getAccount_internal_response_body
func ValidateGetAccountNotFoundResponseBody ¶
func ValidateGetAccountNotFoundResponseBody(body *GetAccountNotFoundResponseBody) (err error)
ValidateGetAccountNotFoundResponseBody runs the validations defined on getAccount_not_found_response_body
func ValidateGetAccountResponseBody ¶
func ValidateGetAccountResponseBody(body *GetAccountResponseBody) (err error)
ValidateGetAccountResponseBody runs the validations defined on GetAccountResponseBody
func ValidateGetAccountValidationErrorResponseBody ¶
func ValidateGetAccountValidationErrorResponseBody(body *GetAccountValidationErrorResponseBody) (err error)
ValidateGetAccountValidationErrorResponseBody runs the validations defined on getAccount_validation_error_response_body
func ValidateGetActiveOrderInternalResponseBody ¶
func ValidateGetActiveOrderInternalResponseBody(body *GetActiveOrderInternalResponseBody) (err error)
ValidateGetActiveOrderInternalResponseBody runs the validations defined on getActiveOrder_internal_response_body
func ValidateGetActiveOrderNotFoundResponseBody ¶
func ValidateGetActiveOrderNotFoundResponseBody(body *GetActiveOrderNotFoundResponseBody) (err error)
ValidateGetActiveOrderNotFoundResponseBody runs the validations defined on getActiveOrder_not_found_response_body
func ValidateGetActiveOrderResponseBody ¶
func ValidateGetActiveOrderResponseBody(body *GetActiveOrderResponseBody) (err error)
ValidateGetActiveOrderResponseBody runs the validations defined on GetActiveOrderResponseBody
func ValidateGetActiveOrderValidationErrorResponseBody ¶
func ValidateGetActiveOrderValidationErrorResponseBody(body *GetActiveOrderValidationErrorResponseBody) (err error)
ValidateGetActiveOrderValidationErrorResponseBody runs the validations defined on getActiveOrder_validation_error_response_body
func ValidateGetArchiveOrderInternalResponseBody ¶
func ValidateGetArchiveOrderInternalResponseBody(body *GetArchiveOrderInternalResponseBody) (err error)
ValidateGetArchiveOrderInternalResponseBody runs the validations defined on getArchiveOrder_internal_response_body
func ValidateGetArchiveOrderNotFoundResponseBody ¶
func ValidateGetArchiveOrderNotFoundResponseBody(body *GetArchiveOrderNotFoundResponseBody) (err error)
ValidateGetArchiveOrderNotFoundResponseBody runs the validations defined on getArchiveOrder_not_found_response_body
func ValidateGetArchiveOrderResponseBody ¶
func ValidateGetArchiveOrderResponseBody(body *GetArchiveOrderResponseBody) (err error)
ValidateGetArchiveOrderResponseBody runs the validations defined on GetArchiveOrderResponseBody
func ValidateGetArchiveOrderValidationErrorResponseBody ¶
func ValidateGetArchiveOrderValidationErrorResponseBody(body *GetArchiveOrderValidationErrorResponseBody) (err error)
ValidateGetArchiveOrderValidationErrorResponseBody runs the validations defined on getArchiveOrder_validation_error_response_body
func ValidateGetOnlineAccountsInternalResponseBody ¶
func ValidateGetOnlineAccountsInternalResponseBody(body *GetOnlineAccountsInternalResponseBody) (err error)
ValidateGetOnlineAccountsInternalResponseBody runs the validations defined on getOnlineAccounts_internal_response_body
func ValidateGetOnlineAccountsResponseBody ¶
func ValidateGetOnlineAccountsResponseBody(body *GetOnlineAccountsResponseBody) (err error)
ValidateGetOnlineAccountsResponseBody runs the validations defined on GetOnlineAccountsResponseBody
func ValidateGetOnlineAccountsValidationErrorResponseBody ¶
func ValidateGetOnlineAccountsValidationErrorResponseBody(body *GetOnlineAccountsValidationErrorResponseBody) (err error)
ValidateGetOnlineAccountsValidationErrorResponseBody runs the validations defined on getOnlineAccounts_validation_error_response_body
func ValidateGetTradePairInternalResponseBody ¶
func ValidateGetTradePairInternalResponseBody(body *GetTradePairInternalResponseBody) (err error)
ValidateGetTradePairInternalResponseBody runs the validations defined on getTradePair_internal_response_body
func ValidateGetTradePairNotFoundResponseBody ¶
func ValidateGetTradePairNotFoundResponseBody(body *GetTradePairNotFoundResponseBody) (err error)
ValidateGetTradePairNotFoundResponseBody runs the validations defined on getTradePair_not_found_response_body
func ValidateGetTradePairResponseBody ¶
func ValidateGetTradePairResponseBody(body *GetTradePairResponseBody) (err error)
ValidateGetTradePairResponseBody runs the validations defined on GetTradePairResponseBody
func ValidateGetTradePairValidationErrorResponseBody ¶
func ValidateGetTradePairValidationErrorResponseBody(body *GetTradePairValidationErrorResponseBody) (err error)
ValidateGetTradePairValidationErrorResponseBody runs the validations defined on getTradePair_validation_error_response_body
func ValidateListDerivativeMarketsInternalResponseBody ¶
func ValidateListDerivativeMarketsInternalResponseBody(body *ListDerivativeMarketsInternalResponseBody) (err error)
ValidateListDerivativeMarketsInternalResponseBody runs the validations defined on listDerivativeMarkets_internal_response_body
func ValidateListDerivativeMarketsResponseBody ¶
func ValidateListDerivativeMarketsResponseBody(body *ListDerivativeMarketsResponseBody) (err error)
ValidateListDerivativeMarketsResponseBody runs the validations defined on ListDerivativeMarketsResponseBody
func ValidateListDerivativeMarketsValidationErrorResponseBody ¶
func ValidateListDerivativeMarketsValidationErrorResponseBody(body *ListDerivativeMarketsValidationErrorResponseBody) (err error)
ValidateListDerivativeMarketsValidationErrorResponseBody runs the validations defined on listDerivativeMarkets_validation_error_response_body
func ValidateListOrdersInternalResponseBody ¶
func ValidateListOrdersInternalResponseBody(body *ListOrdersInternalResponseBody) (err error)
ValidateListOrdersInternalResponseBody runs the validations defined on listOrders_internal_response_body
func ValidateListOrdersResponseBody ¶
func ValidateListOrdersResponseBody(body *ListOrdersResponseBody) (err error)
ValidateListOrdersResponseBody runs the validations defined on ListOrdersResponseBody
func ValidateListOrdersValidationErrorResponseBody ¶
func ValidateListOrdersValidationErrorResponseBody(body *ListOrdersValidationErrorResponseBody) (err error)
ValidateListOrdersValidationErrorResponseBody runs the validations defined on listOrders_validation_error_response_body
func ValidateListTradePairsInternalResponseBody ¶
func ValidateListTradePairsInternalResponseBody(body *ListTradePairsInternalResponseBody) (err error)
ValidateListTradePairsInternalResponseBody runs the validations defined on listTradePairs_internal_response_body
func ValidateListTradePairsResponseBody ¶
func ValidateListTradePairsResponseBody(body *ListTradePairsResponseBody) (err error)
ValidateListTradePairsResponseBody runs the validations defined on ListTradePairsResponseBody
func ValidateListTradePairsValidationErrorResponseBody ¶
func ValidateListTradePairsValidationErrorResponseBody(body *ListTradePairsValidationErrorResponseBody) (err error)
ValidateListTradePairsValidationErrorResponseBody runs the validations defined on listTradePairs_validation_error_response_body
func ValidateOrderResponseBody ¶
func ValidateOrderResponseBody(body *OrderResponseBody) (err error)
ValidateOrderResponseBody runs the validations defined on OrderResponseBody
func ValidateRESTValidationErrorResponseBody ¶
func ValidateRESTValidationErrorResponseBody(body *RESTValidationErrorResponseBody) (err error)
ValidateRESTValidationErrorResponseBody runs the validations defined on RESTValidationErrorResponseBody
func ValidateRelayerAccountResponseBody ¶
func ValidateRelayerAccountResponseBody(body *RelayerAccountResponseBody) (err error)
ValidateRelayerAccountResponseBody runs the validations defined on RelayerAccountResponseBody
func ValidateTradePairResponseBody ¶
func ValidateTradePairResponseBody(body *TradePairResponseBody) (err error)
ValidateTradePairResponseBody runs the validations defined on TradePairResponseBody
Types ¶
type Client ¶
type Client struct { // GetActiveOrder Doer is the HTTP client used to make requests to the // getActiveOrder endpoint. GetActiveOrderDoer goahttp.Doer // GetArchiveOrder Doer is the HTTP client used to make requests to the // getArchiveOrder endpoint. GetArchiveOrderDoer goahttp.Doer // ListOrders Doer is the HTTP client used to make requests to the listOrders // endpoint. ListOrdersDoer goahttp.Doer // GetTradePair Doer is the HTTP client used to make requests to the // getTradePair endpoint. GetTradePairDoer goahttp.Doer // ListTradePairs Doer is the HTTP client used to make requests to the // listTradePairs endpoint. ListTradePairsDoer goahttp.Doer // ListDerivativeMarkets Doer is the HTTP client used to make requests to the // listDerivativeMarkets endpoint. ListDerivativeMarketsDoer goahttp.Doer // GetAccount Doer is the HTTP client used to make requests to the getAccount // endpoint. GetAccountDoer goahttp.Doer // GetOnlineAccounts Doer is the HTTP client used to make requests to the // getOnlineAccounts endpoint. GetOnlineAccountsDoer 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 RestAPI 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 RestAPI service servers.
func (*Client) BuildGetAccountRequest ¶
BuildGetAccountRequest instantiates a HTTP request object with method and path set to call the "RestAPI" service "getAccount" endpoint
func (*Client) BuildGetActiveOrderRequest ¶
func (c *Client) BuildGetActiveOrderRequest(ctx context.Context, v interface{}) (*http.Request, error)
BuildGetActiveOrderRequest instantiates a HTTP request object with method and path set to call the "RestAPI" service "getActiveOrder" endpoint
func (*Client) BuildGetArchiveOrderRequest ¶
func (c *Client) BuildGetArchiveOrderRequest(ctx context.Context, v interface{}) (*http.Request, error)
BuildGetArchiveOrderRequest instantiates a HTTP request object with method and path set to call the "RestAPI" service "getArchiveOrder" endpoint
func (*Client) BuildGetOnlineAccountsRequest ¶
func (c *Client) BuildGetOnlineAccountsRequest(ctx context.Context, v interface{}) (*http.Request, error)
BuildGetOnlineAccountsRequest instantiates a HTTP request object with method and path set to call the "RestAPI" service "getOnlineAccounts" endpoint
func (*Client) BuildGetTradePairRequest ¶
func (c *Client) BuildGetTradePairRequest(ctx context.Context, v interface{}) (*http.Request, error)
BuildGetTradePairRequest instantiates a HTTP request object with method and path set to call the "RestAPI" service "getTradePair" endpoint
func (*Client) BuildListDerivativeMarketsRequest ¶
func (c *Client) BuildListDerivativeMarketsRequest(ctx context.Context, v interface{}) (*http.Request, error)
BuildListDerivativeMarketsRequest instantiates a HTTP request object with method and path set to call the "RestAPI" service "listDerivativeMarkets" endpoint
func (*Client) BuildListOrdersRequest ¶
BuildListOrdersRequest instantiates a HTTP request object with method and path set to call the "RestAPI" service "listOrders" endpoint
func (*Client) BuildListTradePairsRequest ¶
func (c *Client) BuildListTradePairsRequest(ctx context.Context, v interface{}) (*http.Request, error)
BuildListTradePairsRequest instantiates a HTTP request object with method and path set to call the "RestAPI" service "listTradePairs" endpoint
func (*Client) GetAccount ¶
GetAccount returns an endpoint that makes HTTP requests to the RestAPI service getAccount server.
func (*Client) GetActiveOrder ¶
GetActiveOrder returns an endpoint that makes HTTP requests to the RestAPI service getActiveOrder server.
func (*Client) GetArchiveOrder ¶
GetArchiveOrder returns an endpoint that makes HTTP requests to the RestAPI service getArchiveOrder server.
func (*Client) GetOnlineAccounts ¶
GetOnlineAccounts returns an endpoint that makes HTTP requests to the RestAPI service getOnlineAccounts server.
func (*Client) GetTradePair ¶
GetTradePair returns an endpoint that makes HTTP requests to the RestAPI service getTradePair server.
func (*Client) ListDerivativeMarkets ¶
ListDerivativeMarkets returns an endpoint that makes HTTP requests to the RestAPI service listDerivativeMarkets server.
func (*Client) ListOrders ¶
ListOrders returns an endpoint that makes HTTP requests to the RestAPI service listOrders server.
func (*Client) ListTradePairs ¶
ListTradePairs returns an endpoint that makes HTTP requests to the RestAPI service listTradePairs server.
type DerivativeMarketResponseBody ¶
type DerivativeMarketResponseBody struct { // Ticker for the derivative contract. Ticker *string `form:"ticker,omitempty" json:"ticker,omitempty" xml:"ticker,omitempty"` // Address of the oracle for the derivative contract Oracle *string `form:"oracle,omitempty" json:"oracle,omitempty" xml:"oracle,omitempty"` // Address of the base currency for the derivative contract BaseCurrency *string `form:"baseCurrency,omitempty" json:"baseCurrency,omitempty" xml:"baseCurrency,omitempty"` // Random number to faciltate uniqueness of the derivative market ID Nonce *string `form:"nonce,omitempty" json:"nonce,omitempty" xml:"nonce,omitempty"` // MarketID identifying the market. MarketID *string `form:"marketID,omitempty" json:"marketID,omitempty" xml:"marketID,omitempty"` // If false, then the pair is suspended and trades cannot be made. Enabled *bool `form:"enabled,omitempty" json:"enabled,omitempty" xml:"enabled,omitempty"` }
DerivativeMarketResponseBody is used to define fields on response body types.
type GetAccountInternalResponseBody ¶
type GetAccountInternalResponseBody 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"` }
GetAccountInternalResponseBody is the type of the "RestAPI" service "getAccount" endpoint HTTP response body for the "internal" error.
type GetAccountNotFoundResponseBody ¶
type GetAccountNotFoundResponseBody 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"` }
GetAccountNotFoundResponseBody is the type of the "RestAPI" service "getAccount" endpoint HTTP response body for the "not_found" error.
type GetAccountResponseBody ¶
type GetAccountResponseBody struct { RLimitLimit *string `form:"rLimitLimit,omitempty" json:"rLimitLimit,omitempty" xml:"rLimitLimit,omitempty"` RLimitRemaining *string `form:"rLimitRemaining,omitempty" json:"rLimitRemaining,omitempty" xml:"rLimitRemaining,omitempty"` RLimitReset *string `form:"rLimitReset,omitempty" json:"rLimitReset,omitempty" xml:"rLimitReset,omitempty"` // Found relayer account. Account *RelayerAccountResponseBody `form:"account,omitempty" json:"account,omitempty" xml:"account,omitempty"` // Additional meta data. MetaData interface{} `form:"metaData,omitempty" json:"metaData,omitempty" xml:"metaData,omitempty"` }
GetAccountResponseBody is the type of the "RestAPI" service "getAccount" endpoint HTTP response body.
type GetAccountValidationErrorResponseBody ¶
type GetAccountValidationErrorResponseBody struct { // General error code Code *int `form:"code,omitempty" json:"code,omitempty" xml:"code,omitempty"` // Error reason description Reason *string `form:"reason,omitempty" json:"reason,omitempty" xml:"reason,omitempty"` // A list of explained validation errors. ValidationErrors []*RESTValidationErrorResponseBody `form:"validationErrors,omitempty" json:"validationErrors,omitempty" xml:"validationErrors,omitempty"` }
GetAccountValidationErrorResponseBody is the type of the "RestAPI" service "getAccount" endpoint HTTP response body for the "validation_error" error.
type GetActiveOrderInternalResponseBody ¶
type GetActiveOrderInternalResponseBody 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"` }
GetActiveOrderInternalResponseBody is the type of the "RestAPI" service "getActiveOrder" endpoint HTTP response body for the "internal" error.
type GetActiveOrderNotFoundResponseBody ¶
type GetActiveOrderNotFoundResponseBody 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"` }
GetActiveOrderNotFoundResponseBody is the type of the "RestAPI" service "getActiveOrder" endpoint HTTP response body for the "not_found" error.
type GetActiveOrderResponseBody ¶
type GetActiveOrderResponseBody struct { RLimitLimit *string `form:"rLimitLimit,omitempty" json:"rLimitLimit,omitempty" xml:"rLimitLimit,omitempty"` RLimitRemaining *string `form:"rLimitRemaining,omitempty" json:"rLimitRemaining,omitempty" xml:"rLimitRemaining,omitempty"` RLimitReset *string `form:"rLimitReset,omitempty" json:"rLimitReset,omitempty" xml:"rLimitReset,omitempty"` // Found active 0x order. Order *OrderResponseBody `form:"order,omitempty" json:"order,omitempty" xml:"order,omitempty"` // Additional meta data. MetaData interface{} `form:"metaData,omitempty" json:"metaData,omitempty" xml:"metaData,omitempty"` }
GetActiveOrderResponseBody is the type of the "RestAPI" service "getActiveOrder" endpoint HTTP response body.
type GetActiveOrderValidationErrorResponseBody ¶
type GetActiveOrderValidationErrorResponseBody struct { // General error code Code *int `form:"code,omitempty" json:"code,omitempty" xml:"code,omitempty"` // Error reason description Reason *string `form:"reason,omitempty" json:"reason,omitempty" xml:"reason,omitempty"` // A list of explained validation errors. ValidationErrors []*RESTValidationErrorResponseBody `form:"validationErrors,omitempty" json:"validationErrors,omitempty" xml:"validationErrors,omitempty"` }
GetActiveOrderValidationErrorResponseBody is the type of the "RestAPI" service "getActiveOrder" endpoint HTTP response body for the "validation_error" error.
type GetArchiveOrderInternalResponseBody ¶
type GetArchiveOrderInternalResponseBody 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"` }
GetArchiveOrderInternalResponseBody is the type of the "RestAPI" service "getArchiveOrder" endpoint HTTP response body for the "internal" error.
type GetArchiveOrderNotFoundResponseBody ¶
type GetArchiveOrderNotFoundResponseBody 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"` }
GetArchiveOrderNotFoundResponseBody is the type of the "RestAPI" service "getArchiveOrder" endpoint HTTP response body for the "not_found" error.
type GetArchiveOrderResponseBody ¶
type GetArchiveOrderResponseBody struct { RLimitLimit *string `form:"rLimitLimit,omitempty" json:"rLimitLimit,omitempty" xml:"rLimitLimit,omitempty"` RLimitRemaining *string `form:"rLimitRemaining,omitempty" json:"rLimitRemaining,omitempty" xml:"rLimitRemaining,omitempty"` RLimitReset *string `form:"rLimitReset,omitempty" json:"rLimitReset,omitempty" xml:"rLimitReset,omitempty"` // Order item. Order *OrderResponseBody `form:"order,omitempty" json:"order,omitempty" xml:"order,omitempty"` // Additional meta data. MetaData map[string]string `form:"metaData,omitempty" json:"metaData,omitempty" xml:"metaData,omitempty"` }
GetArchiveOrderResponseBody is the type of the "RestAPI" service "getArchiveOrder" endpoint HTTP response body.
type GetArchiveOrderValidationErrorResponseBody ¶
type GetArchiveOrderValidationErrorResponseBody struct { // General error code Code *int `form:"code,omitempty" json:"code,omitempty" xml:"code,omitempty"` // Error reason description Reason *string `form:"reason,omitempty" json:"reason,omitempty" xml:"reason,omitempty"` // A list of explained validation errors. ValidationErrors []*RESTValidationErrorResponseBody `form:"validationErrors,omitempty" json:"validationErrors,omitempty" xml:"validationErrors,omitempty"` }
GetArchiveOrderValidationErrorResponseBody is the type of the "RestAPI" service "getArchiveOrder" endpoint HTTP response body for the "validation_error" error.
type GetOnlineAccountsInternalResponseBody ¶
type GetOnlineAccountsInternalResponseBody 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"` }
GetOnlineAccountsInternalResponseBody is the type of the "RestAPI" service "getOnlineAccounts" endpoint HTTP response body for the "internal" error.
type GetOnlineAccountsResponseBody ¶
type GetOnlineAccountsResponseBody struct { RLimitLimit *string `form:"rLimitLimit,omitempty" json:"rLimitLimit,omitempty" xml:"rLimitLimit,omitempty"` RLimitRemaining *string `form:"rLimitRemaining,omitempty" json:"rLimitRemaining,omitempty" xml:"rLimitRemaining,omitempty"` RLimitReset *string `form:"rLimitReset,omitempty" json:"rLimitReset,omitempty" xml:"rLimitReset,omitempty"` // Filtered online relayer accounts. Accounts []*RelayerAccountResponseBody `form:"accounts,omitempty" json:"accounts,omitempty" xml:"accounts,omitempty"` // Additional meta data. MetaData interface{} `form:"metaData,omitempty" json:"metaData,omitempty" xml:"metaData,omitempty"` }
GetOnlineAccountsResponseBody is the type of the "RestAPI" service "getOnlineAccounts" endpoint HTTP response body.
type GetOnlineAccountsValidationErrorResponseBody ¶
type GetOnlineAccountsValidationErrorResponseBody struct { // General error code Code *int `form:"code,omitempty" json:"code,omitempty" xml:"code,omitempty"` // Error reason description Reason *string `form:"reason,omitempty" json:"reason,omitempty" xml:"reason,omitempty"` // A list of explained validation errors. ValidationErrors []*RESTValidationErrorResponseBody `form:"validationErrors,omitempty" json:"validationErrors,omitempty" xml:"validationErrors,omitempty"` }
GetOnlineAccountsValidationErrorResponseBody is the type of the "RestAPI" service "getOnlineAccounts" endpoint HTTP response body for the "validation_error" error.
type GetTradePairInternalResponseBody ¶
type GetTradePairInternalResponseBody 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"` }
GetTradePairInternalResponseBody is the type of the "RestAPI" service "getTradePair" endpoint HTTP response body for the "internal" error.
type GetTradePairNotFoundResponseBody ¶
type GetTradePairNotFoundResponseBody 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"` }
GetTradePairNotFoundResponseBody is the type of the "RestAPI" service "getTradePair" endpoint HTTP response body for the "not_found" error.
type GetTradePairResponseBody ¶
type GetTradePairResponseBody struct { RLimitLimit *string `form:"rLimitLimit,omitempty" json:"rLimitLimit,omitempty" xml:"rLimitLimit,omitempty"` RLimitRemaining *string `form:"rLimitRemaining,omitempty" json:"rLimitRemaining,omitempty" xml:"rLimitRemaining,omitempty"` RLimitReset *string `form:"rLimitReset,omitempty" json:"rLimitReset,omitempty" xml:"rLimitReset,omitempty"` // Found trade pair. TradePair *TradePairResponseBody `form:"tradePair,omitempty" json:"tradePair,omitempty" xml:"tradePair,omitempty"` // Additional meta data. MetaData interface{} `form:"metaData,omitempty" json:"metaData,omitempty" xml:"metaData,omitempty"` }
GetTradePairResponseBody is the type of the "RestAPI" service "getTradePair" endpoint HTTP response body.
type GetTradePairValidationErrorResponseBody ¶
type GetTradePairValidationErrorResponseBody struct { // General error code Code *int `form:"code,omitempty" json:"code,omitempty" xml:"code,omitempty"` // Error reason description Reason *string `form:"reason,omitempty" json:"reason,omitempty" xml:"reason,omitempty"` // A list of explained validation errors. ValidationErrors []*RESTValidationErrorResponseBody `form:"validationErrors,omitempty" json:"validationErrors,omitempty" xml:"validationErrors,omitempty"` }
GetTradePairValidationErrorResponseBody is the type of the "RestAPI" service "getTradePair" endpoint HTTP response body for the "validation_error" error.
type ListDerivativeMarketsInternalResponseBody ¶
type ListDerivativeMarketsInternalResponseBody 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"` }
ListDerivativeMarketsInternalResponseBody is the type of the "RestAPI" service "listDerivativeMarkets" endpoint HTTP response body for the "internal" error.
type ListDerivativeMarketsResponseBody ¶
type ListDerivativeMarketsResponseBody struct { RLimitLimit *string `form:"rLimitLimit,omitempty" json:"rLimitLimit,omitempty" xml:"rLimitLimit,omitempty"` RLimitRemaining *string `form:"rLimitRemaining,omitempty" json:"rLimitRemaining,omitempty" xml:"rLimitRemaining,omitempty"` RLimitReset *string `form:"rLimitReset,omitempty" json:"rLimitReset,omitempty" xml:"rLimitReset,omitempty"` // Derivative Markets. Markets []*DerivativeMarketResponseBody `form:"markets,omitempty" json:"markets,omitempty" xml:"markets,omitempty"` }
ListDerivativeMarketsResponseBody is the type of the "RestAPI" service "listDerivativeMarkets" endpoint HTTP response body.
type ListDerivativeMarketsValidationErrorResponseBody ¶
type ListDerivativeMarketsValidationErrorResponseBody struct { // General error code Code *int `form:"code,omitempty" json:"code,omitempty" xml:"code,omitempty"` // Error reason description Reason *string `form:"reason,omitempty" json:"reason,omitempty" xml:"reason,omitempty"` // A list of explained validation errors. ValidationErrors []*RESTValidationErrorResponseBody `form:"validationErrors,omitempty" json:"validationErrors,omitempty" xml:"validationErrors,omitempty"` }
ListDerivativeMarketsValidationErrorResponseBody is the type of the "RestAPI" service "listDerivativeMarkets" endpoint HTTP response body for the "validation_error" error.
type ListOrdersInternalResponseBody ¶
type ListOrdersInternalResponseBody 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"` }
ListOrdersInternalResponseBody is the type of the "RestAPI" service "listOrders" endpoint HTTP response body for the "internal" error.
type ListOrdersRequestBody ¶
type ListOrdersRequestBody struct { // Filter by status of the order Status *string `form:"status,omitempty" json:"status,omitempty" xml:"status,omitempty"` // Filter by collection of the order Collection *string `form:"collection,omitempty" json:"collection,omitempty" xml:"collection,omitempty"` // Filter by trade pair hash TradePairHash *string `form:"tradePairHash,omitempty" json:"tradePairHash,omitempty" xml:"tradePairHash,omitempty"` // Enabled sort by VDF (1 = asc, -1 = desc) SortByVdf *int32 `form:"sortByVdf,omitempty" json:"sortByVdf,omitempty" xml:"sortByVdf,omitempty"` // Limits the amout of results by top N Limit *int32 `form:"limit,omitempty" json:"limit,omitempty" xml:"limit,omitempty"` }
ListOrdersRequestBody is the type of the "RestAPI" service "listOrders" endpoint HTTP request body.
func NewListOrdersRequestBody ¶
func NewListOrdersRequestBody(p *restapi.ListOrdersPayload) *ListOrdersRequestBody
NewListOrdersRequestBody builds the HTTP request body from the payload of the "listOrders" endpoint of the "RestAPI" service.
type ListOrdersResponseBody ¶
type ListOrdersResponseBody struct { RLimitLimit *string `form:"rLimitLimit,omitempty" json:"rLimitLimit,omitempty" xml:"rLimitLimit,omitempty"` RLimitRemaining *string `form:"rLimitRemaining,omitempty" json:"rLimitRemaining,omitempty" xml:"rLimitRemaining,omitempty"` RLimitReset *string `form:"rLimitReset,omitempty" json:"rLimitReset,omitempty" xml:"rLimitReset,omitempty"` // Filtered orders. Orders []*OrderResponseBody `form:"orders,omitempty" json:"orders,omitempty" xml:"orders,omitempty"` // Additional meta data. MetaData interface{} `form:"metaData,omitempty" json:"metaData,omitempty" xml:"metaData,omitempty"` }
ListOrdersResponseBody is the type of the "RestAPI" service "listOrders" endpoint HTTP response body.
type ListOrdersValidationErrorResponseBody ¶
type ListOrdersValidationErrorResponseBody struct { // General error code Code *int `form:"code,omitempty" json:"code,omitempty" xml:"code,omitempty"` // Error reason description Reason *string `form:"reason,omitempty" json:"reason,omitempty" xml:"reason,omitempty"` // A list of explained validation errors. ValidationErrors []*RESTValidationErrorResponseBody `form:"validationErrors,omitempty" json:"validationErrors,omitempty" xml:"validationErrors,omitempty"` }
ListOrdersValidationErrorResponseBody is the type of the "RestAPI" service "listOrders" endpoint HTTP response body for the "validation_error" error.
type ListTradePairsInternalResponseBody ¶
type ListTradePairsInternalResponseBody 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"` }
ListTradePairsInternalResponseBody is the type of the "RestAPI" service "listTradePairs" endpoint HTTP response body for the "internal" error.
type ListTradePairsRequestBody ¶
type ListTradePairsRequestBody struct { // Specify to include all trade pairs, suspended and active. All *bool `form:"all,omitempty" json:"all,omitempty" xml:"all,omitempty"` }
ListTradePairsRequestBody is the type of the "RestAPI" service "listTradePairs" endpoint HTTP request body.
func NewListTradePairsRequestBody ¶
func NewListTradePairsRequestBody(p *restapi.ListTradePairsPayload) *ListTradePairsRequestBody
NewListTradePairsRequestBody builds the HTTP request body from the payload of the "listTradePairs" endpoint of the "RestAPI" service.
type ListTradePairsResponseBody ¶
type ListTradePairsResponseBody struct { RLimitLimit *string `form:"rLimitLimit,omitempty" json:"rLimitLimit,omitempty" xml:"rLimitLimit,omitempty"` RLimitRemaining *string `form:"rLimitRemaining,omitempty" json:"rLimitRemaining,omitempty" xml:"rLimitRemaining,omitempty"` RLimitReset *string `form:"rLimitReset,omitempty" json:"rLimitReset,omitempty" xml:"rLimitReset,omitempty"` // Filtered trade pairs. TradePairs []*TradePairResponseBody `form:"tradePairs,omitempty" json:"tradePairs,omitempty" xml:"tradePairs,omitempty"` // Additional meta data. MetaData interface{} `form:"metaData,omitempty" json:"metaData,omitempty" xml:"metaData,omitempty"` }
ListTradePairsResponseBody is the type of the "RestAPI" service "listTradePairs" endpoint HTTP response body.
type ListTradePairsValidationErrorResponseBody ¶
type ListTradePairsValidationErrorResponseBody struct { // General error code Code *int `form:"code,omitempty" json:"code,omitempty" xml:"code,omitempty"` // Error reason description Reason *string `form:"reason,omitempty" json:"reason,omitempty" xml:"reason,omitempty"` // A list of explained validation errors. ValidationErrors []*RESTValidationErrorResponseBody `form:"validationErrors,omitempty" json:"validationErrors,omitempty" xml:"validationErrors,omitempty"` }
ListTradePairsValidationErrorResponseBody is the type of the "RestAPI" service "listTradePairs" endpoint HTTP response body for the "validation_error" error.
type OrderResponseBody ¶
type OrderResponseBody struct { // Specify chain ID. ChainID *int64 `form:"chainId,omitempty" json:"chainId,omitempty" xml:"chainId,omitempty"` // Exchange v3 contract address. ExchangeAddress *string `form:"exchangeAddress,omitempty" json:"exchangeAddress,omitempty" xml:"exchangeAddress,omitempty"` // Address that created the order. MakerAddress *string `form:"makerAddress,omitempty" json:"makerAddress,omitempty" xml:"makerAddress,omitempty"` // Address that is allowed to fill the order. If set to 0, any address is // allowed to fill the order. TakerAddress *string `form:"takerAddress,omitempty" json:"takerAddress,omitempty" xml:"takerAddress,omitempty"` // Address that will receive fees when order is filled. FeeRecipientAddress *string `form:"feeRecipientAddress,omitempty" json:"feeRecipientAddress,omitempty" xml:"feeRecipientAddress,omitempty"` // Address that is allowed to call Exchange contract methods that affect this // order. If set to 0, any address is allowed to call these methods. SenderAddress *string `form:"senderAddress,omitempty" json:"senderAddress,omitempty" xml:"senderAddress,omitempty"` // Amount of makerAsset being offered by maker. Must be greater than 0. MakerAssetAmount *string `form:"makerAssetAmount,omitempty" json:"makerAssetAmount,omitempty" xml:"makerAssetAmount,omitempty"` // Amount of takerAsset being bid on by maker. Must be greater than 0. TakerAssetAmount *string `form:"takerAssetAmount,omitempty" json:"takerAssetAmount,omitempty" xml:"takerAssetAmount,omitempty"` // Amount of ZRX paid to feeRecipient by maker when order is filled. If set to // 0, no transfer of ZRX from maker to feeRecipient will be attempted. MakerFee *string `form:"makerFee,omitempty" json:"makerFee,omitempty" xml:"makerFee,omitempty"` // Amount of ZRX paid to feeRecipient by taker when order is filled. If set to // 0, no transfer of ZRX from taker to feeRecipient will be attempted. TakerFee *string `form:"takerFee,omitempty" json:"takerFee,omitempty" xml:"takerFee,omitempty"` // Timestamp in seconds at which order expires. ExpirationTimeSeconds *string `form:"expirationTimeSeconds,omitempty" json:"expirationTimeSeconds,omitempty" xml:"expirationTimeSeconds,omitempty"` // Arbitrary number to facilitate uniqueness of the order's hash. Salt *string `form:"salt,omitempty" json:"salt,omitempty" xml:"salt,omitempty"` // ABIv2 encoded data that can be decoded by a specified proxy contract when // transferring makerAsset. MakerAssetData *string `form:"makerAssetData,omitempty" json:"makerAssetData,omitempty" xml:"makerAssetData,omitempty"` // ABIv2 encoded data that can be decoded by a specified proxy contract when // transferring takerAsset. TakerAssetData *string `form:"takerAssetData,omitempty" json:"takerAssetData,omitempty" xml:"takerAssetData,omitempty"` // ABIv2 encoded data that can be decoded by a specified proxy contract when // transferring makerFee. MakerFeeAssetData *string `form:"makerFeeAssetData,omitempty" json:"makerFeeAssetData,omitempty" xml:"makerFeeAssetData,omitempty"` // ABIv2 encoded data that can be decoded by a specified proxy contract when // transferring takerFee. TakerFeeAssetData *string `form:"takerFeeAssetData,omitempty" json:"takerFeeAssetData,omitempty" xml:"takerFeeAssetData,omitempty"` // Order signature. Signature *string `form:"signature,omitempty" json:"signature,omitempty" xml:"signature,omitempty"` }
OrderResponseBody is used to define fields on response body types.
type RESTValidationErrorResponseBody ¶
type RESTValidationErrorResponseBody struct { // Validation error code Code *int `form:"code,omitempty" json:"code,omitempty" xml:"code,omitempty"` // Validation error reason description Reason *string `form:"reason,omitempty" json:"reason,omitempty" xml:"reason,omitempty"` // Field name Field *string `form:"field,omitempty" json:"field,omitempty" xml:"field,omitempty"` }
RESTValidationErrorResponseBody is used to define fields on response body types.
type RelayerAccountResponseBody ¶
type RelayerAccountResponseBody struct { // Cosmos address of the relayer account. Address *string `form:"address,omitempty" json:"address,omitempty" xml:"address,omitempty"` // Ethereum address associated with this relayer account. StakerAddress *string `form:"stakerAddress,omitempty" json:"stakerAddress,omitempty" xml:"stakerAddress,omitempty"` // Public key of the relayer account, as hex string. PublicKey *string `form:"publicKey,omitempty" json:"publicKey,omitempty" xml:"publicKey,omitempty"` // Timestamp in UNIX seconds of the last time seen. LastSeen *int64 `form:"lastSeen,omitempty" json:"lastSeen,omitempty" xml:"lastSeen,omitempty"` // Last logic version seen. LastVersion *string `form:"lastVersion,omitempty" json:"lastVersion,omitempty" xml:"lastVersion,omitempty"` // A flag of liveness status of the account. Must be considered with lastSeen // timestamp. IsOnline *bool `form:"isOnline,omitempty" json:"isOnline,omitempty" xml:"isOnline,omitempty"` }
RelayerAccountResponseBody is used to define fields on response body types.
type TradePairResponseBody ¶
type TradePairResponseBody struct { // A name of the pair in format AAA/BBB, where AAA - maker's asset, BBB - // taker's asset. Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"` // ABIv2 encoded data that can be decoded by a specified proxy contract when // transferring makerAsset. MakerAssetData *string `form:"makerAssetData,omitempty" json:"makerAssetData,omitempty" xml:"makerAssetData,omitempty"` // ABIv2 encoded data that can be decoded by a specified proxy contract when // transferring takerAsset. TakerAssetData *string `form:"takerAssetData,omitempty" json:"takerAssetData,omitempty" xml:"takerAssetData,omitempty"` // Hash of both asset data, to identify the trading pair in store. Hash *string `form:"hash,omitempty" json:"hash,omitempty" xml:"hash,omitempty"` // If false, then the pair is suspended and trades cannot be made. Enabled *bool `form:"enabled,omitempty" json:"enabled,omitempty" xml:"enabled,omitempty"` }
TradePairResponseBody is used to define fields on response body types.