poloniex

package module
v0.0.0-...-b48fe10 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 9, 2021 License: MIT Imports: 8 Imported by: 0

README

Poloniex SDK for Go

Poloniex SDK for Go is a library to access the REST API of Poloniex using the Go programming language.

Poloniex is your one-stop shop for crypto trading. See https://poloniex.com for more information.

This SDK is not authorized or endorsed by Poloniex. Note that this SDK this is an alpha release. The code is likely to contain bugs, so use at your own risk.

Documentation

Index

Constants

View Source
const (
	Buy  = private.Buy
	Sell = private.Sell
)

Variables

This section is empty.

Functions

func Decode

func Decode(m message.Message) (event.Event, error)

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

func New

func New(key, secret string) *Client

func (*Client) Balances

func (c *Client) Balances() *private.BalancesRequest

func (*Client) Buy

func (c *Client) Buy(currencyPair string, rate float64, amount float64) *private.OrderRequest

func (*Client) CancelAllOrders

func (c *Client) CancelAllOrders(currencyPair string) *private.CancelAllOrdersRequest

func (*Client) CancelOrder

func (c *Client) CancelOrder() *private.CancelOrderRequest

func (*Client) ChartData

func (c *Client) ChartData(currencyPair string, period period.Period) *public.ChartDataRequest

func (*Client) Close

func (c *Client) Close()

func (*Client) CompleteBalances

func (c *Client) CompleteBalances() *private.CompleteBalancesRequest

func (*Client) Currencies

func (c *Client) Currencies() *public.CurrenciesRequest

func (*Client) MoveOrder

func (c *Client) MoveOrder(orderNumber int64, rate float64) *private.MoveOrderRequest

func (*Client) OpenOrders

func (c *Client) OpenOrders(currencyPair string) *private.OpenOrdersRequest

func (*Client) OrderBook

func (c *Client) OrderBook(currencyPair string) *public.OrderbookRequest

func (*Client) OrderStatus

func (c *Client) OrderStatus(orderNumber int64) *private.OrderStatusRequest

func (*Client) Sell

func (c *Client) Sell(currencyPair string, rate float64, amount float64) *private.OrderRequest

func (*Client) Subscribe

func (c *Client) Subscribe() *ws.SubscriptionRequest

func (*Client) Tickers

func (c *Client) Tickers() *public.TickerRequest

func (*Client) TradableAccountBalances

func (c *Client) TradableAccountBalances() *private.TradableBalancesRequest

func (*Client) TradeHistory

func (c *Client) TradeHistory(currencyPair string) *public.TradeHistoryRequest

func (*Client) Volume24h

func (c *Client) Volume24h() *public.Volume24hRequest

type OrderSide

type OrderSide = private.OrderSide

Directories

Path Synopsis
api
ws

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL