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 ¶
Click to show internal directories.
Click to hide internal directories.