aevo

package
v0.0.0-...-7205680 Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2024 License: MIT Imports: 16 Imported by: 0

Documentation

Index

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 NewClient

func NewClient(chainType, privateKeyString string) (*Client, error)

func (*Client) CancelOrder

func (c *Client) CancelOrder(orderID string) ([]byte, error)

func (*Client) CreateAndSignOrder

func (c *Client) CreateAndSignOrder(order models.AevoSignedOrder) ([]byte, error)

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

func (c *Client) GetAssetStatistics(asset, instrument string, endTime int) ([]byte, error)

GetAssetStatistics returns the market statistics for the given asset

func (*Client) GetAssets

func (c *Client) GetAssets() ([]string, error)

GetAssets returns the list of active underlying assets

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

func (c *Client) GetExpiries(asset string) ([]string, error)

GetExpiries returns the expiry timestamps of derivatives of the given asset

func (*Client) GetFunding

func (c *Client) GetFunding(instrumentName string) (models.Funding, error)

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) GetMarkets

func (c *Client) GetMarkets(asset, instrument string) ([]byte, error)

GetMarkets returns a list of instruments. If asset is not specified, the response will include all listed instruments

func (*Client) GetOrders

func (c *Client) GetOrders() ([]byte, error)

func (*Client) GetTime

func (c *Client) GetTime() (models.AevoTime, error)

GetTime returns the server time

Jump to

Keyboard shortcuts

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