backpack

package
v0.0.0-...-8eea3e4 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2025 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Validate

func Validate(exchange *oc.ExchangeConfig) error

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

func NewClient

func NewClient(config *oc.ExchangeClientConfig, account *oc.Account) (*Client, error)

func (*Client) CreateAccountTransfer

func (c *Client) CreateAccountTransfer(args client.AccountTransferArgs) (*client.TransferStatus, error)

Need some slight additions to Backpack exchange API to support this

func (*Client) CreateWithdrawal

func (c *Client) CreateWithdrawal(args client.WithdrawalArgs) (*client.WithdrawalResponse, error)

func (*Client) GetDepositAddress

func (c *Client) GetDepositAddress(args client.GetDepositAddressArgs) (oc.Address, error)

func (*Client) ListAssets

func (c *Client) ListAssets() ([]*oc.Asset, error)

func (*Client) ListBalances

func (c *Client) ListBalances(args client.GetBalanceArgs) ([]*client.BalanceDetail, error)

func (*Client) ListWithdrawalHistory

func (c *Client) ListWithdrawalHistory(args client.WithdrawalHistoryArgs) ([]*client.WithdrawalHistory, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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