pub struct TradeEvent {Show 13 fields
pub amount_in_usd: String,
pub base_amount: String,
pub buy_cost_usd: String,
pub event: TradeType,
pub id: String,
pub maker: String,
pub price_in_usd: String,
pub quote_address: String,
pub quote_amount: String,
pub quote_symbol: String,
pub timestamp: i64,
pub token_address: String,
pub tx_hash: String,
}Expand description
TradeEvent
JSON schema
{
"type": "object",
"required": [
"amountInUsd",
"baseAmount",
"buyCostUsd",
"event",
"id",
"maker",
"priceInUsd",
"quoteAddress",
"quoteAmount",
"quoteSymbol",
"timestamp",
"tokenAddress",
"txHash"
],
"properties": {
"amountInUsd": {
"description": "DTO.TRADE.AMOUNT_IN_USD",
"examples": [
"0.18691810584000000000"
],
"type": "string"
},
"baseAmount": {
"description": "DTO.TRADE.BASE_AMOUNT",
"examples": [
"3.49753400000000000000"
],
"type": "string"
},
"buyCostUsd": {
"description": "DTO.TRADE.BUY_COST_USD",
"examples": [
""
],
"type": "string"
},
"event": {
"description": "DTO.TRADE.EVENT",
"examples": [
"buy"
],
"allOf": [
{
"$ref": "#/components/schemas/TradeType"
}
]
},
"id": {
"description": "DTO.TRADE.ID",
"examples": [
"MDAzMTc4OTQ0OTUxNTcwMDAwMg=="
],
"type": "string"
},
"maker": {
"description": "DTO.TRADE.MAKER",
"examples": [
"GC8vnXWCpC5oDZeCTFLCpeBDHbgPczq1TQqziJctDFY"
],
"type": "string"
},
"priceInUsd": {
"description": "DTO.TRADE.PRICE_IN_USD",
"examples": [
"0.05344282738637203200"
],
"type": "string"
},
"quoteAddress": {
"description": "DTO.TRADE.QUOTE_ADDRESS",
"examples": [
"So11111111111111111111111111111111111111112"
],
"type": "string"
},
"quoteAmount": {
"description": "DTO.TRADE.QUOTE_AMOUNT",
"examples": [
"0.00085986800000000000"
],
"type": "string"
},
"quoteSymbol": {
"description": "DTO.TRADE.QUOTE_SYMBOL",
"examples": [
"SOL"
],
"type": "string"
},
"timestamp": {
"description": "DTO.TRADE.TIMESTAMP",
"type": "integer",
"format": "int64"
},
"tokenAddress": {
"description": "DTO.TRADE.TOKEN_ADDRESS",
"examples": [
"74SBV4zDXxTRgv1pEMoECskKBkZHc2yGPnc7GYVepump"
],
"type": "string"
},
"txHash": {
"description": "DTO.TRADE.TX_HASH",
"examples": [
"37XpPt9Ak6JiE1V3sftJDtdUsvR9FVFRqkZmoT3dp4BTD9pgyTWn1XgHH6R7NjuJ4pBMAgj8JvZtxQrf4s6NTC5F"
],
"type": "string"
}
}
}Fields§
§amount_in_usd: StringDTO.TRADE.AMOUNT_IN_USD
base_amount: StringDTO.TRADE.BASE_AMOUNT
buy_cost_usd: StringDTO.TRADE.BUY_COST_USD
event: TradeTypeDTO.TRADE.EVENT
id: StringDTO.TRADE.ID
maker: StringDTO.TRADE.MAKER
price_in_usd: StringDTO.TRADE.PRICE_IN_USD
quote_address: StringDTO.TRADE.QUOTE_ADDRESS
quote_amount: StringDTO.TRADE.QUOTE_AMOUNT
quote_symbol: StringDTO.TRADE.QUOTE_SYMBOL
timestamp: i64DTO.TRADE.TIMESTAMP
token_address: StringDTO.TRADE.TOKEN_ADDRESS
tx_hash: StringDTO.TRADE.TX_HASH
Implementations§
Source§impl TradeEvent
impl TradeEvent
pub fn builder() -> TradeEvent
Trait Implementations§
Source§impl Clone for TradeEvent
impl Clone for TradeEvent
Source§fn clone(&self) -> TradeEvent
fn clone(&self) -> TradeEvent
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 TradeEvent
impl Debug for TradeEvent
Source§impl<'de> Deserialize<'de> for TradeEvent
impl<'de> Deserialize<'de> for TradeEvent
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<&TradeEvent> for TradeEvent
impl From<&TradeEvent> for TradeEvent
Source§fn from(value: &TradeEvent) -> Self
fn from(value: &TradeEvent) -> Self
Converts to this type from the input type.
Source§impl From<TradeEvent> for TradeEvent
impl From<TradeEvent> for TradeEvent
Source§fn from(value: TradeEvent) -> Self
fn from(value: TradeEvent) -> Self
Converts to this type from the input type.
Source§impl Serialize for TradeEvent
impl Serialize for TradeEvent
Source§impl TryFrom<TradeEvent> for TradeEvent
impl TryFrom<TradeEvent> for TradeEvent
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(value: TradeEvent) -> Result<Self, ConversionError>
fn try_from(value: TradeEvent) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for TradeEvent
impl RefUnwindSafe for TradeEvent
impl Send for TradeEvent
impl Sync for TradeEvent
impl Unpin for TradeEvent
impl UnwindSafe for TradeEvent
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