#[repr(align(64))]pub struct TradeResponse {Show 14 fields
pub message_type: String,
pub code: String,
pub trade_price: Decimal,
pub trade_volume: Decimal,
pub ask_bid: String,
pub prev_closing_price: Decimal,
pub change: String,
pub change_price: Decimal,
pub trade_date: String,
pub trade_time: String,
pub trade_timestamp: u64,
pub sequential_id: u64,
pub timestamp: u64,
pub stream_type: String,
}Expand description
WebSocket response format for trade data
Fields§
§message_type: StringMessage type
code: StringMarket code (e.g., “KRW-BTC”)
trade_price: DecimalTrade price
trade_volume: DecimalTrade volume
ask_bid: StringAsk/Bid indicator
prev_closing_price: DecimalPrevious day’s closing price
change: StringChange direction (RISE, EVEN, FALL)
change_price: DecimalChange amount (absolute value)
trade_date: StringTrade date (KST) in yyyy-MM-dd format
trade_time: StringTrade time (KST) in HH:mm:ss format
trade_timestamp: u64Trade timestamp in milliseconds
sequential_id: u64Sequential ID (unique for each trade)
timestamp: u64Message timestamp in milliseconds
stream_type: StringStream type (SNAPSHOT or REALTIME)
Trait Implementations§
Source§impl Clone for TradeResponse
impl Clone for TradeResponse
Source§fn clone(&self) -> TradeResponse
fn clone(&self) -> TradeResponse
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TradeResponse
impl Debug for TradeResponse
Source§impl<'de> Deserialize<'de> for TradeResponse
impl<'de> Deserialize<'de> for TradeResponse
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
Auto Trait Implementations§
impl Freeze for TradeResponse
impl RefUnwindSafe for TradeResponse
impl Send for TradeResponse
impl Sync for TradeResponse
impl Unpin for TradeResponse
impl UnwindSafe for TradeResponse
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