Documentation ¶
Index ¶
- Constants
- type ChartDataParams
- type Client
- func (client *Client) AllOpenOrders() (marketOrders map[string][]OpenOrder, err error)
- func (client *Client) Buy(currencyPair string, rate, amount float64) (plxOrder *PlxOrder, err error)
- func (client *Client) CompleteBalances() ([]CompleteBalance, error)
- func (client *Client) GetBalance(currency string) (balance *CompleteBalance, err error)
- func (client *Client) GetChartData(params *ChartDataParams) ([]data.ChartData, error)
- func (client *Client) GetOpenOrders(currencyPair string) (openOrders []*OpenOrder, err error)
- func (client *Client) GetTicker() (ticker []TickerEntry, err error)
- func (client *Client) GetTickerMap() (ticker map[string]TickerEntry, err error)
- func (client *Client) GetTradeHistory(params *TradeHistoryParams) (trades []Trade, err error)
- func (client *Client) MyTradeHistory(marketName string, startTime, endTime int64) (trades map[string][]*PlxPrivateTrade, err error)
- func (client *Client) PlaceMarketOrder(apiCommand, currencyPair string, rate, amount float64) (plxOrder *PlxOrder, err error)
- func (client *Client) PublicApiUrl() string
- func (client *Client) ReadTradingApiCredentials() (key, secret string, err error)
- func (client *Client) Sell(currencyPair string, rate, amount float64) (plxOrder *PlxOrder, err error)
- func (client *Client) SignFormData(apiSecret string, formData *url.Values) (reqBody, signature string)
- func (client *Client) TradingApiRequest(formData *url.Values) (*http.Response, error)
- func (client *Client) TradingApiUrl() string
- type CompleteBalance
- type OpenOrder
- type PlxOrder
- type PlxPrivateTrade
- type PlxPublicTrade
- type TickerEntry
- type Trade
- type TradeHistoryParams
Constants ¶
View Source
const LIVE_CREDENTIALS_PATH = "./.creds.json"
View Source
const LIVE_URL = "https://poloniex.com"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ChartDataParams ¶
func (*ChartDataParams) ToQueryString ¶
func (p *ChartDataParams) ToQueryString() string
type Client ¶
func NewLiveClient ¶
func NewLiveClient() *Client
func (*Client) AllOpenOrders ¶
func (*Client) CompleteBalances ¶
func (client *Client) CompleteBalances() ([]CompleteBalance, error)
func (*Client) GetBalance ¶
func (client *Client) GetBalance(currency string) (balance *CompleteBalance, err error)
func (*Client) GetChartData ¶
func (client *Client) GetChartData(params *ChartDataParams) ([]data.ChartData, error)
func (*Client) GetOpenOrders ¶
func (*Client) GetTicker ¶
func (client *Client) GetTicker() (ticker []TickerEntry, err error)
func (*Client) GetTickerMap ¶
func (client *Client) GetTickerMap() (ticker map[string]TickerEntry, err error)
func (*Client) GetTradeHistory ¶
func (client *Client) GetTradeHistory(params *TradeHistoryParams) (trades []Trade, err error)
func (*Client) MyTradeHistory ¶
func (*Client) PlaceMarketOrder ¶
func (*Client) PublicApiUrl ¶
func (*Client) ReadTradingApiCredentials ¶
func (*Client) SignFormData ¶
func (*Client) TradingApiRequest ¶
func (*Client) TradingApiUrl ¶
type CompleteBalance ¶
type PlxPrivateTrade ¶
type PlxPublicTrade ¶
type TickerEntry ¶
type TradeHistoryParams ¶
func (*TradeHistoryParams) ToQueryString ¶
func (p *TradeHistoryParams) ToQueryString() string
Click to show internal directories.
Click to hide internal directories.