Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Derivative ¶
type Derivative struct { Symbol string MTS int64 Price float64 SpotPrice float64 InsuranceFundBalance float64 FundingEventMTS int64 FundingAccrued float64 FundingStep float64 CurrentFunding float64 MarkPrice float64 OpenInterest float64 ClampMIN float64 ClampMAX float64 }
func DerivFromRaw ¶
func DerivFromRaw(symbol string, raw []interface{}) (*Derivative, error)
func DerivFromRestRaw ¶
func DerivFromRestRaw(raw []interface{}) (t *Derivative, err error)
type DerivativesSnapshot ¶
type DerivativesSnapshot struct {
Snapshot []*Derivative
}
func DerivSnapshotFromRaw ¶
func DerivSnapshotFromRaw(symbol string, raw [][]interface{}) (*DerivativesSnapshot, error)
type Liquidation ¶
type Liquidation struct { Symbol string PositionID int64 MTS int64 Amount float64 BasePrice float64 IsMatch int IsMarketSold int PriceAcquired float64 }
func LiqFromRaw ¶
func LiqFromRaw(raw []interface{}) (*Liquidation, error)
type LiquidationsSnapshot ¶
type LiquidationsSnapshot struct {
Snapshot []*Liquidation
}
func LiqSnapshotFromRaw ¶
func LiqSnapshotFromRaw(raw [][]interface{}) (*LiquidationsSnapshot, error)
Click to show internal directories.
Click to hide internal directories.