Versions in this module Expand all Collapse all v0 v0.2.3 Oct 29, 2018 Changes in this version type Poloniex + func (b *Poloniex) Shutdown() error v0.2.2 Oct 27, 2018 v0.2.1 Oct 27, 2018 v0.2.0 Oct 26, 2018 Changes in this version + const Buy + const Sell type Currency + DepositAddress *string + ID int type MarketUpd + Initial bool + type OpType int type OrderBookUpd + Price decimal.Decimal + Size decimal.Decimal type Ticker + ID int type TradeUpd + Price decimal.Decimal + Size decimal.Decimal v0.1.0 Oct 23, 2018 Changes in this version + const API_BASE + const API_WS + 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 + 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 MarketUpd struct + Obooks []OrderBookUpd + Seq int64 + Trades []TradeUpd + type OpenOrder struct + Amount float64 + OrderNumber int + Rate float64 + Total float64 + Type string + type OrderBook struct + Asks [][]decimal.Decimal + Bids [][]decimal.Decimal + Error string + IsFrozen int + Seq int + type OrderBookUpd struct + Amount decimal.Decimal + OpType string + Rate decimal.Decimal + Type string + 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) ChartData(currencyPair string, period int, start, end time.Time) (candles []*CandleStick, err error) + func (b *Poloniex) Close() 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) 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) Sell(pair string, rate float64, amount float64, tradeType string) (TradeOrder, error) + func (b *Poloniex) SubscribeOrderBook(symbol string, updatesCh chan<- MarketUpd, stopCh <-chan bool) error + func (b *Poloniex) SubscribeTicker(updatesCh chan<- TickerUpd, stopCh <-chan bool) error + func (b *Poloniex) UnsubscribeAll() 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 decimal.Decimal + High24Hr decimal.Decimal + HighestBid decimal.Decimal + IsFrozen int + Last decimal.Decimal + Low24Hr decimal.Decimal + LowestAsk decimal.Decimal + PercentChange decimal.Decimal + QuoteVolume decimal.Decimal + type TickerUpd struct + Pair string + 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 + OrderNumber string + ResultingTrades []ResultingTrade + type TradeUpd struct + Amount decimal.Decimal + Date time.Time + OpType string + Rate decimal.Decimal + Total decimal.Decimal + TradeID string + Type string + type Volume map[string]float64 + func (t *Volume) UnmarshalJSON(b []byte) error + type VolumeCollection struct + TotalBTC float64 + TotalETH 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