yegor-pelykh / coingecko_api Goto Github PK
View Code? Open in Web Editor NEWDart package that provides simple access to the CoinGecko API (Version 3)
License: MIT License
Dart package that provides simple access to the CoinGecko API (Version 3)
License: MIT License
I know the documentation does not state that the /global endpoint supports vs_currency
, but it does in fact support it.
Eg.
With vs currency as gbp -> https://api.coingecko.com/api/v3/global?vs_currency=gbp
When the vs_currency is provided gbp is present in the response
Without -> https://api.coingecko.com/api/v3/global
how can i add image of the coin?
Just updated to 1.0.2 and I am now getting this error. I am guessing test 1.21.1 is not in the stable channel flutter sdk.
Because every version of flutter_test from sdk depends on test_api 0.4.3 and test >=1.20.0 depends on test_api 0.4.9, flutter_test from sdk is incompatible with test >=1.20.0.
And because coingecko_api >=1.0.2 depends on test ^1.20.1, flutter_test from sdk is incompatible with coingecko_api >=1.0.2.
Flutter version -> Channel stable, 2.8.1, on macOS 12.2 21D49 darwin-x64, locale en-GB
Example url -> https://api.coingecko.com/api/v3/coins/bitcoin/market_chart?vs_currency=gbp&days=max
Current the code only allows int but needs to allow the string of "max"
This error appears after connectTimeout passes. I did some research and found that this error is caused by Dio 4.0.6.
As for now, setting CoinGeckoApi client's connectTimeout to 0 could eliminate this error.
$ flutter pub add coingecko_api
Because test >=1.17.11 <1.18.0 depends on test_api 0.4.3 and test >=1.18.0 <1.18.1 depends on test_api 0.4.4, test >=1.17.11 <1.18.1 requires test_api 0.4.3 or 0.4.4.
And because test >=1.18.1 <1.19.0 depends on test_api 0.4.5, test >=1.17.11 <1.19.0 requires test_api 0.4.3 or 0.4.4 or 0.4.5.
And because test >=1.19.0 <1.19.3 depends on test_api 0.4.6 and test >=1.19.3 depends on test_api 0.4.7, test >=1.17.11 requires test_api 0.4.3 or 0.4.4 or 0.4.5 or 0.4.6 or 0.4.7.
And because every version of flutter_test from sdk depends on test_api 0.4.2 and every version of coingecko_api depends on test ^1.17.12, flutter_test from sdk is incompatible with coingecko_api.
So, because portfolio depends on both coingecko_api any and flutter_test any from sdk, version solving failed.
pub finished with exit code 65
My flutter version is:
environment:
sdk: ">=2.12.0 <3.0.0"
flutter: ">=1.17.0"
How can I solve this?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.