From 8b2d2d45f56a250e8517a4fa4005df60cf5924e5 Mon Sep 17 00:00:00 2001 From: RJ Regenold Date: Tue, 10 Sep 2024 16:30:26 -0500 Subject: [PATCH 1/2] makes `active_stake_pct` optional as it is `null` sometimes. --- src/models/pools.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/models/pools.rs b/src/models/pools.rs index d879f5b..4f32c13 100644 --- a/src/models/pools.rs +++ b/src/models/pools.rs @@ -49,7 +49,7 @@ pub struct StakePoolDelegators { #[derive(Deserialize)] pub struct StakePoolHistoryData { pub active_stake: i64, - pub active_stake_pct: String, + pub active_stake_pct: Option, pub block_cnt: i64, pub deleg_rewards: i64, pub delegator_cnt: i64, From 915c10618350b24ad295820d7e0833d077335afe Mon Sep 17 00:00:00 2001 From: gmoratorio Date: Mon, 14 Oct 2024 10:26:27 -0600 Subject: [PATCH 2/2] add carry param option --- src/models/markets.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/models/markets.rs b/src/models/markets.rs index 8f9981a..116b5de 100644 --- a/src/models/markets.rs +++ b/src/models/markets.rs @@ -55,6 +55,7 @@ pub struct DexPairOHLCParameters { pub resolution: Option, pub from: Option, pub to: Option, + pub carry: Option, pub limit: Option, pub sort: Option, }