Documentation ¶
Index ¶
- type ContractAccountClient
- func (c *ContractAccountClient) GetAccountAsset(ctx context.Context, currency string) (*types.GetAccountAsset, error)
- func (c *ContractAccountClient) GetAccountAssets(ctx context.Context) (*types.GetAccountAssets, error)
- func (c *ContractAccountClient) GetOpenPositions(ctx context.Context, param types.GetOpenPositionsParams) (*types.GetOpenPositions, error)
- func (c *ContractAccountClient) GetPositionLeverage(ctx context.Context, param types.GetLeverageParams) (*types.GetLeverageResp, error)
- func (c *ContractAccountClient) SetPositionLeverage(ctx context.Context, param types.SetLeverageParams) (*types.SetLeverageResp, error)
- type ContractAccountClientCfg
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ContractAccountClient ¶
type ContractAccountClient struct { *utils.ContractClient // contains filtered or unexported fields }
func NewContractAccountClient ¶
func NewContractAccountClient(cfg *utils.ContractClientCfg) (*ContractAccountClient, error)
func (*ContractAccountClient) GetAccountAsset ¶
func (c *ContractAccountClient) GetAccountAsset(ctx context.Context, currency string) (*types.GetAccountAsset, error)
func (*ContractAccountClient) GetAccountAssets ¶
func (c *ContractAccountClient) GetAccountAssets(ctx context.Context) (*types.GetAccountAssets, error)
func (*ContractAccountClient) GetOpenPositions ¶
func (c *ContractAccountClient) GetOpenPositions(ctx context.Context, param types.GetOpenPositionsParams) (*types.GetOpenPositions, error)
func (*ContractAccountClient) GetPositionLeverage ¶
func (c *ContractAccountClient) GetPositionLeverage(ctx context.Context, param types.GetLeverageParams) (*types.GetLeverageResp, error)
func (*ContractAccountClient) SetPositionLeverage ¶
func (c *ContractAccountClient) SetPositionLeverage(ctx context.Context, param types.SetLeverageParams) (*types.SetLeverageResp, error)
Click to show internal directories.
Click to hide internal directories.