We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8671834 commit 8233ecdCopy full SHA for 8233ecd
src/coin_gecko.rs
@@ -177,7 +177,7 @@ pub async fn get_historical_price(
177
178
let (maybe_pro, x_cg_pro_api_key) = get_cg_pro_api_key();
179
let url = format!(
180
- "https://{maybe_pro}api.coingecko.com/api/v3/coins/{}/history?date={}-{}-{}&localization=false{x_cg_pro_api_key}",
+ "https://{maybe_pro}api.coingecko.com/api/v3/coins/{}/history?date={:02}-{:02}-{:4}&localization=false{x_cg_pro_api_key}",
181
coin,
182
when.day(),
183
when.month(),
0 commit comments