Versions in this module Expand all Collapse all v0 v0.0.4 Jan 16, 2020 v0.0.2 Jan 16, 2020 Changes in this version + const PRIVATEURI + const PUBLICURI + type AccountBalances struct + Exchange map[string]float64 + Lending map[string]float64 + Margin map[string]float64 + type ActiveLoan struct + Amount float64 + AutoRenew int64 + Currency string + Date string + DateTaken time.Time + Fees float64 + ID int64 + Range int64 + Rate float64 + Renewable bool + type ActiveLoans struct + Provided []ActiveLoan + type Addresses map[string]string + type AvailableAccountBalances struct + Exchange map[string]float64 + Lending map[string]float64 + Margin map[string]float64 + type Balance struct + Available float64 + BTCValue float64 + OnOrders float64 + type Balances map[string]Balance + type Base struct + Error string + Response string + Success int64 + type Buy struct + OrderNumber int64 + ResultingTrades []ResultingTrade + type ChartData []ChartDataEntry + type ChartDataEntry struct + Close float64 + Date int64 + High float64 + Low float64 + Open float64 + QuoteVolume float64 + Volume float64 + WeightedAverage float64 + type Currencies map[string]Currency + type Currency struct + Delisted int64 + DepositAddress string + Disabled int64 + Frozen int64 + MinConf float64 + Name string + TxFee float64 + type DailyVolume map[string]DailyVolumeEntry + type DailyVolumeEntry map[string]float64 + type DailyVolumeEntryTemp map[string]interface + type DailyVolumeTemp map[string]interface + type DepositsWithdrawals struct + Adjustments []adjustment + Deposits []deposit + Withdrawals []withdrawal + type Error struct + Error string + type FeeInfo struct + MakerFee float64 + NextTier float64 + TakerFee float64 + ThirtyDayVolume float64 + type LendingHistory []LendingHistoryEntry + type LendingHistoryEntry struct + Amount float64 + Close string + Currency string + Duration float64 + Earned float64 + Fee float64 + ID int64 + Interest float64 + Open string + Rate float64 + type LoanOffer struct + OrderID int64 + type LoanOrder struct + Amount float64 + RangeMax float64 + RangeMin float64 + Rate float64 + type LoanOrders struct + Demands []LoanOrder + Offers []LoanOrder + type MarginAccountSummary struct + CurrentMargin float64 + LendingFees float64 + NetValue float64 + ProfitLoss float64 + TotalBorrowedValue float64 + TotalValue float64 + type MarginPosition struct + Amount float64 + BasePrice float64 + LendingFees float64 + LiquidationPrice float64 + PL float64 + Total float64 + Type string + type MoveOrder struct + OrderNumber int64 + ResultingTrades []ResultingTrade + type OpenLoanOffer struct + Amount float64 + AutoRenew int64 + Date string + DateTaken time.Time + Duration int64 + ID int64 + Rate float64 + Renewable bool + type OpenLoanOffers map[string][]OpenLoanOffer + type OpenOrder struct + Amount float64 + Date string + Margin bool + OrderNumber int64 + Rate float64 + StartingAmount float64 + Total float64 + Type string + type OpenOrders []OpenOrder + type OpenOrdersAll map[string]OpenOrders + type Order struct + Amount float64 + Rate float64 + type OrderBook struct + Asks []Order + Bids []Order + IsFrozen bool + Seq int64 + type OrderBookAll map[string]OrderBook + type OrderBookAllTemp map[string]OrderBookTemp + type OrderBookTemp struct + Asks []OrderTemp + Bids []OrderTemp + IsFrozen interface{} + type OrderStatus struct + Amount float64 + Date string + Pair string + Rate float64 + StartingAmount float64 + Status string + Total float64 + Type string + type OrderTemp []interface + type OrderTrade struct + Amount float64 + CurrencyPair string + Date string + Fee float64 + GlobalTradeID int64 + Rate float64 + Total float64 + TradeID int64 + Type string + type OrderTrades []OrderTrade + type Poloniex struct + ByID map[string]string + ByName map[string]string + Key string + Secret string + func New(configfile string) *Poloniex + func NewPublicOnly() *Poloniex + func NewWithConfig(configfile string) *Poloniex + func NewWithCredentials(key, secret string) *Poloniex + func (p *Poloniex) AccountBalances() (balances AccountBalances, err error) + func (p *Poloniex) ActiveLoans() (activeLoans ActiveLoans, err error) + func (p *Poloniex) Addresses() (addresses Addresses, err error) + func (p *Poloniex) AvailableAccountBalances() (aab AvailableAccountBalances, err error) + func (p *Poloniex) Balances() (balances Balances, err error) + func (p *Poloniex) Buy(pair string, rate, amount float64) (buy Buy, err error) + func (p *Poloniex) BuyFillKill(pair string, rate, amount float64) (buy Buy, err error) + func (p *Poloniex) BuyImmediateOrCancel(pair string, rate, amount float64) (buy Buy, err error) + func (p *Poloniex) BuyPostOnly(pair string, rate, amount float64) (buy Buy, err error) + func (p *Poloniex) CancelLoanOffer(orderNumber int64) (success bool, err error) + func (p *Poloniex) CancelOrder(orderNumber int64) (success bool, err error) + func (p *Poloniex) ChartData(pair string) (chartData ChartData, err error) + func (p *Poloniex) ChartDataCurrent(pair string) (chartData ChartData, err error) + func (p *Poloniex) ChartDataPeriod(pair string, start, end time.Time, period ...int) (chartData ChartData, err error) + func (p *Poloniex) CloseMarginPosition(pair string) (success bool, err error) + func (p *Poloniex) Currencies() (currencies Currencies, err error) + func (p *Poloniex) DailyVolume() (dailyVolume DailyVolume, err error) + func (p *Poloniex) Debug() + func (p *Poloniex) DepositsWithdrawals() (depositsWithdrawals DepositsWithdrawals, err error) + func (p *Poloniex) Emit(event interface{}, arguments ...interface{}) *emission.Emitter + func (p *Poloniex) FeeInfo() (fi FeeInfo, err error) + func (p *Poloniex) GenerateNewAddress(currency string) (address string, err error) + func (p *Poloniex) LendingHistory(start, end int64, limit int64) (lh LendingHistory, err error) + func (p *Poloniex) LoanOffer(currency string, amount float64, duration int, renew bool, lendingRate float64) (loanOffer LoanOffer, err error) + func (p *Poloniex) LoanOrders(currency string) (loanOrders LoanOrders, err error) + func (p *Poloniex) MarginAccountSummary() (mas MarginAccountSummary, err error) + func (p *Poloniex) MarginBuy(pair string, rate float64, lendingRate float64, amount float64, ...) (buy Buy, err error) + func (p *Poloniex) MarginPosition(pair string) (mp MarginPosition, err error) + func (p *Poloniex) MarginSell(pair string, rate float64, lendingRate float64, amount float64, ...) (sell Sell, err error) + func (p *Poloniex) Move(orderNumber int64, rate float64) (moveOrder MoveOrder, err error) + func (p *Poloniex) MoveImmediateOrCancel(orderNumber int64, rate float64) (moveOrder MoveOrder, err error) + func (p *Poloniex) MovePostOnly(orderNumber int64, rate float64) (moveOrder MoveOrder, err error) + func (p *Poloniex) Off(event interface{}, listener interface{}) *emission.Emitter + func (p *Poloniex) On(event interface{}, listener interface{}) *emission.Emitter + func (p *Poloniex) OpenLoanOffers() (openLoanOffers OpenLoanOffers, err error) + func (p *Poloniex) OpenOrders(pair string) (openOrders OpenOrders, err error) + func (p *Poloniex) OpenOrdersAll() (openOrders OpenOrdersAll, err error) + func (p *Poloniex) OrderBook(pair string) (orderBook OrderBook, err error) + func (p *Poloniex) OrderBookAll() (orderBook OrderBookAll, err error) + func (p *Poloniex) OrderStatus(orderNumber int64) (os OrderStatus, err error) + func (p *Poloniex) OrderTrades(orderNumber int64) (ot OrderTrades, err error) + func (p *Poloniex) PrivateTradeHistory(pair string, dates ...int64) (history PrivateTradeHistory, err error) + func (p *Poloniex) PrivateTradeHistoryAll(dates ...int64) (history PrivateTradeHistoryAll, err error) + func (p *Poloniex) Sell(pair string, rate, amount float64) (sell Sell, err error) + func (p *Poloniex) SellFillKill(pair string, rate, amount float64) (sell Sell, err error) + func (p *Poloniex) SellImmediateOrCancel(pair string, rate, amount float64) (sell Sell, err error) + func (p *Poloniex) SellPostOnly(pair string, rate, amount float64) (sell Sell, err error) + func (p *Poloniex) StartWS() + func (p *Poloniex) Subscribe(chid string) error + func (p *Poloniex) Ticker() (ticker Ticker, err error) + func (p *Poloniex) ToggleAutoRenew(orderNumber int64) (success bool, err error) + func (p *Poloniex) TradableBalances() (tb TradableBalances, err error) + func (p *Poloniex) TradeHistory(pair string, dates ...int64) (tradeHistory TradeHistory, err error) + func (p *Poloniex) TransferBalance(currency string, amount float64, from string, to string) (tb TransferBalance, err error) + func (p *Poloniex) Unsubscribe(chid string) error + func (p *Poloniex) WSIdle(dur time.Duration, callbacks ...WSReportFunc) + func (p *Poloniex) Withdraw(currency string, amount float64, address string) (w Withdraw, err error) + type PrivateTradeHistory []PrivateTradeHistoryEntry + type PrivateTradeHistoryAll map[string]PrivateTradeHistory + type PrivateTradeHistoryEntry struct + Amount float64 + Category string + Date string + Fee float64 + GlobalTradeID int64 + OrderNumber int64 + Rate float64 + Total float64 + TradeID int64 + Type string + type ResultingTrade struct + Amount float64 + ClientOrderID string + Date string + Fee float64 + Pair string + Rate float64 + Total float64 + TradeID string + Type string + type Sell struct + type Ticker map[string]TickerEntry + type TickerEntry struct + Ask float64 + BaseVolume float64 + Bid float64 + Change float64 + High float64 + ID int64 + IsFrozen int64 + Last float64 + Low float64 + QuoteVolume float64 + type TradableBalance map[string]float64 + type TradableBalances map[string]TradableBalance + type TradeHistory []TradeHistoryEntry + type TradeHistoryEntry struct + Amount float64 + Date string + ID int64 + Rate float64 + Total float64 + TradeID int64 + Type string + type TransferBalance struct + Message string + type WSOrderbook struct + Amount float64 + Event string + Pair string + Rate float64 + TS time.Time + Total float64 + TradeID int64 + Type string + type WSReportFunc = func(time.Time) + type WSTicker struct + Ask float64 + BaseVolume float64 + Bid float64 + DailyHigh float64 + DailyLow float64 + IsFrozen bool + Last float64 + Pair string + PairID int64 + PercentChange float64 + QuoteVolume float64 + type Withdraw struct