A 30-line "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
npm install
npm start- How to construct
CryptohopperClientwith a bearer token - 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/nodejs/ for a runnable OAuth example, or use the cryptohopper CLI (cryptohopper login) which handles the flow for you.
Just one — @cryptohopper/sdk. Requires Node 20+ (uses ESM and top-level await).