Documentation ¶
Index ¶
- Constants
- type Exchange
- func (exchange *Exchange) CancelOrder(orderId string, currency CurrencyPair) (bool, error)
- func (poloniex *Exchange) CloseMarginPosition(currency CurrencyPair) (bool, error)
- func (exchange *Exchange) GetAccount() (*Account, error)
- func (exchange *Exchange) GetAssets(currency CurrencyPair) (*Assets, error)
- func (exchange *Exchange) GetDepositsWithdrawals(start, end string) (*PoloniexDepositsWithdrawals, error)
- func (exchange *Exchange) GetDepth(size int, currency CurrencyPair) (*Depth, error)
- func (exchange *Exchange) GetExchangeName() string
- func (exchange *Exchange) GetKlineRecords(currency CurrencyPair, period KlinePeriod, size int, ...) ([]Kline, error)
- func (poloniex *Exchange) GetMarginPosition(currency CurrencyPair) (*PoloniexMarginPosition, error)
- func (exchange *Exchange) GetOneOrder(orderId string, currency CurrencyPair) (*Order, error)
- func (exchange *Exchange) GetOrderHistorys(currency CurrencyPair, opt ...OptionalParameter) ([]Order, error)
- func (exchange *Exchange) GetTicker(currency CurrencyPair) (*Ticker, error)
- func (exchange *Exchange) GetTradeHistory(currency CurrencyPair, optional ...OptionalParameter) ([]Trade, error)
- func (exchange *Exchange) GetTrades(currencyPair CurrencyPair, since int64) ([]Trade, error)
- func (exchange *Exchange) GetUnfinishOrders(currency CurrencyPair) ([]Order, error)
- func (exchange *Exchange) LimitBuy(amount, price string, currency CurrencyPair, ...) (*Order, error)
- func (exchange *Exchange) LimitSell(amount, price string, currency CurrencyPair, ...) (*Order, error)
- func (poloniex *Exchange) MarginLimitBuy(amount, price string, currency CurrencyPair) (*Order, error)
- func (poloniex *Exchange) MarginLimitSell(amount, price string, currency CurrencyPair) (*Order, error)
- func (exchange *Exchange) MarketBuy(amount, price string, currency CurrencyPair) (*Order, error)
- func (exchange *Exchange) MarketSell(amount, price string, currency CurrencyPair) (*Order, error)
- func (exchange *Exchange) Withdraw(amount string, currency Currency, fees, receiveAddr, safePwd string) (string, error)
- type PoloniexDepositsWithdrawals
- type PoloniexGenericResponse
- type PoloniexMarginPosition
Constants ¶
View Source
const ( BASE_URL = "https://poloniex.com/" TRADE_API = BASE_URL + "tradingApi" PUBLIC_URL = BASE_URL + "public" TICKER_API = "?command=returnTicker" ORDER_BOOK_API = "?command=returnOrderBook¤cyPair=%s&depth=%d" )
View Source
const EXCHANGE_NAME = "poloniex.com"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Exchange ¶ added in v1.3.9
type Exchange struct {
// contains filtered or unexported fields
}
func (*Exchange) CancelOrder ¶ added in v1.3.9
func (*Exchange) CloseMarginPosition ¶ added in v1.3.9
func (*Exchange) GetAccount ¶ added in v1.3.9
func (*Exchange) GetDepositsWithdrawals ¶ added in v1.3.9
func (exchange *Exchange) GetDepositsWithdrawals(start, end string) (*PoloniexDepositsWithdrawals, error)
func (*Exchange) GetExchangeName ¶ added in v1.3.9
func (*Exchange) GetKlineRecords ¶ added in v1.3.9
func (*Exchange) GetMarginPosition ¶ added in v1.3.9
func (poloniex *Exchange) GetMarginPosition(currency CurrencyPair) (*PoloniexMarginPosition, error)
func (*Exchange) GetOneOrder ¶ added in v1.3.9
func (*Exchange) GetOrderHistorys ¶ added in v1.3.9
func (*Exchange) GetTradeHistory ¶ added in v1.3.9
func (*Exchange) GetUnfinishOrders ¶ added in v1.3.9
func (*Exchange) MarginLimitBuy ¶ added in v1.3.9
func (*Exchange) MarginLimitSell ¶ added in v1.3.9
func (*Exchange) MarketSell ¶ added in v1.3.9
type PoloniexDepositsWithdrawals ¶
type PoloniexDepositsWithdrawals struct { Deposits []struct { Currency string `json:"currency"` Address string `json:"address"` Amount float64 `json:"amount,string"` Confirmations int `json:"confirmations"` TransactionID string `json:"txid"` Timestamp time.Time `json:"timestamp"` Status string `json:"status"` } `json:"deposits"` Withdrawals []struct { WithdrawalNumber int64 `json:"withdrawalNumber"` Currency string `json:"currency"` Address string `json:"address"` Amount float64 `json:"amount,string"` Confirmations int `json:"confirmations"` TransactionID string `json:"txid"` Timestamp time.Time `json:"timestamp"` Status string `json:"status"` IPAddress string `json:"ipAddress"` } `json:"withdrawals"` }
type PoloniexGenericResponse ¶
type PoloniexMarginPosition ¶
type PoloniexMarginPosition struct { Amount float64 `json:"amount,string"` Total float64 `json:"total,string"` BasePrice float64 `json:"basePrice,string"` LiquidiationPrice float64 `json:"liquidiationPrice"` ProfitLoss float64 `json:"pl,string"` LendingFees float64 `json:"lendingFees,string"` Type string `json:"type"` }
Click to show internal directories.
Click to hide internal directories.