Documentation
¶
Index ¶
- Constants
- type CancelResponse
- type Client
- func (c *Client) Cancel(ctx context.Context, secretKey string) (*CancelResponse, error)
- func (c *Client) Create(ctx context.Context, data CreateRequest) (*CreateResponse, error)
- func (c *Client) GetCoins(ctx context.Context) (*GetCoinsResponse, error)
- func (c *Client) Limit(ctx context.Context, pair string) (*LimitResponse, error)
- func (c *Client) PromoCode(ctx context.Context, data PromoCodeRequest) (*PromoCodeResponse, error)
- func (c *Client) Rate(ctx context.Context, data RateRequest) (*RateResponse, error)
- func (c *Client) Status(ctx context.Context, secretKey string) (*StatusResponse, error)
- func (c *Client) ValidateAddress(ctx context.Context, data ValidateAddressRequest) (*ValidateAddressResponse, error)
- type Coin
- type CreateRequest
- type CreateResponse
- type GetCoinsResponse
- type LimitResponse
- type PromoCodeRequest
- type PromoCodeResponse
- type RateRequest
- type RateResponse
- type StatusResponse
- type ValidateAddressRequest
- type ValidateAddressResponse
- type WithError
Constants ¶
View Source
const KeyAddress = "address"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CancelResponse ¶
type Client ¶
func (*Client) Create ¶
func (c *Client) Create(ctx context.Context, data CreateRequest) (*CreateResponse, error)
func (*Client) PromoCode ¶
func (c *Client) PromoCode(ctx context.Context, data PromoCodeRequest) (*PromoCodeResponse, error)
func (*Client) Rate ¶
func (c *Client) Rate(ctx context.Context, data RateRequest) (*RateResponse, error)
func (*Client) ValidateAddress ¶
func (c *Client) ValidateAddress(ctx context.Context, data ValidateAddressRequest) (*ValidateAddressResponse, error)
type CreateRequest ¶
type CreateResponse ¶
type GetCoinsResponse ¶
type LimitResponse ¶
type LimitResponse struct {
WithError
Pair string `json:"pair"`
DepositMin float64 `json:"deposit_min"`
DepositMax float64 `json:"deposit_max"`
WithdrawalMin float64 `json:"withdrawal_min"`
WithdrawalMax float64 `json:"withdrawal_max"`
DepositDayLimit float64 `json:"deposit_day_limit"`
DepositMonthLimit float64 `json:"deposit_month_limit"`
WithdrawalDayLimit float64 `json:"withdrawal_day_limit"`
WithdrawalMonthLimit float64 `json:"withdrawal_month_limit"`
}
type PromoCodeRequest ¶
type PromoCodeResponse ¶
type RateRequest ¶
type RateResponse ¶
type StatusResponse ¶
type StatusResponse struct {
WithError
SecretKey string `json:"secret_key"`
Pair string `json:"pair"`
Status string `json:"status"`
Deposit map[string]string `json:"deposit"`
Withdrawal map[string]string `json:"withdrawal"`
ReceivingAmount string `json:"receiving_amount"`
DepositAmount string `json:"deposit_amount"`
WithdrawalAmount string `json:"withdrawal_amount"`
TimeCreated string `json:"time_created"`
SecondsRemaining int `json:"seconds_remaining"`
}
type ValidateAddressRequest ¶
type ValidateAddressResponse ¶
Click to show internal directories.
Click to hide internal directories.