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
swift run- How to construct
Clientwith a bearer token - One authenticated call:
try await client.user.get() - One market-data call:
try await client.exchange.ticker(exchange:, market:) - Typed error handling via
catch let e as CryptohopperError
cryptohopper.com developer dashboard → Create OAuth app → drive the consent flow once. See oauth/ for runnable OAuth examples in other languages, or use the cryptohopper CLI (cryptohopper login) which handles the flow for you.
Just one — cryptohopper-swift-sdk via SwiftPM. Requires Swift 5.9+. Works on macOS 10.15+, iOS 13+, tvOS 13+, watchOS 6+, and Linux (Swift 5.9 image).