pub struct Token {Show 34 fields
pub id: i64,
pub token_address: String,
pub token_name: String,
pub token_symbol: String,
pub token_description: Option<String>,
pub image_style: Option<String>,
pub token_image: Option<String>,
pub token_banner: Option<String>,
pub creator_address: String,
pub user: CreatorInfo,
pub network: String,
pub marketcap: String,
pub price: String,
pub eth_price: String,
pub volume: String,
pub score: String,
pub virtual_eth_amount: String,
pub virtual_token_amount: String,
pub pair_address: Option<String>,
pub pool_type: i64,
pub category: String,
pub replies: i64,
pub web_link: Option<String>,
pub telegram_link: Option<String>,
pub twitter_link: Option<String>,
pub launched_at: Option<String>,
pub created_at: String,
pub updated_at: String,
pub creation_time: String,
pub liquidity: Option<String>,
pub progress: Option<f64>,
pub price_change: Option<f64>,
pub price_15m: Option<f64>,
pub price_change_15m: Option<f64>,
}Expand description
Full token record.
Monetary and token amounts (marketcap,
price, virtual_eth_amount, …)
are decimal strings, not floats: they carry 18-decimal values that lose
precision in f64. Keep them as strings, or parse them with a decimal type
of your choosing.
Fields§
§id: i64Internal row id. Pass the highest one you have seen as latest_token_id
to RecentTradesParams to poll incrementally.
token_address: StringContract address of the token.
token_name: StringToken name.
token_symbol: StringToken ticker.
token_description: Option<String>Creator-supplied description.
image_style: Option<String>Generated-image style tag, when the image was generated by Fyuz.
token_image: Option<String>Token image URL.
Token banner URL.
creator_address: StringWallet that launched the token.
user: CreatorInfoCreator’s public profile stub.
network: StringChain slug, currently always "bsc".
marketcap: StringUSD market cap. Decimal string.
price: StringToken price in USD. Decimal string.
eth_price: StringBNB price in USD at last update. Decimal string.
volume: StringTraded volume. Decimal string.
score: StringInternal ranking score. Decimal string.
virtual_eth_amount: StringBonding-curve virtual BNB reserve. Decimal string.
virtual_token_amount: StringBonding-curve virtual token reserve. Decimal string.
pair_address: Option<String>PancakeSwap pair address. None while the token is still on the bonding
curve — there is no DEX pool to read in that state, this API is the only
price source.
pool_type: i641 = PancakeSwap V2, 2 = V3, 3 = V4 / direct launch.
category: StringCategory tag assigned at launch.
replies: i64Number of comments on the token page.
web_link: Option<String>Project website.
telegram_link: Option<String>Telegram link.
twitter_link: Option<String>X/Twitter link.
launched_at: Option<String>Graduation timestamp, RFC-3339. None means the token has not graduated.
created_at: StringRow creation timestamp, RFC-3339.
updated_at: StringRow update timestamp, RFC-3339.
creation_time: StringOn-chain creation timestamp, RFC-3339.
liquidity: Option<String>Pool liquidity. Decimal string. None before graduation.
progress: Option<f64>Graduation progress toward the $30,000 target, 0-100.
price_change: Option<f64>Price change over the reporting window, percent.
price_15m: Option<f64>Price 15 minutes ago. Omitted by the server when unavailable.
price_change_15m: Option<f64>Price change over the last 15 minutes, percent. Omitted by the server when unavailable.