rest

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Dec 26, 2023 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 BybitClient

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

func NewBybitClient

func NewBybitClient(cfg *bybitutils.BybitClientCfg) (*BybitClient, error)

func (*BybitClient) GetFundAccountBalance

func (bb *BybitClient) GetFundAccountBalance() (*types.GetAccountBalanceResp, error)

GetFundAccountBalance get Funding wallet balance

func (*BybitClient) GetUnifiedAccountBalance

func (bb *BybitClient) GetUnifiedAccountBalance() (*types.GetWalletBalanceResp, error)

GetUnifiedAccountBalance(Unified Account API): UNIFIED (trade spot/linear/options) Note: the Unified account supports inverse trading. However, the margin used is from the inverse derivatives wallet instead of the unified wallet. doc: https://bybit-exchange.github.io/docs/v5/intro#current-api-coverage

func (*BybitClient) GetUnifiedAccountContractBalance

func (bb *BybitClient) GetUnifiedAccountContractBalance() (*types.GetWalletBalanceResp, error)

GetContractAccountBalance(Unified Account API): CONTRACT(trade inverse)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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