openapi

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2023 License: MIT Imports: 14 Imported by: 0

Documentation

Overview

Package openapi provides primitives to interact with the openapi HTTP API.

Code generated by github.com/deepmap/oapi-codegen version v1.12.4 DO NOT EDIT.

Index

Constants

View Source
const (
	API_KeyScopes  = "API_Key.Scopes"
	API_SignScopes = "API_Sign.Scopes"
)

Variables

This section is empty.

Functions

func GetSwagger

func GetSwagger() (swagger *openapi3.T, err error)

GetSwagger returns the Swagger specification corresponding to the generated code in this file. The external references of Swagger specification are resolved. The logic of resolving external references is tightly connected to "import-mapping" feature. Externally referenced files must be embedded in the corresponding golang packages. Urls can be supported but this task was out of the scope.

func NewAddExportRequestWithBody

func NewAddExportRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)

NewAddExportRequestWithBody generates requests for AddExport with any type of body

func NewAddExportRequestWithFormdataBody

func NewAddExportRequestWithFormdataBody(server string, body AddExportFormdataRequestBody) (*http.Request, error)

NewAddExportRequestWithFormdataBody calls the generic AddExport builder with application/x-www-form-urlencoded body

func NewAddOrderBatchRequestWithBody

func NewAddOrderBatchRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)

NewAddOrderBatchRequestWithBody generates requests for AddOrderBatch with any type of body

func NewAddOrderBatchRequestWithFormdataBody

func NewAddOrderBatchRequestWithFormdataBody(server string, body AddOrderBatchFormdataRequestBody) (*http.Request, error)

NewAddOrderBatchRequestWithFormdataBody calls the generic AddOrderBatch builder with application/x-www-form-urlencoded body

func NewAddOrderRequestWithBody

func NewAddOrderRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)

NewAddOrderRequestWithBody generates requests for AddOrder with any type of body

func NewAddOrderRequestWithFormdataBody

func NewAddOrderRequestWithFormdataBody(server string, body AddOrderFormdataRequestBody) (*http.Request, error)

NewAddOrderRequestWithFormdataBody calls the generic AddOrder builder with application/x-www-form-urlencoded body

func NewCancelAllOrdersAfterRequestWithBody

func NewCancelAllOrdersAfterRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)

NewCancelAllOrdersAfterRequestWithBody generates requests for CancelAllOrdersAfter with any type of body

func NewCancelAllOrdersAfterRequestWithFormdataBody

func NewCancelAllOrdersAfterRequestWithFormdataBody(server string, body CancelAllOrdersAfterFormdataRequestBody) (*http.Request, error)

NewCancelAllOrdersAfterRequestWithFormdataBody calls the generic CancelAllOrdersAfter builder with application/x-www-form-urlencoded body

func NewCancelAllOrdersRequestWithBody

func NewCancelAllOrdersRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)

NewCancelAllOrdersRequestWithBody generates requests for CancelAllOrders with any type of body

func NewCancelAllOrdersRequestWithFormdataBody

func NewCancelAllOrdersRequestWithFormdataBody(server string, body CancelAllOrdersFormdataRequestBody) (*http.Request, error)

NewCancelAllOrdersRequestWithFormdataBody calls the generic CancelAllOrders builder with application/x-www-form-urlencoded body

func NewCancelOrderBatchRequestWithBody

func NewCancelOrderBatchRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)

NewCancelOrderBatchRequestWithBody generates requests for CancelOrderBatch with any type of body

func NewCancelOrderBatchRequestWithFormdataBody

func NewCancelOrderBatchRequestWithFormdataBody(server string, body CancelOrderBatchFormdataRequestBody) (*http.Request, error)

NewCancelOrderBatchRequestWithFormdataBody calls the generic CancelOrderBatch builder with application/x-www-form-urlencoded body

func NewCancelOrderRequestWithBody

func NewCancelOrderRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)

NewCancelOrderRequestWithBody generates requests for CancelOrder with any type of body

func NewCancelOrderRequestWithFormdataBody

func NewCancelOrderRequestWithFormdataBody(server string, body CancelOrderFormdataRequestBody) (*http.Request, error)

NewCancelOrderRequestWithFormdataBody calls the generic CancelOrder builder with application/x-www-form-urlencoded body

func NewCancelWithdrawalRequestWithBody

func NewCancelWithdrawalRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)

NewCancelWithdrawalRequestWithBody generates requests for CancelWithdrawal with any type of body

func NewCancelWithdrawalRequestWithFormdataBody

func NewCancelWithdrawalRequestWithFormdataBody(server string, body CancelWithdrawalFormdataRequestBody) (*http.Request, error)

NewCancelWithdrawalRequestWithFormdataBody calls the generic CancelWithdrawal builder with application/x-www-form-urlencoded body

func NewEditOrderRequestWithBody

func NewEditOrderRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)

NewEditOrderRequestWithBody generates requests for EditOrder with any type of body

func NewEditOrderRequestWithFormdataBody

func NewEditOrderRequestWithFormdataBody(server string, body EditOrderFormdataRequestBody) (*http.Request, error)

NewEditOrderRequestWithFormdataBody calls the generic EditOrder builder with application/x-www-form-urlencoded body

func NewExportStatusRequestWithBody

func NewExportStatusRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)

NewExportStatusRequestWithBody generates requests for ExportStatus with any type of body

func NewExportStatusRequestWithFormdataBody

func NewExportStatusRequestWithFormdataBody(server string, body ExportStatusFormdataRequestBody) (*http.Request, error)

NewExportStatusRequestWithFormdataBody calls the generic ExportStatus builder with application/x-www-form-urlencoded body

func NewGetAccountBalanceRequestWithBody

func NewGetAccountBalanceRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)

NewGetAccountBalanceRequestWithBody generates requests for GetAccountBalance with any type of body

func NewGetAccountBalanceRequestWithFormdataBody

func NewGetAccountBalanceRequestWithFormdataBody(server string, body GetAccountBalanceFormdataRequestBody) (*http.Request, error)

NewGetAccountBalanceRequestWithFormdataBody calls the generic GetAccountBalance builder with application/x-www-form-urlencoded body

func NewGetAssetInfoRequest

func NewGetAssetInfoRequest(server string, params *GetAssetInfoParams) (*http.Request, error)

NewGetAssetInfoRequest generates requests for GetAssetInfo

func NewGetClosedOrdersRequestWithBody

func NewGetClosedOrdersRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)

NewGetClosedOrdersRequestWithBody generates requests for GetClosedOrders with any type of body

func NewGetClosedOrdersRequestWithFormdataBody

func NewGetClosedOrdersRequestWithFormdataBody(server string, body GetClosedOrdersFormdataRequestBody) (*http.Request, error)

NewGetClosedOrdersRequestWithFormdataBody calls the generic GetClosedOrders builder with application/x-www-form-urlencoded body

func NewGetDepositAddressesRequestWithBody

func NewGetDepositAddressesRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)

NewGetDepositAddressesRequestWithBody generates requests for GetDepositAddresses with any type of body

func NewGetDepositAddressesRequestWithFormdataBody

func NewGetDepositAddressesRequestWithFormdataBody(server string, body GetDepositAddressesFormdataRequestBody) (*http.Request, error)

NewGetDepositAddressesRequestWithFormdataBody calls the generic GetDepositAddresses builder with application/x-www-form-urlencoded body

func NewGetDepositMethodsRequestWithBody

func NewGetDepositMethodsRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)

NewGetDepositMethodsRequestWithBody generates requests for GetDepositMethods with any type of body

func NewGetDepositMethodsRequestWithFormdataBody

func NewGetDepositMethodsRequestWithFormdataBody(server string, body GetDepositMethodsFormdataRequestBody) (*http.Request, error)

NewGetDepositMethodsRequestWithFormdataBody calls the generic GetDepositMethods builder with application/x-www-form-urlencoded body

func NewGetLedgersInfoRequestWithBody

func NewGetLedgersInfoRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)

NewGetLedgersInfoRequestWithBody generates requests for GetLedgersInfo with any type of body

func NewGetLedgersInfoRequestWithFormdataBody

func NewGetLedgersInfoRequestWithFormdataBody(server string, body GetLedgersInfoFormdataRequestBody) (*http.Request, error)

NewGetLedgersInfoRequestWithFormdataBody calls the generic GetLedgersInfo builder with application/x-www-form-urlencoded body

func NewGetLedgersRequestWithBody

func NewGetLedgersRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)

NewGetLedgersRequestWithBody generates requests for GetLedgers with any type of body

func NewGetLedgersRequestWithFormdataBody

func NewGetLedgersRequestWithFormdataBody(server string, body GetLedgersFormdataRequestBody) (*http.Request, error)

NewGetLedgersRequestWithFormdataBody calls the generic GetLedgers builder with application/x-www-form-urlencoded body

func NewGetOHLCDataRequest

func NewGetOHLCDataRequest(server string, params *GetOHLCDataParams) (*http.Request, error)

NewGetOHLCDataRequest generates requests for GetOHLCData

func NewGetOpenOrdersRequestWithBody

func NewGetOpenOrdersRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)

NewGetOpenOrdersRequestWithBody generates requests for GetOpenOrders with any type of body

func NewGetOpenOrdersRequestWithFormdataBody

func NewGetOpenOrdersRequestWithFormdataBody(server string, body GetOpenOrdersFormdataRequestBody) (*http.Request, error)

NewGetOpenOrdersRequestWithFormdataBody calls the generic GetOpenOrders builder with application/x-www-form-urlencoded body

func NewGetOpenPositionsRequestWithBody

func NewGetOpenPositionsRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)

NewGetOpenPositionsRequestWithBody generates requests for GetOpenPositions with any type of body

func NewGetOpenPositionsRequestWithFormdataBody

func NewGetOpenPositionsRequestWithFormdataBody(server string, body GetOpenPositionsFormdataRequestBody) (*http.Request, error)

NewGetOpenPositionsRequestWithFormdataBody calls the generic GetOpenPositions builder with application/x-www-form-urlencoded body

func NewGetOrderBookRequest

func NewGetOrderBookRequest(server string, params *GetOrderBookParams) (*http.Request, error)

NewGetOrderBookRequest generates requests for GetOrderBook

func NewGetOrdersInfoRequestWithBody

func NewGetOrdersInfoRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)

NewGetOrdersInfoRequestWithBody generates requests for GetOrdersInfo with any type of body

func NewGetOrdersInfoRequestWithFormdataBody

func NewGetOrdersInfoRequestWithFormdataBody(server string, body GetOrdersInfoFormdataRequestBody) (*http.Request, error)

NewGetOrdersInfoRequestWithFormdataBody calls the generic GetOrdersInfo builder with application/x-www-form-urlencoded body

func NewGetRecentSpreadsRequest

func NewGetRecentSpreadsRequest(server string, params *GetRecentSpreadsParams) (*http.Request, error)

NewGetRecentSpreadsRequest generates requests for GetRecentSpreads

func NewGetRecentTradesRequest

func NewGetRecentTradesRequest(server string, params *GetRecentTradesParams) (*http.Request, error)

NewGetRecentTradesRequest generates requests for GetRecentTrades

func NewGetServerTimeRequest

func NewGetServerTimeRequest(server string) (*http.Request, error)

NewGetServerTimeRequest generates requests for GetServerTime

func NewGetStakingAssetInfoRequestWithBody

func NewGetStakingAssetInfoRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)

NewGetStakingAssetInfoRequestWithBody generates requests for GetStakingAssetInfo with any type of body

func NewGetStakingAssetInfoRequestWithFormdataBody

func NewGetStakingAssetInfoRequestWithFormdataBody(server string, body GetStakingAssetInfoFormdataRequestBody) (*http.Request, error)

NewGetStakingAssetInfoRequestWithFormdataBody calls the generic GetStakingAssetInfo builder with application/x-www-form-urlencoded body

func NewGetStakingPendingDepositsRequestWithBody

func NewGetStakingPendingDepositsRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)

NewGetStakingPendingDepositsRequestWithBody generates requests for GetStakingPendingDeposits with any type of body

func NewGetStakingPendingDepositsRequestWithFormdataBody

func NewGetStakingPendingDepositsRequestWithFormdataBody(server string, body GetStakingPendingDepositsFormdataRequestBody) (*http.Request, error)

NewGetStakingPendingDepositsRequestWithFormdataBody calls the generic GetStakingPendingDeposits builder with application/x-www-form-urlencoded body

func NewGetStakingTransactionsRequestWithBody

func NewGetStakingTransactionsRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)

NewGetStakingTransactionsRequestWithBody generates requests for GetStakingTransactions with any type of body

func NewGetStakingTransactionsRequestWithFormdataBody

func NewGetStakingTransactionsRequestWithFormdataBody(server string, body GetStakingTransactionsFormdataRequestBody) (*http.Request, error)

NewGetStakingTransactionsRequestWithFormdataBody calls the generic GetStakingTransactions builder with application/x-www-form-urlencoded body

func NewGetStatusRecentDepositsRequestWithBody

func NewGetStatusRecentDepositsRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)

NewGetStatusRecentDepositsRequestWithBody generates requests for GetStatusRecentDeposits with any type of body

func NewGetStatusRecentDepositsRequestWithFormdataBody

func NewGetStatusRecentDepositsRequestWithFormdataBody(server string, body GetStatusRecentDepositsFormdataRequestBody) (*http.Request, error)

NewGetStatusRecentDepositsRequestWithFormdataBody calls the generic GetStatusRecentDeposits builder with application/x-www-form-urlencoded body

func NewGetStatusRecentWithdrawalsRequestWithBody

func NewGetStatusRecentWithdrawalsRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)

NewGetStatusRecentWithdrawalsRequestWithBody generates requests for GetStatusRecentWithdrawals with any type of body

func NewGetStatusRecentWithdrawalsRequestWithFormdataBody

func NewGetStatusRecentWithdrawalsRequestWithFormdataBody(server string, body GetStatusRecentWithdrawalsFormdataRequestBody) (*http.Request, error)

NewGetStatusRecentWithdrawalsRequestWithFormdataBody calls the generic GetStatusRecentWithdrawals builder with application/x-www-form-urlencoded body

func NewGetSystemStatusRequest

func NewGetSystemStatusRequest(server string) (*http.Request, error)

NewGetSystemStatusRequest generates requests for GetSystemStatus

func NewGetTickerInformationRequest

func NewGetTickerInformationRequest(server string, params *GetTickerInformationParams) (*http.Request, error)

NewGetTickerInformationRequest generates requests for GetTickerInformation

func NewGetTradableAssetPairsRequest

func NewGetTradableAssetPairsRequest(server string, params *GetTradableAssetPairsParams) (*http.Request, error)

NewGetTradableAssetPairsRequest generates requests for GetTradableAssetPairs

func NewGetTradeBalanceRequestWithBody

func NewGetTradeBalanceRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)

NewGetTradeBalanceRequestWithBody generates requests for GetTradeBalance with any type of body

func NewGetTradeBalanceRequestWithFormdataBody

func NewGetTradeBalanceRequestWithFormdataBody(server string, body GetTradeBalanceFormdataRequestBody) (*http.Request, error)

NewGetTradeBalanceRequestWithFormdataBody calls the generic GetTradeBalance builder with application/x-www-form-urlencoded body

func NewGetTradeHistoryRequestWithBody

func NewGetTradeHistoryRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)

NewGetTradeHistoryRequestWithBody generates requests for GetTradeHistory with any type of body

func NewGetTradeHistoryRequestWithFormdataBody

func NewGetTradeHistoryRequestWithFormdataBody(server string, body GetTradeHistoryFormdataRequestBody) (*http.Request, error)

NewGetTradeHistoryRequestWithFormdataBody calls the generic GetTradeHistory builder with application/x-www-form-urlencoded body

func NewGetTradeVolumeRequestWithBody

func NewGetTradeVolumeRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)

NewGetTradeVolumeRequestWithBody generates requests for GetTradeVolume with any type of body

func NewGetTradeVolumeRequestWithFormdataBody

func NewGetTradeVolumeRequestWithFormdataBody(server string, body GetTradeVolumeFormdataRequestBody) (*http.Request, error)

NewGetTradeVolumeRequestWithFormdataBody calls the generic GetTradeVolume builder with application/x-www-form-urlencoded body

func NewGetTradesInfoRequestWithBody

func NewGetTradesInfoRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)

NewGetTradesInfoRequestWithBody generates requests for GetTradesInfo with any type of body

func NewGetTradesInfoRequestWithFormdataBody

func NewGetTradesInfoRequestWithFormdataBody(server string, body GetTradesInfoFormdataRequestBody) (*http.Request, error)

NewGetTradesInfoRequestWithFormdataBody calls the generic GetTradesInfo builder with application/x-www-form-urlencoded body

func NewGetWebsocketsTokenRequestWithBody

func NewGetWebsocketsTokenRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)

NewGetWebsocketsTokenRequestWithBody generates requests for GetWebsocketsToken with any type of body

func NewGetWebsocketsTokenRequestWithFormdataBody

func NewGetWebsocketsTokenRequestWithFormdataBody(server string, body GetWebsocketsTokenFormdataRequestBody) (*http.Request, error)

NewGetWebsocketsTokenRequestWithFormdataBody calls the generic GetWebsocketsToken builder with application/x-www-form-urlencoded body

func NewGetWithdrawalInformationRequestWithBody

func NewGetWithdrawalInformationRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)

NewGetWithdrawalInformationRequestWithBody generates requests for GetWithdrawalInformation with any type of body

func NewGetWithdrawalInformationRequestWithFormdataBody

func NewGetWithdrawalInformationRequestWithFormdataBody(server string, body GetWithdrawalInformationFormdataRequestBody) (*http.Request, error)

NewGetWithdrawalInformationRequestWithFormdataBody calls the generic GetWithdrawalInformation builder with application/x-www-form-urlencoded body

func NewRemoveExportRequestWithBody

func NewRemoveExportRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)

NewRemoveExportRequestWithBody generates requests for RemoveExport with any type of body

func NewRemoveExportRequestWithFormdataBody

func NewRemoveExportRequestWithFormdataBody(server string, body RemoveExportFormdataRequestBody) (*http.Request, error)

NewRemoveExportRequestWithFormdataBody calls the generic RemoveExport builder with application/x-www-form-urlencoded body

func NewRetrieveExportRequestWithBody

func NewRetrieveExportRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)

NewRetrieveExportRequestWithBody generates requests for RetrieveExport with any type of body

func NewRetrieveExportRequestWithFormdataBody

func NewRetrieveExportRequestWithFormdataBody(server string, body RetrieveExportFormdataRequestBody) (*http.Request, error)

NewRetrieveExportRequestWithFormdataBody calls the generic RetrieveExport builder with application/x-www-form-urlencoded body

func NewStakeRequestWithBody

func NewStakeRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)

NewStakeRequestWithBody generates requests for Stake with any type of body

func NewStakeRequestWithFormdataBody

func NewStakeRequestWithFormdataBody(server string, body StakeFormdataRequestBody) (*http.Request, error)

NewStakeRequestWithFormdataBody calls the generic Stake builder with application/x-www-form-urlencoded body

func NewUnstakeRequestWithBody

func NewUnstakeRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)

NewUnstakeRequestWithBody generates requests for Unstake with any type of body

func NewUnstakeRequestWithFormdataBody

func NewUnstakeRequestWithFormdataBody(server string, body UnstakeFormdataRequestBody) (*http.Request, error)

NewUnstakeRequestWithFormdataBody calls the generic Unstake builder with application/x-www-form-urlencoded body

func NewWalletTransferRequestWithBody

func NewWalletTransferRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)

NewWalletTransferRequestWithBody generates requests for WalletTransfer with any type of body

func NewWalletTransferRequestWithFormdataBody

func NewWalletTransferRequestWithFormdataBody(server string, body WalletTransferFormdataRequestBody) (*http.Request, error)

NewWalletTransferRequestWithFormdataBody calls the generic WalletTransfer builder with application/x-www-form-urlencoded body

func NewWithdrawFundsRequestWithBody

func NewWithdrawFundsRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)

NewWithdrawFundsRequestWithBody generates requests for WithdrawFunds with any type of body

func NewWithdrawFundsRequestWithFormdataBody

func NewWithdrawFundsRequestWithFormdataBody(server string, body WithdrawFundsFormdataRequestBody) (*http.Request, error)

NewWithdrawFundsRequestWithFormdataBody calls the generic WithdrawFunds builder with application/x-www-form-urlencoded body

func PathToRawSpec

func PathToRawSpec(pathToFile string) map[string]func() ([]byte, error)

Constructs a synthetic filesystem for resolving external references when loading openapi specifications.

func RegisterHandlers

func RegisterHandlers(router EchoRouter, si ServerInterface)

RegisterHandlers adds each server route to the EchoRouter.

func RegisterHandlersWithBaseURL

func RegisterHandlersWithBaseURL(router EchoRouter, si ServerInterface, baseURL string)

Registers handlers, and prepends BaseURL to the paths, so that the paths can be served under a prefix.

Types

type Aclass

type Aclass = string

Aclass defines model for aclass.

type Add

type Add struct {
	// CloseOrdertype Conditional close order type
	// > Note: [Conditional close orders](https://support.kraken.com/hc/en-us/articles/360038640052-Conditional-Close) are triggered by execution of the primary order in the same quantity and opposite direction, but once triggered are __independent orders__ that may reduce or increase net position
	CloseOrdertype *AddCloseOrdertype `json:"close[ordertype],omitempty"`

	// ClosePrice2 Conditional close order `price2`
	ClosePrice2 *string `json:"close[price2],omitempty"`

	// ClosePrice Conditional close order `price`
	ClosePrice *string `json:"close[price],omitempty"`

	// Deadline RFC3339 timestamp (e.g. 2021-04-01T00:18:45Z) after which the matching engine should reject the new order request, in presence of latency or order queueing: min now() + 2 seconds, max now() + 60 seconds.
	Deadline *string `json:"deadline,omitempty"`

	// Displayvol Order quantity in terms of the base asset. This is used to create an iceberg order, with display_volume as visible quantity, hiding rest of the order. This can only be used with `limit` order type.
	Displayvol *string `json:"displayvol,omitempty"`

	// Expiretm Expiration time
	//   * `0` no expiration (default)
	//   * `+<n>` = expire <n> seconds from now, minimum 5 seconds
	//   * `<n>` = unix timestamp of expiration time
	Expiretm *string `json:"expiretm,omitempty"`

	// Leverage "Amount of leverage desired (default: none)"
	Leverage *string `json:"leverage,omitempty"`

	// Nonce Nonce used in construction of `API-Sign` header
	Nonce Nonce `json:"nonce"`

	// Oflags Comma delimited list of order flags
	//
	//   * `post` post-only order (available when ordertype = limit)
	//   * `fcib` prefer fee in base currency (default if selling)
	//   * `fciq` prefer fee in quote currency (default if buying, mutually exclusive with `fcib`)
	//   * `nompp` disable [market price protection](https://support.kraken.com/hc/en-us/articles/201648183-Market-Price-Protection) for market orders
	//   * `viqc`  order volume expressed in quote currency. This is supported only for market orders.
	Oflags *Oflags `json:"oflags,omitempty"`

	// Ordertype Order type
	Ordertype Ordertype `json:"ordertype"`

	// Pair Asset pair `id` or `altname`
	Pair string `json:"pair"`

	// Price Price:
	//
	// * Limit price for `limit` orders
	// * Trigger price for `stop-loss`, `stop-loss-limit`, `take-profit` and `take-profit-limit` orders
	Price *string `json:"price,omitempty"`

	// Price2 Secondary Price:
	//
	// * Limit price for `stop-loss-limit` and `take-profit-limit` orders
	//
	// >  Note: Either `price` or `price2` can be preceded by `+`, `-`, or `#` to specify the order price as an offset relative to the last traded price. `+` adds the amount to, and `-` subtracts the amount from the last traded price. `#` will either add or subtract the amount to the last traded price, depending on the direction and order type used. Relative prices can be suffixed with a `%` to signify the relative amount as a percentage.
	Price2 *string `json:"price2,omitempty"`

	// Starttm Scheduled start time, can be specified as an absolute timestamp or as a number of seconds in the future:
	//   * `0` now (default)
	//   * `+<n>` schedule start time <n> seconds from now
	//   * `<n>` = unix timestamp of start time
	Starttm *string `json:"starttm,omitempty"`

	// Stptype Self trade prevention behavior definition:
	// * cancel-newest - if self trade is triggered, arriving order will be canceled
	// * cancel-oldest - if self trade is triggered, resting order will be canceled
	// * cancel-both - if self trade is triggered, both arriving and resting orders will be canceled
	Stptype *AddStptype `json:"stptype,omitempty"`

	// Timeinforce Time-in-force of the order to specify how long it should remain in the order book before being cancelled. GTC (Good-'til-cancelled) is default if the parameter is omitted. IOC (immediate-or-cancel) will immediately execute the amount possible and cancel any remaining balance rather than resting in the book. GTD (good-'til-date), if specified, must coincide with a desired `expiretm`.
	Timeinforce *AddTimeinforce `json:"timeinforce,omitempty"`

	// Trigger Price signal used to trigger `stop-loss`, `stop-loss-limit`, `take-profit` and `take-profit-limit` orders
	// >  Note: This `trigger` type will as well be used for associated conditional close orders.
	Trigger *AddTrigger `json:"trigger,omitempty"`

	// Type Order direction (buy/sell)
	Type AddType `json:"type"`

	// Userref User reference id
	//
	// `userref` is an optional user-specified integer id that can be associated with any number of orders. Many clients choose a `userref` corresponding to a unique integer id generated by their systems (e.g. a timestamp). However, because we don't enforce uniqueness on our side, it can also be used to easily group orders by pair, side, strategy, etc. This allows clients to more readily cancel or query information about orders in a particular group, with fewer API calls by using `userref` instead of our `txid`, where supported.
	Userref *int32 `json:"userref,omitempty"`

	// Validate Validate inputs only. Do not submit order.
	Validate *bool `json:"validate,omitempty"`

	// Volume Order quantity in terms of the base asset
	// > Note: Volume can be specified as `0` for closing margin orders to automatically fill the requisite quantity.
	Volume string `json:"volume"`
}

Add defines model for add.

type Add2

type Add2 struct {
	Error  *Error `json:"error,omitempty"`
	Result *struct {
		// Descr Order description info
		Descr *struct {
			// Close Conditional close order description, if applicable
			Close *string `json:"close,omitempty"`

			// Order Order description
			Order *string `json:"order,omitempty"`
		} `json:"descr,omitempty"`

		// Txid Transaction IDs for order
		// <br><sup><sub>(if order was added successfully)</sup></sub>
		Txid *[]string `json:"txid,omitempty"`
	} `json:"result,omitempty"`
}

Add2 defines model for add-2.

type AddCloseOrdertype

type AddCloseOrdertype string

AddCloseOrdertype Conditional close order type > Note: [Conditional close orders](https://support.kraken.com/hc/en-us/articles/360038640052-Conditional-Close) are triggered by execution of the primary order in the same quantity and opposite direction, but once triggered are __independent orders__ that may reduce or increase net position

const (
	AddCloseOrdertypeLimit           AddCloseOrdertype = "limit"
	AddCloseOrdertypeStopLoss        AddCloseOrdertype = "stop-loss"
	AddCloseOrdertypeStopLossLimit   AddCloseOrdertype = "stop-loss-limit"
	AddCloseOrdertypeTakeProfit      AddCloseOrdertype = "take-profit"
	AddCloseOrdertypeTakeProfitLimit AddCloseOrdertype = "take-profit-limit"
)

Defines values for AddCloseOrdertype.

type AddExportFormdataBody

type AddExportFormdataBody struct {
	// Description Description for the export
	Description string `json:"description"`

	// Endtm UNIX timestamp for report end time (default now)
	Endtm *int `json:"endtm,omitempty"`

	// Fields Comma-delimited list of fields to include
	//
	// * `trades`: ordertxid, time, ordertype, price, cost, fee, vol, margin, misc, ledgers
	// * `ledgers`: refid, time, type, aclass, asset, amount, fee, balance
	Fields *string `json:"fields,omitempty"`

	// Format File format to export
	Format *AddExportFormdataBodyFormat `json:"format,omitempty"`

	// Nonce Nonce used in construction of `API-Sign` header
	Nonce Nonce `json:"nonce"`

	// Report Type of data to export
	Report AddExportFormdataBodyReport `json:"report"`

	// Starttm UNIX timestamp for report start time (default 1st of the current month)
	Starttm *int `json:"starttm,omitempty"`
}

AddExportFormdataBody defines parameters for AddExport.

type AddExportFormdataBodyFormat

type AddExportFormdataBodyFormat string

AddExportFormdataBodyFormat defines parameters for AddExport.

const (
	CSV AddExportFormdataBodyFormat = "CSV"
	TSV AddExportFormdataBodyFormat = "TSV"
)

Defines values for AddExportFormdataBodyFormat.

type AddExportFormdataBodyReport

type AddExportFormdataBodyReport string

AddExportFormdataBodyReport defines parameters for AddExport.

const (
	AddExportFormdataBodyReportLedgers AddExportFormdataBodyReport = "ledgers"
	AddExportFormdataBodyReportTrades  AddExportFormdataBodyReport = "trades"
)

Defines values for AddExportFormdataBodyReport.

type AddExportFormdataRequestBody

type AddExportFormdataRequestBody AddExportFormdataBody

AddExportFormdataRequestBody defines body for AddExport for application/x-www-form-urlencoded ContentType.

type AddExportResponse

type AddExportResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *struct {
		Error  *Error `json:"error,omitempty"`
		Result *struct {
			// Id Report ID
			Id *string `json:"id,omitempty"`
		} `json:"result,omitempty"`
	}
}

func ParseAddExportResponse

func ParseAddExportResponse(rsp *http.Response) (*AddExportResponse, error)

ParseAddExportResponse parses an HTTP response from a AddExportWithResponse call

func (AddExportResponse) Status

func (r AddExportResponse) Status() string

Status returns HTTPResponse.Status

func (AddExportResponse) StatusCode

func (r AddExportResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type AddOrderBatchFormdataRequestBody

type AddOrderBatchFormdataRequestBody = Batchadd

AddOrderBatchFormdataRequestBody defines body for AddOrderBatch for application/x-www-form-urlencoded ContentType.

type AddOrderBatchResponse

type AddOrderBatchResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *Batchadd2
}

func ParseAddOrderBatchResponse

func ParseAddOrderBatchResponse(rsp *http.Response) (*AddOrderBatchResponse, error)

ParseAddOrderBatchResponse parses an HTTP response from a AddOrderBatchWithResponse call

func (AddOrderBatchResponse) Status

func (r AddOrderBatchResponse) Status() string

Status returns HTTPResponse.Status

func (AddOrderBatchResponse) StatusCode

func (r AddOrderBatchResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type AddOrderFormdataRequestBody

type AddOrderFormdataRequestBody = Add

AddOrderFormdataRequestBody defines body for AddOrder for application/x-www-form-urlencoded ContentType.

type AddOrderResponse

type AddOrderResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *Add2
}

func ParseAddOrderResponse

func ParseAddOrderResponse(rsp *http.Response) (*AddOrderResponse, error)

ParseAddOrderResponse parses an HTTP response from a AddOrderWithResponse call

func (AddOrderResponse) Status

func (r AddOrderResponse) Status() string

Status returns HTTPResponse.Status

func (AddOrderResponse) StatusCode

func (r AddOrderResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type AddStptype

type AddStptype string

AddStptype Self trade prevention behavior definition: * cancel-newest - if self trade is triggered, arriving order will be canceled * cancel-oldest - if self trade is triggered, resting order will be canceled * cancel-both - if self trade is triggered, both arriving and resting orders will be canceled

const (
	AddStptypeCancelBoth   AddStptype = "cancel-both"
	AddStptypeCancelNewest AddStptype = "cancel-newest"
	AddStptypeCancelOldest AddStptype = "cancel-oldest"
)

Defines values for AddStptype.

type AddTimeinforce

type AddTimeinforce string

AddTimeinforce Time-in-force of the order to specify how long it should remain in the order book before being cancelled. GTC (Good-'til-cancelled) is default if the parameter is omitted. IOC (immediate-or-cancel) will immediately execute the amount possible and cancel any remaining balance rather than resting in the book. GTD (good-'til-date), if specified, must coincide with a desired `expiretm`.

const (
	AddTimeinforceGTC AddTimeinforce = "GTC"
	AddTimeinforceGTD AddTimeinforce = "GTD"
	AddTimeinforceIOC AddTimeinforce = "IOC"
)

Defines values for AddTimeinforce.

type AddTrigger

type AddTrigger string

AddTrigger Price signal used to trigger `stop-loss`, `stop-loss-limit`, `take-profit` and `take-profit-limit` orders > Note: This `trigger` type will as well be used for associated conditional close orders.

const (
	AddTriggerIndex AddTrigger = "index"
	AddTriggerLast  AddTrigger = "last"
)

Defines values for AddTrigger.

type AddType

type AddType string

AddType Order direction (buy/sell)

const (
	AddTypeBuy  AddType = "buy"
	AddTypeSell AddType = "sell"
)

Defines values for AddType.

type Address

type Address struct {
	// Address Deposit Address
	Address *string `json:"address,omitempty"`

	// Expiretm Expiration time in unix timestamp, or 0 if not expiring
	Expiretm *string `json:"expiretm,omitempty"`

	// New Whether or not address has ever been used
	New *bool `json:"new,omitempty"`
}

Address Deposit Address

type Addresses

type Addresses struct {
	// Asset Asset being deposited
	Asset string `json:"asset"`

	// Method Name of the deposit method
	Method string `json:"method"`

	// New Whether or not to generate a new address
	New *bool `json:"new,omitempty"`

	// Nonce Nonce used in construction of `API-Sign` header
	Nonce Nonce `json:"nonce"`
}

Addresses defines model for addresses.

type Addresses2

type Addresses2 struct {
	Error  *Error     `json:"error,omitempty"`
	Result *[]Address `json:"result,omitempty"`
}

Addresses2 defines model for addresses-2.

type Asset

type Asset = string

Asset defines model for asset.

type AssetRewardsType

type AssetRewardsType string

AssetRewardsType Reward type

const (
	Percentage AssetRewardsType = "percentage"
)

Defines values for AssetRewardsType.

type Balance

type Balance map[string]string

Balance Account Balance

type Balance2

type Balance2 struct {
	Error *Error `json:"error,omitempty"`

	// Result Account Balance
	Result *Balance `json:"result,omitempty"`
}

Balance2 defines model for balance-2.

type Balance3

type Balance3 struct {
	// C Cost basis of open positions
	C *string `json:"c,omitempty"`

	// E Equity: `trade balance + unrealized net profit/loss`
	E *string `json:"e,omitempty"`

	// Eb Equivalent balance (combined balance of all currencies)
	Eb *string `json:"eb,omitempty"`

	// M Margin amount of open positions
	M *string `json:"m,omitempty"`

	// Mf Free margin: `Equity - initial margin (maximum margin available to open new positions)`
	Mf *string `json:"mf,omitempty"`

	// Ml Margin level: `(equity / initial margin) * 100`
	Ml *string `json:"ml,omitempty"`

	// N Unrealized net profit/loss of open positions
	N *string `json:"n,omitempty"`

	// Tb Trade balance (combined balance of all equity currencies)
	Tb *string `json:"tb,omitempty"`

	// Uv Unexecuted value: Value of unfilled and partially filled orders
	Uv *string `json:"uv,omitempty"`

	// V Current floating valuation of open positions
	V *string `json:"v,omitempty"`
}

Balance3 Account Balance

type Balance4

type Balance4 struct {
	Error *Error `json:"error,omitempty"`

	// Result Account Balance
	Result *Balance3 `json:"result,omitempty"`
}

Balance4 defines model for balance-4.

type Batchadd

type Batchadd struct {
	// Deadline RFC3339 timestamp (e.g. 2021-04-01T00:18:45Z) after which the matching engine should reject the new order request, in presence of latency or order queueing. min now() + 2 seconds, max now() + 60 seconds.
	Deadline *string `json:"deadline,omitempty"`

	// Nonce Nonce used in construction of `API-Sign` header
	Nonce  Nonce `json:"nonce"`
	Orders []struct {
		// Displayvol Order quantity in terms of the base asset used for creating icerber orders
		Displayvol *string `json:"displayvol,omitempty"`

		// Expiretm Expiration time:
		//  * `0` no expiration (default)
		//  * `+<n>` = expire <n> seconds from now, minimum 5 seconds
		//  * `<n>` = unix timestamp of expiration time
		Expiretm *string `json:"expiretm,omitempty"`

		// Leverage Amount of leverage desired (default: none)
		Leverage *string `json:"leverage,omitempty"`

		// Oflags Comma delimited list of order flags
		//
		//   * `post` post-only order (available when ordertype = limit)
		//   * `fcib` prefer fee in base currency (default if selling)
		//   * `fciq` prefer fee in quote currency (default if buying, mutually exclusive with `fcib`)
		//   * `nompp` disable [market price protection](https://support.kraken.com/hc/en-us/articles/201648183-Market-Price-Protection) for market orders
		//   * `viqc`  order volume expressed in quote currency. This is supported only for market orders.
		Oflags *Oflags `json:"oflags,omitempty"`

		// Ordertype Order type
		Ordertype *Ordertype `json:"ordertype,omitempty"`

		// Price Price:
		// * Limit price for `limit` orders
		// * Trigger price for `stop-loss`, `stop-loss-limit`, `take-profit` and `take-profit-limit` orders
		Price *string `json:"price,omitempty"`

		// Price2 Secondary Price:
		// * Limit price for `stop-loss-limit` and `take-profit-limit` orders
		//
		// >  Note: Either `price` or `price2` can be preceded by `+`, `-`, or `#` to specify the order price as an offset relative to the last traded price. `+` adds the amount to, and `-` subtracts the amount from the last traded price. `#` will either add or subtract the amount to the last traded price, depending on the direction and order type used. Relative prices can be suffixed with a `%` to signify the relative amount as a percentage.
		Price2 *string `json:"price2,omitempty"`

		// Starttm Scheduled start time, can be specified as an absolute timestamp or as a number of seconds in the future:
		//  * `0` now (default)
		//  * `+<n>` schedule start time <n> seconds from now
		//  * `<n>` = unix timestamp of start time
		Starttm *string `json:"starttm,omitempty"`

		// Stptype Self trade prevention behaviour definition:
		// * cancel_newest - if self trade is triggered, arriving order will be canceled
		// * cancel_oldest - if self trade is triggered, resting order will be canceled
		// * cancel_both - if self trade is triggered, both arriving and resting orders will be canceled
		Stptype *BatchaddOrdersStptype `json:"stptype,omitempty"`

		// Timeinforce Time-in-force of the order to specify how long it should remain in the order book before being cancelled. GTC (Good-'til-cancelled) is default if the parameter is omitted. IOC (immediate-or-cancel) will immediately execute the amount possible and cancel any remaining balance rather than resting in the book. GTD (good-'til-date), if specified, must coincide with a desired `expiretm`.
		Timeinforce *BatchaddOrdersTimeinforce `json:"timeinforce,omitempty"`

		// Trigger Price signal used to trigger `stop-loss`, `stop-loss-limit`, `take-profit` and `take-profit-limit` orders
		// >  Note: This `trigger` type will as well be used for associated conditional close orders.
		Trigger *BatchaddOrdersTrigger `json:"trigger,omitempty"`

		// Userref User reference id
		// `userref` is an optional user-specified integer id that can be associated with any number of orders. Many clients choose a `userref` corresponding to a unique integer id generated by their systems (e.g. a timestamp). However, because we don't enforce uniqueness on our side, it can also be used to easily group orders by pair, side, strategy, etc. This allows clients to more readily cancel or query information about orders in a particular group, with fewer API calls by using `userref` instead of our `txid`, where supported.
		Userref *int32 `json:"userref,omitempty"`

		// Volume Order quantity in terms of the base asset
		// > Note: Volume can be specified as `0` for closing margin orders to automatically fill the requisite quantity.
		Volume *string `json:"volume,omitempty"`
	} `json:"orders"`

	// Pair Asset pair `id` or `altname`
	Pair string `json:"pair"`

	// Validate Validate inputs only. Do not submit order.
	Validate *bool `json:"validate,omitempty"`
}

Batchadd defines model for batchadd.

type Batchadd2

type Batchadd2 struct {
	Error  *[]Error `json:"error,omitempty"`
	Result *struct {
		Orders *[]struct {
			// Descr Order description info
			Descr *string `json:"descr,omitempty"`

			// Error Error description from individual order processing
			Error *string `json:"error,omitempty"`

			// Txid Transaction ID for order
			// <br><sup><sub>(if order was added successfully)</sup></sub>
			Txid *string `json:"txid,omitempty"`
		} `json:"orders,omitempty"`
	} `json:"result,omitempty"`
}

Batchadd2 defines model for batchadd-2.

type BatchaddOrdersStptype

type BatchaddOrdersStptype string

BatchaddOrdersStptype Self trade prevention behaviour definition: * cancel_newest - if self trade is triggered, arriving order will be canceled * cancel_oldest - if self trade is triggered, resting order will be canceled * cancel_both - if self trade is triggered, both arriving and resting orders will be canceled

const (
	BatchaddOrdersStptypeCancelBoth   BatchaddOrdersStptype = "cancel_both"
	BatchaddOrdersStptypeCancelNewest BatchaddOrdersStptype = "cancel_newest"
	BatchaddOrdersStptypeCancelOldest BatchaddOrdersStptype = "cancel_oldest"
)

Defines values for BatchaddOrdersStptype.

type BatchaddOrdersTimeinforce

type BatchaddOrdersTimeinforce string

BatchaddOrdersTimeinforce Time-in-force of the order to specify how long it should remain in the order book before being cancelled. GTC (Good-'til-cancelled) is default if the parameter is omitted. IOC (immediate-or-cancel) will immediately execute the amount possible and cancel any remaining balance rather than resting in the book. GTD (good-'til-date), if specified, must coincide with a desired `expiretm`.

const (
	BatchaddOrdersTimeinforceGTC BatchaddOrdersTimeinforce = "GTC"
	BatchaddOrdersTimeinforceGTD BatchaddOrdersTimeinforce = "GTD"
	BatchaddOrdersTimeinforceIOC BatchaddOrdersTimeinforce = "IOC"
)

Defines values for BatchaddOrdersTimeinforce.

type BatchaddOrdersTrigger

type BatchaddOrdersTrigger string

BatchaddOrdersTrigger Price signal used to trigger `stop-loss`, `stop-loss-limit`, `take-profit` and `take-profit-limit` orders > Note: This `trigger` type will as well be used for associated conditional close orders.

const (
	BatchaddOrdersTriggerIndex BatchaddOrdersTrigger = "index"
	BatchaddOrdersTriggerLast  BatchaddOrdersTrigger = "last"
)

Defines values for BatchaddOrdersTrigger.

type Batchcancel

type Batchcancel struct {
	// Nonce Nonce used in construction of `API-Sign` header
	Nonce  Nonce `json:"nonce"`
	Orders []struct {
		// Txid Open orders transaction ID (txid) or user reference (userref)
		Txid *Batchcancel_Orders_Txid `json:"txid,omitempty"`
	} `json:"orders"`
}

Batchcancel defines model for batchcancel.

type Batchcancel2

type Batchcancel2 struct {
	Error  *[]Error `json:"error,omitempty"`
	Result *struct {
		// Count Number of orders cancelled.
		Count *int32 `json:"count,omitempty"`
	} `json:"result,omitempty"`
}

Batchcancel2 defines model for batchcancel-2.

type BatchcancelOrdersTxid0

type BatchcancelOrdersTxid0 = string

BatchcancelOrdersTxid0 defines model for .

type BatchcancelOrdersTxid1

type BatchcancelOrdersTxid1 = int

BatchcancelOrdersTxid1 defines model for .

type Batchcancel_Orders_Txid

type Batchcancel_Orders_Txid struct {
	// contains filtered or unexported fields
}

Batchcancel_Orders_Txid Open orders transaction ID (txid) or user reference (userref)

func (Batchcancel_Orders_Txid) AsBatchcancelOrdersTxid0

func (t Batchcancel_Orders_Txid) AsBatchcancelOrdersTxid0() (BatchcancelOrdersTxid0, error)

AsBatchcancelOrdersTxid0 returns the union data inside the Batchcancel_Orders_Txid as a BatchcancelOrdersTxid0

func (Batchcancel_Orders_Txid) AsBatchcancelOrdersTxid1

func (t Batchcancel_Orders_Txid) AsBatchcancelOrdersTxid1() (BatchcancelOrdersTxid1, error)

AsBatchcancelOrdersTxid1 returns the union data inside the Batchcancel_Orders_Txid as a BatchcancelOrdersTxid1

func (*Batchcancel_Orders_Txid) FromBatchcancelOrdersTxid0

func (t *Batchcancel_Orders_Txid) FromBatchcancelOrdersTxid0(v BatchcancelOrdersTxid0) error

FromBatchcancelOrdersTxid0 overwrites any union data inside the Batchcancel_Orders_Txid as the provided BatchcancelOrdersTxid0

func (*Batchcancel_Orders_Txid) FromBatchcancelOrdersTxid1

func (t *Batchcancel_Orders_Txid) FromBatchcancelOrdersTxid1(v BatchcancelOrdersTxid1) error

FromBatchcancelOrdersTxid1 overwrites any union data inside the Batchcancel_Orders_Txid as the provided BatchcancelOrdersTxid1

func (Batchcancel_Orders_Txid) MarshalJSON

func (t Batchcancel_Orders_Txid) MarshalJSON() ([]byte, error)

func (*Batchcancel_Orders_Txid) MergeBatchcancelOrdersTxid0

func (t *Batchcancel_Orders_Txid) MergeBatchcancelOrdersTxid0(v BatchcancelOrdersTxid0) error

MergeBatchcancelOrdersTxid0 performs a merge with any union data inside the Batchcancel_Orders_Txid, using the provided BatchcancelOrdersTxid0

func (*Batchcancel_Orders_Txid) MergeBatchcancelOrdersTxid1

func (t *Batchcancel_Orders_Txid) MergeBatchcancelOrdersTxid1(v BatchcancelOrdersTxid1) error

MergeBatchcancelOrdersTxid1 performs a merge with any union data inside the Batchcancel_Orders_Txid, using the provided BatchcancelOrdersTxid1

func (*Batchcancel_Orders_Txid) UnmarshalJSON

func (t *Batchcancel_Orders_Txid) UnmarshalJSON(b []byte) error

type Cancel

type Cancel struct {
	// Nonce Nonce used in construction of `API-Sign` header
	Nonce Nonce `json:"nonce"`

	// Txid Open order transaction ID (txid) or user reference (userref)
	Txid Cancel_Txid `json:"txid"`
}

Cancel defines model for cancel.

type Cancel2

type Cancel2 struct {
	Error  *[]Error `json:"error,omitempty"`
	Result *struct {
		// Count Number of orders cancelled.
		Count *int32 `json:"count,omitempty"`

		// Pending if set, order(s) is/are pending cancellation
		Pending *bool `json:"pending,omitempty"`
	} `json:"result,omitempty"`
}

Cancel2 defines model for cancel-2.

type Cancel3

type Cancel3 struct {
	// Asset Asset being withdrawn
	Asset string `json:"asset"`

	// Nonce Nonce used in construction of `API-Sign` header
	Nonce Nonce `json:"nonce"`

	// Refid Withdrawal reference ID
	Refid string `json:"refid"`
}

Cancel3 defines model for cancel-3.

type CancelAllOrdersAfterFormdataBody

type CancelAllOrdersAfterFormdataBody struct {
	// Nonce Nonce used in construction of `API-Sign` header
	Nonce Nonce `json:"nonce"`

	// Timeout Duration (in seconds) to set/extend the timer by
	Timeout int `json:"timeout"`
}

CancelAllOrdersAfterFormdataBody defines parameters for CancelAllOrdersAfter.

type CancelAllOrdersAfterFormdataRequestBody

type CancelAllOrdersAfterFormdataRequestBody CancelAllOrdersAfterFormdataBody

CancelAllOrdersAfterFormdataRequestBody defines body for CancelAllOrdersAfter for application/x-www-form-urlencoded ContentType.

type CancelAllOrdersAfterResponse

type CancelAllOrdersAfterResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *struct {
		Error  *Error `json:"error,omitempty"`
		Result *struct {
			// CurrentTime Timestamp (RFC3339 format) at which the request was received
			CurrentTime *string `json:"currentTime,omitempty"`

			// TriggerTime Timestamp (RFC3339 format) after which all orders will be cancelled, unless the timer is extended or disabled
			TriggerTime *string `json:"triggerTime,omitempty"`
		} `json:"result,omitempty"`
	}
}

func ParseCancelAllOrdersAfterResponse

func ParseCancelAllOrdersAfterResponse(rsp *http.Response) (*CancelAllOrdersAfterResponse, error)

ParseCancelAllOrdersAfterResponse parses an HTTP response from a CancelAllOrdersAfterWithResponse call

func (CancelAllOrdersAfterResponse) Status

Status returns HTTPResponse.Status

func (CancelAllOrdersAfterResponse) StatusCode

func (r CancelAllOrdersAfterResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type CancelAllOrdersFormdataBody

type CancelAllOrdersFormdataBody struct {
	// Nonce Nonce used in construction of `API-Sign` header
	Nonce Nonce `json:"nonce"`
}

CancelAllOrdersFormdataBody defines parameters for CancelAllOrders.

type CancelAllOrdersFormdataRequestBody

type CancelAllOrdersFormdataRequestBody CancelAllOrdersFormdataBody

CancelAllOrdersFormdataRequestBody defines body for CancelAllOrders for application/x-www-form-urlencoded ContentType.

type CancelAllOrdersResponse

type CancelAllOrdersResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *struct {
		Error  *Error `json:"error,omitempty"`
		Result *struct {
			// Count Number of orders that were cancelled
			Count *int `json:"count,omitempty"`
		} `json:"result,omitempty"`
	}
}

func ParseCancelAllOrdersResponse

func ParseCancelAllOrdersResponse(rsp *http.Response) (*CancelAllOrdersResponse, error)

ParseCancelAllOrdersResponse parses an HTTP response from a CancelAllOrdersWithResponse call

func (CancelAllOrdersResponse) Status

func (r CancelAllOrdersResponse) Status() string

Status returns HTTPResponse.Status

func (CancelAllOrdersResponse) StatusCode

func (r CancelAllOrdersResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type CancelOrderBatchFormdataRequestBody

type CancelOrderBatchFormdataRequestBody = Batchcancel

CancelOrderBatchFormdataRequestBody defines body for CancelOrderBatch for application/x-www-form-urlencoded ContentType.

type CancelOrderBatchResponse

type CancelOrderBatchResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *Batchcancel2
}

func ParseCancelOrderBatchResponse

func ParseCancelOrderBatchResponse(rsp *http.Response) (*CancelOrderBatchResponse, error)

ParseCancelOrderBatchResponse parses an HTTP response from a CancelOrderBatchWithResponse call

func (CancelOrderBatchResponse) Status

func (r CancelOrderBatchResponse) Status() string

Status returns HTTPResponse.Status

func (CancelOrderBatchResponse) StatusCode

func (r CancelOrderBatchResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type CancelOrderFormdataRequestBody

type CancelOrderFormdataRequestBody = Cancel

CancelOrderFormdataRequestBody defines body for CancelOrder for application/x-www-form-urlencoded ContentType.

type CancelOrderResponse

type CancelOrderResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *Cancel2
}

func ParseCancelOrderResponse

func ParseCancelOrderResponse(rsp *http.Response) (*CancelOrderResponse, error)

ParseCancelOrderResponse parses an HTTP response from a CancelOrderWithResponse call

func (CancelOrderResponse) Status

func (r CancelOrderResponse) Status() string

Status returns HTTPResponse.Status

func (CancelOrderResponse) StatusCode

func (r CancelOrderResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type CancelTxid0

type CancelTxid0 = string

CancelTxid0 defines model for .

type CancelTxid1

type CancelTxid1 = int

CancelTxid1 defines model for .

type CancelWithdrawalFormdataRequestBody

type CancelWithdrawalFormdataRequestBody = Cancel3

CancelWithdrawalFormdataRequestBody defines body for CancelWithdrawal for application/x-www-form-urlencoded ContentType.

type CancelWithdrawalResponse

type CancelWithdrawalResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *struct {
		Error *Error `json:"error,omitempty"`

		// Result Whether cancellation was successful or not.
		Result *bool `json:"result,omitempty"`
	}
}

func ParseCancelWithdrawalResponse

func ParseCancelWithdrawalResponse(rsp *http.Response) (*CancelWithdrawalResponse, error)

ParseCancelWithdrawalResponse parses an HTTP response from a CancelWithdrawalWithResponse call

func (CancelWithdrawalResponse) Status

func (r CancelWithdrawalResponse) Status() string

Status returns HTTPResponse.Status

func (CancelWithdrawalResponse) StatusCode

func (r CancelWithdrawalResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type Cancel_Txid

type Cancel_Txid struct {
	// contains filtered or unexported fields
}

Cancel_Txid Open order transaction ID (txid) or user reference (userref)

func (Cancel_Txid) AsCancelTxid0

func (t Cancel_Txid) AsCancelTxid0() (CancelTxid0, error)

AsCancelTxid0 returns the union data inside the Cancel_Txid as a CancelTxid0

func (Cancel_Txid) AsCancelTxid1

func (t Cancel_Txid) AsCancelTxid1() (CancelTxid1, error)

AsCancelTxid1 returns the union data inside the Cancel_Txid as a CancelTxid1

func (*Cancel_Txid) FromCancelTxid0

func (t *Cancel_Txid) FromCancelTxid0(v CancelTxid0) error

FromCancelTxid0 overwrites any union data inside the Cancel_Txid as the provided CancelTxid0

func (*Cancel_Txid) FromCancelTxid1

func (t *Cancel_Txid) FromCancelTxid1(v CancelTxid1) error

FromCancelTxid1 overwrites any union data inside the Cancel_Txid as the provided CancelTxid1

func (Cancel_Txid) MarshalJSON

func (t Cancel_Txid) MarshalJSON() ([]byte, error)

func (*Cancel_Txid) MergeCancelTxid0

func (t *Cancel_Txid) MergeCancelTxid0(v CancelTxid0) error

MergeCancelTxid0 performs a merge with any union data inside the Cancel_Txid, using the provided CancelTxid0

func (*Cancel_Txid) MergeCancelTxid1

func (t *Cancel_Txid) MergeCancelTxid1(v CancelTxid1) error

MergeCancelTxid1 performs a merge with any union data inside the Cancel_Txid, using the provided CancelTxid1

func (*Cancel_Txid) UnmarshalJSON

func (t *Cancel_Txid) UnmarshalJSON(b []byte) error

type Client

type Client struct {
	// The endpoint of the server conforming to this interface, with scheme,
	// https://api.deepmap.com for example. This can contain a path relative
	// to the server, such as https://api.deepmap.com/dev-test, and all the
	// paths in the swagger spec will be appended to the server.
	Server string

	// Doer for performing requests, typically a *http.Client with any
	// customized settings, such as certificate chains.
	Client HttpRequestDoer

	// A list of callbacks for modifying requests which are generated before sending over
	// the network.
	RequestEditors []RequestEditorFn
}

Client which conforms to the OpenAPI3 specification for this service.

func NewClient

func NewClient(server string, opts ...ClientOption) (*Client, error)

Creates a new Client, with reasonable defaults

func (*Client) AddExportWithBody

func (c *Client) AddExportWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) AddExportWithFormdataBody

func (c *Client) AddExportWithFormdataBody(ctx context.Context, body AddExportFormdataRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) AddOrderBatchWithBody

func (c *Client) AddOrderBatchWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) AddOrderBatchWithFormdataBody

func (c *Client) AddOrderBatchWithFormdataBody(ctx context.Context, body AddOrderBatchFormdataRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) AddOrderWithBody

func (c *Client) AddOrderWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) AddOrderWithFormdataBody

func (c *Client) AddOrderWithFormdataBody(ctx context.Context, body AddOrderFormdataRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) CancelAllOrdersAfterWithBody

func (c *Client) CancelAllOrdersAfterWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) CancelAllOrdersAfterWithFormdataBody

func (c *Client) CancelAllOrdersAfterWithFormdataBody(ctx context.Context, body CancelAllOrdersAfterFormdataRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) CancelAllOrdersWithBody

func (c *Client) CancelAllOrdersWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) CancelAllOrdersWithFormdataBody

func (c *Client) CancelAllOrdersWithFormdataBody(ctx context.Context, body CancelAllOrdersFormdataRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) CancelOrderBatchWithBody

func (c *Client) CancelOrderBatchWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) CancelOrderBatchWithFormdataBody

func (c *Client) CancelOrderBatchWithFormdataBody(ctx context.Context, body CancelOrderBatchFormdataRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) CancelOrderWithBody

func (c *Client) CancelOrderWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) CancelOrderWithFormdataBody

func (c *Client) CancelOrderWithFormdataBody(ctx context.Context, body CancelOrderFormdataRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) CancelWithdrawalWithBody

func (c *Client) CancelWithdrawalWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) CancelWithdrawalWithFormdataBody

func (c *Client) CancelWithdrawalWithFormdataBody(ctx context.Context, body CancelWithdrawalFormdataRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) EditOrderWithBody

func (c *Client) EditOrderWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) EditOrderWithFormdataBody

func (c *Client) EditOrderWithFormdataBody(ctx context.Context, body EditOrderFormdataRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) ExportStatusWithBody

func (c *Client) ExportStatusWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) ExportStatusWithFormdataBody

func (c *Client) ExportStatusWithFormdataBody(ctx context.Context, body ExportStatusFormdataRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetAccountBalanceWithBody

func (c *Client) GetAccountBalanceWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetAccountBalanceWithFormdataBody

func (c *Client) GetAccountBalanceWithFormdataBody(ctx context.Context, body GetAccountBalanceFormdataRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetAssetInfo

func (c *Client) GetAssetInfo(ctx context.Context, params *GetAssetInfoParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetClosedOrdersWithBody

func (c *Client) GetClosedOrdersWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetClosedOrdersWithFormdataBody

func (c *Client) GetClosedOrdersWithFormdataBody(ctx context.Context, body GetClosedOrdersFormdataRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetDepositAddressesWithBody

func (c *Client) GetDepositAddressesWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetDepositAddressesWithFormdataBody

func (c *Client) GetDepositAddressesWithFormdataBody(ctx context.Context, body GetDepositAddressesFormdataRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetDepositMethodsWithBody

func (c *Client) GetDepositMethodsWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetDepositMethodsWithFormdataBody

func (c *Client) GetDepositMethodsWithFormdataBody(ctx context.Context, body GetDepositMethodsFormdataRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetLedgersInfoWithBody

func (c *Client) GetLedgersInfoWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetLedgersInfoWithFormdataBody

func (c *Client) GetLedgersInfoWithFormdataBody(ctx context.Context, body GetLedgersInfoFormdataRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetLedgersWithBody

func (c *Client) GetLedgersWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetLedgersWithFormdataBody

func (c *Client) GetLedgersWithFormdataBody(ctx context.Context, body GetLedgersFormdataRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetOHLCData

func (c *Client) GetOHLCData(ctx context.Context, params *GetOHLCDataParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetOpenOrdersWithBody

func (c *Client) GetOpenOrdersWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetOpenOrdersWithFormdataBody

func (c *Client) GetOpenOrdersWithFormdataBody(ctx context.Context, body GetOpenOrdersFormdataRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetOpenPositionsWithBody

func (c *Client) GetOpenPositionsWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetOpenPositionsWithFormdataBody

func (c *Client) GetOpenPositionsWithFormdataBody(ctx context.Context, body GetOpenPositionsFormdataRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetOrderBook

func (c *Client) GetOrderBook(ctx context.Context, params *GetOrderBookParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetOrdersInfoWithBody

func (c *Client) GetOrdersInfoWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetOrdersInfoWithFormdataBody

func (c *Client) GetOrdersInfoWithFormdataBody(ctx context.Context, body GetOrdersInfoFormdataRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetRecentSpreads

func (c *Client) GetRecentSpreads(ctx context.Context, params *GetRecentSpreadsParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetRecentTrades

func (c *Client) GetRecentTrades(ctx context.Context, params *GetRecentTradesParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetServerTime

func (c *Client) GetServerTime(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetStakingAssetInfoWithBody

func (c *Client) GetStakingAssetInfoWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetStakingAssetInfoWithFormdataBody

func (c *Client) GetStakingAssetInfoWithFormdataBody(ctx context.Context, body GetStakingAssetInfoFormdataRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetStakingPendingDepositsWithBody

func (c *Client) GetStakingPendingDepositsWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetStakingPendingDepositsWithFormdataBody

func (c *Client) GetStakingPendingDepositsWithFormdataBody(ctx context.Context, body GetStakingPendingDepositsFormdataRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetStakingTransactionsWithBody

func (c *Client) GetStakingTransactionsWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetStakingTransactionsWithFormdataBody

func (c *Client) GetStakingTransactionsWithFormdataBody(ctx context.Context, body GetStakingTransactionsFormdataRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetStatusRecentDepositsWithBody

func (c *Client) GetStatusRecentDepositsWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetStatusRecentDepositsWithFormdataBody

func (c *Client) GetStatusRecentDepositsWithFormdataBody(ctx context.Context, body GetStatusRecentDepositsFormdataRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetStatusRecentWithdrawalsWithBody

func (c *Client) GetStatusRecentWithdrawalsWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetStatusRecentWithdrawalsWithFormdataBody

func (c *Client) GetStatusRecentWithdrawalsWithFormdataBody(ctx context.Context, body GetStatusRecentWithdrawalsFormdataRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetSystemStatus

func (c *Client) GetSystemStatus(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetTickerInformation

func (c *Client) GetTickerInformation(ctx context.Context, params *GetTickerInformationParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetTradableAssetPairs

func (c *Client) GetTradableAssetPairs(ctx context.Context, params *GetTradableAssetPairsParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetTradeBalanceWithBody

func (c *Client) GetTradeBalanceWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetTradeBalanceWithFormdataBody

func (c *Client) GetTradeBalanceWithFormdataBody(ctx context.Context, body GetTradeBalanceFormdataRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetTradeHistoryWithBody

func (c *Client) GetTradeHistoryWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetTradeHistoryWithFormdataBody

func (c *Client) GetTradeHistoryWithFormdataBody(ctx context.Context, body GetTradeHistoryFormdataRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetTradeVolumeWithBody

func (c *Client) GetTradeVolumeWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetTradeVolumeWithFormdataBody

func (c *Client) GetTradeVolumeWithFormdataBody(ctx context.Context, body GetTradeVolumeFormdataRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetTradesInfoWithBody

func (c *Client) GetTradesInfoWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetTradesInfoWithFormdataBody

func (c *Client) GetTradesInfoWithFormdataBody(ctx context.Context, body GetTradesInfoFormdataRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetWebsocketsTokenWithBody

func (c *Client) GetWebsocketsTokenWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetWebsocketsTokenWithFormdataBody

func (c *Client) GetWebsocketsTokenWithFormdataBody(ctx context.Context, body GetWebsocketsTokenFormdataRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetWithdrawalInformationWithBody

func (c *Client) GetWithdrawalInformationWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetWithdrawalInformationWithFormdataBody

func (c *Client) GetWithdrawalInformationWithFormdataBody(ctx context.Context, body GetWithdrawalInformationFormdataRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) RemoveExportWithBody

func (c *Client) RemoveExportWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) RemoveExportWithFormdataBody

func (c *Client) RemoveExportWithFormdataBody(ctx context.Context, body RemoveExportFormdataRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) RetrieveExportWithBody

func (c *Client) RetrieveExportWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) RetrieveExportWithFormdataBody

func (c *Client) RetrieveExportWithFormdataBody(ctx context.Context, body RetrieveExportFormdataRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) StakeWithBody

func (c *Client) StakeWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) StakeWithFormdataBody

func (c *Client) StakeWithFormdataBody(ctx context.Context, body StakeFormdataRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) UnstakeWithBody

func (c *Client) UnstakeWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) UnstakeWithFormdataBody

func (c *Client) UnstakeWithFormdataBody(ctx context.Context, body UnstakeFormdataRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) WalletTransferWithBody

func (c *Client) WalletTransferWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) WalletTransferWithFormdataBody

func (c *Client) WalletTransferWithFormdataBody(ctx context.Context, body WalletTransferFormdataRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) WithdrawFundsWithBody

func (c *Client) WithdrawFundsWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) WithdrawFundsWithFormdataBody

func (c *Client) WithdrawFundsWithFormdataBody(ctx context.Context, body WithdrawFundsFormdataRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

type ClientInterface

type ClientInterface interface {
	// AddExport request with any body
	AddExportWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	AddExportWithFormdataBody(ctx context.Context, body AddExportFormdataRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// AddOrder request with any body
	AddOrderWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	AddOrderWithFormdataBody(ctx context.Context, body AddOrderFormdataRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// AddOrderBatch request with any body
	AddOrderBatchWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	AddOrderBatchWithFormdataBody(ctx context.Context, body AddOrderBatchFormdataRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetAccountBalance request with any body
	GetAccountBalanceWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	GetAccountBalanceWithFormdataBody(ctx context.Context, body GetAccountBalanceFormdataRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// CancelAllOrders request with any body
	CancelAllOrdersWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	CancelAllOrdersWithFormdataBody(ctx context.Context, body CancelAllOrdersFormdataRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// CancelAllOrdersAfter request with any body
	CancelAllOrdersAfterWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	CancelAllOrdersAfterWithFormdataBody(ctx context.Context, body CancelAllOrdersAfterFormdataRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// CancelOrder request with any body
	CancelOrderWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	CancelOrderWithFormdataBody(ctx context.Context, body CancelOrderFormdataRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// CancelOrderBatch request with any body
	CancelOrderBatchWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	CancelOrderBatchWithFormdataBody(ctx context.Context, body CancelOrderBatchFormdataRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetClosedOrders request with any body
	GetClosedOrdersWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	GetClosedOrdersWithFormdataBody(ctx context.Context, body GetClosedOrdersFormdataRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetDepositAddresses request with any body
	GetDepositAddressesWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	GetDepositAddressesWithFormdataBody(ctx context.Context, body GetDepositAddressesFormdataRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetDepositMethods request with any body
	GetDepositMethodsWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	GetDepositMethodsWithFormdataBody(ctx context.Context, body GetDepositMethodsFormdataRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetStatusRecentDeposits request with any body
	GetStatusRecentDepositsWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	GetStatusRecentDepositsWithFormdataBody(ctx context.Context, body GetStatusRecentDepositsFormdataRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// EditOrder request with any body
	EditOrderWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	EditOrderWithFormdataBody(ctx context.Context, body EditOrderFormdataRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ExportStatus request with any body
	ExportStatusWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	ExportStatusWithFormdataBody(ctx context.Context, body ExportStatusFormdataRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetWebsocketsToken request with any body
	GetWebsocketsTokenWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	GetWebsocketsTokenWithFormdataBody(ctx context.Context, body GetWebsocketsTokenFormdataRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetLedgers request with any body
	GetLedgersWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	GetLedgersWithFormdataBody(ctx context.Context, body GetLedgersFormdataRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetOpenOrders request with any body
	GetOpenOrdersWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	GetOpenOrdersWithFormdataBody(ctx context.Context, body GetOpenOrdersFormdataRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetOpenPositions request with any body
	GetOpenPositionsWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	GetOpenPositionsWithFormdataBody(ctx context.Context, body GetOpenPositionsFormdataRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetLedgersInfo request with any body
	GetLedgersInfoWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	GetLedgersInfoWithFormdataBody(ctx context.Context, body GetLedgersInfoFormdataRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetOrdersInfo request with any body
	GetOrdersInfoWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	GetOrdersInfoWithFormdataBody(ctx context.Context, body GetOrdersInfoFormdataRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetTradesInfo request with any body
	GetTradesInfoWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	GetTradesInfoWithFormdataBody(ctx context.Context, body GetTradesInfoFormdataRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// RemoveExport request with any body
	RemoveExportWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	RemoveExportWithFormdataBody(ctx context.Context, body RemoveExportFormdataRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// RetrieveExport request with any body
	RetrieveExportWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	RetrieveExportWithFormdataBody(ctx context.Context, body RetrieveExportFormdataRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// Stake request with any body
	StakeWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	StakeWithFormdataBody(ctx context.Context, body StakeFormdataRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetStakingAssetInfo request with any body
	GetStakingAssetInfoWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	GetStakingAssetInfoWithFormdataBody(ctx context.Context, body GetStakingAssetInfoFormdataRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetStakingPendingDeposits request with any body
	GetStakingPendingDepositsWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	GetStakingPendingDepositsWithFormdataBody(ctx context.Context, body GetStakingPendingDepositsFormdataRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetStakingTransactions request with any body
	GetStakingTransactionsWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	GetStakingTransactionsWithFormdataBody(ctx context.Context, body GetStakingTransactionsFormdataRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetTradeBalance request with any body
	GetTradeBalanceWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	GetTradeBalanceWithFormdataBody(ctx context.Context, body GetTradeBalanceFormdataRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetTradeVolume request with any body
	GetTradeVolumeWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	GetTradeVolumeWithFormdataBody(ctx context.Context, body GetTradeVolumeFormdataRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetTradeHistory request with any body
	GetTradeHistoryWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	GetTradeHistoryWithFormdataBody(ctx context.Context, body GetTradeHistoryFormdataRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// Unstake request with any body
	UnstakeWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	UnstakeWithFormdataBody(ctx context.Context, body UnstakeFormdataRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// WalletTransfer request with any body
	WalletTransferWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	WalletTransferWithFormdataBody(ctx context.Context, body WalletTransferFormdataRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// WithdrawFunds request with any body
	WithdrawFundsWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	WithdrawFundsWithFormdataBody(ctx context.Context, body WithdrawFundsFormdataRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// CancelWithdrawal request with any body
	CancelWithdrawalWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	CancelWithdrawalWithFormdataBody(ctx context.Context, body CancelWithdrawalFormdataRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetWithdrawalInformation request with any body
	GetWithdrawalInformationWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	GetWithdrawalInformationWithFormdataBody(ctx context.Context, body GetWithdrawalInformationFormdataRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetStatusRecentWithdrawals request with any body
	GetStatusRecentWithdrawalsWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	GetStatusRecentWithdrawalsWithFormdataBody(ctx context.Context, body GetStatusRecentWithdrawalsFormdataRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetTradableAssetPairs request
	GetTradableAssetPairs(ctx context.Context, params *GetTradableAssetPairsParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetAssetInfo request
	GetAssetInfo(ctx context.Context, params *GetAssetInfoParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetOrderBook request
	GetOrderBook(ctx context.Context, params *GetOrderBookParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetOHLCData request
	GetOHLCData(ctx context.Context, params *GetOHLCDataParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetRecentSpreads request
	GetRecentSpreads(ctx context.Context, params *GetRecentSpreadsParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetSystemStatus request
	GetSystemStatus(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetTickerInformation request
	GetTickerInformation(ctx context.Context, params *GetTickerInformationParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetServerTime request
	GetServerTime(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetRecentTrades request
	GetRecentTrades(ctx context.Context, params *GetRecentTradesParams, reqEditors ...RequestEditorFn) (*http.Response, error)
}

The interface specification for the client above.

type ClientOption

type ClientOption func(*Client) error

ClientOption allows setting custom parameters during construction

func WithBaseURL

func WithBaseURL(baseURL string) ClientOption

WithBaseURL overrides the baseURL.

func WithHTTPClient

func WithHTTPClient(doer HttpRequestDoer) ClientOption

WithHTTPClient allows overriding the default Doer, which is automatically created using http.Client. This is useful for tests.

func WithRequestEditorFn

func WithRequestEditorFn(fn RequestEditorFn) ClientOption

WithRequestEditorFn allows setting up a callback function, which will be called right before sending the request. This can be used to mutate the request.

type ClientWithResponses

type ClientWithResponses struct {
	ClientInterface
}

ClientWithResponses builds on ClientInterface to offer response payloads

func NewClientWithResponses

func NewClientWithResponses(server string, opts ...ClientOption) (*ClientWithResponses, error)

NewClientWithResponses creates a new ClientWithResponses, which wraps Client with return type handling

func (*ClientWithResponses) AddExportWithBodyWithResponse

func (c *ClientWithResponses) AddExportWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AddExportResponse, error)

AddExportWithBodyWithResponse request with arbitrary body returning *AddExportResponse

func (*ClientWithResponses) AddExportWithFormdataBodyWithResponse

func (c *ClientWithResponses) AddExportWithFormdataBodyWithResponse(ctx context.Context, body AddExportFormdataRequestBody, reqEditors ...RequestEditorFn) (*AddExportResponse, error)

func (*ClientWithResponses) AddOrderBatchWithBodyWithResponse

func (c *ClientWithResponses) AddOrderBatchWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AddOrderBatchResponse, error)

AddOrderBatchWithBodyWithResponse request with arbitrary body returning *AddOrderBatchResponse

func (*ClientWithResponses) AddOrderBatchWithFormdataBodyWithResponse

func (c *ClientWithResponses) AddOrderBatchWithFormdataBodyWithResponse(ctx context.Context, body AddOrderBatchFormdataRequestBody, reqEditors ...RequestEditorFn) (*AddOrderBatchResponse, error)

func (*ClientWithResponses) AddOrderWithBodyWithResponse

func (c *ClientWithResponses) AddOrderWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AddOrderResponse, error)

AddOrderWithBodyWithResponse request with arbitrary body returning *AddOrderResponse

func (*ClientWithResponses) AddOrderWithFormdataBodyWithResponse

func (c *ClientWithResponses) AddOrderWithFormdataBodyWithResponse(ctx context.Context, body AddOrderFormdataRequestBody, reqEditors ...RequestEditorFn) (*AddOrderResponse, error)

func (*ClientWithResponses) CancelAllOrdersAfterWithBodyWithResponse

func (c *ClientWithResponses) CancelAllOrdersAfterWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CancelAllOrdersAfterResponse, error)

CancelAllOrdersAfterWithBodyWithResponse request with arbitrary body returning *CancelAllOrdersAfterResponse

func (*ClientWithResponses) CancelAllOrdersAfterWithFormdataBodyWithResponse

func (c *ClientWithResponses) CancelAllOrdersAfterWithFormdataBodyWithResponse(ctx context.Context, body CancelAllOrdersAfterFormdataRequestBody, reqEditors ...RequestEditorFn) (*CancelAllOrdersAfterResponse, error)

func (*ClientWithResponses) CancelAllOrdersWithBodyWithResponse

func (c *ClientWithResponses) CancelAllOrdersWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CancelAllOrdersResponse, error)

CancelAllOrdersWithBodyWithResponse request with arbitrary body returning *CancelAllOrdersResponse

func (*ClientWithResponses) CancelAllOrdersWithFormdataBodyWithResponse

func (c *ClientWithResponses) CancelAllOrdersWithFormdataBodyWithResponse(ctx context.Context, body CancelAllOrdersFormdataRequestBody, reqEditors ...RequestEditorFn) (*CancelAllOrdersResponse, error)

func (*ClientWithResponses) CancelOrderBatchWithBodyWithResponse

func (c *ClientWithResponses) CancelOrderBatchWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CancelOrderBatchResponse, error)

CancelOrderBatchWithBodyWithResponse request with arbitrary body returning *CancelOrderBatchResponse

func (*ClientWithResponses) CancelOrderBatchWithFormdataBodyWithResponse

func (c *ClientWithResponses) CancelOrderBatchWithFormdataBodyWithResponse(ctx context.Context, body CancelOrderBatchFormdataRequestBody, reqEditors ...RequestEditorFn) (*CancelOrderBatchResponse, error)

func (*ClientWithResponses) CancelOrderWithBodyWithResponse

func (c *ClientWithResponses) CancelOrderWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CancelOrderResponse, error)

CancelOrderWithBodyWithResponse request with arbitrary body returning *CancelOrderResponse

func (*ClientWithResponses) CancelOrderWithFormdataBodyWithResponse

func (c *ClientWithResponses) CancelOrderWithFormdataBodyWithResponse(ctx context.Context, body CancelOrderFormdataRequestBody, reqEditors ...RequestEditorFn) (*CancelOrderResponse, error)

func (*ClientWithResponses) CancelWithdrawalWithBodyWithResponse

func (c *ClientWithResponses) CancelWithdrawalWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CancelWithdrawalResponse, error)

CancelWithdrawalWithBodyWithResponse request with arbitrary body returning *CancelWithdrawalResponse

func (*ClientWithResponses) CancelWithdrawalWithFormdataBodyWithResponse

func (c *ClientWithResponses) CancelWithdrawalWithFormdataBodyWithResponse(ctx context.Context, body CancelWithdrawalFormdataRequestBody, reqEditors ...RequestEditorFn) (*CancelWithdrawalResponse, error)

func (*ClientWithResponses) EditOrderWithBodyWithResponse

func (c *ClientWithResponses) EditOrderWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*EditOrderResponse, error)

EditOrderWithBodyWithResponse request with arbitrary body returning *EditOrderResponse

func (*ClientWithResponses) EditOrderWithFormdataBodyWithResponse

func (c *ClientWithResponses) EditOrderWithFormdataBodyWithResponse(ctx context.Context, body EditOrderFormdataRequestBody, reqEditors ...RequestEditorFn) (*EditOrderResponse, error)

func (*ClientWithResponses) ExportStatusWithBodyWithResponse

func (c *ClientWithResponses) ExportStatusWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ExportStatusResponse, error)

ExportStatusWithBodyWithResponse request with arbitrary body returning *ExportStatusResponse

func (*ClientWithResponses) ExportStatusWithFormdataBodyWithResponse

func (c *ClientWithResponses) ExportStatusWithFormdataBodyWithResponse(ctx context.Context, body ExportStatusFormdataRequestBody, reqEditors ...RequestEditorFn) (*ExportStatusResponse, error)

func (*ClientWithResponses) GetAccountBalanceWithBodyWithResponse

func (c *ClientWithResponses) GetAccountBalanceWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GetAccountBalanceResponse, error)

GetAccountBalanceWithBodyWithResponse request with arbitrary body returning *GetAccountBalanceResponse

func (*ClientWithResponses) GetAccountBalanceWithFormdataBodyWithResponse

func (c *ClientWithResponses) GetAccountBalanceWithFormdataBodyWithResponse(ctx context.Context, body GetAccountBalanceFormdataRequestBody, reqEditors ...RequestEditorFn) (*GetAccountBalanceResponse, error)

func (*ClientWithResponses) GetAssetInfoWithResponse

func (c *ClientWithResponses) GetAssetInfoWithResponse(ctx context.Context, params *GetAssetInfoParams, reqEditors ...RequestEditorFn) (*GetAssetInfoResponse, error)

GetAssetInfoWithResponse request returning *GetAssetInfoResponse

func (*ClientWithResponses) GetClosedOrdersWithBodyWithResponse

func (c *ClientWithResponses) GetClosedOrdersWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GetClosedOrdersResponse, error)

GetClosedOrdersWithBodyWithResponse request with arbitrary body returning *GetClosedOrdersResponse

func (*ClientWithResponses) GetClosedOrdersWithFormdataBodyWithResponse

func (c *ClientWithResponses) GetClosedOrdersWithFormdataBodyWithResponse(ctx context.Context, body GetClosedOrdersFormdataRequestBody, reqEditors ...RequestEditorFn) (*GetClosedOrdersResponse, error)

func (*ClientWithResponses) GetDepositAddressesWithBodyWithResponse

func (c *ClientWithResponses) GetDepositAddressesWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GetDepositAddressesResponse, error)

GetDepositAddressesWithBodyWithResponse request with arbitrary body returning *GetDepositAddressesResponse

func (*ClientWithResponses) GetDepositAddressesWithFormdataBodyWithResponse

func (c *ClientWithResponses) GetDepositAddressesWithFormdataBodyWithResponse(ctx context.Context, body GetDepositAddressesFormdataRequestBody, reqEditors ...RequestEditorFn) (*GetDepositAddressesResponse, error)

func (*ClientWithResponses) GetDepositMethodsWithBodyWithResponse

func (c *ClientWithResponses) GetDepositMethodsWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GetDepositMethodsResponse, error)

GetDepositMethodsWithBodyWithResponse request with arbitrary body returning *GetDepositMethodsResponse

func (*ClientWithResponses) GetDepositMethodsWithFormdataBodyWithResponse

func (c *ClientWithResponses) GetDepositMethodsWithFormdataBodyWithResponse(ctx context.Context, body GetDepositMethodsFormdataRequestBody, reqEditors ...RequestEditorFn) (*GetDepositMethodsResponse, error)

func (*ClientWithResponses) GetLedgersInfoWithBodyWithResponse

func (c *ClientWithResponses) GetLedgersInfoWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GetLedgersInfoResponse, error)

GetLedgersInfoWithBodyWithResponse request with arbitrary body returning *GetLedgersInfoResponse

func (*ClientWithResponses) GetLedgersInfoWithFormdataBodyWithResponse

func (c *ClientWithResponses) GetLedgersInfoWithFormdataBodyWithResponse(ctx context.Context, body GetLedgersInfoFormdataRequestBody, reqEditors ...RequestEditorFn) (*GetLedgersInfoResponse, error)

func (*ClientWithResponses) GetLedgersWithBodyWithResponse

func (c *ClientWithResponses) GetLedgersWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GetLedgersResponse, error)

GetLedgersWithBodyWithResponse request with arbitrary body returning *GetLedgersResponse

func (*ClientWithResponses) GetLedgersWithFormdataBodyWithResponse

func (c *ClientWithResponses) GetLedgersWithFormdataBodyWithResponse(ctx context.Context, body GetLedgersFormdataRequestBody, reqEditors ...RequestEditorFn) (*GetLedgersResponse, error)

func (*ClientWithResponses) GetOHLCDataWithResponse

func (c *ClientWithResponses) GetOHLCDataWithResponse(ctx context.Context, params *GetOHLCDataParams, reqEditors ...RequestEditorFn) (*GetOHLCDataResponse, error)

GetOHLCDataWithResponse request returning *GetOHLCDataResponse

func (*ClientWithResponses) GetOpenOrdersWithBodyWithResponse

func (c *ClientWithResponses) GetOpenOrdersWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GetOpenOrdersResponse, error)

GetOpenOrdersWithBodyWithResponse request with arbitrary body returning *GetOpenOrdersResponse

func (*ClientWithResponses) GetOpenOrdersWithFormdataBodyWithResponse

func (c *ClientWithResponses) GetOpenOrdersWithFormdataBodyWithResponse(ctx context.Context, body GetOpenOrdersFormdataRequestBody, reqEditors ...RequestEditorFn) (*GetOpenOrdersResponse, error)

func (*ClientWithResponses) GetOpenPositionsWithBodyWithResponse

func (c *ClientWithResponses) GetOpenPositionsWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GetOpenPositionsResponse, error)

GetOpenPositionsWithBodyWithResponse request with arbitrary body returning *GetOpenPositionsResponse

func (*ClientWithResponses) GetOpenPositionsWithFormdataBodyWithResponse

func (c *ClientWithResponses) GetOpenPositionsWithFormdataBodyWithResponse(ctx context.Context, body GetOpenPositionsFormdataRequestBody, reqEditors ...RequestEditorFn) (*GetOpenPositionsResponse, error)

func (*ClientWithResponses) GetOrderBookWithResponse

func (c *ClientWithResponses) GetOrderBookWithResponse(ctx context.Context, params *GetOrderBookParams, reqEditors ...RequestEditorFn) (*GetOrderBookResponse, error)

GetOrderBookWithResponse request returning *GetOrderBookResponse

func (*ClientWithResponses) GetOrdersInfoWithBodyWithResponse

func (c *ClientWithResponses) GetOrdersInfoWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GetOrdersInfoResponse, error)

GetOrdersInfoWithBodyWithResponse request with arbitrary body returning *GetOrdersInfoResponse

func (*ClientWithResponses) GetOrdersInfoWithFormdataBodyWithResponse

func (c *ClientWithResponses) GetOrdersInfoWithFormdataBodyWithResponse(ctx context.Context, body GetOrdersInfoFormdataRequestBody, reqEditors ...RequestEditorFn) (*GetOrdersInfoResponse, error)

func (*ClientWithResponses) GetRecentSpreadsWithResponse

func (c *ClientWithResponses) GetRecentSpreadsWithResponse(ctx context.Context, params *GetRecentSpreadsParams, reqEditors ...RequestEditorFn) (*GetRecentSpreadsResponse, error)

GetRecentSpreadsWithResponse request returning *GetRecentSpreadsResponse

func (*ClientWithResponses) GetRecentTradesWithResponse

func (c *ClientWithResponses) GetRecentTradesWithResponse(ctx context.Context, params *GetRecentTradesParams, reqEditors ...RequestEditorFn) (*GetRecentTradesResponse, error)

GetRecentTradesWithResponse request returning *GetRecentTradesResponse

func (*ClientWithResponses) GetServerTimeWithResponse

func (c *ClientWithResponses) GetServerTimeWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetServerTimeResponse, error)

GetServerTimeWithResponse request returning *GetServerTimeResponse

func (*ClientWithResponses) GetStakingAssetInfoWithBodyWithResponse

func (c *ClientWithResponses) GetStakingAssetInfoWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GetStakingAssetInfoResponse, error)

GetStakingAssetInfoWithBodyWithResponse request with arbitrary body returning *GetStakingAssetInfoResponse

func (*ClientWithResponses) GetStakingAssetInfoWithFormdataBodyWithResponse

func (c *ClientWithResponses) GetStakingAssetInfoWithFormdataBodyWithResponse(ctx context.Context, body GetStakingAssetInfoFormdataRequestBody, reqEditors ...RequestEditorFn) (*GetStakingAssetInfoResponse, error)

func (*ClientWithResponses) GetStakingPendingDepositsWithBodyWithResponse

func (c *ClientWithResponses) GetStakingPendingDepositsWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GetStakingPendingDepositsResponse, error)

GetStakingPendingDepositsWithBodyWithResponse request with arbitrary body returning *GetStakingPendingDepositsResponse

func (*ClientWithResponses) GetStakingPendingDepositsWithFormdataBodyWithResponse

func (c *ClientWithResponses) GetStakingPendingDepositsWithFormdataBodyWithResponse(ctx context.Context, body GetStakingPendingDepositsFormdataRequestBody, reqEditors ...RequestEditorFn) (*GetStakingPendingDepositsResponse, error)

func (*ClientWithResponses) GetStakingTransactionsWithBodyWithResponse

func (c *ClientWithResponses) GetStakingTransactionsWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GetStakingTransactionsResponse, error)

GetStakingTransactionsWithBodyWithResponse request with arbitrary body returning *GetStakingTransactionsResponse

func (*ClientWithResponses) GetStakingTransactionsWithFormdataBodyWithResponse

func (c *ClientWithResponses) GetStakingTransactionsWithFormdataBodyWithResponse(ctx context.Context, body GetStakingTransactionsFormdataRequestBody, reqEditors ...RequestEditorFn) (*GetStakingTransactionsResponse, error)

func (*ClientWithResponses) GetStatusRecentDepositsWithBodyWithResponse

func (c *ClientWithResponses) GetStatusRecentDepositsWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GetStatusRecentDepositsResponse, error)

GetStatusRecentDepositsWithBodyWithResponse request with arbitrary body returning *GetStatusRecentDepositsResponse

func (*ClientWithResponses) GetStatusRecentDepositsWithFormdataBodyWithResponse

func (c *ClientWithResponses) GetStatusRecentDepositsWithFormdataBodyWithResponse(ctx context.Context, body GetStatusRecentDepositsFormdataRequestBody, reqEditors ...RequestEditorFn) (*GetStatusRecentDepositsResponse, error)

func (*ClientWithResponses) GetStatusRecentWithdrawalsWithBodyWithResponse

func (c *ClientWithResponses) GetStatusRecentWithdrawalsWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GetStatusRecentWithdrawalsResponse, error)

GetStatusRecentWithdrawalsWithBodyWithResponse request with arbitrary body returning *GetStatusRecentWithdrawalsResponse

func (*ClientWithResponses) GetStatusRecentWithdrawalsWithFormdataBodyWithResponse

func (c *ClientWithResponses) GetStatusRecentWithdrawalsWithFormdataBodyWithResponse(ctx context.Context, body GetStatusRecentWithdrawalsFormdataRequestBody, reqEditors ...RequestEditorFn) (*GetStatusRecentWithdrawalsResponse, error)

func (*ClientWithResponses) GetSystemStatusWithResponse

func (c *ClientWithResponses) GetSystemStatusWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetSystemStatusResponse, error)

GetSystemStatusWithResponse request returning *GetSystemStatusResponse

func (*ClientWithResponses) GetTickerInformationWithResponse

func (c *ClientWithResponses) GetTickerInformationWithResponse(ctx context.Context, params *GetTickerInformationParams, reqEditors ...RequestEditorFn) (*GetTickerInformationResponse, error)

GetTickerInformationWithResponse request returning *GetTickerInformationResponse

func (*ClientWithResponses) GetTradableAssetPairsWithResponse

func (c *ClientWithResponses) GetTradableAssetPairsWithResponse(ctx context.Context, params *GetTradableAssetPairsParams, reqEditors ...RequestEditorFn) (*GetTradableAssetPairsResponse, error)

GetTradableAssetPairsWithResponse request returning *GetTradableAssetPairsResponse

func (*ClientWithResponses) GetTradeBalanceWithBodyWithResponse

func (c *ClientWithResponses) GetTradeBalanceWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GetTradeBalanceResponse, error)

GetTradeBalanceWithBodyWithResponse request with arbitrary body returning *GetTradeBalanceResponse

func (*ClientWithResponses) GetTradeBalanceWithFormdataBodyWithResponse

func (c *ClientWithResponses) GetTradeBalanceWithFormdataBodyWithResponse(ctx context.Context, body GetTradeBalanceFormdataRequestBody, reqEditors ...RequestEditorFn) (*GetTradeBalanceResponse, error)

func (*ClientWithResponses) GetTradeHistoryWithBodyWithResponse

func (c *ClientWithResponses) GetTradeHistoryWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GetTradeHistoryResponse, error)

GetTradeHistoryWithBodyWithResponse request with arbitrary body returning *GetTradeHistoryResponse

func (*ClientWithResponses) GetTradeHistoryWithFormdataBodyWithResponse

func (c *ClientWithResponses) GetTradeHistoryWithFormdataBodyWithResponse(ctx context.Context, body GetTradeHistoryFormdataRequestBody, reqEditors ...RequestEditorFn) (*GetTradeHistoryResponse, error)

func (*ClientWithResponses) GetTradeVolumeWithBodyWithResponse

func (c *ClientWithResponses) GetTradeVolumeWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GetTradeVolumeResponse, error)

GetTradeVolumeWithBodyWithResponse request with arbitrary body returning *GetTradeVolumeResponse

func (*ClientWithResponses) GetTradeVolumeWithFormdataBodyWithResponse

func (c *ClientWithResponses) GetTradeVolumeWithFormdataBodyWithResponse(ctx context.Context, body GetTradeVolumeFormdataRequestBody, reqEditors ...RequestEditorFn) (*GetTradeVolumeResponse, error)

func (*ClientWithResponses) GetTradesInfoWithBodyWithResponse

func (c *ClientWithResponses) GetTradesInfoWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GetTradesInfoResponse, error)

GetTradesInfoWithBodyWithResponse request with arbitrary body returning *GetTradesInfoResponse

func (*ClientWithResponses) GetTradesInfoWithFormdataBodyWithResponse

func (c *ClientWithResponses) GetTradesInfoWithFormdataBodyWithResponse(ctx context.Context, body GetTradesInfoFormdataRequestBody, reqEditors ...RequestEditorFn) (*GetTradesInfoResponse, error)

func (*ClientWithResponses) GetWebsocketsTokenWithBodyWithResponse

func (c *ClientWithResponses) GetWebsocketsTokenWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GetWebsocketsTokenResponse, error)

GetWebsocketsTokenWithBodyWithResponse request with arbitrary body returning *GetWebsocketsTokenResponse

func (*ClientWithResponses) GetWebsocketsTokenWithFormdataBodyWithResponse

func (c *ClientWithResponses) GetWebsocketsTokenWithFormdataBodyWithResponse(ctx context.Context, body GetWebsocketsTokenFormdataRequestBody, reqEditors ...RequestEditorFn) (*GetWebsocketsTokenResponse, error)

func (*ClientWithResponses) GetWithdrawalInformationWithBodyWithResponse

func (c *ClientWithResponses) GetWithdrawalInformationWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GetWithdrawalInformationResponse, error)

GetWithdrawalInformationWithBodyWithResponse request with arbitrary body returning *GetWithdrawalInformationResponse

func (*ClientWithResponses) GetWithdrawalInformationWithFormdataBodyWithResponse

func (c *ClientWithResponses) GetWithdrawalInformationWithFormdataBodyWithResponse(ctx context.Context, body GetWithdrawalInformationFormdataRequestBody, reqEditors ...RequestEditorFn) (*GetWithdrawalInformationResponse, error)

func (*ClientWithResponses) RemoveExportWithBodyWithResponse

func (c *ClientWithResponses) RemoveExportWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*RemoveExportResponse, error)

RemoveExportWithBodyWithResponse request with arbitrary body returning *RemoveExportResponse

func (*ClientWithResponses) RemoveExportWithFormdataBodyWithResponse

func (c *ClientWithResponses) RemoveExportWithFormdataBodyWithResponse(ctx context.Context, body RemoveExportFormdataRequestBody, reqEditors ...RequestEditorFn) (*RemoveExportResponse, error)

func (*ClientWithResponses) RetrieveExportWithBodyWithResponse

func (c *ClientWithResponses) RetrieveExportWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*RetrieveExportResponse, error)

RetrieveExportWithBodyWithResponse request with arbitrary body returning *RetrieveExportResponse

func (*ClientWithResponses) RetrieveExportWithFormdataBodyWithResponse

func (c *ClientWithResponses) RetrieveExportWithFormdataBodyWithResponse(ctx context.Context, body RetrieveExportFormdataRequestBody, reqEditors ...RequestEditorFn) (*RetrieveExportResponse, error)

func (*ClientWithResponses) StakeWithBodyWithResponse

func (c *ClientWithResponses) StakeWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*StakeResponse, error)

StakeWithBodyWithResponse request with arbitrary body returning *StakeResponse

func (*ClientWithResponses) StakeWithFormdataBodyWithResponse

func (c *ClientWithResponses) StakeWithFormdataBodyWithResponse(ctx context.Context, body StakeFormdataRequestBody, reqEditors ...RequestEditorFn) (*StakeResponse, error)

func (*ClientWithResponses) UnstakeWithBodyWithResponse

func (c *ClientWithResponses) UnstakeWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UnstakeResponse, error)

UnstakeWithBodyWithResponse request with arbitrary body returning *UnstakeResponse

func (*ClientWithResponses) UnstakeWithFormdataBodyWithResponse

func (c *ClientWithResponses) UnstakeWithFormdataBodyWithResponse(ctx context.Context, body UnstakeFormdataRequestBody, reqEditors ...RequestEditorFn) (*UnstakeResponse, error)

func (*ClientWithResponses) WalletTransferWithBodyWithResponse

func (c *ClientWithResponses) WalletTransferWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*WalletTransferResponse, error)

WalletTransferWithBodyWithResponse request with arbitrary body returning *WalletTransferResponse

func (*ClientWithResponses) WalletTransferWithFormdataBodyWithResponse

func (c *ClientWithResponses) WalletTransferWithFormdataBodyWithResponse(ctx context.Context, body WalletTransferFormdataRequestBody, reqEditors ...RequestEditorFn) (*WalletTransferResponse, error)

func (*ClientWithResponses) WithdrawFundsWithBodyWithResponse

func (c *ClientWithResponses) WithdrawFundsWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*WithdrawFundsResponse, error)

WithdrawFundsWithBodyWithResponse request with arbitrary body returning *WithdrawFundsResponse

func (*ClientWithResponses) WithdrawFundsWithFormdataBodyWithResponse

func (c *ClientWithResponses) WithdrawFundsWithFormdataBodyWithResponse(ctx context.Context, body WithdrawFundsFormdataRequestBody, reqEditors ...RequestEditorFn) (*WithdrawFundsResponse, error)

type ClientWithResponsesInterface

type ClientWithResponsesInterface interface {
	// AddExport request with any body
	AddExportWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AddExportResponse, error)

	AddExportWithFormdataBodyWithResponse(ctx context.Context, body AddExportFormdataRequestBody, reqEditors ...RequestEditorFn) (*AddExportResponse, error)

	// AddOrder request with any body
	AddOrderWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AddOrderResponse, error)

	AddOrderWithFormdataBodyWithResponse(ctx context.Context, body AddOrderFormdataRequestBody, reqEditors ...RequestEditorFn) (*AddOrderResponse, error)

	// AddOrderBatch request with any body
	AddOrderBatchWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AddOrderBatchResponse, error)

	AddOrderBatchWithFormdataBodyWithResponse(ctx context.Context, body AddOrderBatchFormdataRequestBody, reqEditors ...RequestEditorFn) (*AddOrderBatchResponse, error)

	// GetAccountBalance request with any body
	GetAccountBalanceWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GetAccountBalanceResponse, error)

	GetAccountBalanceWithFormdataBodyWithResponse(ctx context.Context, body GetAccountBalanceFormdataRequestBody, reqEditors ...RequestEditorFn) (*GetAccountBalanceResponse, error)

	// CancelAllOrders request with any body
	CancelAllOrdersWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CancelAllOrdersResponse, error)

	CancelAllOrdersWithFormdataBodyWithResponse(ctx context.Context, body CancelAllOrdersFormdataRequestBody, reqEditors ...RequestEditorFn) (*CancelAllOrdersResponse, error)

	// CancelAllOrdersAfter request with any body
	CancelAllOrdersAfterWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CancelAllOrdersAfterResponse, error)

	CancelAllOrdersAfterWithFormdataBodyWithResponse(ctx context.Context, body CancelAllOrdersAfterFormdataRequestBody, reqEditors ...RequestEditorFn) (*CancelAllOrdersAfterResponse, error)

	// CancelOrder request with any body
	CancelOrderWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CancelOrderResponse, error)

	CancelOrderWithFormdataBodyWithResponse(ctx context.Context, body CancelOrderFormdataRequestBody, reqEditors ...RequestEditorFn) (*CancelOrderResponse, error)

	// CancelOrderBatch request with any body
	CancelOrderBatchWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CancelOrderBatchResponse, error)

	CancelOrderBatchWithFormdataBodyWithResponse(ctx context.Context, body CancelOrderBatchFormdataRequestBody, reqEditors ...RequestEditorFn) (*CancelOrderBatchResponse, error)

	// GetClosedOrders request with any body
	GetClosedOrdersWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GetClosedOrdersResponse, error)

	GetClosedOrdersWithFormdataBodyWithResponse(ctx context.Context, body GetClosedOrdersFormdataRequestBody, reqEditors ...RequestEditorFn) (*GetClosedOrdersResponse, error)

	// GetDepositAddresses request with any body
	GetDepositAddressesWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GetDepositAddressesResponse, error)

	GetDepositAddressesWithFormdataBodyWithResponse(ctx context.Context, body GetDepositAddressesFormdataRequestBody, reqEditors ...RequestEditorFn) (*GetDepositAddressesResponse, error)

	// GetDepositMethods request with any body
	GetDepositMethodsWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GetDepositMethodsResponse, error)

	GetDepositMethodsWithFormdataBodyWithResponse(ctx context.Context, body GetDepositMethodsFormdataRequestBody, reqEditors ...RequestEditorFn) (*GetDepositMethodsResponse, error)

	// GetStatusRecentDeposits request with any body
	GetStatusRecentDepositsWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GetStatusRecentDepositsResponse, error)

	GetStatusRecentDepositsWithFormdataBodyWithResponse(ctx context.Context, body GetStatusRecentDepositsFormdataRequestBody, reqEditors ...RequestEditorFn) (*GetStatusRecentDepositsResponse, error)

	// EditOrder request with any body
	EditOrderWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*EditOrderResponse, error)

	EditOrderWithFormdataBodyWithResponse(ctx context.Context, body EditOrderFormdataRequestBody, reqEditors ...RequestEditorFn) (*EditOrderResponse, error)

	// ExportStatus request with any body
	ExportStatusWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ExportStatusResponse, error)

	ExportStatusWithFormdataBodyWithResponse(ctx context.Context, body ExportStatusFormdataRequestBody, reqEditors ...RequestEditorFn) (*ExportStatusResponse, error)

	// GetWebsocketsToken request with any body
	GetWebsocketsTokenWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GetWebsocketsTokenResponse, error)

	GetWebsocketsTokenWithFormdataBodyWithResponse(ctx context.Context, body GetWebsocketsTokenFormdataRequestBody, reqEditors ...RequestEditorFn) (*GetWebsocketsTokenResponse, error)

	// GetLedgers request with any body
	GetLedgersWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GetLedgersResponse, error)

	GetLedgersWithFormdataBodyWithResponse(ctx context.Context, body GetLedgersFormdataRequestBody, reqEditors ...RequestEditorFn) (*GetLedgersResponse, error)

	// GetOpenOrders request with any body
	GetOpenOrdersWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GetOpenOrdersResponse, error)

	GetOpenOrdersWithFormdataBodyWithResponse(ctx context.Context, body GetOpenOrdersFormdataRequestBody, reqEditors ...RequestEditorFn) (*GetOpenOrdersResponse, error)

	// GetOpenPositions request with any body
	GetOpenPositionsWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GetOpenPositionsResponse, error)

	GetOpenPositionsWithFormdataBodyWithResponse(ctx context.Context, body GetOpenPositionsFormdataRequestBody, reqEditors ...RequestEditorFn) (*GetOpenPositionsResponse, error)

	// GetLedgersInfo request with any body
	GetLedgersInfoWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GetLedgersInfoResponse, error)

	GetLedgersInfoWithFormdataBodyWithResponse(ctx context.Context, body GetLedgersInfoFormdataRequestBody, reqEditors ...RequestEditorFn) (*GetLedgersInfoResponse, error)

	// GetOrdersInfo request with any body
	GetOrdersInfoWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GetOrdersInfoResponse, error)

	GetOrdersInfoWithFormdataBodyWithResponse(ctx context.Context, body GetOrdersInfoFormdataRequestBody, reqEditors ...RequestEditorFn) (*GetOrdersInfoResponse, error)

	// GetTradesInfo request with any body
	GetTradesInfoWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GetTradesInfoResponse, error)

	GetTradesInfoWithFormdataBodyWithResponse(ctx context.Context, body GetTradesInfoFormdataRequestBody, reqEditors ...RequestEditorFn) (*GetTradesInfoResponse, error)

	// RemoveExport request with any body
	RemoveExportWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*RemoveExportResponse, error)

	RemoveExportWithFormdataBodyWithResponse(ctx context.Context, body RemoveExportFormdataRequestBody, reqEditors ...RequestEditorFn) (*RemoveExportResponse, error)

	// RetrieveExport request with any body
	RetrieveExportWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*RetrieveExportResponse, error)

	RetrieveExportWithFormdataBodyWithResponse(ctx context.Context, body RetrieveExportFormdataRequestBody, reqEditors ...RequestEditorFn) (*RetrieveExportResponse, error)

	// Stake request with any body
	StakeWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*StakeResponse, error)

	StakeWithFormdataBodyWithResponse(ctx context.Context, body StakeFormdataRequestBody, reqEditors ...RequestEditorFn) (*StakeResponse, error)

	// GetStakingAssetInfo request with any body
	GetStakingAssetInfoWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GetStakingAssetInfoResponse, error)

	GetStakingAssetInfoWithFormdataBodyWithResponse(ctx context.Context, body GetStakingAssetInfoFormdataRequestBody, reqEditors ...RequestEditorFn) (*GetStakingAssetInfoResponse, error)

	// GetStakingPendingDeposits request with any body
	GetStakingPendingDepositsWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GetStakingPendingDepositsResponse, error)

	GetStakingPendingDepositsWithFormdataBodyWithResponse(ctx context.Context, body GetStakingPendingDepositsFormdataRequestBody, reqEditors ...RequestEditorFn) (*GetStakingPendingDepositsResponse, error)

	// GetStakingTransactions request with any body
	GetStakingTransactionsWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GetStakingTransactionsResponse, error)

	GetStakingTransactionsWithFormdataBodyWithResponse(ctx context.Context, body GetStakingTransactionsFormdataRequestBody, reqEditors ...RequestEditorFn) (*GetStakingTransactionsResponse, error)

	// GetTradeBalance request with any body
	GetTradeBalanceWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GetTradeBalanceResponse, error)

	GetTradeBalanceWithFormdataBodyWithResponse(ctx context.Context, body GetTradeBalanceFormdataRequestBody, reqEditors ...RequestEditorFn) (*GetTradeBalanceResponse, error)

	// GetTradeVolume request with any body
	GetTradeVolumeWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GetTradeVolumeResponse, error)

	GetTradeVolumeWithFormdataBodyWithResponse(ctx context.Context, body GetTradeVolumeFormdataRequestBody, reqEditors ...RequestEditorFn) (*GetTradeVolumeResponse, error)

	// GetTradeHistory request with any body
	GetTradeHistoryWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GetTradeHistoryResponse, error)

	GetTradeHistoryWithFormdataBodyWithResponse(ctx context.Context, body GetTradeHistoryFormdataRequestBody, reqEditors ...RequestEditorFn) (*GetTradeHistoryResponse, error)

	// Unstake request with any body
	UnstakeWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UnstakeResponse, error)

	UnstakeWithFormdataBodyWithResponse(ctx context.Context, body UnstakeFormdataRequestBody, reqEditors ...RequestEditorFn) (*UnstakeResponse, error)

	// WalletTransfer request with any body
	WalletTransferWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*WalletTransferResponse, error)

	WalletTransferWithFormdataBodyWithResponse(ctx context.Context, body WalletTransferFormdataRequestBody, reqEditors ...RequestEditorFn) (*WalletTransferResponse, error)

	// WithdrawFunds request with any body
	WithdrawFundsWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*WithdrawFundsResponse, error)

	WithdrawFundsWithFormdataBodyWithResponse(ctx context.Context, body WithdrawFundsFormdataRequestBody, reqEditors ...RequestEditorFn) (*WithdrawFundsResponse, error)

	// CancelWithdrawal request with any body
	CancelWithdrawalWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CancelWithdrawalResponse, error)

	CancelWithdrawalWithFormdataBodyWithResponse(ctx context.Context, body CancelWithdrawalFormdataRequestBody, reqEditors ...RequestEditorFn) (*CancelWithdrawalResponse, error)

	// GetWithdrawalInformation request with any body
	GetWithdrawalInformationWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GetWithdrawalInformationResponse, error)

	GetWithdrawalInformationWithFormdataBodyWithResponse(ctx context.Context, body GetWithdrawalInformationFormdataRequestBody, reqEditors ...RequestEditorFn) (*GetWithdrawalInformationResponse, error)

	// GetStatusRecentWithdrawals request with any body
	GetStatusRecentWithdrawalsWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GetStatusRecentWithdrawalsResponse, error)

	GetStatusRecentWithdrawalsWithFormdataBodyWithResponse(ctx context.Context, body GetStatusRecentWithdrawalsFormdataRequestBody, reqEditors ...RequestEditorFn) (*GetStatusRecentWithdrawalsResponse, error)

	// GetTradableAssetPairs request
	GetTradableAssetPairsWithResponse(ctx context.Context, params *GetTradableAssetPairsParams, reqEditors ...RequestEditorFn) (*GetTradableAssetPairsResponse, error)

	// GetAssetInfo request
	GetAssetInfoWithResponse(ctx context.Context, params *GetAssetInfoParams, reqEditors ...RequestEditorFn) (*GetAssetInfoResponse, error)

	// GetOrderBook request
	GetOrderBookWithResponse(ctx context.Context, params *GetOrderBookParams, reqEditors ...RequestEditorFn) (*GetOrderBookResponse, error)

	// GetOHLCData request
	GetOHLCDataWithResponse(ctx context.Context, params *GetOHLCDataParams, reqEditors ...RequestEditorFn) (*GetOHLCDataResponse, error)

	// GetRecentSpreads request
	GetRecentSpreadsWithResponse(ctx context.Context, params *GetRecentSpreadsParams, reqEditors ...RequestEditorFn) (*GetRecentSpreadsResponse, error)

	// GetSystemStatus request
	GetSystemStatusWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetSystemStatusResponse, error)

	// GetTickerInformation request
	GetTickerInformationWithResponse(ctx context.Context, params *GetTickerInformationParams, reqEditors ...RequestEditorFn) (*GetTickerInformationResponse, error)

	// GetServerTime request
	GetServerTimeWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetServerTimeResponse, error)

	// GetRecentTrades request
	GetRecentTradesWithResponse(ctx context.Context, params *GetRecentTradesParams, reqEditors ...RequestEditorFn) (*GetRecentTradesResponse, error)
}

ClientWithResponsesInterface is the interface specification for the client with responses above.

type Closed

type Closed struct {
	// Closetm Unix timestamp of when order was closed
	Closetm *float32 `json:"closetm,omitempty"`

	// Cost Total cost (quote currency unless)
	Cost *string `json:"cost,omitempty"`

	// Descr Order description info
	Descr *struct {
		// Close Conditional close order description (if conditional close set)
		Close *string `json:"close,omitempty"`

		// Leverage Amount of leverage
		Leverage *string `json:"leverage,omitempty"`

		// Order Order description
		Order *string `json:"order,omitempty"`

		// Ordertype Order type
		Ordertype *Ordertype `json:"ordertype,omitempty"`

		// Pair Asset pair
		Pair *string `json:"pair,omitempty"`

		// Price primary price
		Price *string `json:"price,omitempty"`

		// Price2 Secondary price
		Price2 *string `json:"price2,omitempty"`

		// Type Type of order (buy/sell)
		Type *ClosedDescrType `json:"type,omitempty"`
	} `json:"descr,omitempty"`

	// Expiretm Unix timestamp of order end time (or 0 if not set)
	Expiretm *float32 `json:"expiretm,omitempty"`

	// Fee Total fee (quote currency)
	Fee *string `json:"fee,omitempty"`

	// Limitprice Triggered limit price (quote currency, when limit based order type triggered)
	Limitprice *string `json:"limitprice,omitempty"`

	// Misc Comma delimited list of miscellaneous info
	//
	//   * `stopped` triggered by stop price
	//   * `touched` triggered by touch price
	//   * `liquidated` liquidation
	//   * `partial` partial fill
	Misc *string `json:"misc,omitempty"`

	// Oflags Comma delimited list of order flags
	//
	//   * `post` post-only order (available when ordertype = limit)
	//   * `fcib` prefer fee in base currency (default if selling)
	//   * `fciq` prefer fee in quote currency (default if buying, mutually exclusive with `fcib`)
	//   * `nompp` disable [market price protection](https://support.kraken.com/hc/en-us/articles/201648183-Market-Price-Protection) for market orders
	//   * `viqc`  order volume expressed in quote currency. This is supported only for market orders.
	Oflags *Oflags `json:"oflags,omitempty"`

	// Opentm Unix timestamp of when order was placed
	Opentm *float32 `json:"opentm,omitempty"`

	// Price Average price (quote currency)
	Price *string `json:"price,omitempty"`

	// Reason Additional info on status (if any)
	Reason *string `json:"reason,omitempty"`

	// Refid Referral order transaction ID that created this order
	Refid *string `json:"refid,omitempty"`

	// Starttm Unix timestamp of order start time (or 0 if not set)
	Starttm *float32 `json:"starttm,omitempty"`

	// Status Status of order
	//   * pending = order pending book entry
	//   * open = open order
	//   * closed = closed order
	//   * canceled = order canceled
	//   * expired = order expired
	Status *ClosedStatus `json:"status,omitempty"`

	// Stopprice Stop price (quote currency)
	Stopprice *string `json:"stopprice,omitempty"`

	// Trades List of trade IDs related to order (if trades info requested and data available)
	Trades *[]string `json:"trades,omitempty"`

	// Trigger Price signal used to trigger "stop-loss" "take-profit" "stop-loss-limit" "take-profit-limit" orders.
	//   * `last` is the implied trigger if this field is not set.
	Trigger *ClosedTrigger `json:"trigger,omitempty"`

	// Userref User reference id
	Userref *int `json:"userref,omitempty"`

	// Vol Volume of order (base currency)
	Vol *string `json:"vol,omitempty"`

	// VolExec Volume executed (base currency)
	VolExec *string `json:"vol_exec,omitempty"`
}

Closed defines model for closed.

type Closed2

type Closed2 struct {
	Error *Error `json:"error,omitempty"`

	// Result Closed Orders
	Result *struct {
		Closed *map[string]Closed `json:"closed,omitempty"`

		// Count Amount of available order info matching criteria
		Count *int `json:"count,omitempty"`
	} `json:"result,omitempty"`
}

Closed2 defines model for closed-2.

type ClosedDescrType

type ClosedDescrType string

ClosedDescrType Type of order (buy/sell)

const (
	ClosedDescrTypeBuy  ClosedDescrType = "buy"
	ClosedDescrTypeSell ClosedDescrType = "sell"
)

Defines values for ClosedDescrType.

type ClosedStatus

type ClosedStatus string

ClosedStatus Status of order

  • pending = order pending book entry
  • open = open order
  • closed = closed order
  • canceled = order canceled
  • expired = order expired
const (
	ClosedStatusCanceled ClosedStatus = "canceled"
	ClosedStatusClosed   ClosedStatus = "closed"
	ClosedStatusExpired  ClosedStatus = "expired"
	ClosedStatusOpen     ClosedStatus = "open"
	ClosedStatusPending  ClosedStatus = "pending"
)

Defines values for ClosedStatus.

type ClosedTrigger

type ClosedTrigger string

ClosedTrigger Price signal used to trigger "stop-loss" "take-profit" "stop-loss-limit" "take-profit-limit" orders.

  • `last` is the implied trigger if this field is not set.
const (
	ClosedTriggerIndex ClosedTrigger = "index"
	ClosedTriggerLast  ClosedTrigger = "last"
)

Defines values for ClosedTrigger.

type Deposit

type Deposit struct {
	// Aclass Asset class
	Aclass *string `json:"aclass,omitempty"`

	// Amount Amount deposited
	Amount *string `json:"amount,omitempty"`

	// Asset Asset
	Asset *string `json:"asset,omitempty"`

	// Fee Fees paid
	Fee *interface{} `json:"fee,omitempty"`

	// Info Method transaction information
	Info *string `json:"info,omitempty"`

	// Method Name of deposit method
	Method *string `json:"method,omitempty"`

	// Refid Reference ID
	Refid *string `json:"refid,omitempty"`

	// Status Status of deposit<br>
	// <sup><sub>For information about the status, please refer to the [IFEX financial transaction states](https://github.com/globalcitizen/ifex-protocol/blob/master/draft-ifex-00.txt#L837).</sup></sub>
	Status *interface{} `json:"status,omitempty"`

	// StatusProp Addition status properties <sup><sub>(if available)</sup></sub><br>
	//   * `return` A return transaction initiated by Kraken
	//   * `onhold` Deposit is on hold pending review
	StatusProp *DepositStatusProp `json:"status-prop,omitempty"`

	// Time Unix timestamp when request was made
	Time *int32 `json:"time,omitempty"`

	// Txid Method transaction ID
	Txid *string `json:"txid,omitempty"`
}

Deposit Deposit

type DepositStatusProp

type DepositStatusProp string

DepositStatusProp Addition status properties <sup><sub>(if available)</sup></sub><br>

  • `return` A return transaction initiated by Kraken
  • `onhold` Deposit is on hold pending review
const (
	DepositStatusPropOnhold DepositStatusProp = "onhold"
	DepositStatusPropReturn DepositStatusProp = "return"
)

Defines values for DepositStatusProp.

type Depth

type Depth struct {
	Error  *Error                     `json:"error,omitempty"`
	Result *map[string]OrderBookEntry `json:"result,omitempty"`
}

Depth defines model for depth.

type EchoRouter

type EchoRouter interface {
	CONNECT(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route
	DELETE(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route
	GET(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route
	HEAD(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route
	OPTIONS(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route
	PATCH(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route
	POST(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route
	PUT(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route
	TRACE(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route
}

This is a simple interface which specifies echo.Route addition functions which are present on both echo.Echo and echo.Group, since we want to allow using either of them for path registration

type Edit

type Edit struct {
	// CancelResponse Used to interpret if client wants to receive pending replace, before the order is completely replaced
	CancelResponse *bool `json:"cancel_response,omitempty"`

	// Deadline RFC3339 timestamp (e.g. 2021-04-01T00:18:45Z) after which the matching engine should reject the new order request, in presence of latency or order queueing. min now() + 2 seconds, max now() + 60 seconds.
	Deadline *string `json:"deadline,omitempty"`

	// Displayvol Order quantity in terms of the base asset, used to create an iceberg order.
	Displayvol *string `json:"displayvol,omitempty"`

	// Nonce Nonce used in construction of `API-Sign` header
	Nonce Nonce `json:"nonce"`

	// Oflags Comma delimited list of order flags. Only these flags can be changed: - post post-only order (available when ordertype = limit). All the flags from the parent order are retained except post-only. post-only needs to be explicitly mentioned on edit request.
	Oflags *interface{} `json:"oflags,omitempty"`

	// Pair Asset pair `id` or `altname`
	Pair string `json:"pair"`

	// Price Price
	//
	// * Limit price for `limit` orders
	// * Trigger price for `stop-loss`, `stop-loss-limit`, `take-profit` and `take-profit-limit` orders
	Price *string `json:"price,omitempty"`

	// Price2 Secondary Price
	//
	// * Limit price for `stop-loss-limit` and `take-profit-limit` orders
	//
	// >  Note: Either `price` or `price2` can be preceded by `+`, `-`, or `#` to specify the order price as an offset relative to the last traded price. `+` adds the amount to, and `-` subtracts the amount from the last traded price. `#` will either add or subtract the amount to the last traded price, depending on the direction and order type used. Relative prices can be suffixed with a `%` to signify the relative amount as a percentage.
	Price2 *string `json:"price2,omitempty"`

	// Txid Original Order ID or User Reference Id (userref) which is user-specified integer id used with the original order. If userref is not unique and was used with multiple order, edit request is denied with an error.
	Txid Edit_Txid `json:"txid"`

	// Userref User reference id
	//
	// `userref` is an optional user-specified integer id associated with edit request.
	//  >  Note: userref from parent order will not be retained on the new order after edit.
	Userref *int32 `json:"userref,omitempty"`

	// Validate Validate inputs only. Do not submit order.
	Validate *bool `json:"validate,omitempty"`

	// Volume Order quantity in terms of the base asset.
	Volume *string `json:"volume,omitempty"`
}

Edit defines model for edit.

type Edit2

type Edit2 struct {
	Error  *[]Error `json:"error,omitempty"`
	Result *struct {
		// Descr Order description info
		Descr *struct {
			// Order Order description
			Order *string `json:"order,omitempty"`
		} `json:"descr,omitempty"`

		// ErrorMessage Error message if unsuccessful
		ErrorMessage *string `json:"error_message,omitempty"`

		// Newuserref Original userref if passed with the request
		Newuserref *string `json:"newuserref,omitempty"`

		// Olduserref Original userref if passed with the request
		Olduserref *string `json:"olduserref,omitempty"`

		// OrdersCancelled Number of orders cancelled (either 0 or 1)
		OrdersCancelled *int `json:"orders_cancelled,omitempty"`

		// Originaltxid Original transaction ID
		Originaltxid *string `json:"originaltxid,omitempty"`

		// Price Updated price
		Price *string `json:"price,omitempty"`

		// Price2 Updated price2
		Price2 *string `json:"price2,omitempty"`

		// Status Status of the order: Ok or Err
		Status *string `json:"status,omitempty"`

		// Txid New Transaction ID
		// <br><sup><sub>(if order was added successfully)</sup></sub>
		Txid *string `json:"txid,omitempty"`

		// Volume Updated volume
		Volume *string `json:"volume,omitempty"`
	} `json:"result,omitempty"`
}

Edit2 defines model for edit-2.

type EditOrderFormdataRequestBody

type EditOrderFormdataRequestBody = Edit

EditOrderFormdataRequestBody defines body for EditOrder for application/x-www-form-urlencoded ContentType.

type EditOrderResponse

type EditOrderResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *Edit2
}

func ParseEditOrderResponse

func ParseEditOrderResponse(rsp *http.Response) (*EditOrderResponse, error)

ParseEditOrderResponse parses an HTTP response from a EditOrderWithResponse call

func (EditOrderResponse) Status

func (r EditOrderResponse) Status() string

Status returns HTTPResponse.Status

func (EditOrderResponse) StatusCode

func (r EditOrderResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type EditTxid0

type EditTxid0 = string

EditTxid0 defines model for .

type EditTxid1

type EditTxid1 = int

EditTxid1 defines model for .

type Edit_Txid

type Edit_Txid struct {
	// contains filtered or unexported fields
}

Edit_Txid Original Order ID or User Reference Id (userref) which is user-specified integer id used with the original order. If userref is not unique and was used with multiple order, edit request is denied with an error.

func (Edit_Txid) AsEditTxid0

func (t Edit_Txid) AsEditTxid0() (EditTxid0, error)

AsEditTxid0 returns the union data inside the Edit_Txid as a EditTxid0

func (Edit_Txid) AsEditTxid1

func (t Edit_Txid) AsEditTxid1() (EditTxid1, error)

AsEditTxid1 returns the union data inside the Edit_Txid as a EditTxid1

func (*Edit_Txid) FromEditTxid0

func (t *Edit_Txid) FromEditTxid0(v EditTxid0) error

FromEditTxid0 overwrites any union data inside the Edit_Txid as the provided EditTxid0

func (*Edit_Txid) FromEditTxid1

func (t *Edit_Txid) FromEditTxid1(v EditTxid1) error

FromEditTxid1 overwrites any union data inside the Edit_Txid as the provided EditTxid1

func (Edit_Txid) MarshalJSON

func (t Edit_Txid) MarshalJSON() ([]byte, error)

func (*Edit_Txid) MergeEditTxid0

func (t *Edit_Txid) MergeEditTxid0(v EditTxid0) error

MergeEditTxid0 performs a merge with any union data inside the Edit_Txid, using the provided EditTxid0

func (*Edit_Txid) MergeEditTxid1

func (t *Edit_Txid) MergeEditTxid1(v EditTxid1) error

MergeEditTxid1 performs a merge with any union data inside the Edit_Txid, using the provided EditTxid1

func (*Edit_Txid) UnmarshalJSON

func (t *Edit_Txid) UnmarshalJSON(b []byte) error

type Error

type Error = []string

Error defines model for error.

type ExportStatusFormdataBody

type ExportStatusFormdataBody struct {
	// Nonce Nonce used in construction of `API-Sign` header
	Nonce Nonce `json:"nonce"`

	// Report Type of reports to inquire about
	Report ExportStatusFormdataBodyReport `json:"report"`
}

ExportStatusFormdataBody defines parameters for ExportStatus.

type ExportStatusFormdataBodyReport

type ExportStatusFormdataBodyReport string

ExportStatusFormdataBodyReport defines parameters for ExportStatus.

const (
	ExportStatusFormdataBodyReportLedgers ExportStatusFormdataBodyReport = "ledgers"
	ExportStatusFormdataBodyReportTrades  ExportStatusFormdataBodyReport = "trades"
)

Defines values for ExportStatusFormdataBodyReport.

type ExportStatusFormdataRequestBody

type ExportStatusFormdataRequestBody ExportStatusFormdataBody

ExportStatusFormdataRequestBody defines body for ExportStatus for application/x-www-form-urlencoded ContentType.

type ExportStatusResponse

type ExportStatusResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *struct {
		Error  *Error `json:"error,omitempty"`
		Result *[]struct {
			Aclass *string `json:"aclass,omitempty"`
			Asset  *string `json:"asset,omitempty"`

			// Completedtm UNIX timestamp report processing finished
			Completedtm *string `json:"completedtm,omitempty"`

			// Createdtm UNIX timestamp of report request
			Createdtm *string `json:"createdtm,omitempty"`

			// Dataendtm UNIX timestamp of the report data end time
			Dataendtm *string `json:"dataendtm,omitempty"`

			// Datastarttm UNIX timestamp of the report data start time
			Datastarttm *string `json:"datastarttm,omitempty"`
			Descr       *string `json:"descr,omitempty"`
			Expiretm    *string `json:"expiretm,omitempty"`
			Fields      *string `json:"fields,omitempty"`
			Flags       *string `json:"flags,omitempty"`
			Format      *string `json:"format,omitempty"`

			// Id Report ID
			Id     *string `json:"id,omitempty"`
			Report *string `json:"report,omitempty"`

			// Starttm UNIX timestamp report processing began
			Starttm *string `json:"starttm,omitempty"`

			// Status Status of the report
			Status  *GetSystemStatusResponseStatus `json:"status,omitempty"`
			Subtype *string                        `json:"subtype,omitempty"`
		} `json:"result,omitempty"`
	}
}

func ParseExportStatusResponse

func ParseExportStatusResponse(rsp *http.Response) (*ExportStatusResponse, error)

ParseExportStatusResponse parses an HTTP response from a ExportStatusWithResponse call

func (ExportStatusResponse) Status

func (r ExportStatusResponse) Status() string

Status returns HTTPResponse.Status

func (ExportStatusResponse) StatusCode

func (r ExportStatusResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type Fees

type Fees struct {
	// Fee Current fee (in percent)
	Fee *string `json:"fee,omitempty"`

	// MaxFee maximum fee for pair (if not fixed fee)
	MaxFee *string `json:"max_fee,omitempty"`

	// MinFee minimum fee for pair (if not fixed fee)
	MinFee *string `json:"min_fee,omitempty"`

	// NextFee next tier's fee for pair (if not fixed fee,  null if at lowest fee tier)
	NextFee *string `json:"next_fee"`

	// NextVolume volume level of next tier (if not fixed fee. null if at lowest fee tier)
	NextVolume *string `json:"next_volume"`

	// TierVolume volume level of current tier (if not fixed fee. null if at lowest fee tier)
	TierVolume *string `json:"tier_volume"`
}

Fees Fee Tier Info

type GetAccountBalanceFormdataBody

type GetAccountBalanceFormdataBody struct {
	// Nonce Nonce used in construction of `API-Sign` header
	Nonce Nonce `json:"nonce"`
}

GetAccountBalanceFormdataBody defines parameters for GetAccountBalance.

type GetAccountBalanceFormdataRequestBody

type GetAccountBalanceFormdataRequestBody GetAccountBalanceFormdataBody

GetAccountBalanceFormdataRequestBody defines body for GetAccountBalance for application/x-www-form-urlencoded ContentType.

type GetAccountBalanceResponse

type GetAccountBalanceResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *Balance2
}

func ParseGetAccountBalanceResponse

func ParseGetAccountBalanceResponse(rsp *http.Response) (*GetAccountBalanceResponse, error)

ParseGetAccountBalanceResponse parses an HTTP response from a GetAccountBalanceWithResponse call

func (GetAccountBalanceResponse) Status

func (r GetAccountBalanceResponse) Status() string

Status returns HTTPResponse.Status

func (GetAccountBalanceResponse) StatusCode

func (r GetAccountBalanceResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetAssetInfoParams

type GetAssetInfoParams struct {
	// Asset Comma delimited list of assets to get info on
	Asset *Asset `form:"asset,omitempty" json:"asset,omitempty"`

	// Aclass Asset class (optional, default: `currency`)
	Aclass *Aclass `form:"aclass,omitempty" json:"aclass,omitempty"`
}

GetAssetInfoParams defines parameters for GetAssetInfo.

type GetAssetInfoResponse

type GetAssetInfoResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *Info2
}

func ParseGetAssetInfoResponse

func ParseGetAssetInfoResponse(rsp *http.Response) (*GetAssetInfoResponse, error)

ParseGetAssetInfoResponse parses an HTTP response from a GetAssetInfoWithResponse call

func (GetAssetInfoResponse) Status

func (r GetAssetInfoResponse) Status() string

Status returns HTTPResponse.Status

func (GetAssetInfoResponse) StatusCode

func (r GetAssetInfoResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetClosedOrdersFormdataBody

type GetClosedOrdersFormdataBody struct {
	// Closetime Which time to use to search
	Closetime *GetClosedOrdersFormdataBodyClosetime `json:"closetime,omitempty"`

	// End Ending unix timestamp or order tx ID of results (inclusive)
	End *int `json:"end,omitempty"`

	// Nonce Nonce used in construction of `API-Sign` header
	Nonce Nonce `json:"nonce"`

	// Ofs Result offset for pagination
	Ofs *int `json:"ofs,omitempty"`

	// Start Starting unix timestamp or order tx ID of results (exclusive)
	Start *int `json:"start,omitempty"`

	// Trades Whether or not to include trades related to position in output
	Trades *bool `json:"trades,omitempty"`

	// Userref Restrict results to given user reference id
	Userref *int32 `json:"userref,omitempty"`
}

GetClosedOrdersFormdataBody defines parameters for GetClosedOrders.

type GetClosedOrdersFormdataBodyClosetime

type GetClosedOrdersFormdataBodyClosetime string

GetClosedOrdersFormdataBodyClosetime defines parameters for GetClosedOrders.

const (
	GetClosedOrdersFormdataBodyClosetimeBoth  GetClosedOrdersFormdataBodyClosetime = "both"
	GetClosedOrdersFormdataBodyClosetimeClose GetClosedOrdersFormdataBodyClosetime = "close"
	GetClosedOrdersFormdataBodyClosetimeOpen  GetClosedOrdersFormdataBodyClosetime = "open"
)

Defines values for GetClosedOrdersFormdataBodyClosetime.

type GetClosedOrdersFormdataRequestBody

type GetClosedOrdersFormdataRequestBody GetClosedOrdersFormdataBody

GetClosedOrdersFormdataRequestBody defines body for GetClosedOrders for application/x-www-form-urlencoded ContentType.

type GetClosedOrdersResponse

type GetClosedOrdersResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *Closed2
}

func ParseGetClosedOrdersResponse

func ParseGetClosedOrdersResponse(rsp *http.Response) (*GetClosedOrdersResponse, error)

ParseGetClosedOrdersResponse parses an HTTP response from a GetClosedOrdersWithResponse call

func (GetClosedOrdersResponse) Status

func (r GetClosedOrdersResponse) Status() string

Status returns HTTPResponse.Status

func (GetClosedOrdersResponse) StatusCode

func (r GetClosedOrdersResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetDepositAddressesFormdataRequestBody

type GetDepositAddressesFormdataRequestBody = Addresses

GetDepositAddressesFormdataRequestBody defines body for GetDepositAddresses for application/x-www-form-urlencoded ContentType.

type GetDepositAddressesResponse

type GetDepositAddressesResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *Addresses2
}

func ParseGetDepositAddressesResponse

func ParseGetDepositAddressesResponse(rsp *http.Response) (*GetDepositAddressesResponse, error)

ParseGetDepositAddressesResponse parses an HTTP response from a GetDepositAddressesWithResponse call

func (GetDepositAddressesResponse) Status

Status returns HTTPResponse.Status

func (GetDepositAddressesResponse) StatusCode

func (r GetDepositAddressesResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetDepositMethodsFormdataRequestBody

type GetDepositMethodsFormdataRequestBody = Methods

GetDepositMethodsFormdataRequestBody defines body for GetDepositMethods for application/x-www-form-urlencoded ContentType.

type GetDepositMethodsResponse

type GetDepositMethodsResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *Methods2
}

func ParseGetDepositMethodsResponse

func ParseGetDepositMethodsResponse(rsp *http.Response) (*GetDepositMethodsResponse, error)

ParseGetDepositMethodsResponse parses an HTTP response from a GetDepositMethodsWithResponse call

func (GetDepositMethodsResponse) Status

func (r GetDepositMethodsResponse) Status() string

Status returns HTTPResponse.Status

func (GetDepositMethodsResponse) StatusCode

func (r GetDepositMethodsResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetLedgersFormdataBody

type GetLedgersFormdataBody struct {
	// Aclass Asset class
	Aclass *string `json:"aclass,omitempty"`

	// Asset Comma delimited list of assets to restrict output to
	Asset *string `json:"asset,omitempty"`

	// End Ending unix timestamp or ledger ID of results (inclusive)
	End *int `json:"end,omitempty"`

	// Nonce Nonce used in construction of `API-Sign` header
	Nonce Nonce `json:"nonce"`

	// Ofs Result offset for pagination
	Ofs *int `json:"ofs,omitempty"`

	// Start Starting unix timestamp or ledger ID of results (exclusive)
	Start *int `json:"start,omitempty"`

	// Type Type of ledger to retrieve
	Type *GetLedgersFormdataBodyType `json:"type,omitempty"`
}

GetLedgersFormdataBody defines parameters for GetLedgers.

type GetLedgersFormdataBodyType

type GetLedgersFormdataBodyType string

GetLedgersFormdataBodyType defines parameters for GetLedgers.

const (
	GetLedgersFormdataBodyTypeAll        GetLedgersFormdataBodyType = "all"
	GetLedgersFormdataBodyTypeCredit     GetLedgersFormdataBodyType = "credit"
	GetLedgersFormdataBodyTypeDeposit    GetLedgersFormdataBodyType = "deposit"
	GetLedgersFormdataBodyTypeMargin     GetLedgersFormdataBodyType = "margin"
	GetLedgersFormdataBodyTypeRollover   GetLedgersFormdataBodyType = "rollover"
	GetLedgersFormdataBodyTypeSale       GetLedgersFormdataBodyType = "sale"
	GetLedgersFormdataBodyTypeSettled    GetLedgersFormdataBodyType = "settled"
	GetLedgersFormdataBodyTypeStaking    GetLedgersFormdataBodyType = "staking"
	GetLedgersFormdataBodyTypeTrade      GetLedgersFormdataBodyType = "trade"
	GetLedgersFormdataBodyTypeTransfer   GetLedgersFormdataBodyType = "transfer"
	GetLedgersFormdataBodyTypeWithdrawal GetLedgersFormdataBodyType = "withdrawal"
)

Defines values for GetLedgersFormdataBodyType.

type GetLedgersFormdataRequestBody

type GetLedgersFormdataRequestBody GetLedgersFormdataBody

GetLedgersFormdataRequestBody defines body for GetLedgers for application/x-www-form-urlencoded ContentType.

type GetLedgersInfoFormdataBody

type GetLedgersInfoFormdataBody struct {
	// Id Comma delimited list of ledger IDs to query info about (20 maximum)
	Id *string `json:"id,omitempty"`

	// Nonce Nonce used in construction of `API-Sign` header
	Nonce Nonce `json:"nonce"`

	// Trades Whether or not to include trades related to position in output
	Trades *bool `json:"trades,omitempty"`
}

GetLedgersInfoFormdataBody defines parameters for GetLedgersInfo.

type GetLedgersInfoFormdataRequestBody

type GetLedgersInfoFormdataRequestBody GetLedgersInfoFormdataBody

GetLedgersInfoFormdataRequestBody defines body for GetLedgersInfo for application/x-www-form-urlencoded ContentType.

type GetLedgersInfoResponse

type GetLedgersInfoResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *Query3
}

func ParseGetLedgersInfoResponse

func ParseGetLedgersInfoResponse(rsp *http.Response) (*GetLedgersInfoResponse, error)

ParseGetLedgersInfoResponse parses an HTTP response from a GetLedgersInfoWithResponse call

func (GetLedgersInfoResponse) Status

func (r GetLedgersInfoResponse) Status() string

Status returns HTTPResponse.Status

func (GetLedgersInfoResponse) StatusCode

func (r GetLedgersInfoResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetLedgersResponse

type GetLedgersResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *Info3
}

func ParseGetLedgersResponse

func ParseGetLedgersResponse(rsp *http.Response) (*GetLedgersResponse, error)

ParseGetLedgersResponse parses an HTTP response from a GetLedgersWithResponse call

func (GetLedgersResponse) Status

func (r GetLedgersResponse) Status() string

Status returns HTTPResponse.Status

func (GetLedgersResponse) StatusCode

func (r GetLedgersResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetOHLCDataParams

type GetOHLCDataParams struct {
	// Pair Asset pair to get data for
	Pair Pair `form:"pair" json:"pair"`

	// Interval Time frame interval in minutes
	Interval *GetOHLCDataParamsInterval `form:"interval,omitempty" json:"interval,omitempty"`

	// Since Return up to 720 OHLC data points since given timestamp
	Since *int `form:"since,omitempty" json:"since,omitempty"`
}

GetOHLCDataParams defines parameters for GetOHLCData.

type GetOHLCDataParamsInterval

type GetOHLCDataParamsInterval int

GetOHLCDataParamsInterval defines parameters for GetOHLCData.

Defines values for GetOHLCDataParamsInterval.

type GetOHLCDataResponse

type GetOHLCDataResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *Ohlc
}

func ParseGetOHLCDataResponse

func ParseGetOHLCDataResponse(rsp *http.Response) (*GetOHLCDataResponse, error)

ParseGetOHLCDataResponse parses an HTTP response from a GetOHLCDataWithResponse call

func (GetOHLCDataResponse) Status

func (r GetOHLCDataResponse) Status() string

Status returns HTTPResponse.Status

func (GetOHLCDataResponse) StatusCode

func (r GetOHLCDataResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetOpenOrdersFormdataBody

type GetOpenOrdersFormdataBody struct {
	// Nonce Nonce used in construction of `API-Sign` header
	Nonce Nonce `json:"nonce"`

	// Trades Whether or not to include trades related to position in output
	Trades *bool `json:"trades,omitempty"`

	// Userref Restrict results to given user reference id
	Userref *int32 `json:"userref,omitempty"`
}

GetOpenOrdersFormdataBody defines parameters for GetOpenOrders.

type GetOpenOrdersFormdataRequestBody

type GetOpenOrdersFormdataRequestBody GetOpenOrdersFormdataBody

GetOpenOrdersFormdataRequestBody defines body for GetOpenOrders for application/x-www-form-urlencoded ContentType.

type GetOpenOrdersResponse

type GetOpenOrdersResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *Open2
}

func ParseGetOpenOrdersResponse

func ParseGetOpenOrdersResponse(rsp *http.Response) (*GetOpenOrdersResponse, error)

ParseGetOpenOrdersResponse parses an HTTP response from a GetOpenOrdersWithResponse call

func (GetOpenOrdersResponse) Status

func (r GetOpenOrdersResponse) Status() string

Status returns HTTPResponse.Status

func (GetOpenOrdersResponse) StatusCode

func (r GetOpenOrdersResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetOpenPositionsFormdataBody

type GetOpenPositionsFormdataBody struct {
	// Consolidation Consolidate positions by market/pair
	Consolidation *GetOpenPositionsFormdataBodyConsolidation `json:"consolidation,omitempty"`

	// Docalcs Whether to include P&L calculations
	Docalcs *bool `json:"docalcs,omitempty"`

	// Nonce Nonce used in construction of `API-Sign` header
	Nonce Nonce `json:"nonce"`

	// Txid Comma delimited list of txids to limit output to
	Txid *string `json:"txid,omitempty"`
}

GetOpenPositionsFormdataBody defines parameters for GetOpenPositions.

type GetOpenPositionsFormdataBodyConsolidation

type GetOpenPositionsFormdataBodyConsolidation string

GetOpenPositionsFormdataBodyConsolidation defines parameters for GetOpenPositions.

const (
	Market GetOpenPositionsFormdataBodyConsolidation = "market"
)

Defines values for GetOpenPositionsFormdataBodyConsolidation.

type GetOpenPositionsFormdataRequestBody

type GetOpenPositionsFormdataRequestBody GetOpenPositionsFormdataBody

GetOpenPositionsFormdataRequestBody defines body for GetOpenPositions for application/x-www-form-urlencoded ContentType.

type GetOpenPositionsResponse

type GetOpenPositionsResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *struct {
		Error  *Error `json:"error,omitempty"`
		Result *map[string]struct {
			// Cost Opening cost of position (in quote currency)
			Cost *string `json:"cost,omitempty"`

			// Fee Opening fee of position (in quote currency)
			Fee *string `json:"fee,omitempty"`

			// Margin Initial margin consumed (in quote currency)
			Margin *string `json:"margin,omitempty"`

			// Misc Comma delimited list of add'l info
			Misc *string `json:"misc,omitempty"`

			// Net Unrealised P&L of remaining position (if `docalcs` requested)
			Net *string `json:"net,omitempty"`

			// Oflags Comma delimited list of opening order flags
			Oflags *string `json:"oflags,omitempty"`

			// Ordertxid Order ID responsible for the position
			Ordertxid *string `json:"ordertxid,omitempty"`

			// Ordertype Order type used to open position
			Ordertype *string `json:"ordertype,omitempty"`

			// Pair Asset pair
			Pair *string `json:"pair,omitempty"`

			// Posstatus Position status
			Posstatus *string `json:"posstatus,omitempty"`

			// Rollovertm Timestamp of next margin rollover fee
			Rollovertm *string `json:"rollovertm,omitempty"`

			// Terms Funding cost and term of position
			Terms *string `json:"terms,omitempty"`

			// Time Unix timestamp of trade
			Time *float32 `json:"time,omitempty"`

			// Type Direction (buy/sell) of position
			Type *string `json:"type,omitempty"`

			// Value Current value of remaining position (if `docalcs` requested)
			Value *string `json:"value,omitempty"`

			// Vol Position opening size (in base currency)
			Vol *string `json:"vol,omitempty"`

			// VolClosed Quantity closed (in base currency)
			VolClosed *string `json:"vol_closed,omitempty"`
		} `json:"result,omitempty"`
	}
}

func ParseGetOpenPositionsResponse

func ParseGetOpenPositionsResponse(rsp *http.Response) (*GetOpenPositionsResponse, error)

ParseGetOpenPositionsResponse parses an HTTP response from a GetOpenPositionsWithResponse call

func (GetOpenPositionsResponse) Status

func (r GetOpenPositionsResponse) Status() string

Status returns HTTPResponse.Status

func (GetOpenPositionsResponse) StatusCode

func (r GetOpenPositionsResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetOrderBookParams

type GetOrderBookParams struct {
	// Pair Asset pair to get data for
	Pair Pair `form:"pair" json:"pair"`

	// Count Maximum number of asks/bids
	Count *int `form:"count,omitempty" json:"count,omitempty"`
}

GetOrderBookParams defines parameters for GetOrderBook.

type GetOrderBookResponse

type GetOrderBookResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *Depth
}

func ParseGetOrderBookResponse

func ParseGetOrderBookResponse(rsp *http.Response) (*GetOrderBookResponse, error)

ParseGetOrderBookResponse parses an HTTP response from a GetOrderBookWithResponse call

func (GetOrderBookResponse) Status

func (r GetOrderBookResponse) Status() string

Status returns HTTPResponse.Status

func (GetOrderBookResponse) StatusCode

func (r GetOrderBookResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetOrdersInfoFormdataRequestBody

type GetOrdersInfoFormdataRequestBody = Query

GetOrdersInfoFormdataRequestBody defines body for GetOrdersInfo for application/x-www-form-urlencoded ContentType.

type GetOrdersInfoResponse

type GetOrdersInfoResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *Query2
}

func ParseGetOrdersInfoResponse

func ParseGetOrdersInfoResponse(rsp *http.Response) (*GetOrdersInfoResponse, error)

ParseGetOrdersInfoResponse parses an HTTP response from a GetOrdersInfoWithResponse call

func (GetOrdersInfoResponse) Status

func (r GetOrdersInfoResponse) Status() string

Status returns HTTPResponse.Status

func (GetOrdersInfoResponse) StatusCode

func (r GetOrdersInfoResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetRecentSpreadsParams

type GetRecentSpreadsParams struct {
	// Pair Asset pair to get data for
	Pair Pair `form:"pair" json:"pair"`

	// Since Return spread data since given timestamp
	Since *int `form:"since,omitempty" json:"since,omitempty"`
}

GetRecentSpreadsParams defines parameters for GetRecentSpreads.

type GetRecentSpreadsResponse

type GetRecentSpreadsResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *Spread2
}

func ParseGetRecentSpreadsResponse

func ParseGetRecentSpreadsResponse(rsp *http.Response) (*GetRecentSpreadsResponse, error)

ParseGetRecentSpreadsResponse parses an HTTP response from a GetRecentSpreadsWithResponse call

func (GetRecentSpreadsResponse) Status

func (r GetRecentSpreadsResponse) Status() string

Status returns HTTPResponse.Status

func (GetRecentSpreadsResponse) StatusCode

func (r GetRecentSpreadsResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetRecentTradesParams

type GetRecentTradesParams struct {
	// Pair Asset pair to get data for
	Pair Pair `form:"pair" json:"pair"`

	// Since Return trade data since given timestamp
	Since *string `form:"since,omitempty" json:"since,omitempty"`
}

GetRecentTradesParams defines parameters for GetRecentTrades.

type GetRecentTradesResponse

type GetRecentTradesResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *Trades
}

func ParseGetRecentTradesResponse

func ParseGetRecentTradesResponse(rsp *http.Response) (*GetRecentTradesResponse, error)

ParseGetRecentTradesResponse parses an HTTP response from a GetRecentTradesWithResponse call

func (GetRecentTradesResponse) Status

func (r GetRecentTradesResponse) Status() string

Status returns HTTPResponse.Status

func (GetRecentTradesResponse) StatusCode

func (r GetRecentTradesResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetServerTimeResponse

type GetServerTimeResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *Time
}

func ParseGetServerTimeResponse

func ParseGetServerTimeResponse(rsp *http.Response) (*GetServerTimeResponse, error)

ParseGetServerTimeResponse parses an HTTP response from a GetServerTimeWithResponse call

func (GetServerTimeResponse) Status

func (r GetServerTimeResponse) Status() string

Status returns HTTPResponse.Status

func (GetServerTimeResponse) StatusCode

func (r GetServerTimeResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetStakingAssetInfoFormdataBody

type GetStakingAssetInfoFormdataBody struct {
	// Nonce Nonce used in construction of `API-Sign` header
	Nonce Nonce `json:"nonce"`
}

GetStakingAssetInfoFormdataBody defines parameters for GetStakingAssetInfo.

type GetStakingAssetInfoFormdataRequestBody

type GetStakingAssetInfoFormdataRequestBody GetStakingAssetInfoFormdataBody

GetStakingAssetInfoFormdataRequestBody defines body for GetStakingAssetInfo for application/x-www-form-urlencoded ContentType.

type GetStakingAssetInfoResponse

type GetStakingAssetInfoResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *struct {
		Error  *Error       `json:"error,omitempty"`
		Result *[]testAsset `json:"result,omitempty"`
	}
}

func ParseGetStakingAssetInfoResponse

func ParseGetStakingAssetInfoResponse(rsp *http.Response) (*GetStakingAssetInfoResponse, error)

ParseGetStakingAssetInfoResponse parses an HTTP response from a GetStakingAssetInfoWithResponse call

func (GetStakingAssetInfoResponse) Status

Status returns HTTPResponse.Status

func (GetStakingAssetInfoResponse) StatusCode

func (r GetStakingAssetInfoResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetStakingPendingDepositsFormdataBody

type GetStakingPendingDepositsFormdataBody struct {
	// Nonce Nonce used in construction of `API-Sign` header
	Nonce Nonce `json:"nonce"`
}

GetStakingPendingDepositsFormdataBody defines parameters for GetStakingPendingDeposits.

type GetStakingPendingDepositsFormdataRequestBody

type GetStakingPendingDepositsFormdataRequestBody GetStakingPendingDepositsFormdataBody

GetStakingPendingDepositsFormdataRequestBody defines body for GetStakingPendingDeposits for application/x-www-form-urlencoded ContentType.

type GetStakingPendingDepositsResponse

type GetStakingPendingDepositsResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *struct {
		Error  *Error         `json:"error,omitempty"`
		Result *[]Transaction `json:"result,omitempty"`
	}
}

func ParseGetStakingPendingDepositsResponse

func ParseGetStakingPendingDepositsResponse(rsp *http.Response) (*GetStakingPendingDepositsResponse, error)

ParseGetStakingPendingDepositsResponse parses an HTTP response from a GetStakingPendingDepositsWithResponse call

func (GetStakingPendingDepositsResponse) Status

Status returns HTTPResponse.Status

func (GetStakingPendingDepositsResponse) StatusCode

func (r GetStakingPendingDepositsResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetStakingTransactionsFormdataBody

type GetStakingTransactionsFormdataBody struct {
	// Nonce Nonce used in construction of `API-Sign` header
	Nonce Nonce `json:"nonce"`
}

GetStakingTransactionsFormdataBody defines parameters for GetStakingTransactions.

type GetStakingTransactionsFormdataRequestBody

type GetStakingTransactionsFormdataRequestBody GetStakingTransactionsFormdataBody

GetStakingTransactionsFormdataRequestBody defines body for GetStakingTransactions for application/x-www-form-urlencoded ContentType.

type GetStakingTransactionsResponse

type GetStakingTransactionsResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *struct {
		Error  *Error         `json:"error,omitempty"`
		Result *[]Transaction `json:"result,omitempty"`
	}
}

func ParseGetStakingTransactionsResponse

func ParseGetStakingTransactionsResponse(rsp *http.Response) (*GetStakingTransactionsResponse, error)

ParseGetStakingTransactionsResponse parses an HTTP response from a GetStakingTransactionsWithResponse call

func (GetStakingTransactionsResponse) Status

Status returns HTTPResponse.Status

func (GetStakingTransactionsResponse) StatusCode

func (r GetStakingTransactionsResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetStatusRecentDepositsFormdataRequestBody

type GetStatusRecentDepositsFormdataRequestBody = Recent

GetStatusRecentDepositsFormdataRequestBody defines body for GetStatusRecentDeposits for application/x-www-form-urlencoded ContentType.

type GetStatusRecentDepositsResponse

type GetStatusRecentDepositsResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *Recent2
}

func ParseGetStatusRecentDepositsResponse

func ParseGetStatusRecentDepositsResponse(rsp *http.Response) (*GetStatusRecentDepositsResponse, error)

ParseGetStatusRecentDepositsResponse parses an HTTP response from a GetStatusRecentDepositsWithResponse call

func (GetStatusRecentDepositsResponse) Status

Status returns HTTPResponse.Status

func (GetStatusRecentDepositsResponse) StatusCode

func (r GetStatusRecentDepositsResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetStatusRecentWithdrawalsFormdataRequestBody

type GetStatusRecentWithdrawalsFormdataRequestBody = Recent3

GetStatusRecentWithdrawalsFormdataRequestBody defines body for GetStatusRecentWithdrawals for application/x-www-form-urlencoded ContentType.

type GetStatusRecentWithdrawalsResponse

type GetStatusRecentWithdrawalsResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *Recent4
}

func ParseGetStatusRecentWithdrawalsResponse

func ParseGetStatusRecentWithdrawalsResponse(rsp *http.Response) (*GetStatusRecentWithdrawalsResponse, error)

ParseGetStatusRecentWithdrawalsResponse parses an HTTP response from a GetStatusRecentWithdrawalsWithResponse call

func (GetStatusRecentWithdrawalsResponse) Status

Status returns HTTPResponse.Status

func (GetStatusRecentWithdrawalsResponse) StatusCode

func (r GetStatusRecentWithdrawalsResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetSystemStatusResponse

type GetSystemStatusResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *struct {
		Error  *Error `json:"error,omitempty"`
		Result *struct {
			// Status Current system status:
			// * `online`  Kraken is operating normally. All order types may be submitted and trades can occur.
			// * `maintenance`  The exchange is offline. No new orders or cancellations may be submitted.
			// * `cancel_only`  Resting (open) orders can be cancelled but no new orders may be submitted. No trades will occur.
			// * `post_only`  Only post-only limit orders can be submitted. Existing orders may still be cancelled. No trades will occur.
			Status *GetSystemStatusResponseStatus `json:"status,omitempty"`

			// Timestamp Current timestamp (RFC3339)
			Timestamp *string `json:"timestamp,omitempty"`
		} `json:"result,omitempty"`
	}
}

func ParseGetSystemStatusResponse

func ParseGetSystemStatusResponse(rsp *http.Response) (*GetSystemStatusResponse, error)

ParseGetSystemStatusResponse parses an HTTP response from a GetSystemStatusWithResponse call

func (GetSystemStatusResponse) Status

func (r GetSystemStatusResponse) Status() string

Status returns HTTPResponse.Status

func (GetSystemStatusResponse) StatusCode

func (r GetSystemStatusResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetSystemStatusResponseStatus

type GetSystemStatusResponseStatus string
const (
	GetSystemStatusOnline      GetSystemStatusResponseStatus = "online"
	GetSystemStatusMaintenance GetSystemStatusResponseStatus = "maintenance"
	GetSystemStatusCancelOnly  GetSystemStatusResponseStatus = "cancel_only"
	GetSystemStatusPostOnly    GetSystemStatusResponseStatus = "post_only"
)

type GetTickerInformationParams

type GetTickerInformationParams struct {
	// Pair Asset pair to get data for (optional, default: all tradeable exchange pairs)
	Pair *WildcardPair `form:"pair,omitempty" json:"pair,omitempty"`
}

GetTickerInformationParams defines parameters for GetTickerInformation.

type GetTickerInformationResponse

type GetTickerInformationResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *Ticker2
}

func ParseGetTickerInformationResponse

func ParseGetTickerInformationResponse(rsp *http.Response) (*GetTickerInformationResponse, error)

ParseGetTickerInformationResponse parses an HTTP response from a GetTickerInformationWithResponse call

func (GetTickerInformationResponse) Status

Status returns HTTPResponse.Status

func (GetTickerInformationResponse) StatusCode

func (r GetTickerInformationResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetTradableAssetPairsParams

type GetTradableAssetPairsParams struct {
	// Pair Asset pairs to get data for
	Pair *string `form:"pair,omitempty" json:"pair,omitempty"`

	// Info Info to retrieve (optional)
	//
	//   * `info` = all info
	//   * `leverage` = leverage info
	//   * `fees` = fees schedule
	//   * `margin` = margin info
	Info *GetTradableAssetPairsParamsInfo `form:"info,omitempty" json:"info,omitempty"`
}

GetTradableAssetPairsParams defines parameters for GetTradableAssetPairs.

type GetTradableAssetPairsParamsInfo

type GetTradableAssetPairsParamsInfo string

GetTradableAssetPairsParamsInfo defines parameters for GetTradableAssetPairs.

const (
	GetTradableAssetPairsParamsInfoFees     GetTradableAssetPairsParamsInfo = "fees"
	GetTradableAssetPairsParamsInfoInfo     GetTradableAssetPairsParamsInfo = "info"
	GetTradableAssetPairsParamsInfoLeverage GetTradableAssetPairsParamsInfo = "leverage"
	GetTradableAssetPairsParamsInfoMargin   GetTradableAssetPairsParamsInfo = "margin"
)

Defines values for GetTradableAssetPairsParamsInfo.

type GetTradableAssetPairsResponse

type GetTradableAssetPairsResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *struct {
		Error *Error `json:"error,omitempty"`

		// Result Pair names and their info
		Result *map[string]Pairs `json:"result,omitempty"`
	}
}

func ParseGetTradableAssetPairsResponse

func ParseGetTradableAssetPairsResponse(rsp *http.Response) (*GetTradableAssetPairsResponse, error)

ParseGetTradableAssetPairsResponse parses an HTTP response from a GetTradableAssetPairsWithResponse call

func (GetTradableAssetPairsResponse) Status

Status returns HTTPResponse.Status

func (GetTradableAssetPairsResponse) StatusCode

func (r GetTradableAssetPairsResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetTradeBalanceFormdataBody

type GetTradeBalanceFormdataBody struct {
	// Asset Base asset used to determine balance
	Asset *string `json:"asset,omitempty"`

	// Nonce Nonce used in construction of `API-Sign` header
	Nonce Nonce `json:"nonce"`
}

GetTradeBalanceFormdataBody defines parameters for GetTradeBalance.

type GetTradeBalanceFormdataRequestBody

type GetTradeBalanceFormdataRequestBody GetTradeBalanceFormdataBody

GetTradeBalanceFormdataRequestBody defines body for GetTradeBalance for application/x-www-form-urlencoded ContentType.

type GetTradeBalanceResponse

type GetTradeBalanceResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *Balance4
}

func ParseGetTradeBalanceResponse

func ParseGetTradeBalanceResponse(rsp *http.Response) (*GetTradeBalanceResponse, error)

ParseGetTradeBalanceResponse parses an HTTP response from a GetTradeBalanceWithResponse call

func (GetTradeBalanceResponse) Status

func (r GetTradeBalanceResponse) Status() string

Status returns HTTPResponse.Status

func (GetTradeBalanceResponse) StatusCode

func (r GetTradeBalanceResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetTradeHistoryFormdataBody

type GetTradeHistoryFormdataBody struct {
	// End Ending unix timestamp or trade tx ID of results (inclusive)
	End *int `json:"end,omitempty"`

	// Nonce Nonce used in construction of `API-Sign` header
	Nonce Nonce `json:"nonce"`

	// Ofs Result offset for pagination
	Ofs *int `json:"ofs,omitempty"`

	// Start Starting unix timestamp or trade tx ID of results (exclusive)
	Start *int `json:"start,omitempty"`

	// Trades Whether or not to include trades related to position in output
	Trades *bool `json:"trades,omitempty"`

	// Type Type of trade
	Type *GetTradeHistoryFormdataBodyType `json:"type,omitempty"`
}

GetTradeHistoryFormdataBody defines parameters for GetTradeHistory.

type GetTradeHistoryFormdataBodyType

type GetTradeHistoryFormdataBodyType string

GetTradeHistoryFormdataBodyType defines parameters for GetTradeHistory.

const (
	All             GetTradeHistoryFormdataBodyType = "all"
	AnyPosition     GetTradeHistoryFormdataBodyType = "any position"
	ClosedPosition  GetTradeHistoryFormdataBodyType = "closed position"
	ClosingPosition GetTradeHistoryFormdataBodyType = "closing position"
	NoPosition      GetTradeHistoryFormdataBodyType = "no position"
)

Defines values for GetTradeHistoryFormdataBodyType.

type GetTradeHistoryFormdataRequestBody

type GetTradeHistoryFormdataRequestBody GetTradeHistoryFormdataBody

GetTradeHistoryFormdataRequestBody defines body for GetTradeHistory for application/x-www-form-urlencoded ContentType.

type GetTradeHistoryResponse

type GetTradeHistoryResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *History2
}

func ParseGetTradeHistoryResponse

func ParseGetTradeHistoryResponse(rsp *http.Response) (*GetTradeHistoryResponse, error)

ParseGetTradeHistoryResponse parses an HTTP response from a GetTradeHistoryWithResponse call

func (GetTradeHistoryResponse) Status

func (r GetTradeHistoryResponse) Status() string

Status returns HTTPResponse.Status

func (GetTradeHistoryResponse) StatusCode

func (r GetTradeHistoryResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetTradeVolumeFormdataBody

type GetTradeVolumeFormdataBody struct {
	// Nonce Nonce used in construction of `API-Sign` header
	Nonce Nonce `json:"nonce"`

	// Pair Comma delimited list of asset pairs to get fee info on (optional)
	Pair *string `json:"pair,omitempty"`
}

GetTradeVolumeFormdataBody defines parameters for GetTradeVolume.

type GetTradeVolumeFormdataRequestBody

type GetTradeVolumeFormdataRequestBody GetTradeVolumeFormdataBody

GetTradeVolumeFormdataRequestBody defines body for GetTradeVolume for application/x-www-form-urlencoded ContentType.

type GetTradeVolumeResponse

type GetTradeVolumeResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *Volume
}

func ParseGetTradeVolumeResponse

func ParseGetTradeVolumeResponse(rsp *http.Response) (*GetTradeVolumeResponse, error)

ParseGetTradeVolumeResponse parses an HTTP response from a GetTradeVolumeWithResponse call

func (GetTradeVolumeResponse) Status

func (r GetTradeVolumeResponse) Status() string

Status returns HTTPResponse.Status

func (GetTradeVolumeResponse) StatusCode

func (r GetTradeVolumeResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetTradesInfoFormdataBody

type GetTradesInfoFormdataBody struct {
	// Nonce Nonce used in construction of `API-Sign` header
	Nonce Nonce `json:"nonce"`

	// Trades Whether or not to include trades related to position in output
	Trades *bool `json:"trades,omitempty"`

	// Txid Comma delimited list of transaction IDs to query info about (20 maximum)
	Txid *string `json:"txid,omitempty"`
}

GetTradesInfoFormdataBody defines parameters for GetTradesInfo.

type GetTradesInfoFormdataRequestBody

type GetTradesInfoFormdataRequestBody GetTradesInfoFormdataBody

GetTradesInfoFormdataRequestBody defines body for GetTradesInfo for application/x-www-form-urlencoded ContentType.

type GetTradesInfoResponse

type GetTradesInfoResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *struct {
		Error *[]Error `json:"error,omitempty"`

		// Result Trade info
		Result *map[string]Trade2 `json:"result,omitempty"`
	}
}

func ParseGetTradesInfoResponse

func ParseGetTradesInfoResponse(rsp *http.Response) (*GetTradesInfoResponse, error)

ParseGetTradesInfoResponse parses an HTTP response from a GetTradesInfoWithResponse call

func (GetTradesInfoResponse) Status

func (r GetTradesInfoResponse) Status() string

Status returns HTTPResponse.Status

func (GetTradesInfoResponse) StatusCode

func (r GetTradesInfoResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetWebsocketsTokenFormdataBody

type GetWebsocketsTokenFormdataBody struct {
	// Nonce Nonce used in construction of `API-Sign` header
	Nonce Nonce `json:"nonce"`
}

GetWebsocketsTokenFormdataBody defines parameters for GetWebsocketsToken.

type GetWebsocketsTokenFormdataRequestBody

type GetWebsocketsTokenFormdataRequestBody GetWebsocketsTokenFormdataBody

GetWebsocketsTokenFormdataRequestBody defines body for GetWebsocketsToken for application/x-www-form-urlencoded ContentType.

type GetWebsocketsTokenResponse

type GetWebsocketsTokenResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *struct {
		Error  *Error `json:"error,omitempty"`
		Result *struct {
			// Expires Time (in seconds) after which the token expires
			Expires *int `json:"expires,omitempty"`

			// Token Websockets token
			Token *string `json:"token,omitempty"`
		} `json:"result,omitempty"`
	}
}

func ParseGetWebsocketsTokenResponse

func ParseGetWebsocketsTokenResponse(rsp *http.Response) (*GetWebsocketsTokenResponse, error)

ParseGetWebsocketsTokenResponse parses an HTTP response from a GetWebsocketsTokenWithResponse call

func (GetWebsocketsTokenResponse) Status

Status returns HTTPResponse.Status

func (GetWebsocketsTokenResponse) StatusCode

func (r GetWebsocketsTokenResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetWithdrawalInformationFormdataRequestBody

type GetWithdrawalInformationFormdataRequestBody = Info4

GetWithdrawalInformationFormdataRequestBody defines body for GetWithdrawalInformation for application/x-www-form-urlencoded ContentType.

type GetWithdrawalInformationResponse

type GetWithdrawalInformationResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *Info5
}

func ParseGetWithdrawalInformationResponse

func ParseGetWithdrawalInformationResponse(rsp *http.Response) (*GetWithdrawalInformationResponse, error)

ParseGetWithdrawalInformationResponse parses an HTTP response from a GetWithdrawalInformationWithResponse call

func (GetWithdrawalInformationResponse) Status

Status returns HTTPResponse.Status

func (GetWithdrawalInformationResponse) StatusCode

func (r GetWithdrawalInformationResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type History

type History struct {
	// Count Amount of available trades matching criteria
	Count *int `json:"count,omitempty"`

	// Trades Trade info
	Trades *map[string]Trade2 `json:"trades,omitempty"`
}

History Trade History

type History2

type History2 struct {
	Error *Error `json:"error,omitempty"`

	// Result Trade History
	Result *History `json:"result,omitempty"`
}

History2 defines model for history-2.

type HttpRequestDoer

type HttpRequestDoer interface {
	Do(req *http.Request) (*http.Response, error)
}

Doer performs HTTP requests.

The standard http.Client implements this interface.

type Info

type Info struct {
	// Aclass Asset Class
	Aclass *string `json:"aclass,omitempty"`

	// Altname Alternate name
	Altname *string `json:"altname,omitempty"`

	// CollateralValue Valuation as margin collateral (if applicable)
	CollateralValue *float32 `json:"collateral_value,omitempty"`

	// Decimals Scaling decimal places for record keeping
	Decimals *int `json:"decimals,omitempty"`

	// DisplayDecimals Scaling decimal places for output display
	DisplayDecimals *int `json:"display_decimals,omitempty"`

	// Status Status of asset. Possible values: `enabled`, `deposit_only`, `withdrawal_only`, `funding_temporarily_disabled`.
	Status *string `json:"status,omitempty"`
}

Info Asset Info

type Info2

type Info2 struct {
	Error  *Error           `json:"error,omitempty"`
	Result *map[string]Info `json:"result,omitempty"`
}

Info2 defines model for info-2.

type Info3

type Info3 struct {
	Error *Error `json:"error,omitempty"`

	// Result Ledgers Info
	Result *struct {
		// Count Amount of available ledger info matching criteria
		Count  *int               `json:"count,omitempty"`
		Ledger *map[string]Ledger `json:"ledger,omitempty"`
	} `json:"result,omitempty"`
}

Info3 defines model for info-3.

type Info4

type Info4 struct {
	// Amount Amount to be withdrawn
	Amount string `json:"amount"`

	// Asset Asset being withdrawn
	Asset string `json:"asset"`

	// Key Withdrawal key name, as set up on your account
	Key string `json:"key"`

	// Nonce Nonce used in construction of `API-Sign` header
	Nonce Nonce `json:"nonce"`
}

Info4 defines model for info-4.

type Info5

type Info5 struct {
	Error *Error `json:"error,omitempty"`

	// Result Withdrawal Info
	Result *struct {
		// Amount Net amount that will be sent, after fees
		Amount *string `json:"amount,omitempty"`

		// Fee Amount of fees that will be paid
		Fee *string `json:"fee,omitempty"`

		// Limit Maximum net amount that can be withdrawn right now
		Limit *string `json:"limit,omitempty"`

		// Method Name of the withdrawal method that will be used
		Method *string `json:"method,omitempty"`
	} `json:"result,omitempty"`
}

Info5 defines model for info-5.

type Ledger

type Ledger struct {
	// Aclass Asset class
	Aclass *string `json:"aclass,omitempty"`

	// Amount Transaction amount
	Amount *string `json:"amount,omitempty"`

	// Asset Asset
	Asset *string `json:"asset,omitempty"`

	// Balance Resulting balance
	Balance *string `json:"balance,omitempty"`

	// Fee Transaction fee
	Fee *string `json:"fee,omitempty"`

	// Refid Reference Id
	Refid *string `json:"refid,omitempty"`

	// Subtype Additional info relating to the ledger entry type, where applicable
	Subtype *string `json:"subtype,omitempty"`

	// Time Unix timestamp of ledger
	Time *float32 `json:"time,omitempty"`

	// Type Type of ledger entry
	Type *LedgerType `json:"type,omitempty"`
}

Ledger Ledger Entry

type LedgerType

type LedgerType string

LedgerType Type of ledger entry

const (
	LedgerTypeAdjustment LedgerType = "adjustment"
	LedgerTypeDeposit    LedgerType = "deposit"
	LedgerTypeMargin     LedgerType = "margin"
	LedgerTypeReceive    LedgerType = "receive"
	LedgerTypeRollover   LedgerType = "rollover"
	LedgerTypeSettled    LedgerType = "settled"
	LedgerTypeSpend      LedgerType = "spend"
	LedgerTypeTrade      LedgerType = "trade"
	LedgerTypeTransfer   LedgerType = "transfer"
	LedgerTypeWithdrawal LedgerType = "withdrawal"
)

Defines values for LedgerType.

type Lock

type Lock struct {
	// Days Days the funds are locked.
	Days float32 `json:"days"`

	// Percentage Percentage of the funds that are locked (0 - 100)
	Percentage float32 `json:"percentage"`
}

Lock defines model for lock.

type Method

type Method struct {
	// AddressSetupFee Whether or not method has an address setup fee
	AddressSetupFee *string `json:"address-setup-fee,omitempty"`

	// Fee Amount of fees that will be paid
	Fee *string `json:"fee,omitempty"`

	// GenAddress Whether new addresses can be generated for this method.
	GenAddress *bool `json:"gen-address,omitempty"`

	// Limit Maximum net amount that can be deposited right now, or false if no limit
	Limit *interface{} `json:"limit,omitempty"`

	// Method Name of deposit method
	Method *string `json:"method,omitempty"`
}

Method Deposit Method

type Methods

type Methods struct {
	// Asset Asset being deposited
	Asset string `json:"asset"`

	// Nonce Nonce used in construction of `API-Sign` header
	Nonce Nonce `json:"nonce"`
}

Methods defines model for methods.

type Methods2

type Methods2 struct {
	Error  *Error    `json:"error,omitempty"`
	Result *[]Method `json:"result,omitempty"`
}

Methods2 defines model for methods-2.

type Nonce

type Nonce = int32

Nonce Nonce used in construction of `API-Sign` header

type Oflags

type Oflags = string

Oflags Comma delimited list of order flags

  • `post` post-only order (available when ordertype = limit)
  • `fcib` prefer fee in base currency (default if selling)
  • `fciq` prefer fee in quote currency (default if buying, mutually exclusive with `fcib`)
  • `nompp` disable [market price protection](https://support.kraken.com/hc/en-us/articles/201648183-Market-Price-Protection) for market orders
  • `viqc` order volume expressed in quote currency. This is supported only for market orders.

type Ohlc

type Ohlc struct {
	Error  *Error       `json:"error,omitempty"`
	Result *Ohlc_Result `json:"result,omitempty"`
}

Ohlc defines model for ohlc.

type Ohlc_Result

type Ohlc_Result struct {
	// Last ID to be used as since when polling for new, committed OHLC data
	Last                 *int                `json:"last,omitempty"`
	AdditionalProperties map[string]TickData `json:"-"`
}

Ohlc_Result defines model for Ohlc.Result.

func (Ohlc_Result) Get

func (a Ohlc_Result) Get(fieldName string) (value TickData, found bool)

Getter for additional properties for Ohlc_Result. Returns the specified element and whether it was found

func (Ohlc_Result) MarshalJSON

func (a Ohlc_Result) MarshalJSON() ([]byte, error)

Override default JSON handling for Ohlc_Result to handle AdditionalProperties

func (*Ohlc_Result) Set

func (a *Ohlc_Result) Set(fieldName string, value TickData)

Setter for additional properties for Ohlc_Result

func (*Ohlc_Result) UnmarshalJSON

func (a *Ohlc_Result) UnmarshalJSON(b []byte) error

Override default JSON handling for Ohlc_Result to handle AdditionalProperties

type Open

type Open = Order

Open Open Order

type Open2

type Open2 struct {
	Error *Error `json:"error,omitempty"`

	// Result Open Orders
	Result *struct {
		Open *map[string]Open `json:"open,omitempty"`
	} `json:"result,omitempty"`
}

Open2 defines model for open-2.

type Order

type Order struct {
	// Cost Total cost (quote currency unless)
	Cost *string `json:"cost,omitempty"`

	// Descr Order description info
	Descr *struct {
		// Close Conditional close order description (if conditional close set)
		Close *string `json:"close,omitempty"`

		// Leverage Amount of leverage
		Leverage *string `json:"leverage,omitempty"`

		// Order Order description
		Order *string `json:"order,omitempty"`

		// Ordertype Order type
		Ordertype *Ordertype `json:"ordertype,omitempty"`

		// Pair Asset pair
		Pair *string `json:"pair,omitempty"`

		// Price primary price
		Price *string `json:"price,omitempty"`

		// Price2 Secondary price
		Price2 *string `json:"price2,omitempty"`

		// Type Type of order (buy/sell)
		Type *OrderDescrType `json:"type,omitempty"`
	} `json:"descr,omitempty"`

	// Expiretm Unix timestamp of order end time (or 0 if not set)
	Expiretm *float32 `json:"expiretm,omitempty"`

	// Fee Total fee (quote currency)
	Fee *string `json:"fee,omitempty"`

	// Limitprice Triggered limit price (quote currency, when limit based order type triggered)
	Limitprice *string `json:"limitprice,omitempty"`

	// Misc Comma delimited list of miscellaneous info
	//
	//   * `stopped` triggered by stop price
	//   * `touched` triggered by touch price
	//   * `liquidated` liquidation
	//   * `partial` partial fill
	Misc *string `json:"misc,omitempty"`

	// Oflags Comma delimited list of order flags
	//
	//   * `post` post-only order (available when ordertype = limit)
	//   * `fcib` prefer fee in base currency (default if selling)
	//   * `fciq` prefer fee in quote currency (default if buying, mutually exclusive with `fcib`)
	//   * `nompp` disable [market price protection](https://support.kraken.com/hc/en-us/articles/201648183-Market-Price-Protection) for market orders
	//   * `viqc`  order volume expressed in quote currency. This is supported only for market orders.
	Oflags *Oflags `json:"oflags,omitempty"`

	// Opentm Unix timestamp of when order was placed
	Opentm *float32 `json:"opentm,omitempty"`

	// Price Average price (quote currency)
	Price *string `json:"price,omitempty"`

	// Refid Referral order transaction ID that created this order
	Refid *string `json:"refid,omitempty"`

	// Starttm Unix timestamp of order start time (or 0 if not set)
	Starttm *float32 `json:"starttm,omitempty"`

	// Status Status of order
	//   * pending = order pending book entry
	//   * open = open order
	//   * closed = closed order
	//   * canceled = order canceled
	//   * expired = order expired
	Status *OrderStatus `json:"status,omitempty"`

	// Stopprice Stop price (quote currency)
	Stopprice *string `json:"stopprice,omitempty"`

	// Trades List of trade IDs related to order (if trades info requested and data available)
	Trades *[]string `json:"trades,omitempty"`

	// Trigger Price signal used to trigger "stop-loss" "take-profit" "stop-loss-limit" "take-profit-limit" orders.
	//   * `last` is the implied trigger if this field is not set.
	Trigger *OrderTrigger `json:"trigger,omitempty"`

	// Userref User reference id
	Userref *string `json:"userref,omitempty"`

	// Vol Volume of order (base currency)
	Vol *string `json:"vol,omitempty"`

	// VolExec Volume executed (base currency)
	VolExec *string `json:"vol_exec,omitempty"`
}

Order Open Order

type OrderBookEntry

type OrderBookEntry struct {
	// Asks Ask side array of entries `[<price>, <volume>, <timestamp>]`
	Asks *[]OrderBookEntry_Asks_Item `json:"asks,omitempty"`

	// Bid Bid side array of entries `[<price>, <volume>, <timestamp>]`
	Bid *[]OrderBookEntry_Bid_Item `json:"bid,omitempty"`
}

OrderBookEntry Asset Pair Order Book Entries

type OrderBookEntryAsks0

type OrderBookEntryAsks0 = string

OrderBookEntryAsks0 defines model for .

type OrderBookEntryAsks1

type OrderBookEntryAsks1 = int

OrderBookEntryAsks1 defines model for .

type OrderBookEntryBid0

type OrderBookEntryBid0 = string

OrderBookEntryBid0 defines model for .

type OrderBookEntryBid1

type OrderBookEntryBid1 = int

OrderBookEntryBid1 defines model for .

type OrderBookEntry_Asks_Item

type OrderBookEntry_Asks_Item struct {
	// contains filtered or unexported fields
}

OrderBookEntry_Asks_Item defines model for orderBookEntry.asks.Item.

func (OrderBookEntry_Asks_Item) AsOrderBookEntryAsks0

func (t OrderBookEntry_Asks_Item) AsOrderBookEntryAsks0() (OrderBookEntryAsks0, error)

AsOrderBookEntryAsks0 returns the union data inside the OrderBookEntry_Asks_Item as a OrderBookEntryAsks0

func (OrderBookEntry_Asks_Item) AsOrderBookEntryAsks1

func (t OrderBookEntry_Asks_Item) AsOrderBookEntryAsks1() (OrderBookEntryAsks1, error)

AsOrderBookEntryAsks1 returns the union data inside the OrderBookEntry_Asks_Item as a OrderBookEntryAsks1

func (*OrderBookEntry_Asks_Item) FromOrderBookEntryAsks0

func (t *OrderBookEntry_Asks_Item) FromOrderBookEntryAsks0(v OrderBookEntryAsks0) error

FromOrderBookEntryAsks0 overwrites any union data inside the OrderBookEntry_Asks_Item as the provided OrderBookEntryAsks0

func (*OrderBookEntry_Asks_Item) FromOrderBookEntryAsks1

func (t *OrderBookEntry_Asks_Item) FromOrderBookEntryAsks1(v OrderBookEntryAsks1) error

FromOrderBookEntryAsks1 overwrites any union data inside the OrderBookEntry_Asks_Item as the provided OrderBookEntryAsks1

func (OrderBookEntry_Asks_Item) MarshalJSON

func (t OrderBookEntry_Asks_Item) MarshalJSON() ([]byte, error)

func (*OrderBookEntry_Asks_Item) MergeOrderBookEntryAsks0

func (t *OrderBookEntry_Asks_Item) MergeOrderBookEntryAsks0(v OrderBookEntryAsks0) error

MergeOrderBookEntryAsks0 performs a merge with any union data inside the OrderBookEntry_Asks_Item, using the provided OrderBookEntryAsks0

func (*OrderBookEntry_Asks_Item) MergeOrderBookEntryAsks1

func (t *OrderBookEntry_Asks_Item) MergeOrderBookEntryAsks1(v OrderBookEntryAsks1) error

MergeOrderBookEntryAsks1 performs a merge with any union data inside the OrderBookEntry_Asks_Item, using the provided OrderBookEntryAsks1

func (*OrderBookEntry_Asks_Item) UnmarshalJSON

func (t *OrderBookEntry_Asks_Item) UnmarshalJSON(b []byte) error

type OrderBookEntry_Bid_Item

type OrderBookEntry_Bid_Item struct {
	// contains filtered or unexported fields
}

OrderBookEntry_Bid_Item defines model for orderBookEntry.bid.Item.

func (OrderBookEntry_Bid_Item) AsOrderBookEntryBid0

func (t OrderBookEntry_Bid_Item) AsOrderBookEntryBid0() (OrderBookEntryBid0, error)

AsOrderBookEntryBid0 returns the union data inside the OrderBookEntry_Bid_Item as a OrderBookEntryBid0

func (OrderBookEntry_Bid_Item) AsOrderBookEntryBid1

func (t OrderBookEntry_Bid_Item) AsOrderBookEntryBid1() (OrderBookEntryBid1, error)

AsOrderBookEntryBid1 returns the union data inside the OrderBookEntry_Bid_Item as a OrderBookEntryBid1

func (*OrderBookEntry_Bid_Item) FromOrderBookEntryBid0

func (t *OrderBookEntry_Bid_Item) FromOrderBookEntryBid0(v OrderBookEntryBid0) error

FromOrderBookEntryBid0 overwrites any union data inside the OrderBookEntry_Bid_Item as the provided OrderBookEntryBid0

func (*OrderBookEntry_Bid_Item) FromOrderBookEntryBid1

func (t *OrderBookEntry_Bid_Item) FromOrderBookEntryBid1(v OrderBookEntryBid1) error

FromOrderBookEntryBid1 overwrites any union data inside the OrderBookEntry_Bid_Item as the provided OrderBookEntryBid1

func (OrderBookEntry_Bid_Item) MarshalJSON

func (t OrderBookEntry_Bid_Item) MarshalJSON() ([]byte, error)

func (*OrderBookEntry_Bid_Item) MergeOrderBookEntryBid0

func (t *OrderBookEntry_Bid_Item) MergeOrderBookEntryBid0(v OrderBookEntryBid0) error

MergeOrderBookEntryBid0 performs a merge with any union data inside the OrderBookEntry_Bid_Item, using the provided OrderBookEntryBid0

func (*OrderBookEntry_Bid_Item) MergeOrderBookEntryBid1

func (t *OrderBookEntry_Bid_Item) MergeOrderBookEntryBid1(v OrderBookEntryBid1) error

MergeOrderBookEntryBid1 performs a merge with any union data inside the OrderBookEntry_Bid_Item, using the provided OrderBookEntryBid1

func (*OrderBookEntry_Bid_Item) UnmarshalJSON

func (t *OrderBookEntry_Bid_Item) UnmarshalJSON(b []byte) error

type OrderDescrType

type OrderDescrType string

OrderDescrType Type of order (buy/sell)

const (
	Buy  OrderDescrType = "buy"
	Sell OrderDescrType = "sell"
)

Defines values for OrderDescrType.

type OrderStatus

type OrderStatus string

OrderStatus Status of order

  • pending = order pending book entry
  • open = open order
  • closed = closed order
  • canceled = order canceled
  • expired = order expired
const (
	OrderStatusCanceled OrderStatus = "canceled"
	OrderStatusClosed   OrderStatus = "closed"
	OrderStatusExpired  OrderStatus = "expired"
	OrderStatusOpen     OrderStatus = "open"
	OrderStatusPending  OrderStatus = "pending"
)

Defines values for OrderStatus.

type OrderTrigger

type OrderTrigger string

OrderTrigger Price signal used to trigger "stop-loss" "take-profit" "stop-loss-limit" "take-profit-limit" orders.

  • `last` is the implied trigger if this field is not set.
const (
	OrderTriggerIndex OrderTrigger = "index"
	OrderTriggerLast  OrderTrigger = "last"
)

Defines values for OrderTrigger.

type Ordertype

type Ordertype string

Ordertype Order type

const (
	OrdertypeLimit           Ordertype = "limit"
	OrdertypeMarket          Ordertype = "market"
	OrdertypeSettlePosition  Ordertype = "settle-position"
	OrdertypeStopLoss        Ordertype = "stop-loss"
	OrdertypeStopLossLimit   Ordertype = "stop-loss-limit"
	OrdertypeTakeProfit      Ordertype = "take-profit"
	OrdertypeTakeProfitLimit Ordertype = "take-profit-limit"
)

Defines values for Ordertype.

type Pair

type Pair = string

Pair defines model for pair.

type Pairs

type Pairs struct {
	// AclassBase Asset class of base component
	AclassBase *string `json:"aclass_base,omitempty"`

	// AclassQuote Asset class of quote component
	AclassQuote *string `json:"aclass_quote,omitempty"`

	// Altname Alternate pair name
	Altname *string `json:"altname,omitempty"`

	// Base Asset ID of base component
	Base *string `json:"base,omitempty"`

	// CostDecimals Scaling decimal places for cost
	CostDecimals *int `json:"cost_decimals,omitempty"`

	// Costmin Minimum order cost (in terms of quote currency)
	Costmin *string `json:"costmin,omitempty"`

	// FeeVolumeCurrency Volume discount currency
	FeeVolumeCurrency *string `json:"fee_volume_currency,omitempty"`

	// Fees Fee schedule array in `[<volume>, <percent fee>]` tuples
	Fees *[][]float32 `json:"fees,omitempty"`

	// FeesMaker Maker fee schedule array in `[<volume>, <percent fee>]`  tuples (if on maker/taker)
	FeesMaker *[][]float32 `json:"fees_maker,omitempty"`

	// LeverageBuy Array of leverage amounts available when buying
	LeverageBuy *[]int `json:"leverage_buy,omitempty"`

	// LeverageSell Array of leverage amounts available when selling
	LeverageSell *[]int `json:"leverage_sell,omitempty"`

	// Lot Volume lot size
	Lot *string `json:"lot,omitempty"`

	// LotDecimals Scaling decimal places for volume
	LotDecimals *int `json:"lot_decimals,omitempty"`

	// LotMultiplier Amount to multiply lot volume by to get currency volume
	LotMultiplier *int `json:"lot_multiplier,omitempty"`

	// MarginCall Margin call level
	MarginCall *int `json:"margin_call,omitempty"`

	// MarginStop Stop-out/liquidation margin level
	MarginStop *int `json:"margin_stop,omitempty"`

	// Ordermin Minimum order size (in terms of base currency)
	Ordermin *string `json:"ordermin,omitempty"`

	// PairDecimals Scaling decimal places for pair
	PairDecimals *int `json:"pair_decimals,omitempty"`

	// Quote Asset ID of quote component
	Quote *string `json:"quote,omitempty"`

	// Status Status of asset. Possible values: `online`, `cancel_only`, `post_only`, `limit_only`, `reduce_only`.
	Status *string `json:"status,omitempty"`

	// TickSize Minimum increment between valid price levels
	TickSize *string `json:"tick_size,omitempty"`

	// Wsname WebSocket pair name (if available)
	Wsname *string `json:"wsname,omitempty"`
}

Pairs Trading Asset Pair

type PosStatusType

type PosStatusType string

PosStatusType Type of ledger entry

type Query

type Query struct {
	// Nonce Nonce used in construction of `API-Sign` header
	Nonce Nonce `json:"nonce"`

	// Trades Whether or not to include trades related to position in output
	Trades *bool `json:"trades,omitempty"`

	// Txid Comma delimited list of transaction IDs to query info about (50 maximum)
	Txid string `json:"txid"`

	// Userref Restrict results to given user reference id
	Userref *int32 `json:"userref,omitempty"`
}

Query defines model for query.

type Query2

type Query2 struct {
	Error  *Error                                         `json:"error,omitempty"`
	Result *map[string]Query2_Result_AdditionalProperties `json:"result,omitempty"`
}

Query2 defines model for query-2.

type Query2_Result_AdditionalProperties

type Query2_Result_AdditionalProperties struct {
	// contains filtered or unexported fields
}

Query2_Result_AdditionalProperties defines model for query-2.result.AdditionalProperties.

func (Query2_Result_AdditionalProperties) AsClosed

AsClosed returns the union data inside the Query2_Result_AdditionalProperties as a Closed

func (Query2_Result_AdditionalProperties) AsOpen

AsOpen returns the union data inside the Query2_Result_AdditionalProperties as a Open

func (*Query2_Result_AdditionalProperties) FromClosed

FromClosed overwrites any union data inside the Query2_Result_AdditionalProperties as the provided Closed

func (*Query2_Result_AdditionalProperties) FromOpen

FromOpen overwrites any union data inside the Query2_Result_AdditionalProperties as the provided Open

func (Query2_Result_AdditionalProperties) MarshalJSON

func (t Query2_Result_AdditionalProperties) MarshalJSON() ([]byte, error)

func (*Query2_Result_AdditionalProperties) MergeClosed

MergeClosed performs a merge with any union data inside the Query2_Result_AdditionalProperties, using the provided Closed

func (*Query2_Result_AdditionalProperties) MergeOpen

MergeOpen performs a merge with any union data inside the Query2_Result_AdditionalProperties, using the provided Open

func (*Query2_Result_AdditionalProperties) UnmarshalJSON

func (t *Query2_Result_AdditionalProperties) UnmarshalJSON(b []byte) error

type Query3

type Query3 struct {
	Error  *Error             `json:"error,omitempty"`
	Result *map[string]Ledger `json:"result,omitempty"`
}

Query3 defines model for query-3.

type Recent

type Recent struct {
	// Asset Asset being deposited
	Asset string `json:"asset"`

	// Method Name of the deposit method
	Method *string `json:"method,omitempty"`

	// Nonce Nonce used in construction of `API-Sign` header
	Nonce Nonce `json:"nonce"`
}

Recent defines model for recent.

type Recent2

type Recent2 struct {
	Error  *Error     `json:"error,omitempty"`
	Result *[]Deposit `json:"result,omitempty"`
}

Recent2 defines model for recent-2.

type Recent3

type Recent3 struct {
	// Asset Asset being withdrawn
	Asset string `json:"asset"`

	// Method Name of the withdrawal method
	Method *string `json:"method,omitempty"`

	// Nonce Nonce used in construction of `API-Sign` header
	Nonce Nonce `json:"nonce"`
}

Recent3 defines model for recent-3.

type Recent4

type Recent4 struct {
	Error  *Error         `json:"error,omitempty"`
	Result *[]Withdrawal3 `json:"result,omitempty"`
}

Recent4 defines model for recent-4.

type RemoveExportFormdataBody

type RemoveExportFormdataBody struct {
	// Id ID of report to delete or cancel
	Id string `json:"id"`

	// Nonce Nonce used in construction of `API-Sign` header
	Nonce Nonce `json:"nonce"`

	// Type `delete` can only be used for reports that have already been processed. Use `cancel` for queued or processing reports.
	Type RemoveExportFormdataBodyType `json:"type"`
}

RemoveExportFormdataBody defines parameters for RemoveExport.

type RemoveExportFormdataBodyType

type RemoveExportFormdataBodyType string

RemoveExportFormdataBodyType defines parameters for RemoveExport.

const (
	RemoveExportFormdataBodyTypeCancel RemoveExportFormdataBodyType = "cancel"
	RemoveExportFormdataBodyTypeDelete RemoveExportFormdataBodyType = "delete"
)

Defines values for RemoveExportFormdataBodyType.

type RemoveExportFormdataRequestBody

type RemoveExportFormdataRequestBody RemoveExportFormdataBody

RemoveExportFormdataRequestBody defines body for RemoveExport for application/x-www-form-urlencoded ContentType.

type RemoveExportResponse

type RemoveExportResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *struct {
		Error  *Error `json:"error,omitempty"`
		Result *struct {
			// Cancel Whether cancellation was successful
			Cancel *bool `json:"cancel,omitempty"`

			// Delete Whether deletion was successful
			Delete *bool `json:"delete,omitempty"`
		} `json:"result,omitempty"`
	}
}

func ParseRemoveExportResponse

func ParseRemoveExportResponse(rsp *http.Response) (*RemoveExportResponse, error)

ParseRemoveExportResponse parses an HTTP response from a RemoveExportWithResponse call

func (RemoveExportResponse) Status

func (r RemoveExportResponse) Status() string

Status returns HTTPResponse.Status

func (RemoveExportResponse) StatusCode

func (r RemoveExportResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type RequestEditorFn

type RequestEditorFn func(ctx context.Context, req *http.Request) error

RequestEditorFn is the function signature for the RequestEditor callback function

type RetrieveExportFormdataBody

type RetrieveExportFormdataBody struct {
	// Id Report ID to retrieve
	Id string `json:"id"`

	// Nonce Nonce used in construction of `API-Sign` header
	Nonce Nonce `json:"nonce"`
}

RetrieveExportFormdataBody defines parameters for RetrieveExport.

type RetrieveExportFormdataRequestBody

type RetrieveExportFormdataRequestBody RetrieveExportFormdataBody

RetrieveExportFormdataRequestBody defines body for RetrieveExport for application/x-www-form-urlencoded ContentType.

type RetrieveExportResponse

type RetrieveExportResponse struct {
	Body         []byte
	HTTPResponse *http.Response
}

func ParseRetrieveExportResponse

func ParseRetrieveExportResponse(rsp *http.Response) (*RetrieveExportResponse, error)

ParseRetrieveExportResponse parses an HTTP response from a RetrieveExportWithResponse call

func (RetrieveExportResponse) Status

func (r RetrieveExportResponse) Status() string

Status returns HTTPResponse.Status

func (RetrieveExportResponse) StatusCode

func (r RetrieveExportResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ServerInterface

type ServerInterface interface {
	// Request Export Report
	// (POST /private/AddExport)
	AddExport(ctx echo.Context) error
	// Add Order
	// (POST /private/AddOrder)
	AddOrder(ctx echo.Context) error
	// Add Order Batch
	// (POST /private/AddOrderBatch)
	AddOrderBatch(ctx echo.Context) error
	// Get Account Balance
	// (POST /private/Balance)
	GetAccountBalance(ctx echo.Context) error
	// Cancel All Orders
	// (POST /private/CancelAll)
	CancelAllOrders(ctx echo.Context) error
	// Cancel All Orders After X
	// (POST /private/CancelAllOrdersAfter)
	CancelAllOrdersAfter(ctx echo.Context) error
	// Cancel Order
	// (POST /private/CancelOrder)
	CancelOrder(ctx echo.Context) error
	// Cancel Order Batch
	// (POST /private/CancelOrderBatch)
	CancelOrderBatch(ctx echo.Context) error
	// Get Closed Orders
	// (POST /private/ClosedOrders)
	GetClosedOrders(ctx echo.Context) error
	// Get Deposit Addresses
	// (POST /private/DepositAddresses)
	GetDepositAddresses(ctx echo.Context) error
	// Get Deposit Methods
	// (POST /private/DepositMethods)
	GetDepositMethods(ctx echo.Context) error
	// Get Status of Recent Deposits
	// (POST /private/DepositStatus)
	GetStatusRecentDeposits(ctx echo.Context) error
	// Edit Order
	// (POST /private/EditOrder)
	EditOrder(ctx echo.Context) error
	// Get Export Report Status
	// (POST /private/ExportStatus)
	ExportStatus(ctx echo.Context) error
	// Get Websockets Token
	// (POST /private/GetWebSocketsToken)
	GetWebsocketsToken(ctx echo.Context) error
	// Get Ledgers Info
	// (POST /private/Ledgers)
	GetLedgers(ctx echo.Context) error
	// Get Open Orders
	// (POST /private/OpenOrders)
	GetOpenOrders(ctx echo.Context) error
	// Get Open Positions
	// (POST /private/OpenPositions)
	GetOpenPositions(ctx echo.Context) error
	// Query Ledgers
	// (POST /private/QueryLedgers)
	GetLedgersInfo(ctx echo.Context) error
	// Query Orders Info
	// (POST /private/QueryOrders)
	GetOrdersInfo(ctx echo.Context) error
	// Query Trades Info
	// (POST /private/QueryTrades)
	GetTradesInfo(ctx echo.Context) error
	// Delete Export Report
	// (POST /private/RemoveExport)
	RemoveExport(ctx echo.Context) error
	// Retrieve Data Export
	// (POST /private/RetrieveExport)
	RetrieveExport(ctx echo.Context) error
	// Stake Asset
	// (POST /private/Stake)
	Stake(ctx echo.Context) error
	// List of Stakeable Assets
	// (POST /private/Staking/Assets)
	GetStakingAssetInfo(ctx echo.Context) error
	// Get Pending Staking Transactions
	// (POST /private/Staking/Pending)
	GetStakingPendingDeposits(ctx echo.Context) error
	// List of Staking Transactions
	// (POST /private/Staking/Transactions)
	GetStakingTransactions(ctx echo.Context) error
	// Get Trade Balance
	// (POST /private/TradeBalance)
	GetTradeBalance(ctx echo.Context) error
	// Get Trade Volume
	// (POST /private/TradeVolume)
	GetTradeVolume(ctx echo.Context) error
	// Get Trades History
	// (POST /private/TradesHistory)
	GetTradeHistory(ctx echo.Context) error
	// Unstake Asset
	// (POST /private/Unstake)
	Unstake(ctx echo.Context) error
	// Request Wallet Transfer
	// (POST /private/WalletTransfer)
	WalletTransfer(ctx echo.Context) error
	// Withdraw Funds
	// (POST /private/Withdraw)
	WithdrawFunds(ctx echo.Context) error
	// Request Withdrawal Cancelation
	// (POST /private/WithdrawCancel)
	CancelWithdrawal(ctx echo.Context) error
	// Get Withdrawal Information
	// (POST /private/WithdrawInfo)
	GetWithdrawalInformation(ctx echo.Context) error
	// Get Status of Recent Withdrawals
	// (POST /private/WithdrawStatus)
	GetStatusRecentWithdrawals(ctx echo.Context) error
	// Get Tradable Asset Pairs
	// (GET /public/AssetPairs)
	GetTradableAssetPairs(ctx echo.Context, params GetTradableAssetPairsParams) error
	// Get Asset Info
	// (GET /public/Assets)
	GetAssetInfo(ctx echo.Context, params GetAssetInfoParams) error
	// Get Order Book
	// (GET /public/Depth)
	GetOrderBook(ctx echo.Context, params GetOrderBookParams) error
	// Get OHLC Data
	// (GET /public/OHLC)
	GetOHLCData(ctx echo.Context, params GetOHLCDataParams) error
	// Get Recent Spreads
	// (GET /public/Spread)
	GetRecentSpreads(ctx echo.Context, params GetRecentSpreadsParams) error
	// Get System Status
	// (GET /public/SystemStatus)
	GetSystemStatus(ctx echo.Context) error
	// Get Ticker Information
	// (GET /public/Ticker)
	GetTickerInformation(ctx echo.Context, params GetTickerInformationParams) error
	// Get Server Time
	// (GET /public/Time)
	GetServerTime(ctx echo.Context) error
	// Get Recent Trades
	// (GET /public/Trades)
	GetRecentTrades(ctx echo.Context, params GetRecentTradesParams) error
}

ServerInterface represents all server handlers.

type ServerInterfaceWrapper

type ServerInterfaceWrapper struct {
	Handler ServerInterface
}

ServerInterfaceWrapper converts echo contexts to parameters.

func (*ServerInterfaceWrapper) AddExport

func (w *ServerInterfaceWrapper) AddExport(ctx echo.Context) error

AddExport converts echo context to params.

func (*ServerInterfaceWrapper) AddOrder

func (w *ServerInterfaceWrapper) AddOrder(ctx echo.Context) error

AddOrder converts echo context to params.

func (*ServerInterfaceWrapper) AddOrderBatch

func (w *ServerInterfaceWrapper) AddOrderBatch(ctx echo.Context) error

AddOrderBatch converts echo context to params.

func (*ServerInterfaceWrapper) CancelAllOrders

func (w *ServerInterfaceWrapper) CancelAllOrders(ctx echo.Context) error

CancelAllOrders converts echo context to params.

func (*ServerInterfaceWrapper) CancelAllOrdersAfter

func (w *ServerInterfaceWrapper) CancelAllOrdersAfter(ctx echo.Context) error

CancelAllOrdersAfter converts echo context to params.

func (*ServerInterfaceWrapper) CancelOrder

func (w *ServerInterfaceWrapper) CancelOrder(ctx echo.Context) error

CancelOrder converts echo context to params.

func (*ServerInterfaceWrapper) CancelOrderBatch

func (w *ServerInterfaceWrapper) CancelOrderBatch(ctx echo.Context) error

CancelOrderBatch converts echo context to params.

func (*ServerInterfaceWrapper) CancelWithdrawal

func (w *ServerInterfaceWrapper) CancelWithdrawal(ctx echo.Context) error

CancelWithdrawal converts echo context to params.

func (*ServerInterfaceWrapper) EditOrder

func (w *ServerInterfaceWrapper) EditOrder(ctx echo.Context) error

EditOrder converts echo context to params.

func (*ServerInterfaceWrapper) ExportStatus

func (w *ServerInterfaceWrapper) ExportStatus(ctx echo.Context) error

ExportStatus converts echo context to params.

func (*ServerInterfaceWrapper) GetAccountBalance

func (w *ServerInterfaceWrapper) GetAccountBalance(ctx echo.Context) error

GetAccountBalance converts echo context to params.

func (*ServerInterfaceWrapper) GetAssetInfo

func (w *ServerInterfaceWrapper) GetAssetInfo(ctx echo.Context) error

GetAssetInfo converts echo context to params.

func (*ServerInterfaceWrapper) GetClosedOrders

func (w *ServerInterfaceWrapper) GetClosedOrders(ctx echo.Context) error

GetClosedOrders converts echo context to params.

func (*ServerInterfaceWrapper) GetDepositAddresses

func (w *ServerInterfaceWrapper) GetDepositAddresses(ctx echo.Context) error

GetDepositAddresses converts echo context to params.

func (*ServerInterfaceWrapper) GetDepositMethods

func (w *ServerInterfaceWrapper) GetDepositMethods(ctx echo.Context) error

GetDepositMethods converts echo context to params.

func (*ServerInterfaceWrapper) GetLedgers

func (w *ServerInterfaceWrapper) GetLedgers(ctx echo.Context) error

GetLedgers converts echo context to params.

func (*ServerInterfaceWrapper) GetLedgersInfo

func (w *ServerInterfaceWrapper) GetLedgersInfo(ctx echo.Context) error

GetLedgersInfo converts echo context to params.

func (*ServerInterfaceWrapper) GetOHLCData

func (w *ServerInterfaceWrapper) GetOHLCData(ctx echo.Context) error

GetOHLCData converts echo context to params.

func (*ServerInterfaceWrapper) GetOpenOrders

func (w *ServerInterfaceWrapper) GetOpenOrders(ctx echo.Context) error

GetOpenOrders converts echo context to params.

func (*ServerInterfaceWrapper) GetOpenPositions

func (w *ServerInterfaceWrapper) GetOpenPositions(ctx echo.Context) error

GetOpenPositions converts echo context to params.

func (*ServerInterfaceWrapper) GetOrderBook

func (w *ServerInterfaceWrapper) GetOrderBook(ctx echo.Context) error

GetOrderBook converts echo context to params.

func (*ServerInterfaceWrapper) GetOrdersInfo

func (w *ServerInterfaceWrapper) GetOrdersInfo(ctx echo.Context) error

GetOrdersInfo converts echo context to params.

func (*ServerInterfaceWrapper) GetRecentSpreads

func (w *ServerInterfaceWrapper) GetRecentSpreads(ctx echo.Context) error

GetRecentSpreads converts echo context to params.

func (*ServerInterfaceWrapper) GetRecentTrades

func (w *ServerInterfaceWrapper) GetRecentTrades(ctx echo.Context) error

GetRecentTrades converts echo context to params.

func (*ServerInterfaceWrapper) GetServerTime

func (w *ServerInterfaceWrapper) GetServerTime(ctx echo.Context) error

GetServerTime converts echo context to params.

func (*ServerInterfaceWrapper) GetStakingAssetInfo

func (w *ServerInterfaceWrapper) GetStakingAssetInfo(ctx echo.Context) error

GetStakingAssetInfo converts echo context to params.

func (*ServerInterfaceWrapper) GetStakingPendingDeposits

func (w *ServerInterfaceWrapper) GetStakingPendingDeposits(ctx echo.Context) error

GetStakingPendingDeposits converts echo context to params.

func (*ServerInterfaceWrapper) GetStakingTransactions

func (w *ServerInterfaceWrapper) GetStakingTransactions(ctx echo.Context) error

GetStakingTransactions converts echo context to params.

func (*ServerInterfaceWrapper) GetStatusRecentDeposits

func (w *ServerInterfaceWrapper) GetStatusRecentDeposits(ctx echo.Context) error

GetStatusRecentDeposits converts echo context to params.

func (*ServerInterfaceWrapper) GetStatusRecentWithdrawals

func (w *ServerInterfaceWrapper) GetStatusRecentWithdrawals(ctx echo.Context) error

GetStatusRecentWithdrawals converts echo context to params.

func (*ServerInterfaceWrapper) GetSystemStatus

func (w *ServerInterfaceWrapper) GetSystemStatus(ctx echo.Context) error

GetSystemStatus converts echo context to params.

func (*ServerInterfaceWrapper) GetTickerInformation

func (w *ServerInterfaceWrapper) GetTickerInformation(ctx echo.Context) error

GetTickerInformation converts echo context to params.

func (*ServerInterfaceWrapper) GetTradableAssetPairs

func (w *ServerInterfaceWrapper) GetTradableAssetPairs(ctx echo.Context) error

GetTradableAssetPairs converts echo context to params.

func (*ServerInterfaceWrapper) GetTradeBalance

func (w *ServerInterfaceWrapper) GetTradeBalance(ctx echo.Context) error

GetTradeBalance converts echo context to params.

func (*ServerInterfaceWrapper) GetTradeHistory

func (w *ServerInterfaceWrapper) GetTradeHistory(ctx echo.Context) error

GetTradeHistory converts echo context to params.

func (*ServerInterfaceWrapper) GetTradeVolume

func (w *ServerInterfaceWrapper) GetTradeVolume(ctx echo.Context) error

GetTradeVolume converts echo context to params.

func (*ServerInterfaceWrapper) GetTradesInfo

func (w *ServerInterfaceWrapper) GetTradesInfo(ctx echo.Context) error

GetTradesInfo converts echo context to params.

func (*ServerInterfaceWrapper) GetWebsocketsToken

func (w *ServerInterfaceWrapper) GetWebsocketsToken(ctx echo.Context) error

GetWebsocketsToken converts echo context to params.

func (*ServerInterfaceWrapper) GetWithdrawalInformation

func (w *ServerInterfaceWrapper) GetWithdrawalInformation(ctx echo.Context) error

GetWithdrawalInformation converts echo context to params.

func (*ServerInterfaceWrapper) RemoveExport

func (w *ServerInterfaceWrapper) RemoveExport(ctx echo.Context) error

RemoveExport converts echo context to params.

func (*ServerInterfaceWrapper) RetrieveExport

func (w *ServerInterfaceWrapper) RetrieveExport(ctx echo.Context) error

RetrieveExport converts echo context to params.

func (*ServerInterfaceWrapper) Stake

func (w *ServerInterfaceWrapper) Stake(ctx echo.Context) error

Stake converts echo context to params.

func (*ServerInterfaceWrapper) Unstake

func (w *ServerInterfaceWrapper) Unstake(ctx echo.Context) error

Unstake converts echo context to params.

func (*ServerInterfaceWrapper) WalletTransfer

func (w *ServerInterfaceWrapper) WalletTransfer(ctx echo.Context) error

WalletTransfer converts echo context to params.

func (*ServerInterfaceWrapper) WithdrawFunds

func (w *ServerInterfaceWrapper) WithdrawFunds(ctx echo.Context) error

WithdrawFunds converts echo context to params.

type Spread

type Spread = []Spread_Item

Spread Array of spread entries `[int <time>, string <bid>, string <ask>]`

type Spread0

type Spread0 = string

Spread0 defines model for .

type Spread1

type Spread1 = int

Spread1 defines model for .

type Spread2

type Spread2 struct {
	Error  *Error          `json:"error,omitempty"`
	Result *Spread2_Result `json:"result,omitempty"`
}

Spread2 defines model for spread-2.

type Spread2_Result

type Spread2_Result struct {
	// Last ID to be used as since when polling for new spread data
	Last                 *int                `json:"last,omitempty"`
	AdditionalProperties map[string][]Spread `json:"-"`
}

Spread2_Result defines model for Spread2.Result.

func (Spread2_Result) Get

func (a Spread2_Result) Get(fieldName string) (value []Spread, found bool)

Getter for additional properties for Spread2_Result. Returns the specified element and whether it was found

func (Spread2_Result) MarshalJSON

func (a Spread2_Result) MarshalJSON() ([]byte, error)

Override default JSON handling for Spread2_Result to handle AdditionalProperties

func (*Spread2_Result) Set

func (a *Spread2_Result) Set(fieldName string, value []Spread)

Setter for additional properties for Spread2_Result

func (*Spread2_Result) UnmarshalJSON

func (a *Spread2_Result) UnmarshalJSON(b []byte) error

Override default JSON handling for Spread2_Result to handle AdditionalProperties

type Spread_Item

type Spread_Item struct {
	// contains filtered or unexported fields
}

Spread_Item defines model for spread.Item.

func (Spread_Item) AsSpread0

func (t Spread_Item) AsSpread0() (Spread0, error)

AsSpread0 returns the union data inside the Spread_Item as a Spread0

func (Spread_Item) AsSpread1

func (t Spread_Item) AsSpread1() (Spread1, error)

AsSpread1 returns the union data inside the Spread_Item as a Spread1

func (*Spread_Item) FromSpread0

func (t *Spread_Item) FromSpread0(v Spread0) error

FromSpread0 overwrites any union data inside the Spread_Item as the provided Spread0

func (*Spread_Item) FromSpread1

func (t *Spread_Item) FromSpread1(v Spread1) error

FromSpread1 overwrites any union data inside the Spread_Item as the provided Spread1

func (Spread_Item) MarshalJSON

func (t Spread_Item) MarshalJSON() ([]byte, error)

func (*Spread_Item) MergeSpread0

func (t *Spread_Item) MergeSpread0(v Spread0) error

MergeSpread0 performs a merge with any union data inside the Spread_Item, using the provided Spread0

func (*Spread_Item) MergeSpread1

func (t *Spread_Item) MergeSpread1(v Spread1) error

MergeSpread1 performs a merge with any union data inside the Spread_Item, using the provided Spread1

func (*Spread_Item) UnmarshalJSON

func (t *Spread_Item) UnmarshalJSON(b []byte) error

type StakeFormdataBody

type StakeFormdataBody struct {
	// Amount Amount of the asset to stake
	Amount string `json:"amount"`

	// Asset Asset to stake (asset ID or `altname`)
	Asset string `json:"asset"`

	// Method Name of the staking option to use (refer to the Staking Assets endpoint for the correct method names for each asset)
	Method string `json:"method"`

	// Nonce Nonce used in construction of `API-Sign` header
	Nonce Nonce `json:"nonce"`
}

StakeFormdataBody defines parameters for Stake.

type StakeFormdataRequestBody

type StakeFormdataRequestBody StakeFormdataBody

StakeFormdataRequestBody defines body for Stake for application/x-www-form-urlencoded ContentType.

type StakeResponse

type StakeResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *struct {
		Error  *Error `json:"error,omitempty"`
		Result *struct {
			// Refid Reference ID
			Refid *string `json:"refid,omitempty"`
		} `json:"result,omitempty"`
	}
}

func ParseStakeResponse

func ParseStakeResponse(rsp *http.Response) (*StakeResponse, error)

ParseStakeResponse parses an HTTP response from a StakeWithResponse call

func (StakeResponse) Status

func (r StakeResponse) Status() string

Status returns HTTPResponse.Status

func (StakeResponse) StatusCode

func (r StakeResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type StatusType

type StatusType string

StatusType Type of status entry

type TickData

type TickData = [][]TickData_Item

TickData Array of tick data arrays `[int <time>, string <open>, string <high>, string <low>, string <close>, string <vwap>, string <volume>, int <count>]`

type TickData0

type TickData0 = string

TickData0 defines model for .

type TickData1

type TickData1 = int

TickData1 defines model for .

type TickData_Item

type TickData_Item struct {
	// contains filtered or unexported fields
}

TickData_Item defines model for tickData.Item.

func (TickData_Item) AsTickData0

func (t TickData_Item) AsTickData0() (TickData0, error)

AsTickData0 returns the union data inside the TickData_Item as a TickData0

func (TickData_Item) AsTickData1

func (t TickData_Item) AsTickData1() (TickData1, error)

AsTickData1 returns the union data inside the TickData_Item as a TickData1

func (*TickData_Item) FromTickData0

func (t *TickData_Item) FromTickData0(v TickData0) error

FromTickData0 overwrites any union data inside the TickData_Item as the provided TickData0

func (*TickData_Item) FromTickData1

func (t *TickData_Item) FromTickData1(v TickData1) error

FromTickData1 overwrites any union data inside the TickData_Item as the provided TickData1

func (TickData_Item) MarshalJSON

func (t TickData_Item) MarshalJSON() ([]byte, error)

func (*TickData_Item) MergeTickData0

func (t *TickData_Item) MergeTickData0(v TickData0) error

MergeTickData0 performs a merge with any union data inside the TickData_Item, using the provided TickData0

func (*TickData_Item) MergeTickData1

func (t *TickData_Item) MergeTickData1(v TickData1) error

MergeTickData1 performs a merge with any union data inside the TickData_Item, using the provided TickData1

func (*TickData_Item) UnmarshalJSON

func (t *TickData_Item) UnmarshalJSON(b []byte) error

type Ticker

type Ticker struct {
	// A Ask `[<price>, <whole lot volume>, <lot volume>]`
	A *[]string `json:"a,omitempty"`

	// B Bid `[<price>, <whole lot volume>, <lot volume>]`
	B *[]string `json:"b,omitempty"`

	// C Last trade closed `[<price>, <lot volume>]`
	C *[]string `json:"c,omitempty"`

	// H High `[<today>, <last 24 hours>]`
	H *[]string `json:"h,omitempty"`

	// L Low `[<today>, <last 24 hours>]`
	L *[]string `json:"l,omitempty"`

	// O Today's opening price
	O *string `json:"o,omitempty"`

	// P Volume weighted average price `[<today>, <last 24 hours>]`
	P *[]string `json:"p,omitempty"`

	// T Number of trades `[<today>, <last 24 hours>]`
	T *[]int `json:"t,omitempty"`

	// V Volume `[<today>, <last 24 hours>]`
	V *[]string `json:"v,omitempty"`
}

Ticker Asset Ticker Info

type Ticker2

type Ticker2 struct {
	Error  *Error             `json:"error,omitempty"`
	Result *map[string]Ticker `json:"result,omitempty"`
}

Ticker2 defines model for ticker-2.

type Time

type Time struct {
	Error  *Error `json:"error,omitempty"`
	Result *struct {
		// Rfc1123 RFC 1123 time format
		Rfc1123 *string `json:"rfc1123,omitempty"`

		// Unixtime Unix timestamp
		Unixtime *int `json:"unixtime,omitempty"`
	} `json:"result,omitempty"`
}

Time Success response

type Trade

type Trade = []Trade_Item

Trade Array of trade entries `[<price>, <volume>, <time>, <buy/sell>, <market/limit>, <miscellaneous>, <trade_id>]`

type Trade0

type Trade0 = string

Trade0 defines model for .

type Trade1

type Trade1 = float32

Trade1 defines model for .

type Trade2

type Trade2 struct {
	// Ccost Total cost of closed portion of position (quote currency)
	// <br><sub><sup>Only present if trade opened a position</sub></sup>
	Ccost *interface{} `json:"ccost,omitempty"`

	// Cfee Total fee of closed portion of position (quote currency)
	// <br><sub><sup>Only present if trade opened a position</sub></sup>
	Cfee *interface{} `json:"cfee,omitempty"`

	// Cmargin Total margin freed in closed portion of position (quote currency)
	// <br><sub><sup>Only present if trade opened a position</sub></sup>
	Cmargin *interface{} `json:"cmargin,omitempty"`

	// Cost Total cost of order (quote currency)
	Cost *string `json:"cost,omitempty"`

	// Cprice Average price of closed portion of position (quote currency)
	// <br><sub><sup>Only present if trade opened a position</sub></sup>
	Cprice *interface{} `json:"cprice,omitempty"`

	// Cvol Total fee of closed portion of position (quote currency)
	// <br><sub><sup>Only present if trade opened a position</sub></sup>
	Cvol *interface{} `json:"cvol,omitempty"`

	// Fee Total fee (quote currency)
	Fee *string `json:"fee,omitempty"`

	// Margin Initial margin (quote currency)
	Margin *string `json:"margin,omitempty"`

	// Misc Comma delimited list of miscellaneous info:
	// * `closing` &mdash; Trade closes all or part of a position
	Misc *string `json:"misc,omitempty"`

	// Net Net profit/loss of closed portion of position (quote currency, quote currency scale)
	// <br><sub><sup>Only present if trade opened a position</sub></sup>
	Net *interface{} `json:"net,omitempty"`

	// Ordertxid Order responsible for execution of trade
	Ordertxid *string `json:"ordertxid,omitempty"`

	// Ordertype Order type
	Ordertype *string `json:"ordertype,omitempty"`

	// Pair Asset pair
	Pair *string `json:"pair,omitempty"`

	// Posstatus Position status (open/closed)
	// <br><sub><sup>Only present if trade opened a position</sub></sup>
	Posstatus *string `json:"posstatus,omitempty"`

	// Price Average price order was executed at (quote currency)
	Price *string `json:"price,omitempty"`

	// Time Unix timestamp of trade
	Time *float32 `json:"time,omitempty"`

	// Trades List of closing trades for position (if available)
	// <br><sub><sup>Only present if trade opened a position</sub></sup>
	Trades *[]string `json:"trades,omitempty"`

	// Type Type of order (buy/sell)
	Type *string `json:"type,omitempty"`

	// Vol Volume (base currency)
	Vol *string `json:"vol,omitempty"`
}

Trade2 Trade Info

type Trade_Item

type Trade_Item struct {
	// contains filtered or unexported fields
}

Trade_Item defines model for trade.Item.

func (Trade_Item) AsTrade0

func (t Trade_Item) AsTrade0() (Trade0, error)

AsTrade0 returns the union data inside the Trade_Item as a Trade0

func (Trade_Item) AsTrade1

func (t Trade_Item) AsTrade1() (Trade1, error)

AsTrade1 returns the union data inside the Trade_Item as a Trade1

func (*Trade_Item) FromTrade0

func (t *Trade_Item) FromTrade0(v Trade0) error

FromTrade0 overwrites any union data inside the Trade_Item as the provided Trade0

func (*Trade_Item) FromTrade1

func (t *Trade_Item) FromTrade1(v Trade1) error

FromTrade1 overwrites any union data inside the Trade_Item as the provided Trade1

func (Trade_Item) MarshalJSON

func (t Trade_Item) MarshalJSON() ([]byte, error)

func (*Trade_Item) MergeTrade0

func (t *Trade_Item) MergeTrade0(v Trade0) error

MergeTrade0 performs a merge with any union data inside the Trade_Item, using the provided Trade0

func (*Trade_Item) MergeTrade1

func (t *Trade_Item) MergeTrade1(v Trade1) error

MergeTrade1 performs a merge with any union data inside the Trade_Item, using the provided Trade1

func (*Trade_Item) UnmarshalJSON

func (t *Trade_Item) UnmarshalJSON(b []byte) error

type Trades

type Trades struct {
	Error  *Error         `json:"error,omitempty"`
	Result *Trades_Result `json:"result,omitempty"`
}

Trades defines model for trades.

type Trades_Result

type Trades_Result struct {
	// Last ID to be used as since when polling for new trade data
	Last                 *string          `json:"last,omitempty"`
	AdditionalProperties map[string]Trade `json:"-"`
}

Trades_Result defines model for Trades.Result.

func (Trades_Result) Get

func (a Trades_Result) Get(fieldName string) (value Trade, found bool)

Getter for additional properties for Trades_Result. Returns the specified element and whether it was found

func (Trades_Result) MarshalJSON

func (a Trades_Result) MarshalJSON() ([]byte, error)

Override default JSON handling for Trades_Result to handle AdditionalProperties

func (*Trades_Result) Set

func (a *Trades_Result) Set(fieldName string, value Trade)

Setter for additional properties for Trades_Result

func (*Trades_Result) UnmarshalJSON

func (a *Trades_Result) UnmarshalJSON(b []byte) error

Override default JSON handling for Trades_Result to handle AdditionalProperties

type Transaction

type Transaction struct {
	// Amount The transaction amount
	Amount *string `json:"amount,omitempty"`

	// Asset Asset code/name
	Asset *string `json:"asset,omitempty"`

	// BondEnd Unix timestamp of the end of bond period (applicable only to `bonding` transactions).
	BondEnd *int `json:"bond_end,omitempty"`

	// BondStart Unix timestamp from the start of bond period (applicable only to `bonding` transactions).
	BondStart *int `json:"bond_start,omitempty"`

	// Refid The reference ID of the transaction.
	Refid *string `json:"refid,omitempty"`

	// Status Transaction status
	Status *TransactionStatus `json:"status,omitempty"`

	// Time Unix timestamp when the transaction was initiated.
	Time *int `json:"time,omitempty"`

	// Type The type of transaction.
	Type *TransactionType `json:"type,omitempty"`
}

Transaction defines model for transaction.

type TransactionStatus

type TransactionStatus string

TransactionStatus Transaction status

const (
	TransactionStatusFailure TransactionStatus = "Failure"
	TransactionStatusInitial TransactionStatus = "Initial"
	TransactionStatusPending TransactionStatus = "Pending"
	TransactionStatusSettled TransactionStatus = "Settled"
	TransactionStatusSuccess TransactionStatus = "Success"
)

Defines values for TransactionStatus.

type TransactionType

type TransactionType string

TransactionType The type of transaction.

const (
	Bonding   TransactionType = "bonding"
	Reward    TransactionType = "reward"
	Unbonding TransactionType = "unbonding"
)

Defines values for TransactionType.

type UnstakeFormdataBody

type UnstakeFormdataBody struct {
	// Amount Amount of the asset to stake
	Amount string `json:"amount"`

	// Asset Asset to unstake (asset ID or `altname`). Must be a valid staking asset (e.g. `XBT.M`, `XTZ.S`, `ADA.S`)
	Asset string `json:"asset"`

	// Nonce Nonce used in construction of `API-Sign` header
	Nonce Nonce `json:"nonce"`
}

UnstakeFormdataBody defines parameters for Unstake.

type UnstakeFormdataRequestBody

type UnstakeFormdataRequestBody UnstakeFormdataBody

UnstakeFormdataRequestBody defines body for Unstake for application/x-www-form-urlencoded ContentType.

type UnstakeResponse

type UnstakeResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *struct {
		Error  *Error `json:"error,omitempty"`
		Result *struct {
			// Refid Reference ID
			Refid *string `json:"refid,omitempty"`
		} `json:"result,omitempty"`
	}
}

func ParseUnstakeResponse

func ParseUnstakeResponse(rsp *http.Response) (*UnstakeResponse, error)

ParseUnstakeResponse parses an HTTP response from a UnstakeWithResponse call

func (UnstakeResponse) Status

func (r UnstakeResponse) Status() string

Status returns HTTPResponse.Status

func (UnstakeResponse) StatusCode

func (r UnstakeResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type Volume

type Volume struct {
	Error *Error `json:"error,omitempty"`

	// Result Trade Volume
	Result *struct {
		// Currency Fee volume currency (will always be USD)
		Currency  *string          `json:"currency,omitempty"`
		Fees      *map[string]Fees `json:"fees,omitempty"`
		FeesMaker *map[string]Fees `json:"fees_maker,omitempty"`

		// Volume Current fee discount volume (in USD, breakdown by subaccount if applicable and logged in to master account)
		Volume *string `json:"volume,omitempty"`
	} `json:"result,omitempty"`
}

Volume defines model for volume.

type WalletTransferFormdataBody

type WalletTransferFormdataBody struct {
	// Amount Amount to transfer
	Amount string `json:"amount"`

	// Asset Asset to transfer (asset ID or `altname`)
	Asset string `json:"asset"`

	// From Source wallet
	From WalletTransferFormdataBodyFrom `json:"from"`

	// Nonce Nonce used in construction of `API-Sign` header
	Nonce Nonce `json:"nonce"`

	// To Destination wallet
	To WalletTransferFormdataBodyTo `json:"to"`
}

WalletTransferFormdataBody defines parameters for WalletTransfer.

type WalletTransferFormdataBodyFrom

type WalletTransferFormdataBodyFrom string

WalletTransferFormdataBodyFrom defines parameters for WalletTransfer.

const (
	SpotWallet WalletTransferFormdataBodyFrom = "Spot Wallet"
)

Defines values for WalletTransferFormdataBodyFrom.

type WalletTransferFormdataBodyTo

type WalletTransferFormdataBodyTo string

WalletTransferFormdataBodyTo defines parameters for WalletTransfer.

const (
	FuturesWallet WalletTransferFormdataBodyTo = "Futures Wallet"
)

Defines values for WalletTransferFormdataBodyTo.

type WalletTransferFormdataRequestBody

type WalletTransferFormdataRequestBody WalletTransferFormdataBody

WalletTransferFormdataRequestBody defines body for WalletTransfer for application/x-www-form-urlencoded ContentType.

type WalletTransferResponse

type WalletTransferResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *struct {
		Error  *Error `json:"error,omitempty"`
		Result *struct {
			// Refid Reference ID
			Refid *string `json:"refid,omitempty"`
		} `json:"result,omitempty"`
	}
}

func ParseWalletTransferResponse

func ParseWalletTransferResponse(rsp *http.Response) (*WalletTransferResponse, error)

ParseWalletTransferResponse parses an HTTP response from a WalletTransferWithResponse call

func (WalletTransferResponse) Status

func (r WalletTransferResponse) Status() string

Status returns HTTPResponse.Status

func (WalletTransferResponse) StatusCode

func (r WalletTransferResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type WildcardPair

type WildcardPair = string

WildcardPair defines model for wildcard_pair.

type WithdrawFundsFormdataRequestBody

type WithdrawFundsFormdataRequestBody = Withdrawal

WithdrawFundsFormdataRequestBody defines body for WithdrawFunds for application/x-www-form-urlencoded ContentType.

type WithdrawFundsResponse

type WithdrawFundsResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *Withdrawal2
}

func ParseWithdrawFundsResponse

func ParseWithdrawFundsResponse(rsp *http.Response) (*WithdrawFundsResponse, error)

ParseWithdrawFundsResponse parses an HTTP response from a WithdrawFundsWithResponse call

func (WithdrawFundsResponse) Status

func (r WithdrawFundsResponse) Status() string

Status returns HTTPResponse.Status

func (WithdrawFundsResponse) StatusCode

func (r WithdrawFundsResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type Withdrawal

type Withdrawal struct {
	// Amount Amount to be withdrawn
	Amount string `json:"amount"`

	// Asset Asset being withdrawn
	Asset string `json:"asset"`

	// Key Withdrawal key name, as set up on your account
	Key string `json:"key"`

	// Nonce Nonce used in construction of `API-Sign` header
	Nonce Nonce `json:"nonce"`
}

Withdrawal defines model for withdrawal.

type Withdrawal2

type Withdrawal2 struct {
	Error  *Error `json:"error,omitempty"`
	Result *struct {
		// Refid Reference ID
		Refid *string `json:"refid,omitempty"`
	} `json:"result,omitempty"`
}

Withdrawal2 defines model for withdrawal-2.

type Withdrawal3

type Withdrawal3 struct {
	// Aclass Asset class
	Aclass *string `json:"aclass,omitempty"`

	// Amount Amount withdrawn
	Amount *string `json:"amount,omitempty"`

	// Asset Asset
	Asset *string `json:"asset,omitempty"`

	// Fee Fees paid
	Fee *interface{} `json:"fee,omitempty"`

	// Info Method transaction information
	Info *string `json:"info,omitempty"`

	// Method Name of withdrawal method
	Method *string `json:"method,omitempty"`

	// Refid Reference ID
	Refid *string `json:"refid,omitempty"`

	// Status Status of withdraw<br>
	// <sup><sub>For information about the status, please refer to the [IFEX financial transaction states](https://github.com/globalcitizen/ifex-protocol/blob/master/draft-ifex-00.txt#L837).</sup></sub>
	Status *Withdrawal3Status `json:"status,omitempty"`

	// StatusProp Addition status properties <sup><sub>(if available)</sup></sub><br>
	//   * `cancel-pending` cancelation requested
	//   * `canceled` canceled
	//   * `cancel-denied` cancelation requested but was denied
	//   * `return` a return transaction initiated by Kraken; it cannot be canceled
	//   * `onhold` withdrawal is on hold pending review
	StatusProp *Withdrawal3StatusProp `json:"status-prop,omitempty"`

	// Time Unix timestamp when request was made
	Time *int32 `json:"time,omitempty"`

	// Txid Method transaction ID
	Txid *string `json:"txid,omitempty"`
}

Withdrawal3 Withdrawal

type Withdrawal3Status

type Withdrawal3Status string

Withdrawal3Status Status of withdraw<br> <sup><sub>For information about the status, please refer to the [IFEX financial transaction states](https://github.com/globalcitizen/ifex-protocol/blob/master/draft-ifex-00.txt#L837).</sup></sub>

const (
	Withdrawal3StatusFailure Withdrawal3Status = "Failure"
	Withdrawal3StatusInitial Withdrawal3Status = "Initial"
	Withdrawal3StatusPending Withdrawal3Status = "Pending"
	Withdrawal3StatusSettled Withdrawal3Status = "Settled"
	Withdrawal3StatusSuccess Withdrawal3Status = "Success"
)

Defines values for Withdrawal3Status.

type Withdrawal3StatusProp

type Withdrawal3StatusProp string

Withdrawal3StatusProp Addition status properties <sup><sub>(if available)</sup></sub><br>

  • `cancel-pending` cancelation requested
  • `canceled` canceled
  • `cancel-denied` cancelation requested but was denied
  • `return` a return transaction initiated by Kraken; it cannot be canceled
  • `onhold` withdrawal is on hold pending review
const (
	Withdrawal3StatusPropCancelDenied  Withdrawal3StatusProp = "cancel-denied"
	Withdrawal3StatusPropCancelPending Withdrawal3StatusProp = "cancel-pending"
	Withdrawal3StatusPropCanceled      Withdrawal3StatusProp = "canceled"
	Withdrawal3StatusPropOnhold        Withdrawal3StatusProp = "onhold"
	Withdrawal3StatusPropReturn        Withdrawal3StatusProp = "return"
)

Defines values for Withdrawal3StatusProp.

Jump to

Keyboard shortcuts

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