balances

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BalancesService

type BalancesService interface {
	ListPortfolioBalances(ctx context.Context, request *ListPortfolioBalancesRequest) (*ListPortfolioBalancesResponse, error)
	GetWalletBalance(ctx context.Context, request *GetWalletBalanceRequest) (*GetWalletBalanceResponse, error)
	ListOnchainWalletBalances(ctx context.Context, request *ListOnchainWalletBalancesRequest) (*ListOnchainWalletBalancesResponse, error)
}

func NewBalancesService

func NewBalancesService(c client.RestClient) BalancesService

type GetWalletBalanceRequest

type GetWalletBalanceRequest struct {
	PortfolioId string `json:"portfolio_id"`
	Id          string `json:"wallet_id"`
}

type GetWalletBalanceResponse

type GetWalletBalanceResponse struct {
	Balance *model.Balance `json:"balance"`
	Request *GetWalletBalanceRequest
}

type ListOnchainWalletBalancesRequest

type ListOnchainWalletBalancesRequest struct {
	PortfolioId         string                  `json:"portfolio_id"`
	WalletId            string                  `json:"wallet_id"`
	VisiblilityStatuses []string                `json:"visibility_statuses"`
	Pagination          *model.PaginationParams `json:"pagination_params"`
}

type ListOnchainWalletBalancesResponse

type ListOnchainWalletBalancesResponse struct {
	Balances              []*model.Balance                  `json:"balances"`
	Type                  string                            `json:"type"`
	TradingWalletBalances *model.BalanceWithHolds           `json:"trading_balances"`
	VaultWalletBalances   *model.BalanceWithHolds           `json:"vault_balances"`
	Request               *ListOnchainWalletBalancesRequest `json:"request"`
}

type ListPortfolioBalancesRequest

type ListPortfolioBalancesRequest struct {
	PortfolioId string   `json:"portfolio_id"`
	Type        string   `json:"balance_type"`
	Symbols     []string `json:"symbols"`
}

type ListPortfolioBalancesResponse

type ListPortfolioBalancesResponse struct {
	Balances              []*model.Balance              `json:"balances"`
	Type                  string                        `json:"type"`
	TradingWalletBalances *model.BalanceWithHolds       `json:"trading_balances"`
	VaultWalletBalances   *model.BalanceWithHolds       `json:"vault_balances"`
	Request               *ListPortfolioBalancesRequest `json:"request"`
}

Jump to

Keyboard shortcuts

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