Skip to main content

DexPoolDto

Struct DexPoolDto 

Source
pub struct DexPoolDto {
Show 19 fields pub chain: String, pub created_block_timestamp: Option<String>, pub fee_rate: Option<String>, pub image: Option<String>, pub liquidity_model: Option<DexPoolDtoLiquidityModel>, pub pool_address: String, pub program_address: Option<String>, pub protocol_family: Option<String>, pub protocol_name: Option<String>, pub tick_spacing: Option<i64>, pub token_a_address: String, pub token_a_liquidity: Option<DexPoolTokenLiquidity>, pub token_b_address: String, pub token_b_liquidity: Option<DexPoolTokenLiquidity>, pub token_count: Option<i64>, pub tvl_in_sol: Option<String>, pub tvl_in_usd: Option<String>, pub type_: Option<DexPoolDtoType>, pub version: Option<DexPoolDtoVersion>,
}
Expand description

DexPoolDto

JSON schema
{
 "type": "object",
 "required": [
   "chain",
   "poolAddress",
   "tokenAAddress",
   "tokenBAddress"
 ],
 "properties": {
   "chain": {
     "description": "DTO.DEX.CHAIN",
     "examples": [
       "sol"
     ],
     "type": "string"
   },
   "createdBlockTimestamp": {
     "description": "DTO.DEXPOOL.CREATED_BLOCK_TIMESTAMP",
     "examples": [
       "2024-01-15T10:30:00Z"
     ],
     "type": "string"
   },
   "feeRate": {
     "description": "DTO.DEXPOOL.FEE_RATE",
     "examples": [
       "0.003"
     ],
     "type": "string"
   },
   "image": {
     "description": "DTO.DEX.IMAGE",
     "examples": [
       "https://ipfs.io/ipfs/bafkreid7667676767676767676767676767676767676767676767676767676767676767"
     ],
     "type": "string"
   },
   "liquidityModel": {
     "description": "DTO.DEXPOOL.LIQUIDITY_MODEL",
     "examples": [
       1
     ],
     "type": "number",
     "enum": [
       0.0,
       1.0,
       2.0,
       3.0,
       4.0
     ]
   },
   "poolAddress": {
     "description": "DTO.DEXPOOL.POOL_ADDRESS",
     "examples": [
       "58oQChx4yWmvKdwLLZzBi4ChoCc2fqCUWBkwMihLYQo2"
     ],
     "type": "string"
   },
   "programAddress": {
     "description": "DTO.DEX.PROGRAM_ADDRESS",
     "examples": [
       "whirLbMiicVdio4qvUfM5KAg6Ct8VwpYzGff3uctyCc"
     ],
     "type": "string"
   },
   "protocolFamily": {
     "description": "DTO.DEX.PROTOCOL_FAMILY",
     "examples": [
       "OrcaWhirpool"
     ],
     "type": "string"
   },
   "protocolName": {
     "description": "DTO.DEXPOOL.PROTOCOL_NAME",
     "examples": [
       "OrcaWhirpool AMM V2"
     ],
     "type": "string"
   },
   "tickSpacing": {
     "description": "DTO.DEXPOOL.TICK_SPACING",
     "examples": [
       64
     ],
     "type": "integer"
   },
   "tokenAAddress": {
     "description": "DTO.DEXPOOL.TOKEN_A",
     "examples": [
       "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v"
     ],
     "type": "string"
   },
   "tokenALiquidity": {
     "description": "DTO.DEXPOOL.TOKEN_A_LIQUIDITY",
     "allOf": [
       {
         "$ref": "#/components/schemas/DexPoolTokenLiquidity"
       }
     ]
   },
   "tokenBAddress": {
     "description": "DTO.DEXPOOL.TOKEN_B",
     "examples": [
       "Es9vMFrzaCERmJfrF4H2FYD4KCoNkY11McCe8BenwNYB"
     ],
     "type": "string"
   },
   "tokenBLiquidity": {
     "description": "DTO.DEXPOOL.TOKEN_B_LIQUIDITY",
     "allOf": [
       {
         "$ref": "#/components/schemas/DexPoolTokenLiquidity"
       }
     ]
   },
   "tokenCount": {
     "description": "DTO.DEXPOOL.TOKEN_COUNT",
     "examples": [
       2
     ],
     "type": "integer"
   },
   "tvlInSol": {
     "description": "DTO.DEXPOOL.TVL_SOL",
     "examples": [
       "1000000.45"
     ],
     "type": "string"
   },
   "tvlInUsd": {
     "description": "DTO.DEXPOOL.TVL_USD",
     "examples": [
       "1000000.45"
     ],
     "type": "string"
   },
   "type": {
     "description": "DTO.DEXPOOL.TYPE",
     "examples": [
       1
     ],
     "type": "number",
     "enum": [
       0.0,
       1.0,
       2.0,
       3.0,
       4.0
     ]
   },
   "version": {
     "description": "DTO.DEXPOOL.VERSION",
     "examples": [
       2
     ],
     "type": "number",
     "enum": [
       0.0,
       1.0,
       2.0,
       3.0
     ]
   }
 }
}

Fields§

§chain: String

DTO.DEX.CHAIN

§created_block_timestamp: Option<String>

DTO.DEXPOOL.CREATED_BLOCK_TIMESTAMP

§fee_rate: Option<String>

DTO.DEXPOOL.FEE_RATE

§image: Option<String>

DTO.DEX.IMAGE

§liquidity_model: Option<DexPoolDtoLiquidityModel>§pool_address: String

DTO.DEXPOOL.POOL_ADDRESS

§program_address: Option<String>

DTO.DEX.PROGRAM_ADDRESS

§protocol_family: Option<String>

DTO.DEX.PROTOCOL_FAMILY

§protocol_name: Option<String>

DTO.DEXPOOL.PROTOCOL_NAME

§tick_spacing: Option<i64>

DTO.DEXPOOL.TICK_SPACING

§token_a_address: String

DTO.DEXPOOL.TOKEN_A

§token_a_liquidity: Option<DexPoolTokenLiquidity>

DTO.DEXPOOL.TOKEN_A_LIQUIDITY

§token_b_address: String

DTO.DEXPOOL.TOKEN_B

§token_b_liquidity: Option<DexPoolTokenLiquidity>

DTO.DEXPOOL.TOKEN_B_LIQUIDITY

§token_count: Option<i64>

DTO.DEXPOOL.TOKEN_COUNT

§tvl_in_sol: Option<String>

DTO.DEXPOOL.TVL_SOL

§tvl_in_usd: Option<String>

DTO.DEXPOOL.TVL_USD

§type_: Option<DexPoolDtoType>§version: Option<DexPoolDtoVersion>

Implementations§

Trait Implementations§

Source§

impl Clone for DexPoolDto

Source§

fn clone(&self) -> DexPoolDto

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 DexPoolDto

Source§

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

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

impl<'de> Deserialize<'de> for DexPoolDto

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

Source§

fn from(value: &DexPoolDto) -> Self

Converts to this type from the input type.
Source§

impl From<DexPoolDto> for DexPoolDto

Source§

fn from(value: DexPoolDto) -> Self

Converts to this type from the input type.
Source§

impl Serialize for DexPoolDto

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

Source§

type Error = ConversionError

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

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