crypto

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: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Audit added in v1.2.0

type Audit struct {
	IsContractRenounced bool   `json:"is_contract_renounced"`
	CodeVerified        bool   `json:"codeVerified"`
	Date                string `json:"date"`
	LockTransactions    bool   `json:"lockTransactions"`
	Mint                bool   `json:"mint"`
	Provider            string `json:"provider"`
	Proxy               bool   `json:"proxy"`
	Status              string `json:"status"`
	UnlimitedFees       bool   `json:"unlimitedFees"`
	Version             int64  `json:"version"`
}

type BS

type BS struct {
	B int `json:"buys"`
	S int `json:"sells"`
}

type BaseToken

type BaseToken struct {
	Addr   string `json:"address"`
	Name   string `json:"name"`
	Symbol string `json:"symbol"`
}

type ContractCreation added in v0.0.32

type ContractCreation struct {
	Address string `json:"contractAddress"`
	Creator string `json:"contractCreator"`
}

type ContractCreationResp added in v0.0.32

type ContractCreationResp struct {
	Status  string             `json:"status"`
	Message string             `json:"message"`
	Result  []ContractCreation `json:"result"`
}

type Crypto

type Crypto struct {
	// contains filtered or unexported fields
}

func NewCrypto

func NewCrypto() *Crypto

func (*Crypto) CronDumpPairsMap added in v1.11.0

func (t *Crypto) CronDumpPairsMap()

func (*Crypto) DexKline added in v1.9.0

func (t *Crypto) DexKline(pair string, start, end int64, resolution int, last int64, version string) (*DexKline, error)

func (*Crypto) DexTools added in v1.2.0

func (t *Crypto) DexTools(pair, chain string) *Datum

func (*Crypto) Dexscreener added in v1.9.4

func (t *Crypto) Dexscreener(query string) (map[string]*Pair, error)

func (*Crypto) DumpPairsMap added in v1.11.0

func (t *Crypto) DumpPairsMap()

func (*Crypto) FuturesPrice

func (t *Crypto) FuturesPrice(name string) (prices string)

func (*Crypto) GuruKline added in v1.11.7

func (t *Crypto) GuruKline(token string, start, end int64, resolution int) (*GuruKline, error)

func (*Crypto) HoneypotCheck added in v0.0.24

func (t *Crypto) HoneypotCheck(addr string) string

func (*Crypto) HoneypotPairs added in v1.10.13

func (t *Crypto) HoneypotPairs(query string) (map[string]*Pair, error)

func (*Crypto) IsHoneypot added in v1.6.0

func (t *Crypto) IsHoneypot(addr string) *HoneypotResp

func (*Crypto) MemeCheck

func (t *Crypto) MemeCheck(query string, chain string) *MemeChecker

func (*Crypto) MemePrice

func (t *Crypto) MemePrice(query string, chain string) *Pair

func (*Crypto) Pairs added in v1.11.0

func (t *Crypto) Pairs(token string) (map[string]*PairInfo, error)

func (*Crypto) Ping

func (t *Crypto) Ping() bool

func (*Crypto) Price

func (t *Crypto) Price(name ...string) (prices map[string]string)

func (*Crypto) UFutureKline

func (t *Crypto) UFutureKline(interval string, limit int, symbol string) []int

前3根k线的涨跌结果,1 涨 -1 跌

func (*Crypto) WhetherHoneypot added in v0.0.25

func (t *Crypto) WhetherHoneypot(addr string) bool

type CryptoMonitor

type CryptoMonitor struct {
	UTC sync.Map // id -> user  map[id]*user
	CTU sync.Map // crypto -> user map[id]

	C chan map[int64]map[string]string // id -> crypto -> price
	// contains filtered or unexported fields
}

func NewCryptoMonitor

func NewCryptoMonitor() *CryptoMonitor

func (*CryptoMonitor) AddHighMonitor

func (t *CryptoMonitor) AddHighMonitor(id int64, crypto, price string)

func (*CryptoMonitor) AddLowMonitor

func (t *CryptoMonitor) AddLowMonitor(id int64, crypto, price string)

func (*CryptoMonitor) Context

func (t *CryptoMonitor) Context()

func (*CryptoMonitor) DeleteMonitor

func (t *CryptoMonitor) DeleteMonitor(id int64, crypto ...string)

func (*CryptoMonitor) GetPrice

func (t *CryptoMonitor) GetPrice(id int64, crypto ...string) map[string]string

func (*CryptoMonitor) GetUFuturePrice

func (t *CryptoMonitor) GetUFuturePrice(id int64, crypto string) string

func (*CryptoMonitor) Start

func (t *CryptoMonitor) Start()

type Datum added in v1.2.0

type Datum struct {
	ID            DatumID       `json:"id"`
	CreationBlock int64         `json:"creationBlock"`
	CreationTime  string        `json:"creationTime"`
	DextScore     DextScore     `json:"dextScore"`
	Metrics       DatumMetrics  `json:"metrics"`
	Name          string        `json:"name"`
	NameRef       string        `json:"nameRef"`
	Symbol        string        `json:"symbol"`
	SymbolRef     string        `json:"symbolRef"`
	Type          string        `json:"type"`
	Locks         []interface{} `json:"locks"`
	Votes         Votes         `json:"votes"`
	Token         Token         `json:"token"`
	Price         float64       `json:"price"`
	Price5M       Price         `json:"price5m"`
	Price1H       Price         `json:"price1h"`
	Price6H       Price         `json:"price6h"`
	Price24H      Price         `json:"price24h"`
}

type DatumID added in v1.2.0

type DatumID struct {
	Chain    string `json:"chain"`
	Exchange string `json:"exchange"`
	Pair     string `json:"pair"`
	Token    string `json:"token"`
	TokenRef string `json:"tokenRef"`
}

type DatumMetrics added in v1.2.0

type DatumMetrics struct {
	Liquidity          float64 `json:"liquidity"`
	InitialLiquidity   float64 `json:"initialLiquidity"`
	LiquidityUpdatedAt string  `json:"liquidityUpdatedAt"`
	Reserve            float64 `json:"reserve"`
	ReserveRef         float64 `json:"reserveRef"`
}

type Dex

type Dex struct {
	Name      string `json:"name"`
	Liquidity string `json:"liquidity"`
	Pair      string `json:"pair"`
}

type DexKline added in v1.9.0

type DexKline struct {
	S string  `json:"s"`
	T []int64 `json:"t"`
	// C    []float64 `json:"c"`
	// H    []float64 `json:"h"`
	// L    []float64 `json:"l"`
	// O    []float64 `json:"o"`
	// V    []float64 `json:"v"`
	CUsd []float64 `json:"c_usd"`
	HUsd []float64 `json:"h_usd"`
	LUsd []float64 `json:"l_usd"`
	OUsd []float64 `json:"o_usd"`
	// VUsd []float64 `json:"v_usd"`
	From int64 `json:"_from"`
}

DexKline

type Dexscreener added in v1.11.2

type Dexscreener struct{}

func (*Dexscreener) Call added in v1.11.2

func (t *Dexscreener) Call(query string) (map[string]*PairInfo, error)

type DextScore added in v1.2.0

type DextScore struct {
	Information  int64 `json:"information"`
	Holders      int64 `json:"holders"`
	Pool         int64 `json:"pool"`
	Transactions int64 `json:"transactions"`
	Creation     int64 `json:"creation"`
	Total        int64 `json:"total"`
}

type DextoolsResp added in v1.2.0

type DextoolsResp struct {
	Code string  `json:"code"`
	Data []Datum `json:"data"`
}

DextoolsResp Start

type GasOracle added in v1.1.0

type GasOracle struct {
	SafeGasPrice    string `json:"SafeGasPrice"`
	ProposeGasPrice string `json:"ProposeGasPrice"`
	FastGasPrice    string `json:"FastGasPrice"`
	SuggestBaseFee  string `json:"suggestBaseFee"`
}

type GasOracleResp added in v1.1.0

type GasOracleResp struct {
	Status  string    `json:"status"`
	Message string    `json:"message"`
	Result  GasOracle `json:"result"`
}

type GuruKline added in v1.11.7

type GuruKline struct {
	T    []int64   `json:"t"`
	OUsd []float64 `json:"o"`
	CUsd []float64 `json:"c"`
	HUsd []float64 `json:"h"`
	LUsd []float64 `json:"l"`
	//V          []float64 `json:"v"`
	Liq []float64 `json:"liq"`
}

type Holder

type Holder struct {
	Address    string `json:"address"`
	Tag        string `json:"tag"`
	IsContract int64  `json:"is_contract"`
	Balance    string `json:"balance"`
	Percent    string `json:"percent"`
	IsLocked   int64  `json:"is_locked"`
}

type HolderAnalysis added in v1.6.0

type HolderAnalysis struct {
	Holders         string            `json:"holders"`
	Successful      string            `json:"successful"`
	Failed          string            `json:"failed"`
	Siphoned        string            `json:"siphoned"`
	AverageTax      float64           `json:"averageTax"`
	AverageGas      float64           `json:"averageGas"`
	HighestTax      float64           `json:"highestTax"`
	HighTaxWallets  string            `json:"highTaxWallets"`
	TaxDistribution []TaxDistribution `json:"taxDistribution"`
}

type Honeypot added in v0.0.24

type Honeypot struct {
	Is bool `json:"isHoneypot"`
}

type HoneypotChain added in v1.6.0

type HoneypotChain struct {
	ID        string `json:"id"`
	Name      string `json:"name"`
	ShortName string `json:"shortName"`
	Currency  string `json:"currency"`
}

type HoneypotPair added in v1.11.2

type HoneypotPair struct{}

func (*HoneypotPair) Call added in v1.11.2

func (t *HoneypotPair) Call(query string) (map[string]*PairInfo, error)

type HoneypotPairs added in v1.10.13

type HoneypotPairs struct {
	ChainID int64  `json:"ChainID"`
	Pairs   *Pairs `json:"Pair"`
	// Reserves           []int64 `json:"Reserves"`
	Liquidity float64 `json:"Liquidity"`
	// Router             string  `json:"Router"`
	CreatedAtTimestamp int64 `json:"CreatedAtTimestamp"`
}

type HoneypotPairsResp added in v1.10.13

type HoneypotPairsResp struct {
	Data []HoneypotPairs
}

type HoneypotResp added in v0.0.24

type HoneypotResp struct {
	Token             HoneypotToken    `json:"token"`
	WithToken         HoneypotToken    `json:"withToken"`
	SimulationSuccess bool             `json:"simulationSuccess"`
	SimulationResult  SimulationResult `json:"simulationResult"`
	HolderAnalysis    HolderAnalysis   `json:"holderAnalysis"`
	Flags             []interface{}    `json:"flags"`
	Chain             HoneypotChain    `json:"chain"`
	Router            string           `json:"router"`
	Pair              *MainPair        `json:"pair"`
	PairAddress       string           `json:"pairAddress"`
	Honeypot          *Honeypot        `json:"honeypotResult"`
}

type HoneypotToken added in v1.6.0

type HoneypotToken struct {
	Name     string `json:"name"`
	Symbol   string `json:"symbol"`
	Decimals int64  `json:"decimals"`
	Address  string `json:"address"`
}

type Info added in v1.2.0

type Info struct {
	Cmc           string `json:"cmc"`
	Coingecko     string `json:"coingecko"`
	Description   string `json:"description"`
	Dextools      bool   `json:"dextools"`
	Email         string `json:"email"`
	ExtraInfo     string `json:"extraInfo"`
	NftCollection string `json:"nftCollection"`
	Ventures      bool   `json:"ventures"`
}

type LinkedList added in v1.9.3

type LinkedList struct {
	Key  string
	Next *LinkedList
}

func (*LinkedList) Add added in v1.9.4

func (t *LinkedList) Add(key string)

type Liquidity added in v0.0.24

type Liquidity struct {
	Usd float64 `json:"usd"`
}

type LockedDetail

type LockedDetail struct {
	Amount  string `json:"amount"`
	EndTime string `json:"end_time"`
	OptTime string `json:"opt_time"`
}

type MainPair added in v1.6.0

type MainPair struct {
	Pair               PairPair `json:"pair"`
	ChainID            string   `json:"chainId"`
	Reserves0          string   `json:"reserves0"`
	Reserves1          string   `json:"reserves1"`
	Liquidity          float64  `json:"liquidity"`
	Router             string   `json:"router"`
	CreatedAtTimestamp string   `json:"createdAtTimestamp"`
	CreationTxHash     string   `json:"creationTxHash"`
}

type Meme

type Meme struct {
	Pairs []*Pair `json:"pairs"`
}

type MemeChecker

type MemeChecker struct {
	AntiWhaleModifiable  string `json:"anti_whale_modifiable"`
	BuyTax               string `json:"buy_tax"`
	CanTakeBackOwnership string `json:"can_take_back_ownership"`
	//CannotBuy                  string   `json:"cannot_buy"`
	CannotSellAll  string `json:"cannot_sell_all"`
	CreatorAddress string `json:"creator_address"`
	CreatorBalance string `json:"creator_balance"`
	CreatorPercent string `json:"creator_percent"`
	//Dex                        []Dex    `json:"dex"`
	ExternalCall string `json:"external_call"`
	HiddenOwner  string `json:"hidden_owner"`
	HolderCount  string `json:"holder_count"`
	//Holders                    []Holder `json:"holders"`
	HoneypotWithSameCreator    string   `json:"honeypot_with_same_creator"`
	IsAntiWhale                string   `json:"is_anti_whale"`
	IsBlacklisted              string   `json:"is_blacklisted"`
	IsHoneypot                 string   `json:"is_honeypot"`
	IsInDex                    string   `json:"is_in_dex"`
	IsMintable                 string   `json:"is_mintable"`
	IsOpenSource               string   `json:"is_open_source"`
	IsProxy                    string   `json:"is_proxy"`
	IsWhitelisted              string   `json:"is_whitelisted"`
	LpHolderCount              string   `json:"lp_holder_count"`
	LpHolders                  []Holder `json:"lp_holders"`
	LpTotalSupply              string   `json:"lp_total_supply"`
	OwnerAddress               string   `json:"owner_address"`
	OwnerBalance               string   `json:"owner_balance"`
	OwnerChangeBalance         string   `json:"owner_change_balance"`
	OwnerPercent               string   `json:"owner_percent"`
	PersonalSlippageModifiable string   `json:"personal_slippage_modifiable"`
	Selfdestruct               string   `json:"selfdestruct"`
	SellTax                    string   `json:"sell_tax"`
	SlippageModifiable         string   `json:"slippage_modifiable"`
	TokenName                  string   `json:"token_name"`
	TokenSymbol                string   `json:"token_symbol"`
	TotalSupply                string   `json:"total_supply"`
	TradingCooldown            string   `json:"trading_cooldown"`
	TransferPausable           string   `json:"transfer_pausable"`
	LpLockedTotal              float64
}

type MemeCheckerResp

type MemeCheckerResp struct {
	Code         int64                   `json:"code"`
	Message      string                  `json:"message"`
	MemeCheckers map[string]*MemeChecker `json:"result"`
}

type Pair

type Pair struct {
	URL         string       `json:"url"`
	ChainId     string       `json:"chainId"`
	DexId       string       `json:"dexId"`
	PairAddress string       `json:"pairAddress"`
	PriceNative string       `json:"priceNative"`
	PriceUsd    string       `json:"priceUsd"`
	BaseToken   *BaseToken   `json:"baseToken"`
	QuoteToken  *BaseToken   `json:"quoteToken"`
	PriceChange *PriceChange `json:"priceChange"`
	Volume      *Volume      `json:"volume"`
	Txns        *Txn         `json:"txns"`
	Lp          *Liquidity   `json:"liquidity"`
	Fdv         float64      `json:"fdv"`
	CreateAt    int64        `json:"pairCreatedAt"`
	Labels      []string     `json:"labels"`
	CreateTime  string
}

type PairInfo added in v1.11.2

type PairInfo struct {
	CreateTime  string
	PairAddress string
}

type PairPair added in v1.6.0

type PairPair struct {
	Name    string `json:"name"`
	Address string `json:"address"`
	Token0  string `json:"token0"`
	Token1  string `json:"token1"`
	Type    string `json:"type"`
}

type Pairs added in v1.10.13

type Pairs struct {
	Name    string   `json:"Name"`
	Tokens  []string `json:"Tokens"`
	Address string   `json:"Address"`
}

type PairsApi added in v1.11.2

type PairsApi struct {
	Api  PairsInterface
	Next *PairsApi
}

func InitPairsApi added in v1.11.2

func InitPairsApi() *PairsApi

type PairsHandle added in v1.11.2

type PairsHandle struct {
	Apis *PairsApi
	// contains filtered or unexported fields
}

func NewPairsHandle added in v1.11.2

func NewPairsHandle() *PairsHandle

func (*PairsHandle) Pairs added in v1.11.2

func (t *PairsHandle) Pairs(query string) (map[string]*PairInfo, error)

type PairsInterface added in v1.11.2

type PairsInterface interface {
	Call(query string) (map[string]*PairInfo, error)
}

type PollingKey added in v1.0.2

type PollingKey struct {
	Keys []string
	// contains filtered or unexported fields
}

func NewPollingKey added in v1.0.2

func NewPollingKey() *PollingKey

func (*PollingKey) AddKeys added in v1.0.2

func (t *PollingKey) AddKeys(keys ...string)

func (*PollingKey) CallsPerM added in v1.5.0

func (t *PollingKey) CallsPerM()

func (*PollingKey) GetKey added in v1.0.2

func (t *PollingKey) GetKey() string

func (*PollingKey) IsNull added in v1.0.2

func (t *PollingKey) IsNull() bool

func (*PollingKey) Len added in v1.7.0

func (t *PollingKey) Len() int

type PollingKeyV2 added in v1.9.4

type PollingKeyV2 struct {
	Keys *LinkedList
	Now  *LinkedList

	Len    int
	Bucket *TokenBucket
	// contains filtered or unexported fields
}

func NewPollingKeyV2 added in v1.9.4

func NewPollingKeyV2() *PollingKeyV2

func (*PollingKeyV2) Add added in v1.9.4

func (t *PollingKeyV2) Add(key string)

func (*PollingKeyV2) GetKey added in v1.9.4

func (t *PollingKeyV2) GetKey() string

func (*PollingKeyV2) IsNull added in v1.9.4

func (t *PollingKeyV2) IsNull() bool

func (*PollingKeyV2) Qps added in v1.9.4

func (t *PollingKeyV2) Qps()

type Price added in v1.2.0

type Price struct {
	Volume     float64 `json:"volume"`
	Swaps      int64   `json:"swaps"`
	Price      float64 `json:"price"`
	PriceChain float64 `json:"priceChain"`
	Buys       int64   `json:"buys"`
	Sells      int64   `json:"sells"`
}

type PriceChange

type PriceChange struct {
	M5  float64 `json:"m5"`
	H1  float64 `json:"h1"`
	H6  float64 `json:"h6"`
	H24 float64 `json:"h24"`
}

type Probe

type Probe struct {
	HighLine map[string]*line
	LowLine  map[string]*line
	C        chan map[string]string
	Kline    chan string
	Meme     chan string

	Keys *PollingKeyV2
	// contains filtered or unexported fields
}

func NewProbe

func NewProbe() *Probe

func (*Probe) AddKLineProbe

func (t *Probe) AddKLineProbe(crypto string)

func (*Probe) AddSmartAddr

func (t *Probe) AddSmartAddr(addr string)

func (*Probe) CloseMemeMonitor

func (p *Probe) CloseMemeMonitor(query string, chain string)

func (*Probe) DeleteSmartAddr

func (t *Probe) DeleteSmartAddr(addr string)

func (*Probe) DumpCron

func (t *Probe) DumpCron()

func (*Probe) DumpSmartAddrList

func (t *Probe) DumpSmartAddrList(tip bool)

func (*Probe) KLineProbe

func (t *Probe) KLineProbe(crypto string, ctx context.Context)

func (*Probe) ListKLineProbe

func (t *Probe) ListKLineProbe() string

func (*Probe) ListSmartAddr added in v0.0.28

func (t *Probe) ListSmartAddr(tip bool) string

func (*Probe) MemeDeclineMonitor

func (p *Probe) MemeDeclineMonitor(query string, chain string, price string)

func (*Probe) MemeGrowthMonitor

func (p *Probe) MemeGrowthMonitor(query string, chain string, price string)

func (*Probe) MemeMonitorList

func (p *Probe) MemeMonitorList()

func (*Probe) MemePrice

func (p *Probe) MemePrice(query string, chain string)

func (*Probe) SetSmartAddrProbeItv

func (t *Probe) SetSmartAddrProbeItv(itv string)

func (*Probe) SmartAddr

func (t *Probe) SmartAddr(addr string, offset string)

func (*Probe) SmartAddrProbe

func (t *Probe) SmartAddrProbe(ctx context.Context, addr string)

func (*Probe) StopKLineProbe

func (t *Probe) StopKLineProbe(crypto string)

type ReprPair added in v1.2.0

type ReprPair struct {
	ID        DatumID `json:"id"`
	UpdatedAt string  `json:"updatedAt"`
}

type SimulationResult added in v1.6.0

type SimulationResult struct {
	BuyTax  float64 `json:"buyTax"`
	SellTax float64 `json:"sellTax"`
}

type SyncMap added in v1.9.3

type SyncMap struct {
	Mu sync.Mutex
	M  map[string]any
}

func NewSyncMap added in v1.10.1

func NewSyncMap() *SyncMap

func (*SyncMap) ExistOrStore added in v1.10.0

func (t *SyncMap) ExistOrStore(addr string, v any) bool

func (*SyncMap) Store added in v1.10.1

func (t *SyncMap) Store(addr string, v any)

func (*SyncMap) Swap added in v1.10.0

func (t *SyncMap) Swap(addr string, v any)

type TaxDistribution added in v1.6.0

type TaxDistribution struct {
	Tax   int64 `json:"tax"`
	Count int64 `json:"count"`
}

type Token added in v1.2.0

type Token struct {
	ID            TokenID           `json:"id"`
	Audit         Audit             `json:"audit"`
	Decimals      int64             `json:"decimals"`
	Info          Info              `json:"info"`
	Links         map[string]string `json:"links"`
	Metrics       TokenMetrics      `json:"metrics"`
	Name          string            `json:"name"`
	Symbol        string            `json:"symbol"`
	TotalSupply   string            `json:"totalSupply"`
	ReprPair      ReprPair          `json:"reprPair"`
	CreationBlock int64             `json:"creationBlock"`
	CreationTime  string            `json:"creationTime"`
}

type TokenBucket added in v1.9.4

type TokenBucket struct {
	// contains filtered or unexported fields
}

func NewTokenBucket added in v1.9.4

func NewTokenBucket(tokenRate int) *TokenBucket

初始化令牌桶

func (*TokenBucket) GetToken added in v1.9.4

func (tb *TokenBucket) GetToken()

获取令牌

type TokenID added in v1.2.0

type TokenID struct {
	Chain string `json:"chain"`
	Token string `json:"token"`
}

type TokenMetrics added in v1.2.0

type TokenMetrics struct {
	MaxSupply        float64     `json:"maxSupply"`
	TotalSupply      float64     `json:"totalSupply"`
	Holders          int64       `json:"holders"`
	HoldersUpdatedAt string      `json:"holdersUpdatedAt"`
	TxCount          int64       `json:"txCount"`
	Mcap             interface{} `json:"mcap"`
	Fdv              float64     `json:"fdv"`
}

type TokenTx

type TokenTx struct {
	TokenName       string `json:"tokenName"`
	TokenSymbol     string `json:"tokenSymbol"`
	ContractAddress string `json:"contractAddress"`
	Hash            string `json:"hash"`
	From            string `json:"from"`
	To              string `json:"to"`
	Value           string `json:"value"`
	Decimal         string `json:"tokenDecimal"`
	TimeStamp       string `json:"timeStamp"`
	Block           string `json:"blockNumber"`
}

type TokenTxResp

type TokenTxResp struct {
	Status  string    `json:"status"`
	Message string    `json:"message"`
	Result  []TokenTx `json:"result"`
}

type Track added in v0.0.25

type Track struct {
	C      chan string
	DeferC chan string
	Newest map[string]*newest

	Task map[string]context.CancelFunc

	Keys *PollingKeyV2
	// contains filtered or unexported fields
}

func NewTrack added in v0.0.25

func NewTrack() *Track

func (*Track) AnalyzeAddrTokenProfit added in v1.0.0

func (t *Track) AnalyzeAddrTokenProfit(addr, token string)

func (*Track) BotAddrFinder added in v1.3.4

func (t *Track) BotAddrFinder(token, offset, page string)

func (*Track) CronTaxTracking added in v1.6.0

func (t *Track) CronTaxTracking(addr string, buy, sell string)

func (*Track) CronTracking added in v0.0.25

func (t *Track) CronTracking(addr, remark string)

func (*Track) DumpCron added in v0.0.30

func (t *Track) DumpCron()

func (*Track) DumpKlineCache added in v1.11.7

func (t *Track) DumpKlineCache()

func (*Track) DumpTrackingList added in v0.0.30

func (t *Track) DumpTrackingList(tip bool)

func (*Track) GetTax added in v1.6.0

func (t *Track) GetTax(addr string)

func (*Track) Kline added in v1.11.7

func (t *Track) Kline(addr, token, start, end string) (float64, *HoneypotResp)

func (*Track) KlineAnalyze added in v1.11.7

func (t *Track) KlineAnalyze(token, start, end string) (float64, *HoneypotResp, error)

func (*Track) PriceHighestAndNow added in v1.9.0

func (t *Track) PriceHighestAndNow(token, start, end string, output bool) (float64, *HoneypotResp, error)

func (*Track) SmartAddrAnalyze added in v1.8.0

func (t *Track) SmartAddrAnalyze(token, offset, page string)

func (*Track) SmartAddrFinder added in v0.0.32

func (t *Track) SmartAddrFinder(token, offset, page string)

1. 拉取某个 token 最初的交易列表 2. 遍历列表, 查询所有 from 和 to 的地址在该 token 的交易记录 3. 过滤掉买卖数超过 6 的地址, 此类一般为夹子机器人 4. 对交易记录遍历查询内部交易, 对地址的买卖数收益记录

func (*Track) SmartAddrFinderV2 added in v1.7.0

func (t *Track) SmartAddrFinderV2(token, offset, page string)

func (*Track) StopTracking added in v0.0.25

func (t *Track) StopTracking(addr string)

func (*Track) TaxTracking added in v1.6.0

func (t *Track) TaxTracking(addr string, buy, sell int, ctx context.Context)

func (*Track) Tracking added in v0.0.25

func (t *Track) Tracking(addr string, ctx context.Context)

func (*Track) TrackingList added in v0.0.28

func (t *Track) TrackingList(tip bool) string

func (*Track) TrackingWalletAnalyze added in v1.10.9

func (t *Track) TrackingWalletAnalyze()

func (*Track) TransferList added in v0.0.32

func (t *Track) TransferList(addr, token string) []TokenTx

func (*Track) WalletLastTransaction added in v1.3.0

func (t *Track) WalletLastTransaction()

func (*Track) WalletTracking added in v0.0.25

func (t *Track) WalletTracking(addr string)

func (*Track) WalletTrackingV2 added in v1.2.0

func (t *Track) WalletTrackingV2(addr string)

func (*Track) WalletTxAnalyze added in v0.0.26

func (t *Track) WalletTxAnalyze(addr string, offset string)

func (*Track) WalletTxAnalyzeV2 added in v1.7.0

func (t *Track) WalletTxAnalyzeV2(addr string, offset string, output bool) (float64, int)

func (*Track) WalletTxInfo added in v1.5.0

func (t *Track) WalletTxInfo(addr string)

func (*Track) WalletTxInterestRate added in v1.10.1

func (t *Track) WalletTxInterestRate(addr string, offset string, output bool) (int, int, int, int, int, int)

type TxProfitRate added in v1.10.1

type TxProfitRate struct {
	Ts           int64
	Rate         float64
	Earnable     bool
	Quality      bool
	Symbol       string
	Addr         string
	Scam         string
	EarnableScam bool
	QualityScam  bool
	Old          string
}

type Txn

type Txn struct {
	M5  *BS `json:"m5"`
	H1  *BS `json:"h1"`
	H6  *BS `json:"h6"`
	H24 *BS `json:"h24"`
}

type Volume

type Volume struct {
	M5  float64 `json:"m5"`
	H1  float64 `json:"h1"`
	H6  float64 `json:"h6"`
	H24 float64 `json:"h24"`
}

type Votes added in v1.2.0

type Votes struct {
	Warning   int64 `json:"_warning"`
	Downvotes int64 `json:"downvotes"`
	Upvotes   int64 `json:"upvotes"`
}

Jump to

Keyboard shortcuts

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