Skip to main content

Token

Struct Token 

Source
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: i64

Internal row id. Pass the highest one you have seen as latest_token_id to RecentTradesParams to poll incrementally.

§token_address: String

Contract address of the token.

§token_name: String

Token name.

§token_symbol: String

Token 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: Option<String>

Token banner URL.

§creator_address: String

Wallet that launched the token.

§user: CreatorInfo

Creator’s public profile stub.

§network: String

Chain slug, currently always "bsc".

§marketcap: String

USD market cap. Decimal string.

§price: String

Token price in USD. Decimal string.

§eth_price: String

BNB price in USD at last update. Decimal string.

§volume: String

Traded volume. Decimal string.

§score: String

Internal ranking score. Decimal string.

§virtual_eth_amount: String

Bonding-curve virtual BNB reserve. Decimal string.

§virtual_token_amount: String

Bonding-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: i64

1 = PancakeSwap V2, 2 = V3, 3 = V4 / direct launch.

§category: String

Category tag assigned at launch.

§replies: i64

Number 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: String

Row creation timestamp, RFC-3339.

§updated_at: String

Row update timestamp, RFC-3339.

§creation_time: String

On-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.

Trait Implementations§

Source§

impl Clone for Token

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for Token

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'de> Deserialize<'de> for Token

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more

Auto Trait Implementations§

§

impl Freeze for Token

§

impl RefUnwindSafe for Token

§

impl Send for Token

§

impl Sync for Token

§

impl Unpin for Token

§

impl UnsafeUnpin for Token

§

impl UnwindSafe for Token

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self> ⓘ

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self> ⓘ

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> PolicyExt for T
where T: ?Sized,

Source§

fn and<P, B, E>(self, other: P) -> And<T, P>
where T: Sized + Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow only if self and other return Action::Follow. Read more
Source§

fn or<P, B, E>(self, other: P) -> Or<T, P>
where T: Sized + Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow if either self or other returns Action::Follow. Read more
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> ⓘ
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self> ⓘ

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more