Versions in this module Expand all Collapse all v0 v0.1.2 Feb 7, 2019 Changes in this version type Poloniex + func (b *Poloniex) GetDepositAddresses() (addresses map[string]string, err error) v0.1.1 Jan 2, 2019 Changes in this version type Poloniex + func (b *Poloniex) Withdraw(currency, address string, amount float64) error v0.1.0 Jan 2, 2019 Changes in this version + const API_BASE + const TRADE_FILL_OR_KILL + const TRADE_IMMEDIATE_OR_CANCEL + const TRADE_POST_ONLY + func NewClient(apiKey, apiSecret string) (c *client) + func NewClientWithCustomTimeout(apiKey, apiSecret string, timeout time.Duration) (c *client) + type Balance struct + Available string + BtcValue string + OnOrders string + type CandleStick struct + Close float64 + Date PoloniexDate + High float64 + Low float64 + Open float64 + QuoteVolume float64 + Volume float64 + WeightedAverage float64 + type Currencies struct + Pair map[string]Currency + type Currency struct + Delisted int + Disabled int + Frozen int + Id int + MaxDailyWithdrawal string + MinConf int + Name string + TxFee float64 + type Deposit struct + Address string + Amount float64 + Confirmations uint64 + Currency string + Date time.Time + Status string + TxId string + func (t *Deposit) UnmarshalJSON(data []byte) error + type Lending struct + Amount float64 + Close time.Time + Currency string + Duration float64 + Earned float64 + Fee float64 + Id uint64 + Interest float64 + Open time.Time + Rate float64 + func (t *Lending) UnmarshalJSON(data []byte) error + type OpenOrder struct + Amount float64 + OrderNumber int64 + Rate float64 + Total float64 + Type string + type Order struct + Amount float64 + Rate float64 + func (o *Order) UnmarshalJSON(data []byte) error + type OrderBook struct + Asks []*Order + Bids []*Order + Error string + IsFrozen int + type Poloniex struct + func New(apiKey, apiSecret string) *Poloniex + func NewWithCustomTimeout(apiKey, apiSecret string, timeout time.Duration) *Poloniex + func (b *Poloniex) Buy(pair string, rate float64, amount float64, tradeType string) (TradeOrder, error) + func (b *Poloniex) CancelOrder(orderNumber string) error + func (b *Poloniex) ChartData(currencyPair string, period int, start, end time.Time) (candles []*CandleStick, err error) + func (b *Poloniex) GetBalances() (balances map[string]Balance, err error) + func (b *Poloniex) GetCurrencies() (currencies Currencies, err error) + func (b *Poloniex) GetDepositsWithdrawals(start uint32, end uint32) (deposits []Deposit, withdrawals []Withdrawal, err error) + func (b *Poloniex) GetOpenOrders(pair string) (openOrders map[string][]OpenOrder, err error) + func (b *Poloniex) GetOrderBook(market, cat string, depth int) (orderBook OrderBook, err error) + func (b *Poloniex) GetOrderTrades(orderNumber int) (tradeOrderTransaction []TradeOrderTransaction, err error) + func (b *Poloniex) GetTickers() (tickers map[string]Ticker, err error) + func (b *Poloniex) GetTradeHistory(pair string, start uint32) (trades map[string][]Trade, err error) + func (b *Poloniex) GetVolumes() (vc VolumeCollection, err error) + func (b *Poloniex) LendingHistory(start, end time.Time, limit int) (lendings []Lending, err error) + func (b *Poloniex) Sell(pair string, rate float64, amount float64, tradeType string) (TradeOrder, error) + func (c *Poloniex) SetDebug(enable bool) + type PoloniexDate struct + func (pd *PoloniexDate) UnmarshalJSON(data []byte) error + type ResultingTrade struct + Amount float64 + Date string + Rate float64 + Total float64 + TradeID string + Type string + type Ticker struct + BaseVolume float64 + High24Hr float64 + HighestBid float64 + Id int + IsFrozen int + Last float64 + Low24Hr float64 + LowestAsk float64 + PercentChange float64 + QuoteVolume float64 + type Tickers struct + Pair map[string]Ticker + type Trade struct + Amount float64 + Category string + Date time.Time + Fee float64 + GlobalTradeID uint64 + Rate float64 + Total float64 + TradeID uint64 + Type string + func (t *Trade) UnmarshalJSON(data []byte) error + type TradeOrder struct + ErrorMessage string + OrderNumber string + ResultingTrades []ResultingTrade + type TradeOrderTransaction struct + Amount float64 + CurrencyPair string + Date time.Time + Fee float64 + GlobalTradeID uint64 + Rate float64 + Total float64 + TradeID uint64 + Type string + type Volume map[string]float64 + func (t *Volume) UnmarshalJSON(b []byte) error + type VolumeCollection struct + TotalBTC float64 + TotalETH float64 + TotalUSDC float64 + TotalUSDT float64 + TotalXMR float64 + TotalXUSD float64 + Volumes map[string]Volume + func (tc *VolumeCollection) UnmarshalJSON(b []byte) error + type Withdrawal struct + Address string + Amount float64 + Currency string + Date time.Time + IpAddress string + Status string + TxId string + WithdrawalNumber uint64 + func (t *Withdrawal) UnmarshalJSON(data []byte) error