use super::BinanceCredentials;
use openlimits_exchange::exchange::Environment;
#[derive(Default, Clone, Debug)]
pub struct BinanceParameters {
pub environment: Environment,
pub credentials: Option<BinanceCredentials>,
}
impl BinanceParameters {
pub fn sandbox() -> Self {
Self {
environment: Environment::Sandbox,
..Default::default()
}
}
pub fn production() -> Self {
Self {
environment: Environment::Production,
..Default::default()
}
}
}