models

package
v0.0.0-...-622b8a2 Latest Latest
Warning

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

Go to latest
Published: Oct 6, 2022 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 BinanceHedge

type BinanceHedge struct {
	Symbol               string           `json:"symbol"`
	FundingRateGap       float64          `json:"fundingRateGap"`
	FundingInterest      float64          `json:"fundingInterest"`
	CorssFundingRateGap  float64          `json:"crossFundingRateGap"`
	CorssFundingInterest float64          `json:"crossFundingInterest"`
	MarkPriceGap         float64          `json:"markPriceGap"`
	ProfitForTimes       int64            `json:"profitForTimes"`
	Direction            bool             `json:"direction"`
	CrossDirection       bool             `json:"crossDirection"`
	Index                []BinancePremium `json:"index"`
}

func (*BinanceHedge) GetLeftMinutes

func (h *BinanceHedge) GetLeftMinutes(currency string) (minutes float64)

func (*BinanceHedge) GetPrice

func (h *BinanceHedge) GetPrice(currency string) (price float64)

type BinancePremium

type BinancePremium struct {
	Symbol               string `json:"symbol"`
	MarkPrice            string `json:"markPrice"`
	IndexPrice           string `json:"indexPrice"`
	EstimatedSettlePrice string `json:"estimatedSettlePrice"`
	LastFundingRate      string `json:"lastFundingRate"`
	InterestRate         string `json:"interestRate"`
	NextFundingTime      int    `json:"nextFundingTime"`
	Time                 int    `json:"time"`
}

type FTXFuture

type FTXFuture struct {
	Result []FTXPremium `json:"result"`
}

type FTXPremium

type FTXPremium struct {
	Future string  `json:"future"`
	Rate   float64 `json:"rate"`
}

Jump to

Keyboard shortcuts

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