pub struct OptionType {Show 22 fields
pub wallet: String,
pub wallet_label: String,
pub tx_hash: String,
pub tx_type: String,
pub chain: String,
pub index: u32,
pub timestamp: u64,
pub block: u64,
pub action: String,
pub amount: f64,
pub asset: String,
pub dex: String,
pub direction: String,
pub expiry: String,
pub from: String,
pub option_price_usd: f64,
pub position_status: String,
pub spot_price_usd: f64,
pub status: String,
pub strike_price_usd: f64,
pub to: String,
pub type: String,
}Expand description
Represents an option event transaction.
Fields§
§wallet: StringThe wallet address participating in the option event.
wallet_label: StringA human-readable label or name associated with the wallet, such as an ENS name.
tx_hash: StringThe unique transaction hash identifying this specific option event.
tx_type: StringIndicates the type of transaction, in this case, option-related.
chain: StringThe blockchain network (e.g., Ethereum, Optimism) where this transaction takes place.
index: u32A numerical index or identifier for the transaction.
timestamp: u64The timestamp marking when the transaction was executed.
block: u64The block number on the blockchain where this transaction is recorded.
action: StringThe action taken in the option event.
amount: f64The amount of tokens involved in the transaction.
asset: StringThe asset involved in the option event.
dex: StringThe decentralized exchange (DEX) where the option event took place.
direction: StringThe direction of the option event (e.g., call or put).
expiry: StringThe expiry date of the option.
from: StringThe originating wallet address for the transaction.
option_price_usd: f64The price of the option in USD.
position_status: StringThe status of the option position.
spot_price_usd: f64The spot price of the asset in USD.
status: StringThe status of the option event.
strike_price_usd: f64The strike price of the option in USD.
to: StringThe destination wallet address for the transaction.
type: StringThe type of option event (e.g., exercise, sell).
Trait Implementations§
Source§impl Clone for OptionType
impl Clone for OptionType
Source§fn clone(&self) -> OptionType
fn clone(&self) -> OptionType
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more