derivatives

package
v0.0.0-...-9e0b26f Latest Latest
Warning

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

Go to latest
Published: Jun 8, 2021 License: MIT Imports: 2 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DerivativeStatus

type DerivativeStatus struct {
	Symbol               string
	MTS                  int64
	Price                float64
	SpotPrice            float64
	InsuranceFundBalance float64
	FundingEventMTS      int64
	FundingAccrued       float64
	FundingStep          float64
	CurrentFunding       float64
	MarkPrice            float64
	OpenInterest         float64
}

func FromRaw

func FromRaw(raw []interface{}) (*DerivativeStatus, error)

func FromWsRaw

func FromWsRaw(symbol string, raw []interface{}) (*DerivativeStatus, error)

type Snapshot

type Snapshot struct {
	Snapshot []*DerivativeStatus
}

func SnapshotFromRaw

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

Jump to

Keyboard shortcuts

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