pub enum SpotEvent {
SpotNewMarketPrice {
client_ids: Vec<Vec<u8>>,
pair_id: Vec<u8>,
base_asset_id: Vec<u8>,
quote_asset_id: Vec<u8>,
price: u64,
timestamp: i64,
},
SpotPairRebate {
pair_id: Vec<u8>,
base_asset_id: Vec<u8>,
quote_asset_id: Vec<u8>,
price: u64,
is_bid: bool,
account_id: Vec<u8>,
is_maker: bool,
fee_bps: i16,
base_volume: u64,
quote_volume: u64,
timestamp: i64,
},
SpotPairClientAccountChanged {
pair_id: Vec<u8>,
cid: Option<Vec<u8>>,
admin_account_id: Option<Vec<u8>>,
fee_account_id: Option<Vec<u8>>,
timestamp: i64,
},
SpotPairAdded {
cid: Vec<u8>,
pair_id: Vec<u8>,
timestamp: i64,
},
Transfer {
cid: Vec<u8>,
from: Vec<u8>,
to: Vec<u8>,
asset: Vec<u8>,
amnt: u64,
timestamp: i64,
},
SpotPriceLevelChanged {
pair_id: Vec<u8>,
is_bid: bool,
price: u64,
pqty: u64,
cqty: u64,
timestamp: i64,
},
SpotOrderPlaced {Show 14 fields
cid: Vec<u8>,
pair_id: Vec<u8>,
base_asset_id: Vec<u8>,
quote_asset_id: Vec<u8>,
order_id: Vec<u8>,
maker_account_id: Vec<u8>,
is_bid: bool,
price: u64,
amnt: u64,
iqty: u64,
cqty: u64,
pqty: u64,
timestamp: i64,
expires_at: i64,
},
SpotOrderPartiallyFilled {Show 25 fields
is_taker_event: bool,
taker_cid: Vec<u8>,
maker_cid: Vec<u8>,
taker_order_id: Vec<u8>,
maker_order_id: Vec<u8>,
taker_account_id: Vec<u8>,
maker_account_id: Vec<u8>,
taker_order_is_bid: bool,
maker_order_is_bid: bool,
price: u64,
pair_id: Vec<u8>,
base_asset_id: Vec<u8>,
quote_asset_id: Vec<u8>,
base_volume: u64,
quote_volume: u64,
base_fee: u64,
quote_fee: u64,
maker_fee_bps: i16,
taker_fee_bps: i16,
amnt: u64,
iqty: u64,
pqty: u64,
cqty: u64,
timestamp: i64,
expires_at: i64,
},
SpotOrderFullyFilled {Show 25 fields
is_taker_event: bool,
taker_cid: Vec<u8>,
maker_cid: Vec<u8>,
taker_order_id: Vec<u8>,
maker_order_id: Vec<u8>,
maker_account_id: Vec<u8>,
taker_account_id: Vec<u8>,
taker_order_is_bid: bool,
maker_order_is_bid: bool,
price: u64,
pair_id: Vec<u8>,
base_asset_id: Vec<u8>,
quote_asset_id: Vec<u8>,
base_volume: u64,
quote_volume: u64,
base_fee: u64,
quote_fee: u64,
maker_fee_bps: i16,
taker_fee_bps: i16,
amnt: u64,
iqty: u64,
pqty: u64,
cqty: u64,
timestamp: i64,
expires_at: i64,
},
SpotOrderCancelled {
cid: Vec<u8>,
order_id: Vec<u8>,
maker_account_id: Vec<u8>,
is_bid: bool,
price: u64,
amnt: u64,
iqty: u64,
pqty: u64,
cqty: u64,
timestamp: i64,
expires_at: i64,
},
SpotOrderExpired {
cid: Vec<u8>,
order_id: Vec<u8>,
maker_account_id: Vec<u8>,
is_bid: bool,
price: u64,
amnt: u64,
iqty: u64,
pqty: u64,
cqty: u64,
timestamp: i64,
expires_at: i64,
},
SpotOrderIcebergQuantityChanged {
cid: Vec<u8>,
order_id: Vec<u8>,
amnt: u64,
iqty: u64,
pqty: u64,
cqty: u64,
timestamp: i64,
expires_at: i64,
},
}Variants§
SpotNewMarketPrice
New market price event in Spot
Fields
SpotPairRebate
Spot pair rebate happened when maker fee bps is lower than 0
Fields
SpotPairClientAccountChanged
Spot pair client account changed
Fields
SpotPairAdded
Pair added to the matching engine
Fields
Transfer
Transfer event from an account to another account
Fields
SpotPriceLevelChanged
Spot order block changed in the orderbook
Fields
SpotOrderPlaced
Spot order placed in the orderbook being a maker
Fields
SpotOrderPartiallyFilled
Spot order partially filled in the orderbook being a taker for taker spot order history
Fields
SpotOrderFullyFilled
Spot order fully filled in the orderbook being a taker for taker spot order history
Fields
SpotOrderCancelled
Spot order cancelled in the orderbook regardless of being a maker or taker
Fields
SpotOrderExpired
Spot order expired in the orderbook regardless of being a maker
Fields
SpotOrderIcebergQuantityChanged
Fields
Trait Implementations§
Source§impl<'de> Deserialize<'de> for SpotEvent
impl<'de> Deserialize<'de> for SpotEvent
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
impl Eq for SpotEvent
impl StructuralPartialEq for SpotEvent
Auto Trait Implementations§
impl Forget for SpotEvent
impl Freeze for SpotEvent
impl RefUnwindSafe for SpotEvent
impl Send for SpotEvent
impl Sync for SpotEvent
impl Unpin for SpotEvent
impl UnsafeUnpin for SpotEvent
impl UnwindSafe for SpotEvent
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