Documentation
¶
Index ¶
- type Client
- func (c *Client) CancelOrder(orderID string) ([]byte, error)
- func (c *Client) CreateAndSignOrder(order models.AevoSignedOrder) (*models.CreateOrderRes, error)
- func (c *Client) GetAccount() (*models.Account, error)
- func (c *Client) GetAssetPrice(asset string) (models.AssetPrice, error)
- func (c *Client) GetAssetPriceHistory(asset string, resolution int, startTime int, endTime int) ([][]string, error)
- func (c *Client) GetAssetStatistics(asset, instrument string, endTime int) ([]byte, error)
- func (c *Client) GetAssets() ([]string, error)
- func (c *Client) GetCoingeckoStatistics() ([]models.CoingeckoStatistic, error)
- func (c *Client) GetExpiries(asset string) ([]string, error)
- func (c *Client) GetFunding(instrumentName string) (models.Funding, error)
- func (c *Client) GetFundingHistory(instrumentName string, startTime, endTime, limit int) ([]byte, error)
- func (c *Client) GetInstrumentByName(instrument string) ([]byte, error)
- func (c *Client) GetMarkets(asset, instrument string) ([]byte, error)
- func (c *Client) GetOrderBook(instrument string) (*models.OrderBook, error)
- func (c *Client) GetOrders() ([]byte, error)
- func (c *Client) GetTime() (models.AevoTime, error)
- func (c *Client) GetTradeHistory(param models.TradeHistoryReq) (*models.TradeHistoryRes, error)
- func (c *Client) MarketOrder(isBuy bool, instrument int, amount float64) (*models.CreateOrderRes, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) CreateAndSignOrder ¶
func (c *Client) CreateAndSignOrder(order models.AevoSignedOrder) (*models.CreateOrderRes, error)
func (*Client) GetAccount ¶ added in v0.0.8
GetAccount returns the account's information including API keys, signing keys and positions.
func (*Client) GetAssetPrice ¶
func (c *Client) GetAssetPrice(asset string) (models.AssetPrice, error)
GetAssetPrice returns the current index price of the given asset
func (*Client) GetAssetPriceHistory ¶
func (c *Client) GetAssetPriceHistory(asset string, resolution int, startTime int, endTime int) ([][]string, error)
GetAssetPriceHistory returns the historical index price for a given asset
func (*Client) GetAssetStatistics ¶
GetAssetStatistics returns the market statistics for the given asset
func (*Client) GetCoingeckoStatistics ¶
func (c *Client) GetCoingeckoStatistics() ([]models.CoingeckoStatistic, error)
GetCoingeckoStatistics returns the perpetual statistics of all assets specifically for https://www.coingecko.com/en/exchanges/aevo
func (*Client) GetExpiries ¶
GetExpiries returns the expiry timestamps of derivatives of the given asset
func (*Client) GetFunding ¶
GetFunding returns the current funding rate for the instrument
func (*Client) GetFundingHistory ¶
func (c *Client) GetFundingHistory(instrumentName string, startTime, endTime, limit int) ([]byte, error)
GetFundingHistory returns the funding rate history for the instrument
func (*Client) GetInstrumentByName ¶
GetInstrumentByName returns the instrument information for the given instrument
func (*Client) GetMarkets ¶
GetMarkets returns a list of instruments. If asset is not specified, the response will include all listed instruments
func (*Client) GetOrderBook ¶ added in v0.0.4
GetOrderBook returns the order book information for the given instrument
func (*Client) GetTradeHistory ¶ added in v0.0.9
func (c *Client) GetTradeHistory(param models.TradeHistoryReq) (*models.TradeHistoryRes, error)
GetTradeHistory returns the account's trade history.