Documentation
¶
Index ¶
- type Audit
- type BS
- type BaseToken
- type ContractCreation
- type ContractCreationResp
- type Crypto
- func (t *Crypto) DexTools(pair, chain string) *Datum
- func (t *Crypto) FuturesPrice(name string) (prices string)
- func (t *Crypto) HoneypotCheck(addr string) string
- func (t *Crypto) MemeCheck(query string, chain string) *MemeChecker
- func (t *Crypto) MemePrice(query string, chain string) *Pair
- func (t *Crypto) Ping() bool
- func (t *Crypto) Price(name ...string) (prices map[string]string)
- func (t *Crypto) UFutureKline(interval string, limit int, symbol string) []int
- func (t *Crypto) WhetherHoneypot(addr string) bool
- type CryptoMonitor
- func (t *CryptoMonitor) AddHighMonitor(id int64, crypto, price string)
- func (t *CryptoMonitor) AddLowMonitor(id int64, crypto, price string)
- func (t *CryptoMonitor) Context()
- func (t *CryptoMonitor) DeleteMonitor(id int64, crypto ...string)
- func (t *CryptoMonitor) GetPrice(id int64, crypto ...string) map[string]string
- func (t *CryptoMonitor) GetUFuturePrice(id int64, crypto string) string
- func (t *CryptoMonitor) Start()
- type Datum
- type DatumID
- type DatumMetrics
- type Dex
- type DextScore
- type DextoolsResp
- type GasOracle
- type GasOracleResp
- type Holder
- type Honeypot
- type HoneypotResp
- type Info
- type Liquidity
- type LockedDetail
- type Meme
- type MemeChecker
- type MemeCheckerResp
- type Pair
- type PollingKey
- type Price
- type PriceChange
- type Probe
- func (t *Probe) AddKLineProbe(crypto string)
- func (t *Probe) AddSmartAddr(addr string)
- func (p *Probe) CloseMemeMonitor(query string, chain string)
- func (t *Probe) DeleteSmartAddr(addr string)
- func (t *Probe) DumpCron()
- func (t *Probe) DumpSmartAddrList(tip bool)
- func (t *Probe) KLineProbe(crypto string, ctx context.Context)
- func (t *Probe) ListKLineProbe() string
- func (t *Probe) ListSmartAddr(tip bool) string
- func (p *Probe) MemeDeclineMonitor(query string, chain string, price string)
- func (p *Probe) MemeGrowthMonitor(query string, chain string, price string)
- func (p *Probe) MemeMonitorList()
- func (p *Probe) MemePrice(query string, chain string)
- func (t *Probe) SetSmartAddrProbeItv(itv string)
- func (t *Probe) SmartAddr(addr string, offset string)
- func (t *Probe) SmartAddrProbe(ctx context.Context, addr string)
- func (t *Probe) StopKLineProbe(crypto string)
- type ReprPair
- type Token
- type TokenID
- type TokenMetrics
- type TokenTx
- type TokenTxResp
- type Track
- func (t *Track) AnalyzeAddrTokenProfit(addr, token string)
- func (t *Track) BotAddrFinder(token, offset, page string)
- func (t *Track) CronTracking(addr, remark string)
- func (t *Track) DumpCron()
- func (t *Track) DumpTrackingList(tip bool)
- func (t *Track) SmartAddrFinder(token, offset, page string)
- func (t *Track) StopTracking(addr string)
- func (t *Track) Tracking(addr string, ctx context.Context)
- func (t *Track) TrackingList(tip bool) string
- func (t *Track) TransferList(addr, token string) []TokenTx
- func (t *Track) WalletLastTransaction()
- func (t *Track) WalletTracking(addr string)
- func (t *Track) WalletTrackingV2(addr string)
- func (t *Track) WalletTxAnalyze(addr string, offset string)
- type Txn
- type Volume
- type Votes
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 ContractCreation ¶ added in v0.0.32
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 (*Crypto) FuturesPrice ¶
func (*Crypto) HoneypotCheck ¶ added in v0.0.24
func (*Crypto) UFutureKline ¶
前3根k线的涨跌结果,1 涨 -1 跌
func (*Crypto) WhetherHoneypot ¶ added in v0.0.25
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 DatumMetrics ¶ added in v1.2.0
type DextoolsResp ¶ added in v1.2.0
DextoolsResp Start
type GasOracleResp ¶ added in v1.1.0
type HoneypotResp ¶ added in v0.0.24
type HoneypotResp struct {
Honeypot Honeypot `json:"honeypotResult"`
}
type LockedDetail ¶
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"` PriceChange *PriceChange `json:"priceChange"` Volume *Volume `json:"volume"` Txns *Txn `json:"txns"` Lp *Liquidity `json:"liquidity"` Fdv int64 `json:"fdv"` CreateAt int64 `json:"pairCreatedAt"` CreateTime string }
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) GetKey ¶ added in v1.0.2
func (t *PollingKey) GetKey() string
func (*PollingKey) IsNull ¶ added in v1.0.2
func (t *PollingKey) IsNull() bool
type PriceChange ¶
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 *PollingKey // contains filtered or unexported fields }
func (*Probe) AddKLineProbe ¶
func (*Probe) AddSmartAddr ¶
func (*Probe) CloseMemeMonitor ¶
func (*Probe) DeleteSmartAddr ¶
func (*Probe) DumpSmartAddrList ¶
func (*Probe) ListKLineProbe ¶
func (*Probe) ListSmartAddr ¶ added in v0.0.28
func (*Probe) MemeDeclineMonitor ¶
func (*Probe) MemeGrowthMonitor ¶
func (*Probe) MemeMonitorList ¶
func (p *Probe) MemeMonitorList()
func (*Probe) SetSmartAddrProbeItv ¶
func (*Probe) StopKLineProbe ¶
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"` Logo string `json:"logo"` 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 TokenMetrics ¶ added in v1.2.0
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 Track ¶ added in v0.0.25
type Track struct { C chan string Newest map[string]*newest Task map[string]context.CancelFunc Keys *PollingKey // contains filtered or unexported fields }
func (*Track) AnalyzeAddrTokenProfit ¶ added in v1.0.0
func (*Track) BotAddrFinder ¶ added in v1.3.4
func (*Track) CronTracking ¶ added in v0.0.25
func (*Track) DumpTrackingList ¶ added in v0.0.30
func (*Track) SmartAddrFinder ¶ added in v0.0.32
1. 拉取某个 token 最初的交易列表 2. 遍历列表, 查询所有 from 和 to 的地址在该 token 的交易记录 3. 过滤掉买卖数超过 6 的地址, 此类一般为夹子机器人 4. 对交易记录遍历查询内部交易, 对地址的买卖数收益记录
func (*Track) StopTracking ¶ added in v0.0.25
func (*Track) TrackingList ¶ added in v0.0.28
func (*Track) TransferList ¶ added in v0.0.32
func (*Track) WalletLastTransaction ¶ added in v1.3.0
func (t *Track) WalletLastTransaction()
func (*Track) WalletTracking ¶ added in v0.0.25
func (*Track) WalletTrackingV2 ¶ added in v1.2.0
func (*Track) WalletTxAnalyze ¶ added in v0.0.26
Source Files
¶
Click to show internal directories.
Click to hide internal directories.