Documentation ¶
Index ¶
- Constants
- type AsaSummary
- type AsaTicker
- type Order
- type OrderType
- type TikiClient
- func (c *TikiClient) GetAsaPrice(ctx context.Context) (float64, error)
- func (c *TikiClient) GetAsaSummary(ctx context.Context) (*AsaSummary, error)
- func (c *TikiClient) GetOrders(ctx context.Context, limits ...int) ([]Order, error)
- func (c *TikiClient) LatestOrderID(ctx context.Context) (uint64, error)
- func (c *TikiClient) ListenToTxs(ctx context.Context, txResult chan interface{}, _ *big.Int)
- type TikiClientConfig
Constants ¶
View Source
const (
DefaultOrderLimit = 100
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AsaSummary ¶
type TikiClient ¶
func NewTikiClient ¶
func NewTikiClient(cfg TikiClientConfig, log logger.Logger) *TikiClient
func (*TikiClient) GetAsaPrice ¶
func (c *TikiClient) GetAsaPrice(ctx context.Context) (float64, error)
GetAsaPrice returns the price of an ASA on the Tiki Exchange.
func (*TikiClient) GetAsaSummary ¶
func (c *TikiClient) GetAsaSummary(ctx context.Context) (*AsaSummary, error)
GetAsaSummary returns the price summary of Astra on the Tiki Exchange.
func (*TikiClient) GetOrders ¶
GetOrders returns the current newest orders on the Tiki Exchange.
If `limits` is not set, the default number of orders will be returned is DefaultOrderLimit.
func (*TikiClient) LatestOrderID ¶
func (c *TikiClient) LatestOrderID(ctx context.Context) (uint64, error)
func (*TikiClient) ListenToTxs ¶
func (c *TikiClient) ListenToTxs(ctx context.Context, txResult chan interface{}, _ *big.Int)
type TikiClientConfig ¶
func DefaultConfig ¶
func DefaultConfig() TikiClientConfig
func (TikiClientConfig) IsValid ¶
func (cfg TikiClientConfig) IsValid() (bool, error)
IsValid checks if the current EvmClientConfig is valid.
Click to show internal directories.
Click to hide internal directories.