apiverve_bitcoin 1.2.0
apiverve_bitcoin: ^1.2.0 copied to clipboard
Bitcoin Price is a simple tool for getting the current price of Bitcoin. It returns the current price, market cap, 24-hour trading volume, and 24-hour price change in any currency.
Bitcoin Price API - Dart/Flutter Client #
Bitcoin Price is a simple tool for getting the current price of Bitcoin. It returns the current price, market cap, 24-hour trading volume, and 24-hour price change in any currency.
This is the Dart/Flutter client for the Bitcoin Price API.
Installation #
Add this to your pubspec.yaml:
dependencies:
apiverve_bitcoin: ^1.2.0
Then run:
dart pub get
# or for Flutter
flutter pub get
Usage #
import 'package:apiverve_bitcoin/apiverve_bitcoin.dart';
void main() async {
final client = BitcoinClient('YOUR_API_KEY');
try {
final response = await client.execute({
'currency': 'USD',
'hourly': true
});
print('Status: ${response.status}');
print('Data: ${response.data}');
} catch (e) {
print('Error: $e');
}
}
Response #
{
"status": "ok",
"error": null,
"data": {
"currency": "USD",
"price": 97250.43,
"marketCap": 1928000000000,
"volume24h": 35420000000,
"change24h": -1.52,
"lastUpdated": "2026-02-07T12:00:00.000Z",
"high24h": 98750.21,
"low24h": 96125.88,
"changeDirection": "down",
"formatted": {
"price": "$97,250.43",
"marketCap": "$1.93T",
"volume": "$35.42B",
"priceWords": "ninety-seven thousand two hundred fifty dollars"
}
}
}
API Reference #
- API Home: Bitcoin Price API
- Documentation: docs.apiverve.com/ref/bitcoin
Authentication #
All requests require an API key. Get yours at apiverve.com.
License #
MIT License - see LICENSE for details.
Built with Dart for APIVerve