Documentation
¶
Index ¶
- Constants
- Variables
- type Client
- func (c *Client) GetBalance() (int, error)
- func (c *Client) GetEvent(params *structs.GetEventParams) (*structs.Event, error)
- func (c *Client) GetEvents(params *structs.GetEventsParams) (*structs.GetEventsResponse, error)
- func (c *Client) GetExchangeAnnouncements() ([]structs.Announcement, error)
- func (c *Client) GetExchangeSchedule() (*structs.GetExchangeScheduleResponse, error)
- func (c *Client) GetExchangeStatus() (*structs.ExchangeStatus, error)
- func (c *Client) GetFills(params *structs.GetFillsParams) (*structs.GetFillsResponse, error)
- func (c *Client) GetMarket(params *structs.GetMarketParams) (*structs.Market, error)
- func (c *Client) GetMarketCandlesticks(params *structs.GetMarketCandlesticksParams) ([]structs.MarketCandlestick, error)
- func (c *Client) GetMarketOrderbook(params *structs.GetMarketOrderbookParams) (*structs.MarketOrderbook, error)
- func (c *Client) GetMarkets(params *structs.GetMarketsParams) (*structs.GetMarketsResponse, error)
- func (c *Client) GetOrders(params *structs.GetOrdersParams) (*structs.GetOrdersResponse, error)
- func (c *Client) GetSeries(params *structs.GetSeriesParams) (*structs.Series, error)
- func (c *Client) GetTrades(params *structs.GetTradesParams) (*structs.GetTradesResponse, error)
Constants ¶
View Source
const ANNOUNCEMENT_ENDPOINT = "/trade-api/v2/exchange/announcements"
View Source
const BALANCE_ENDPOINT = "/trade-api/v2/portfolio/balance"
View Source
const EVENT_PATH = "/trade-api/v2/events"
View Source
const FILLS_ENDPOINT = "/trade-api/v2/portfolio/fills"
View Source
const MARKET_PATH = "/trade-api/v2/markets"
View Source
const ORDERS_ENDPOINT = "/trade-api/v2/portfolio/orders"
View Source
const SCHEDULE_ENDPOINT = "/trade-api/v2/exchange/schedule"
View Source
const SERIES_PATH = "/trade-api/v2/series"
View Source
const STATUS_ENDPOINT = "/trade-api/v2/exchange/status"
View Source
const TRADE_PATH = "trade-api/v2/markets/trades"
Variables ¶
View Source
var ErrPEMParse = errors.New("failed to parse PEM block containing the private key")
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func NewFromKeyPath ¶
func (*Client) GetBalance ¶
func (*Client) GetEvents ¶
func (c *Client) GetEvents(params *structs.GetEventsParams) (*structs.GetEventsResponse, error)
func (*Client) GetExchangeAnnouncements ¶
func (c *Client) GetExchangeAnnouncements() ([]structs.Announcement, error)
func (*Client) GetExchangeSchedule ¶
func (c *Client) GetExchangeSchedule() (*structs.GetExchangeScheduleResponse, error)
func (*Client) GetExchangeStatus ¶
func (c *Client) GetExchangeStatus() (*structs.ExchangeStatus, error)
func (*Client) GetFills ¶
func (c *Client) GetFills(params *structs.GetFillsParams) (*structs.GetFillsResponse, error)
func (*Client) GetMarketCandlesticks ¶
func (c *Client) GetMarketCandlesticks(params *structs.GetMarketCandlesticksParams) ([]structs.MarketCandlestick, error)
func (*Client) GetMarketOrderbook ¶
func (c *Client) GetMarketOrderbook(params *structs.GetMarketOrderbookParams) (*structs.MarketOrderbook, error)
func (*Client) GetMarkets ¶
func (c *Client) GetMarkets(params *structs.GetMarketsParams) (*structs.GetMarketsResponse, error)
func (*Client) GetOrders ¶
func (c *Client) GetOrders(params *structs.GetOrdersParams) (*structs.GetOrdersResponse, error)
func (*Client) GetTrades ¶
func (c *Client) GetTrades(params *structs.GetTradesParams) (*structs.GetTradesResponse, error)
Source Files
¶
Click to show internal directories.
Click to hide internal directories.