kraken

package
v0.0.0-...-0a5c8e0 Latest Latest
Warning

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

Go to latest
Published: May 23, 2025 License: MIT Imports: 7 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 ReadOnly

func ReadOnly() (*Client, error)

func ReadWrite

func ReadWrite() (*Client, error)

func (*Client) CancelOrder

func (client *Client) CancelOrder(txid string) error

func (*Client) CreateOrder

func (client *Client) CreateOrder(market string, side consts.OrderSide, size, price float64) (string, error)

func (*Client) OpenOrders

func (client *Client) OpenOrders(market string) ([]Order, error)

func (*Client) PairInfo

func (client *Client) PairInfo(market string) (*krakenapi.AssetPairInfo, error)

func (*Client) Ticker

func (client *Client) Ticker(market string) (float64, error)

type Order

type Order struct {
	TxId  string
	Order krakenapi.Order
}

Jump to

Keyboard shortcuts

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