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
pip install -r requirements.txt
python hello.py- How to construct
CryptohopperClientwith a bearer token (and use it as a context manager — closes the underlyinghttpx.Clientcleanly) - One authenticated call:
client.user.get() - One market-data call:
client.exchange.ticker(exchange=..., market=...) - Typed error handling via
CryptohopperError
cryptohopper.com developer dashboard → Create OAuth app → drive the consent flow once. See oauth/python/ for a runnable OAuth example, or use the cryptohopper CLI (cryptohopper login) which handles the flow for you.
Just one — cryptohopper. Requires Python 3.10+.