Versions in this module Expand all Collapse all v1 v1.0.1 Apr 12, 2023 v1.0.0 Apr 12, 2023 Changes in this version + const BCCBTC + const BCCUSD + const BCUBTC + const BCUUSD + const BFXBTC + const BFXUSD + const BTCUSD + const BaseURL + const ChanBook + const ChanTicker + const ChanTrade + const EOSBTC + const EOSETH + const EOSUSD + const ETCBTC + const ETCUSD + const ETHBTC + const ETHUSD + const IOTBTC + const IOTETH + const IOTUSD + const LEND + const LOAN + const LTCBTC + const LTCUSD + const OrderTypeExchangeFillOrKill + const OrderTypeExchangeLimit + const OrderTypeExchangeMarket + const OrderTypeExchangeStop + const OrderTypeExchangeTrailingStop + const OrderTypeFillOrKill + const OrderTypeLimit + const OrderTypeMarket + const OrderTypeStop + const OrderTypeTrailingStop + const RRTBTC + const RRTUSD + const WALLET_DEPOSIT + const WALLET_EXCHANGE + const WALLET_TRADING + const WebSocketURL + const XMRBTC + const XMRUSD + const XRPBTC + const XRPUSD + const ZECBTC + const ZECUSD + type AccountInfo struct + Fees []AccountPairFee + MakerFees float64 + TakerFees float64 + type AccountPairFee struct + MakerFees float64 + Pair string + TakerFees float64 + type AccountService struct + func (a *AccountService) Info() (AccountInfo, error) + func (a *AccountService) KeyPermission() (Permissions, error) + func (a *AccountService) Summary() (Summary, error) + type ActiveOffer struct + Currency string + Direction string + ExecutedAmount string + ID int64 + IsCancelled bool + IsLive bool + OriginalAmount string + Period int + Rate string + RemainingAmount string + Timestamp string + type Balance struct + Amount string + Balance string + Currency string + Description string + Timestamp string + type BalancesService struct + func (b *BalancesService) All() ([]WalletBalance, error) + type BankAccount struct + AccountName string + AccountNumber string + BankAddress string + BankCity string + BankCountry string + BankName string + SwiftCode string + type Client struct + APIKey string + APISecret string + Account *AccountService + Balances *BalancesService + BaseURL *url.URL + Credits *CreditsService + Deposit *DepositService + History *HistoryService + Lendbook *LendbookService + MarginFunding *MarginFundingService + MarginInfo *MarginInfoService + Offers *OffersService + OrderBook *OrderBookService + Orders *OrderService + Pairs *PairsService + Positions *PositionsService + Stats *StatsService + Ticker *TickerService + Trades *TradesService + Wallet *WalletService + WebSocket *WebSocketService + WebSocketTLSSkipVerify bool + WebSocketURL string + func NewClient() *Client + func (c *Client) Auth(key string, secret string) *Client + type Credit struct + Amount float64 + Currency string + Id int + Period float64 + Rate float64 + Status string + Timestamp string + type CreditsService struct + func (c *CreditsService) All() ([]Credit, error) + type DepositResponse struct + Address string + Currency string + Method string + Result string + func (d *DepositResponse) Success() (bool, error) + type DepositService struct + func (s *DepositService) New(method, walletName string, renew int) (DepositResponse, error) + type ErrorResponse struct + Message string + Response *Response + func (r *ErrorResponse) Error() string + type HistoryService struct + func (s *HistoryService) Balance(currency, wallet string, since, until time.Time, limit int) ([]Balance, error) + func (s *HistoryService) Movements(currency, method string, since, until time.Time, limit int) ([]Movement, error) + func (s *HistoryService) Trades(pair string, since, until time.Time, limit int, reverse bool) ([]PastTrade, error) + type KeyPerm struct + Read bool + Write bool + type Lend struct + Amount string + Frr string + Period int + Rate string + Timestamp string + func (el *Lend) ParseTime() (*time.Time, error) + type Lendbook struct + Asks []Lend + Bids []Lend + type LendbookService struct + func (s *LendbookService) Get(currency string, limitBids, limitAsks int) (Lendbook, error) + func (s *LendbookService) Lends(currency string) ([]Lends, error) + type Lends struct + AmountLent string + AmountUsed string + Rate string + Timestamp int64 + func (el *Lends) Time() *time.Time + type MarginFundingService struct + func (s *MarginFundingService) Cancel(offerId int64) (MarginOffer, error) + func (s *MarginFundingService) Credits() ([]ActiveOffer, error) + func (s *MarginFundingService) NewLend(currency string, amount, rate float64, period int) (MarginOffer, error) + func (s *MarginFundingService) NewLoan(currency string, amount, rate float64, period int) (MarginOffer, error) + func (s *MarginFundingService) Offers() ([]ActiveOffer, error) + func (s *MarginFundingService) Status(offerId int64) (MarginOffer, error) + type MarginInfo struct + Leverage float64 + MarginBalance float64 + MarginLimits []MarginLimit + MarginRequirement float64 + Message string + NetValue float64 + RequiredMargin float64 + TradableBalance float64 + UnrealizedPl float64 + UnrealizedSwap float64 + type MarginInfoService struct + func (s *MarginInfoService) All() ([]MarginInfo, error) + type MarginLimit struct + InitialMargin float64 + MarginRequirement float64 + OnPair string + TradableBalance float64 + type MarginOffer struct + Currency string + Direction string + ExecutedAmount string + ID int64 + IsCancelled bool + IsLive bool + OfferId int + OriginalAmount string + Period int + Rate string + RemainingAmount string + Timestamp string + type Movement struct + Amount string + Currency string + Description string + ID int64 + Method string + Status string + Timestamp string + Type string + type MultipleOrderResponse struct + Orders []Order + Status string + type Offer struct + Currency string + Direction string + ExecutedAmount string + Id int64 + IsCancelled bool + IsLive bool + OfferId int64 + OriginalAmount string + Period int64 + Rate string + RemainingAmount string + Timestamp string + type OffersService struct + func (s *OffersService) Cancel(offerId int64) (Offer, error) + func (s *OffersService) New(currency string, amount, rate float64, period int64, direction string) (Offer, error) + func (s *OffersService) Status(offerId int64) (Offer, error) + type Order struct + AvgExecutionPrice string + Exchange string + ExecutedAmount string + ID int64 + IsCanceled bool + IsHidden bool + IsLive bool + OriginalAmount string + Price string + RemainingAmount string + Side string + Symbol string + Timestamp string + Type string + WasForced bool + type OrderBook struct + Asks []OrderBookEntry + Bids []OrderBookEntry + type OrderBookEntry struct + Amount string + Frr string + Period int + Price string + Rate string + Timestamp string + func (el *OrderBookEntry) ParseTime() (*time.Time, error) + type OrderBookService struct + func (s *OrderBookService) Get(pair string, limitBids, limitAsks int, noGroup bool) (OrderBook, error) + type OrderService struct + func (s *OrderService) All() ([]Order, error) + func (s *OrderService) Cancel(orderID int64) error + func (s *OrderService) CancelAll() error + func (s *OrderService) CancelMulti(orderIDS []int64) (string, error) + func (s *OrderService) Create(symbol string, amount float64, price float64, orderType string) (*Order, error) + func (s *OrderService) CreateMulti(orders []SubmitOrder) (MultipleOrderResponse, error) + func (s *OrderService) Replace(orderID int64, useRemaining bool, newOrder SubmitOrder) (Order, error) + func (s *OrderService) Status(orderID int64) (Order, error) + type Pair struct + Expiration string + InitialMargin float64 + Margin bool + MaximumOrderSize float64 + MinimumMargin float64 + MinimumOrderSize float64 + Pair string + PricePrecision int + type PairsService struct + func (p *PairsService) All() ([]string, error) + func (p *PairsService) AllDetailed() ([]Pair, error) + type PastTrade struct + Amount string + Exchange string + FeeAmount string + FeeCurrency string + OrderId int64 + Price string + TID int64 + Timestamp string + Type string + type Permissions struct + Account KeyPerm + Funding KeyPerm + History KeyPerm + Orders KeyPerm + Positions KeyPerm + Wallets KeyPerm + Withdraw KeyPerm + type Position struct + Amount string + Base string + ID int + Pl string + Status string + Swap string + Symbol string + Timestamp string + func (p *Position) ParseTime() (*time.Time, error) + type PositionsService struct + func (b *PositionsService) All() ([]Position, error) + func (b *PositionsService) Claim(positionId int, amount string) (Position, error) + type Response struct + Body []byte + Response *http.Response + func (r *Response) String() string + type Stats struct + Period int64 + Volume float64 + type StatsService struct + func (s *StatsService) All(pair string, period, volume string) ([]Stats, error) + type SubmitOrder struct + Amount float64 + Price float64 + Symbol string + Type string + type Summary struct + FundingProfit SummaryProfit + MakerFee string + TakerFee string + TradeVolume SummaryVolume + type SummaryProfit struct + Currency string + Volume string + type SummaryVolume struct + Currency string + Volume string + type TermData struct + Data []interface{} + Error string + Term string + func (c *TermData) HasError() bool + type Tick struct + Ask string + Bid string + High string + LastPrice string + Low string + Mid string + Timestamp string + Volume string + func (el *Tick) ParseTime() (*time.Time, error) + type TickerService struct + func (s *TickerService) Get(pair string) (Tick, error) + type Trade struct + Amount string + Exchange string + Price string + Timestamp int64 + TradeId int64 + Type string + func (el *Trade) Time() *time.Time + type TradesService struct + func (s *TradesService) All(pair string, timestamp time.Time, limitTrades int) ([]Trade, error) + type TransferStatus struct + Message string + Status string + type WalletBalance struct + Amount string + Available string + Currency string + Type string + type WalletService struct + func (c *WalletService) Transfer(amount float64, currency, from, to string) ([]TransferStatus, error) + func (c *WalletService) WithdrawCrypto(amount float64, currency, wallet, destinationAddress string) ([]WithdrawStatus, error) + func (c *WalletService) WithdrawWire(amount float64, expressWire bool, wallet string, ...) ([]WithdrawStatus, error) + type WebSocketService struct + func NewWebSocketService(c *Client) *WebSocketService + func (w *WebSocketService) AddSubscribe(channel string, pair string, c chan []float64) + func (w *WebSocketService) ClearSubscriptions() + func (w *WebSocketService) Close() + func (w *WebSocketService) Connect() error + func (w *WebSocketService) ConnectPrivate(ch chan TermData) + func (w *WebSocketService) Subscribe() error + type WithdrawStatus struct + Message string + Status string + WithdrawalID int