use crate::models;
use serde::{Deserialize, Serialize};
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
#[serde(untagged)]
pub enum AccountStreamMessagePayload {
AccountUpdate(models::AccountUpdate),
AccountTradeUpdate(models::AccountTradeUpdate),
AccountAggregatedTradeUpdate(models::AccountAggregatedTradeUpdate),
AccountOrderUpdate(models::AccountOrderUpdate),
AccountTransactionUpdate(models::AccountTransactionUpdate),
AccountPositionUpdate(models::AccountPositionUpdate),
AccountCommandFailureUpdate(models::AccountCommandFailureUpdate),
}
impl Default for AccountStreamMessagePayload {
fn default() -> Self {
Self::AccountUpdate(Default::default())
}
}