Skip to main content

WalletPnlDto

Struct WalletPnlDto 

Source
pub struct WalletPnlDto {
Show 23 fields pub average_buy_price_in_usd: String, pub average_sell_price_in_usd: String, pub balance: String, pub buy_amount: String, pub buy_amount_in_usd: String, pub buys: String, pub chain: String, pub close_time: i64, pub id: i64, pub last_time: i64, pub open_time: i64, 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 token_address: String, pub token_price_in_usd: 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 wallet_address: String,
}
Expand description

WalletPnlDto

JSON schema
{
 "type": "object",
 "required": [
   "averageBuyPriceInUsd",
   "averageSellPriceInUsd",
   "balance",
   "buyAmount",
   "buyAmountInUsd",
   "buys",
   "chain",
   "closeTime",
   "id",
   "lastTime",
   "openTime",
   "realizedProfitInUsd",
   "realizedProfitRatio",
   "sellAmount",
   "sellAmountInUsd",
   "sells",
   "tokenAddress",
   "tokenPriceInUsd",
   "totalRealizedProfitInUsd",
   "totalRealizedProfitRatio",
   "unrealizedProfitInUsd",
   "unrealizedProfitRatio",
   "walletAddress"
 ],
 "properties": {
   "averageBuyPriceInUsd": {
     "description": "DTO.WALLET.PNL.AVERAGE_BUY_PRICE",
     "examples": [
       "1.23"
     ],
     "type": "string"
   },
   "averageSellPriceInUsd": {
     "description": "DTO.WALLET.PNL.AVERAGE_SELL_PRICE",
     "examples": [
       "1.23"
     ],
     "type": "string"
   },
   "balance": {
     "description": "DTO.WALLET.PNL.BALANCE",
     "examples": [
       "1000"
     ],
     "type": "string"
   },
   "buyAmount": {
     "description": "DTO.WALLET.PNL.BUY_AMOUNT",
     "examples": [
       "1500"
     ],
     "type": "string"
   },
   "buyAmountInUsd": {
     "description": "DTO.WALLET.PNL.BUY_AMOUNT_USD",
     "examples": [
       "1845"
     ],
     "type": "string"
   },
   "buys": {
     "description": "DTO.WALLET.PNL.BUYS",
     "examples": [
       "10"
     ],
     "type": "string"
   },
   "chain": {
     "description": "DTO.WALLET.PNL.CHAIN",
     "examples": [
       "solana"
     ],
     "type": "string"
   },
   "closeTime": {
     "description": "DTO.WALLET.PNL.CLOSE_TIME",
     "examples": [
       "1741780514000"
     ],
     "type": "integer",
     "format": "int64"
   },
   "id": {
     "description": "DTO.WALLET.PNL.ID",
     "examples": [
       "1"
     ],
     "type": "integer",
     "format": "int64"
   },
   "lastTime": {
     "description": "DTO.WALLET.PNL.LAST_TIME",
     "examples": [
       "1741780514000"
     ],
     "type": "integer",
     "format": "int64"
   },
   "openTime": {
     "description": "DTO.WALLET.PNL.OPEN_TIME",
     "examples": [
       "1741780514000"
     ],
     "type": "integer",
     "format": "int64"
   },
   "realizedProfitInUsd": {
     "description": "DTO.WALLET.PNL.REALIZED_PROFIT",
     "examples": [
       "45.67"
     ],
     "type": "string"
   },
   "realizedProfitRatio": {
     "description": "DTO.WALLET.PNL.REALIZED_PROFIT_RATIO",
     "examples": [
       "4.56"
     ],
     "type": "string"
   },
   "sellAmount": {
     "description": "DTO.WALLET.PNL.SELL_AMOUNT",
     "examples": [
       "500"
     ],
     "type": "string"
   },
   "sellAmountInUsd": {
     "description": "DTO.WALLET.PNL.SELL_AMOUNT_USD",
     "examples": [
       "615"
     ],
     "type": "string"
   },
   "sells": {
     "description": "DTO.WALLET.PNL.SELLS",
     "examples": [
       "5"
     ],
     "type": "string"
   },
   "tokenAddress": {
     "description": "DTO.WALLET.PNL.TOKEN_ADDRESS",
     "examples": [
       "6p6xgHyF7AeE6TZkSmFsko444wqoP15icUSqi2jfGiPN"
     ],
     "type": "string"
   },
   "tokenPriceInUsd": {
     "description": "DTO.WALLET.PNL.TOKEN_PRICE",
     "examples": [
       "1.23"
     ],
     "type": "string"
   },
   "totalRealizedProfitInUsd": {
     "description": "DTO.WALLET.PNL.TOTAL_REALIZED_PROFIT",
     "examples": [
       "169.12"
     ],
     "type": "string"
   },
   "totalRealizedProfitRatio": {
     "description": "DTO.WALLET.PNL.TOTAL_REALIZED_PROFIT_RATIO",
     "examples": [
       "16.91"
     ],
     "type": "string"
   },
   "unrealizedProfitInUsd": {
     "description": "DTO.WALLET.PNL.UNREALIZED_PROFIT",
     "examples": [
       "123.45"
     ],
     "type": "string"
   },
   "unrealizedProfitRatio": {
     "description": "DTO.WALLET.PNL.UNREALIZED_PROFIT_RATIO",
     "examples": [
       "12.34"
     ],
     "type": "string"
   },
   "walletAddress": {
     "description": "DTO.WALLET.PNL.WALLET_ADDRESS",
     "examples": [
       "oQPnhXAbLbMuKHESaGrbXT17CyvWCpLyERSJA9HCYd7"
     ],
     "type": "string"
   }
 }
}

Fields§

§average_buy_price_in_usd: String

DTO.WALLET.PNL.AVERAGE_BUY_PRICE

§average_sell_price_in_usd: String

DTO.WALLET.PNL.AVERAGE_SELL_PRICE

§balance: String

DTO.WALLET.PNL.BALANCE

§buy_amount: String

DTO.WALLET.PNL.BUY_AMOUNT

§buy_amount_in_usd: String

DTO.WALLET.PNL.BUY_AMOUNT_USD

§buys: String

DTO.WALLET.PNL.BUYS

§chain: String

DTO.WALLET.PNL.CHAIN

§close_time: i64

DTO.WALLET.PNL.CLOSE_TIME

§id: i64

DTO.WALLET.PNL.ID

§last_time: i64

DTO.WALLET.PNL.LAST_TIME

§open_time: i64

DTO.WALLET.PNL.OPEN_TIME

§realized_profit_in_usd: String

DTO.WALLET.PNL.REALIZED_PROFIT

§realized_profit_ratio: String

DTO.WALLET.PNL.REALIZED_PROFIT_RATIO

§sell_amount: String

DTO.WALLET.PNL.SELL_AMOUNT

§sell_amount_in_usd: String

DTO.WALLET.PNL.SELL_AMOUNT_USD

§sells: String

DTO.WALLET.PNL.SELLS

§token_address: String

DTO.WALLET.PNL.TOKEN_ADDRESS

§token_price_in_usd: String

DTO.WALLET.PNL.TOKEN_PRICE

§total_realized_profit_in_usd: String

DTO.WALLET.PNL.TOTAL_REALIZED_PROFIT

§total_realized_profit_ratio: String

DTO.WALLET.PNL.TOTAL_REALIZED_PROFIT_RATIO

§unrealized_profit_in_usd: String

DTO.WALLET.PNL.UNREALIZED_PROFIT

§unrealized_profit_ratio: String

DTO.WALLET.PNL.UNREALIZED_PROFIT_RATIO

§wallet_address: String

DTO.WALLET.PNL.WALLET_ADDRESS

Implementations§

Trait Implementations§

Source§

impl Clone for WalletPnlDto

Source§

fn clone(&self) -> WalletPnlDto

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 WalletPnlDto

Source§

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

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

impl<'de> Deserialize<'de> for WalletPnlDto

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<&WalletPnlDto> for WalletPnlDto

Source§

fn from(value: &WalletPnlDto) -> Self

Converts to this type from the input type.
Source§

impl From<WalletPnlDto> for WalletPnlDto

Source§

fn from(value: WalletPnlDto) -> Self

Converts to this type from the input type.
Source§

impl Serialize for WalletPnlDto

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<WalletPnlDto> for WalletPnlDto

Source§

type Error = ConversionError

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

fn try_from(value: WalletPnlDto) -> 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,