openlimits_coinbase/
coinbase_parameters.rs1use super::CoinbaseCredentials;
2use openlimits_exchange::exchange::Environment;
3
4#[derive(Default, Clone, Debug)]
6pub struct CoinbaseParameters {
7 pub environment: Environment,
8 pub credentials: Option<CoinbaseCredentials>,
9}
10
11impl CoinbaseParameters {
12 pub fn sandbox() -> Self {
13 Self {
14 environment: Environment::Sandbox,
15 ..Default::default()
16 }
17 }
18
19 pub fn production() -> Self {
20 Self {
21 environment: Environment::Production,
22 ..Default::default()
23 }
24 }
25}