A short "hello world" that authenticates with the Cryptohopper API and prints your account info plus the BTC/USDT price.
export CRYPTOHOPPER_TOKEN=your-40-char-bearer
dart pub get
dart run- How to construct
CryptohopperClientwith a bearer token (andclose()it viatry/finally) - One authenticated call:
await ch.user.get() - One market-data call:
await ch.exchange.ticker(exchange: ..., market: ...) - Typed error handling via
on CryptohopperException catch (e)
cryptohopper.com developer dashboard → Create OAuth app → drive the consent flow once. See oauth/ for runnable OAuth examples, or use the cryptohopper CLI (cryptohopper login) which handles the flow for you.
Just one — cryptohopper (resolved via git: ref while the package isn't on pub.dev yet — see the Dart SDK README for status). Requires Dart 3.2+.