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: StringDTO.WALLET.PNL.AVERAGE_BUY_PRICE
average_sell_price_in_usd: StringDTO.WALLET.PNL.AVERAGE_SELL_PRICE
balance: StringDTO.WALLET.PNL.BALANCE
buy_amount: StringDTO.WALLET.PNL.BUY_AMOUNT
buy_amount_in_usd: StringDTO.WALLET.PNL.BUY_AMOUNT_USD
buys: StringDTO.WALLET.PNL.BUYS
chain: StringDTO.WALLET.PNL.CHAIN
close_time: i64DTO.WALLET.PNL.CLOSE_TIME
id: i64DTO.WALLET.PNL.ID
last_time: i64DTO.WALLET.PNL.LAST_TIME
open_time: i64DTO.WALLET.PNL.OPEN_TIME
realized_profit_in_usd: StringDTO.WALLET.PNL.REALIZED_PROFIT
realized_profit_ratio: StringDTO.WALLET.PNL.REALIZED_PROFIT_RATIO
sell_amount: StringDTO.WALLET.PNL.SELL_AMOUNT
sell_amount_in_usd: StringDTO.WALLET.PNL.SELL_AMOUNT_USD
sells: StringDTO.WALLET.PNL.SELLS
token_address: StringDTO.WALLET.PNL.TOKEN_ADDRESS
token_price_in_usd: StringDTO.WALLET.PNL.TOKEN_PRICE
total_realized_profit_in_usd: StringDTO.WALLET.PNL.TOTAL_REALIZED_PROFIT
total_realized_profit_ratio: StringDTO.WALLET.PNL.TOTAL_REALIZED_PROFIT_RATIO
unrealized_profit_in_usd: StringDTO.WALLET.PNL.UNREALIZED_PROFIT
unrealized_profit_ratio: StringDTO.WALLET.PNL.UNREALIZED_PROFIT_RATIO
wallet_address: StringDTO.WALLET.PNL.WALLET_ADDRESS
Implementations§
Source§impl WalletPnlDto
impl WalletPnlDto
pub fn builder() -> WalletPnlDto
Trait Implementations§
Source§impl Clone for WalletPnlDto
impl Clone for WalletPnlDto
Source§fn clone(&self) -> WalletPnlDto
fn clone(&self) -> WalletPnlDto
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for WalletPnlDto
impl Debug for WalletPnlDto
Source§impl<'de> Deserialize<'de> for WalletPnlDto
impl<'de> Deserialize<'de> for WalletPnlDto
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
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
impl From<&WalletPnlDto> for WalletPnlDto
Source§fn from(value: &WalletPnlDto) -> Self
fn from(value: &WalletPnlDto) -> Self
Converts to this type from the input type.
Source§impl From<WalletPnlDto> for WalletPnlDto
impl From<WalletPnlDto> for WalletPnlDto
Source§fn from(value: WalletPnlDto) -> Self
fn from(value: WalletPnlDto) -> Self
Converts to this type from the input type.
Source§impl Serialize for WalletPnlDto
impl Serialize for WalletPnlDto
Source§impl TryFrom<WalletPnlDto> for WalletPnlDto
impl TryFrom<WalletPnlDto> for WalletPnlDto
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(value: WalletPnlDto) -> Result<Self, ConversionError>
fn try_from(value: WalletPnlDto) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for WalletPnlDto
impl RefUnwindSafe for WalletPnlDto
impl Send for WalletPnlDto
impl Sync for WalletPnlDto
impl Unpin for WalletPnlDto
impl UnwindSafe for WalletPnlDto
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more