use crate::graphql;
use graphql::new_account_trades;
use graphql_client::GraphQLQuery;
#[derive(Clone, Debug)]
pub struct SubscribeAccountTrades {
pub market_name: String, }
impl SubscribeAccountTrades {
pub fn make_query(&self) -> graphql_client::QueryBody<new_account_trades::Variables> {
graphql::NewAccountTrades::build_query(new_account_trades::Variables {
payload: new_account_trades::NewAccountTradesParams {
market_name: Some(self.market_name.clone()),
}
})
}
}