Versions in this module Expand all Collapse all v1 v1.1.4 Feb 28, 2022 v1.1.3 Feb 27, 2022 Changes in this version + type Error struct + Code string + Title string + func (err Error) Error() string type Ticker + IDHr string v1.1.2 Feb 27, 2022 v1.1.1 Jan 4, 2022 Changes in this version type Market + const PFCT_pUSD v1.1.0 Jan 3, 2022 Changes in this version + var ErrHTTPRetryable = errors.New("a retryable HTTP error occurred") + var ErrTooManyRequests = errors.New("too many requests") type Configuration + Backoff time.Duration + MaxRetries int v1.0.2 Oct 29, 2021 v1.0.1 Oct 21, 2021 v1.0.0 Oct 21, 2021 Changes in this version + const FifteenMin + const FiveMin + const FourHour + const OneDay + const OneHour + const ThirtyMin + const TwoHour + var CurrencyDecimalPlaces = map[Currency]int + func RoundFloat64(x float64, places int) float64 + type Auth struct + Key string + KeyID string + func AuthFromKeypair(keypair string) (*Auth, error) + type Balance struct + Balance string + Currency Currency + type Client struct + Auth Auth + Client *http.Client + Config Configuration + func NewClient(config Configuration) (*Client, error) + func (client *Client) CancelOrder(ctx context.Context, id int) error + func (client *Client) CreateBuyLimit(ctx context.Context, amount float64, market Market, price float64) (*Order, error) + func (client *Client) CreateSellLimit(ctx context.Context, amount float64, market Market, price float64) (*Order, error) + func (client *Client) GetBalances(ctx context.Context, params map[string]string) ([]Balance, error) + func (client *Client) GetCommon(ctx context.Context) (*CommonData, error) + func (client *Client) GetCurrencies(ctx context.Context) ([]CurrencyData, error) + func (client *Client) GetCurrency(ctx context.Context, currency Currency) (*CurrencyData, error) + func (client *Client) GetDeposit(ctx context.Context, id string) ([]DepositDetails, error) + func (client *Client) GetDepositAddress(ctx context.Context, currency Currency) (*DepositAddressData, error) + func (client *Client) GetDepositHistory(ctx context.Context, params map[string]string) ([]DepositDetails, error) + func (client *Client) GetMarket(ctx context.Context, market Market) (*GetMarketData, error) + func (client *Client) GetMarketTrades(ctx context.Context, market Market) ([]PublicTrade, error) + func (client *Client) GetMarkets(ctx context.Context) ([]MarketData, error) + func (client *Client) GetOHLCV(ctx context.Context, market Market, interval Interval, ...) ([]OHLCVSlice, error) + func (client *Client) GetOrder(ctx context.Context, id int) (*Order, error) + func (client *Client) GetOrderbook(ctx context.Context, market Market) (*Orderbook, error) + func (client *Client) GetOrders(ctx context.Context, params map[string]string) ([]Order, error) + func (client *Client) GetTicker(ctx context.Context, market Market) (*Ticker, error) + func (client *Client) GetTickers(ctx context.Context) ([]Ticker, error) + func (client *Client) GetTrades(ctx context.Context, params map[string]string) ([]PrivateTrade, error) + func (client *Client) GetTransfers(ctx context.Context, params map[string]string) ([]Transfer, error) + func (client *Client) GetUserInfo(ctx context.Context) (*UserInfo, error) + func (client *Client) GetUserMarket(ctx context.Context, market Market, params map[string]string) (*UserMarketData, error) + func (client *Client) GetWithdrawDetails(ctx context.Context, id int) (*WithdrawDetails, error) + func (client *Client) GetWithdrawHistory(ctx context.Context, params map[string]string) ([]WithdrawDetails, error) + func (client *Client) Withdraw(ctx context.Context, address string, amount float64, currency Currency) (*WithdrawData, error) + type CommonData struct + Currencies []CurrencyData + Markets []MarketData + Tickers []Ticker + type Configuration struct + Endpoint string + HMACKeypair string + Timeout time.Duration + type CreateOrderResult struct + Data struct{ ... } + type Currency string + const ANU + const ARMS + const ARO + const BAC + const BAN + const BIS + const BTC + const BTM + const BWS10 + const BWS20 + const CCX + const CPR + const CRUZ + const DEFT + const DGB + const DOGE + const ETH + const FCT + const GRIN + const HLS + const HTR + const IDNA + const KLP + const LTC + const LUCK + const MCM + const MMO + const NANO + const NYZO + const PASC + const PEG + const PFCT + const PHL + const PUSD + const QUAN + const RCO + const REDN + const RTM + const RUPX + const RVN + const SCC + const SNOW + const TAO1 + const THC + const USDT + const VEO + const VLS + const WEBD + const WFCT + const XBR + const XCP + const XEQ + const XTO + const ZANO + type CurrencyConfig struct + AddressVersion int + DataMax int + DefaultSigner int + EnableAddressData bool + ExplorerAddressURL string + ExplorerTransactionURL string + P2ShAddressVersion int + Price float64 + RequiredConfirmations int + RequiredGenerateConfirmations int + SatoshiPerByte int + WifVersion int + WithdrawFee float64 + type CurrencyData struct + CanWithdraw bool + Code Currency + Config CurrencyConfig + LongName string + Metadata CurrencyMetadata + Precision int + Status CurrencyStatus + Type string + type CurrencyMetadata struct + DelistingDate string + DepositNotices []interface{} + Hidden bool + WithdrawNotices []interface{} + type CurrencyStatus string + const CurrencyStatusDegraded + const CurrencyStatusDelisted + const CurrencyStatusDisabled + const CurrencyStatusOK + const CurrencyStatusOffline + type DepositAddressData struct + Address string + CurrencyStatus CurrencyStatus + type DepositDetails struct + Address string + Amount string + CreatedAt time.Time + Currency Currency + ID string + NetworkData map[string]interface{} + RelayStatus string + Status string + type EmailAddress struct + Address string + CreatedAt time.Time + ID int + IsPrimary bool + Verified bool + type ErrorResult struct + Errors []QtradeError + type GetBalancesResult struct + Data struct{ ... } + type GetCommonResult struct + Data CommonData + type GetCurrenciesResult struct + Data struct{ ... } + type GetCurrencyResult struct + Data struct{ ... } + type GetDepositAddressResult struct + Data DepositAddressData + type GetDepositHistoryResult struct + Data struct{ ... } + type GetDepositResult struct + Data struct{ ... } + type GetMarketData struct + Market MarketData + RecentTrades []PublicTrade + type GetMarketResult struct + Data GetMarketData + type GetMarketTradesResult struct + Data struct{ ... } + type GetMarketsResult struct + Data struct{ ... } + type GetOHLCVResult struct + Data struct{ ... } + type GetOrderResult struct + Data struct{ ... } + type GetOrderbookData struct + Buy map[string]string + LastChange int + Sell map[string]string + type GetOrderbookResult struct + Data GetOrderbookData + type GetOrdersResult struct + Data struct{ ... } + type GetTickerResult struct + Data Ticker + type GetTickersResult struct + Data struct{ ... } + type GetTradesResult struct + Data struct{ ... } + type GetTransfersResult struct + Data struct{ ... } + type GetUserInfoResult struct + Data struct{ ... } + type GetUserMarketResult struct + Data UserMarketData + type GetWithdrawDetailsResult struct + Data struct{ ... } + type GetWithdrawHistoryResult struct + Data struct{ ... } + type Interval string + func (interval Interval) Duration() time.Duration + type Market int + const ANU_BTC + const ARMS_BTC + const ARO_BTC + const BAC_BTC + const BAN_BTC + const BIS_BTC + const BTC_USDT + const BTC_pUSD + const BTM_BTC + const BWS20_BTC + const BWS20_BWS10 + const CCX_BTC + const CPR_BTC + const CRUZ_BTC + const DEFT_BTC + const DGB_BTC + const DOGE_BTC + const ETH_BTC + const ETH_USDT + const ETH_pUSD + const FCT_BTC + const FCT_pUSD + const GRIN_BTC + const HLS_BTC + const HTR_BTC + const HTR_USDT + const IDNA_BTC + const KLP_BTC + const KLP_USDT + const LTC_BTC + const LUCK_BTC + const MCM_BTC + const MMO_BTC + const NANO_BTC + const NYZO_BTC + const NYZO_USDT + const PASC_BTC + const PEG_BTC + const PEG_pUSD + const PHL_BTC + const QUAN_BTC + const RCO_BTC + const REDN_BTC + const RTM_BTC + const RUPX_BTC + const RVN_BTC + const SCC_BTC + const SNOW_BTC + const TAO1_BTC + const THC_BTC + const VEO_BTC + const VLS_BTC + const WEBD_BTC + const WFCT_FCT + const XBR_BTC + const XEQ_BTC + const XTO_BTC + const ZANO_BTC + func (m Market) BaseCurrency() Currency + func (m Market) MarketCurrency() Currency + func (m Market) String() string + type MarketData struct + BaseCurrency Currency + CanCancel bool + CanTrade bool + CanView bool + ID Market + MakerFee float64 + MarketCurrency Currency + Metadata MarketMetadata + TakerFee float64 + type MarketMetadata struct + DelistingDate string + Labels []interface{} + MarketNotices []MarketNotice + type MarketNotice struct + Message string + Type string + type OHLCVSlice struct + Close float64 + High float64 + Low float64 + Open float64 + Time time.Time + Volume float64 + type Order struct + BaseAmount float64 + CloseReason string + CreatedAt time.Time + ID int + Market Market + MarketAmount float64 + MarketAmountRemaining float64 + Open bool + OrderType OrderType + Price float64 + Trades []PrivateTrade + type OrderType string + const BuyLimit + const SellLimit + type Orderbook struct + Buy map[float64]float64 + LastChange int + Sell map[float64]float64 + type PrivateTrade struct + BaseAmount float64 + BaseFee float64 + CreatedAt time.Time + ID int + Market Market + MarketAmount float64 + OrderID int + Price float64 + Side string + Taker bool + type PublicTrade struct + Amount float64 + CreatedAt time.Time + ID int + Price float64 + SellerTaker *bool + type QtradeError struct + Code string + Title string + type Ticker struct + Ask float64 + Bid float64 + DayAvgPrice float64 + DayChange float64 + DayHigh float64 + DayLow float64 + DayOpen float64 + DayVolumeBase float64 + DayVolumeMarket float64 + IdHr string + Last float64 + Market Market + type Transfer struct + Amount float64 + CreatedAt time.Time + Currency Currency + ID int + ReasonCode string + ReasonMetadata map[string]interface{} + SenderEmail string + SenderID int + type UserInfo struct + CanLogin bool + CanTrade bool + CanWithdraw bool + Email string + EmailAddresses []EmailAddress + FirstName string + ID int + LastName string + ReferralCode string + TFAEnabled bool + Verification string + VerifiedEmail bool + WithdrawLimit int + type UserMarketData struct + BaseBalance float64 + ClosedOrders []Order + MarketBalance float64 + OpenOrders []Order + type WithdrawData struct + Code string + ID int + Result string + type WithdrawDetails struct + Address string + Amount string + CancelRequested bool + CreatedAt time.Time + Currency Currency + ID int + NetworkData map[string]interface{} + RelayStatus string + Status string + UserID int + type WithdrawResult struct + Data WithdrawData