coingecko-rs
coingecko-rs copied to clipboard
Invalid result when rate limit is hit
let result: Result<HashMap<String, Price>, Error> = client
.price(ids, &["usd"], false, false, false, false)
.await;
In case the rate limit is hit the resulting hashmap has a key "status" instead of valid price entries. I'd expect the client to return an error instead but instead it seems to just return the reqwest response without validating the status code.