utils

package
v1.25.19 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2024 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MexcPrice added in v1.25.16

func MexcPrice(coin string) float64

func OrgePrice added in v1.25.15

func OrgePrice(coin string) float64

func QubicTokenAutoRefresh added in v1.25.11

func QubicTokenAutoRefresh()

Types

type Mexc added in v1.25.16

type Mexc struct {
	Symbol     string `json:"symbol"`
	Volume     string `json:"volume"`
	Amount     string `json:"amount"`
	High       string `json:"high"`
	Low        string `json:"low"`
	Bid        string `json:"bid"`
	Ask        string `json:"ask"`
	Open       string `json:"open"`
	Last       string `json:"last"`
	Time       int64  `json:"time"`
	ChangeRate string `json:"change_rate"`
}

type MexcResp added in v1.25.16

type MexcResp struct {
	Code int64  `json:"code"`
	Data []Mexc `json:"data"`
}

type Orge added in v1.25.15

type Orge struct {
	Success      bool   `json:"success"`
	Initialprice string `json:"initialprice"`
	Price        string `json:"price"`
	High         string `json:"high"`
	Low          string `json:"low"`
	Volume       string `json:"volume"`
	Bid          string `json:"bid"`
	Ask          string `json:"ask"`
}

type Qubic added in v1.25.9

type Qubic struct {
	AverageScore     float64 `json:"averageScore"`
	EstimatedIts     int64   `json:"estimatedIts"`
	SolutionsPerHour int64   `json:"solutionsPerHourCalculated"`
}

func QubicInfo added in v1.25.9

func QubicInfo(token string) (*Qubic, error)

type Utils

type Utils struct {
	MsgC chan string

	ErrC chan string
	// contains filtered or unexported fields
}

func NewUtils

func NewUtils() *Utils

func (*Utils) Base64Decode

func (t *Utils) Base64Decode(str string)

func (*Utils) Base64Encode

func (t *Utils) Base64Encode(str string)

func (*Utils) Compare added in v1.25.15

func (t *Utils) Compare(usdt string)

func (*Utils) DecimalConv added in v1.4.6

func (t *Utils) DecimalConv(str string, from, to int)

func (*Utils) DecimalStrConv added in v1.5.0

func (t *Utils) DecimalStrConv(str string, from int)

func (*Utils) Hex2String added in v1.4.6

func (t *Utils) Hex2String(str string)

func (*Utils) JsonFormat

func (t *Utils) JsonFormat(str string)

func (*Utils) QubicProfit added in v1.25.9

func (t *Utils) QubicProfit(token string)

func (*Utils) QubicToken added in v1.25.11

func (t *Utils) QubicToken()

func (*Utils) RewardCal added in v1.12.2

func (t *Utils) RewardCal(h, d, r, time, val string)

func (*Utils) StrDecimalConv added in v1.5.0

func (t *Utils) StrDecimalConv(str string, to int)

func (*Utils) String2Hex added in v1.4.6

func (t *Utils) String2Hex(str string)

func (*Utils) TimeConvert

func (t *Utils) TimeConvert(date string)

func (*Utils) TimestampConvert

func (t *Utils) TimestampConvert(Timestamp string)

Jump to

Keyboard shortcuts

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