Versions in this module Expand all Collapse all v1 v1.1.3 Jan 15, 2020 v1.0.4 Aug 27, 2019 Changes in this version + const BASE_URL + const EXCHANGE_NAME + const ORDER_BOOK_API + const PUBLIC_URL + const TICKER_API + const TRADE_API + type Poloniex struct + func New(client *http.Client, accessKey, secretKey string) *Poloniex + func (Poloniex *Poloniex) GetKlineRecords(currency CurrencyPair, period, size, since int) ([]Kline, error) + func (Poloniex *Poloniex) GetOrderHistorys(currency CurrencyPair, currentPage, pageSize int) ([]Order, error) + func (p *Poloniex) Withdraw(amount string, currency Currency, fees, receiveAddr, safePwd string) (string, error) + func (poloniex *Poloniex) CancelOrder(orderId string, currency CurrencyPair) (bool, error) + func (poloniex *Poloniex) CloseMarginPosition(currency CurrencyPair) (bool, error) + func (poloniex *Poloniex) GetAccount() (*Account, error) + func (poloniex *Poloniex) GetDepositsWithdrawals(start, end string) (*PoloniexDepositsWithdrawals, error) + func (poloniex *Poloniex) GetDepth(size int, currency CurrencyPair) (*Depth, error) + func (poloniex *Poloniex) GetExchangeName() string + func (poloniex *Poloniex) GetMarginPosition(currency CurrencyPair) (*PoloniexMarginPosition, error) + func (poloniex *Poloniex) GetOneOrder(orderId string, currency CurrencyPair) (*Order, error) + func (poloniex *Poloniex) GetTicker(currency CurrencyPair) (*Ticker, error) + func (poloniex *Poloniex) GetTrades(currencyPair CurrencyPair, since int64) ([]Trade, error) + func (poloniex *Poloniex) GetUnfinishOrders(currency CurrencyPair) ([]Order, error) + func (poloniex *Poloniex) LimitBuy(amount, price string, currency CurrencyPair) (*Order, error) + func (poloniex *Poloniex) LimitSell(amount, price string, currency CurrencyPair) (*Order, error) + func (poloniex *Poloniex) MarginLimitBuy(amount, price string, currency CurrencyPair) (*Order, error) + func (poloniex *Poloniex) MarginLimitSell(amount, price string, currency CurrencyPair) (*Order, error) + func (poloniex *Poloniex) MarketBuy(amount, price string, currency CurrencyPair) (*Order, error) + func (poloniex *Poloniex) MarketSell(amount, price string, currency CurrencyPair) (*Order, error) + type PoloniexDepositsWithdrawals struct + Deposits []struct{ ... } + Withdrawals []struct{ ... } + type PoloniexGenericResponse struct + Error string + Success int + type PoloniexMarginPosition struct + Amount float64 + BasePrice float64 + LendingFees float64 + LiquidiationPrice float64 + ProfitLoss float64 + Total float64 + Type string