Versions in this module Expand all Collapse all v0 v0.2.0 Jan 13, 2025 Changes in this version + const BASE_URL + const CURRENCIES_API + const EXCHANGE_NAME + const ORDER_BOOK_API + const PUBLIC_URL + const TICKER_API + const TRADE_API + func Sym2duo(pair string) q.D + type DepositsWithdrawals struct + Deposits []struct{ ... } + Withdrawals []struct{ ... } + type GenericResponse struct + Error string + Success int + type MarginPosition struct + Amount float64 + BasePrice float64 + LendingFees float64 + LiquidiationPrice float64 + ProfitLoss float64 + Total float64 + Type string + type Poloniex struct + func New(client *http.Client, accessKey, secretKey string) *Poloniex + func (poloniex *Poloniex) AllTicker(SymPair map[string]q.D) (mdt *sync.Map, err error) + func (poloniex *Poloniex) Balances() (availables, frozens *sync.Map, err error) + func (poloniex *Poloniex) CancelOrder(orderId string, currency CurrencyPair) (bool, error) + func (poloniex *Poloniex) CloseMarginPosition(currency CurrencyPair) (bool, error) + func (poloniex *Poloniex) Fee() float64 + func (poloniex *Poloniex) GetAccount() (*Account, error) + func (poloniex *Poloniex) GetAllCurrencies() (map[string]*PoloniexCurrency, error) + func (poloniex *Poloniex) GetAttr() (a q.Attr) + func (poloniex *Poloniex) GetDepositsWithdrawals(start, end string) (*DepositsWithdrawals, error) + func (poloniex *Poloniex) GetDepth(size int, currency CurrencyPair) (*Depth, error) + func (poloniex *Poloniex) GetKlineRecords(currency CurrencyPair, period KlinePeriod, size int, ...) ([]Kline, error) + func (poloniex *Poloniex) GetMarginPosition(currency CurrencyPair) (*MarginPosition, error) + func (poloniex *Poloniex) GetOneOrder(orderId string, currency CurrencyPair) (*Order, error) + func (poloniex *Poloniex) GetOrderHistorys(currency CurrencyPair, opt ...OptionalParameter) ([]Order, error) + func (poloniex *Poloniex) GetTicker(currency CurrencyPair) (*Ticker, error) + func (poloniex *Poloniex) GetTrades(currencyPair CurrencyPair, since int64) ([]Trade, error) + func (poloniex *Poloniex) GetUnfinishedOrders(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) + func (poloniex *Poloniex) OneTicker(d q.D) (ticker q.Bbo, err error) + func (poloniex *Poloniex) PairArray() (map[string]q.D, map[q.D]q.P, error) + func (poloniex *Poloniex) PlaceOrders(places [3]q.Order) (orders [3]q.Order, err error) + func (poloniex *Poloniex) Post(params url.Values) (resp []byte, err error) + func (poloniex *Poloniex) String() string + func (poloniex *Poloniex) Test() bool + func (poloniex *Poloniex) TradeFee() (map[string]q.TradeFee, error) + func (poloniex *Poloniex) Withdraw(amount string, currency Currency, fees, receiveAddr, safePwd string) (string, error) + func (poloniex *Poloniex) WithdrawFee() (sf []q.NetworkWithdraw, err error)