margin

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: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FromRaw

func FromRaw(raw []interface{}) (o interface{}, err error)

FromRaw returns either a InfoBase or InfoUpdate, since the Margin Info is split up into a base and per symbol parts.

Types

type InfoBase

type InfoBase struct {
	UserProfitLoss float64
	UserSwaps      float64
	MarginBalance  float64
	MarginNet      float64
	MarginRequired float64
}

type InfoUpdate

type InfoUpdate struct {
	Symbol          string
	TradableBalance float64
	GrossBalance    float64
	Buy             float64
	Sell            float64
}

Jump to

Keyboard shortcuts

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