Skip to main content

WalletBalanceDetailDto

Struct WalletBalanceDetailDto 

Source
pub struct WalletBalanceDetailDto {
Show 25 fields pub amount: String, pub average_buy_price_in_usd: String, pub average_sell_price_in_usd: String, pub buy_amount: String, pub buy_amount_in_usd: String, pub buys: String, pub close_time: i64, pub image_url: String, pub name: String, pub open_time: i64, pub price_change_ratio_in_usd24h: String, pub price_in_sol: String, pub price_in_usd: String, pub realized_profit_in_usd: String, pub realized_profit_ratio: String, pub sell_amount: String, pub sell_amount_in_usd: String, pub sells: String, pub symbol: String, pub token_address: String, pub total_realized_profit_in_usd: String, pub total_realized_profit_ratio: String, pub unrealized_profit_in_usd: String, pub unrealized_profit_ratio: String, pub value_in_usd: String,
}
Expand description

WalletBalanceDetailDto

JSON schema
{
 "type": "object",
 "required": [
   "amount",
   "averageBuyPriceInUsd",
   "averageSellPriceInUsd",
   "buyAmount",
   "buyAmountInUsd",
   "buys",
   "closeTime",
   "imageUrl",
   "name",
   "openTime",
   "priceChangeRatioInUsd24h",
   "priceInSol",
   "priceInUsd",
   "realizedProfitInUsd",
   "realizedProfitRatio",
   "sellAmount",
   "sellAmountInUsd",
   "sells",
   "symbol",
   "tokenAddress",
   "totalRealizedProfitInUsd",
   "totalRealizedProfitRatio",
   "unrealizedProfitInUsd",
   "unrealizedProfitRatio",
   "valueInUsd"
 ],
 "properties": {
   "amount": {
     "description": "DTO.WALLET.BALANCE.AMOUNT",
     "examples": [
       "2675.098457775"
     ],
     "type": "string"
   },
   "averageBuyPriceInUsd": {
     "description": "DTO.WALLET.BALANCE.AVERAGE_BUY_PRICE",
     "examples": [
       "1.23"
     ],
     "type": "string"
   },
   "averageSellPriceInUsd": {
     "description": "DTO.WALLET.BALANCE.AVERAGE_SELL_PRICE",
     "examples": [
       "1.23"
     ],
     "type": "string"
   },
   "buyAmount": {
     "description": "DTO.WALLET.BALANCE.BUY_AMOUNT",
     "examples": [
       "1500"
     ],
     "type": "string"
   },
   "buyAmountInUsd": {
     "description": "DTO.WALLET.BALANCE.BUY_AMOUNT_USD",
     "examples": [
       "1845"
     ],
     "type": "string"
   },
   "buys": {
     "description": "DTO.WALLET.BALANCE.BUYS",
     "examples": [
       10
     ],
     "type": "string"
   },
   "closeTime": {
     "description": "DTO.WALLET.BALANCE.CLOSE_TIME",
     "examples": [
       "1741780466000"
     ],
     "type": "integer",
     "format": "int64"
   },
   "imageUrl": {
     "description": "DTO.WALLET.BALANCE.TOKEN_IMAGE_URL",
     "examples": [
       "https://solana.com/images/solana-logo.png"
     ],
     "type": "string"
   },
   "name": {
     "description": "DTO.WALLET.BALANCE.TOKEN_NAME",
     "examples": [
       "Solana"
     ],
     "type": "string"
   },
   "openTime": {
     "description": "DTO.WALLET.BALANCE.OPEN_TIME",
     "examples": [
       "1741780466000"
     ],
     "type": "integer",
     "format": "int64"
   },
   "priceChangeRatioInUsd24h": {
     "description": "DTO.WALLET.BALANCE.PRICE_CHANGE_24H",
     "examples": [
       "5.23"
     ],
     "type": "string"
   },
   "priceInSol": {
     "description": "DTO.WALLET.BALANCE.TOKEN_PRICE_IN_SOL",
     "examples": [
       "137.15"
     ],
     "type": "string"
   },
   "priceInUsd": {
     "description": "DTO.WALLET.BALANCE.TOKEN_PRICE_IN_USD",
     "examples": [
       "137.15"
     ],
     "type": "string"
   },
   "realizedProfitInUsd": {
     "description": "DTO.WALLET.BALANCE.REALIZED_PROFIT_IN_USD",
     "examples": [
       "1234.56"
     ],
     "type": "string"
   },
   "realizedProfitRatio": {
     "description": "DTO.WALLET.BALANCE.REALIZED_PROFIT_RATIO",
     "examples": [
       "12.34"
     ],
     "type": "string"
   },
   "sellAmount": {
     "description": "DTO.WALLET.BALANCE.SELL_AMOUNT",
     "examples": [
       "500"
     ],
     "type": "string"
   },
   "sellAmountInUsd": {
     "description": "DTO.WALLET.BALANCE.SELL_AMOUNT_USD",
     "examples": [
       "615"
     ],
     "type": "string"
   },
   "sells": {
     "description": "DTO.WALLET.BALANCE.SELLS",
     "examples": [
       5
     ],
     "type": "string"
   },
   "symbol": {
     "description": "DTO.WALLET.BALANCE.TOKEN_SYMBOL",
     "examples": [
       "SOL"
     ],
     "type": "string"
   },
   "tokenAddress": {
     "description": "DTO.WALLET.BALANCE.TOKEN_ADDRESS",
     "examples": [
       "So11111111111111111111111111111111111111112"
     ],
     "type": "string"
   },
   "totalRealizedProfitInUsd": {
     "description": "DTO.WALLET.BALANCE.TOTAL_REALIZED_PROFIT",
     "examples": [
       "169.12"
     ],
     "type": "string"
   },
   "totalRealizedProfitRatio": {
     "description": "DTO.WALLET.BALANCE.TOTAL_REALIZED_PROFIT_RATIO",
     "examples": [
       "16.91"
     ],
     "type": "string"
   },
   "unrealizedProfitInUsd": {
     "description": "DTO.WALLET.BALANCE.UNREALIZED_PROFIT",
     "examples": [
       "123.45"
     ],
     "type": "string"
   },
   "unrealizedProfitRatio": {
     "description": "DTO.WALLET.BALANCE.UNREALIZED_PROFIT_RATIO",
     "examples": [
       "12.34"
     ],
     "type": "string"
   },
   "valueInUsd": {
     "description": "DTO.WALLET.BALANCE.AMOUNT_IN_USD",
     "examples": [
       "366908.31721324675"
     ],
     "type": "string"
   }
 }
}

Fields§

§amount: String

DTO.WALLET.BALANCE.AMOUNT

§average_buy_price_in_usd: String

DTO.WALLET.BALANCE.AVERAGE_BUY_PRICE

§average_sell_price_in_usd: String

DTO.WALLET.BALANCE.AVERAGE_SELL_PRICE

§buy_amount: String

DTO.WALLET.BALANCE.BUY_AMOUNT

§buy_amount_in_usd: String

DTO.WALLET.BALANCE.BUY_AMOUNT_USD

§buys: String

DTO.WALLET.BALANCE.BUYS

§close_time: i64

DTO.WALLET.BALANCE.CLOSE_TIME

§image_url: String

DTO.WALLET.BALANCE.TOKEN_IMAGE_URL

§name: String

DTO.WALLET.BALANCE.TOKEN_NAME

§open_time: i64

DTO.WALLET.BALANCE.OPEN_TIME

§price_change_ratio_in_usd24h: String

DTO.WALLET.BALANCE.PRICE_CHANGE_24H

§price_in_sol: String

DTO.WALLET.BALANCE.TOKEN_PRICE_IN_SOL

§price_in_usd: String

DTO.WALLET.BALANCE.TOKEN_PRICE_IN_USD

§realized_profit_in_usd: String

DTO.WALLET.BALANCE.REALIZED_PROFIT_IN_USD

§realized_profit_ratio: String

DTO.WALLET.BALANCE.REALIZED_PROFIT_RATIO

§sell_amount: String

DTO.WALLET.BALANCE.SELL_AMOUNT

§sell_amount_in_usd: String

DTO.WALLET.BALANCE.SELL_AMOUNT_USD

§sells: String

DTO.WALLET.BALANCE.SELLS

§symbol: String

DTO.WALLET.BALANCE.TOKEN_SYMBOL

§token_address: String

DTO.WALLET.BALANCE.TOKEN_ADDRESS

§total_realized_profit_in_usd: String

DTO.WALLET.BALANCE.TOTAL_REALIZED_PROFIT

§total_realized_profit_ratio: String

DTO.WALLET.BALANCE.TOTAL_REALIZED_PROFIT_RATIO

§unrealized_profit_in_usd: String

DTO.WALLET.BALANCE.UNREALIZED_PROFIT

§unrealized_profit_ratio: String

DTO.WALLET.BALANCE.UNREALIZED_PROFIT_RATIO

§value_in_usd: String

DTO.WALLET.BALANCE.AMOUNT_IN_USD

Implementations§

Trait Implementations§

Source§

impl Clone for WalletBalanceDetailDto

Source§

fn clone(&self) -> WalletBalanceDetailDto

Returns a duplicate of the value. Read more
1.0.0 · Source§

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

Performs copy-assignment from source. Read more
Source§

impl Debug for WalletBalanceDetailDto

Source§

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

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

impl<'de> Deserialize<'de> for WalletBalanceDetailDto

Source§

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

Deserialize this value from the given Serde deserializer. Read more
Source§

impl From<&WalletBalanceDetailDto> for WalletBalanceDetailDto

Source§

fn from(value: &WalletBalanceDetailDto) -> Self

Converts to this type from the input type.
Source§

impl From<WalletBalanceDetailDto> for WalletBalanceDetailDto

Source§

fn from(value: WalletBalanceDetailDto) -> Self

Converts to this type from the input type.
Source§

impl Serialize for WalletBalanceDetailDto

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl TryFrom<WalletBalanceDetailDto> for WalletBalanceDetailDto

Source§

type Error = ConversionError

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

fn try_from(value: WalletBalanceDetailDto) -> Result<Self, ConversionError>

Performs the conversion.

Auto Trait Implementations§

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> 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: 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: 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> Same for T

Source§

type Output = T

Should always be Self
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 = Infallible

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

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

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<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V

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
Source§

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

Source§

impl<T> ErasedDestructor for T
where T: 'static,