position

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cancel

type Cancel Position

func CancelFromRaw

func CancelFromRaw(raw []interface{}) (Cancel, error)

type ClaimRequest

type ClaimRequest struct {
	Id int64
}

func (*ClaimRequest) ToJSON

func (o *ClaimRequest) ToJSON() ([]byte, error)

type New

type New Position

func NewFromRaw

func NewFromRaw(raw []interface{}) (New, error)

type Position

type Position struct {
	Id                   int64
	Symbol               string
	Status               string
	Amount               float64
	BasePrice            float64
	MarginFunding        float64
	MarginFundingType    int64
	ProfitLoss           float64
	ProfitLossPercentage float64
	LiquidationPrice     float64
	Leverage             float64
	Flag                 interface{}
	MtsCreate            int64
	MtsUpdate            int64
	Type                 string
	Collateral           float64
	CollateralMin        float64
	Meta                 map[string]interface{}
}

func FromRaw

func FromRaw(raw []interface{}) (p *Position, err error)

type Snapshot

type Snapshot struct {
	Snapshot []*Position
}

func SnapshotFromRaw

func SnapshotFromRaw(raw []interface{}) (s *Snapshot, err error)

type Update

type Update Position

func UpdateFromRaw

func UpdateFromRaw(raw []interface{}) (Update, error)

Jump to

Keyboard shortcuts

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