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: StringDTO.WALLET.BALANCE.AMOUNT
average_buy_price_in_usd: StringDTO.WALLET.BALANCE.AVERAGE_BUY_PRICE
average_sell_price_in_usd: StringDTO.WALLET.BALANCE.AVERAGE_SELL_PRICE
buy_amount: StringDTO.WALLET.BALANCE.BUY_AMOUNT
buy_amount_in_usd: StringDTO.WALLET.BALANCE.BUY_AMOUNT_USD
buys: StringDTO.WALLET.BALANCE.BUYS
close_time: i64DTO.WALLET.BALANCE.CLOSE_TIME
image_url: StringDTO.WALLET.BALANCE.TOKEN_IMAGE_URL
name: StringDTO.WALLET.BALANCE.TOKEN_NAME
open_time: i64DTO.WALLET.BALANCE.OPEN_TIME
price_change_ratio_in_usd24h: StringDTO.WALLET.BALANCE.PRICE_CHANGE_24H
price_in_sol: StringDTO.WALLET.BALANCE.TOKEN_PRICE_IN_SOL
price_in_usd: StringDTO.WALLET.BALANCE.TOKEN_PRICE_IN_USD
realized_profit_in_usd: StringDTO.WALLET.BALANCE.REALIZED_PROFIT_IN_USD
realized_profit_ratio: StringDTO.WALLET.BALANCE.REALIZED_PROFIT_RATIO
sell_amount: StringDTO.WALLET.BALANCE.SELL_AMOUNT
sell_amount_in_usd: StringDTO.WALLET.BALANCE.SELL_AMOUNT_USD
sells: StringDTO.WALLET.BALANCE.SELLS
symbol: StringDTO.WALLET.BALANCE.TOKEN_SYMBOL
token_address: StringDTO.WALLET.BALANCE.TOKEN_ADDRESS
total_realized_profit_in_usd: StringDTO.WALLET.BALANCE.TOTAL_REALIZED_PROFIT
total_realized_profit_ratio: StringDTO.WALLET.BALANCE.TOTAL_REALIZED_PROFIT_RATIO
unrealized_profit_in_usd: StringDTO.WALLET.BALANCE.UNREALIZED_PROFIT
unrealized_profit_ratio: StringDTO.WALLET.BALANCE.UNREALIZED_PROFIT_RATIO
value_in_usd: StringDTO.WALLET.BALANCE.AMOUNT_IN_USD
Implementations§
Source§impl WalletBalanceDetailDto
impl WalletBalanceDetailDto
pub fn builder() -> WalletBalanceDetailDto
Trait Implementations§
Source§impl Clone for WalletBalanceDetailDto
impl Clone for WalletBalanceDetailDto
Source§fn clone(&self) -> WalletBalanceDetailDto
fn clone(&self) -> WalletBalanceDetailDto
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more