kraken_api 2.0.0 copy "kraken_api: ^2.0.0" to clipboard
kraken_api: ^2.0.0 copied to clipboard

Dart Library for the Kraken API (https://www.kraken.com/features/api).

example/example.dart

import 'dart:convert';
import 'package:kraken_api/kraken_api.dart';

void main() {
  var api = KrakenApi('apiKey', 'secretKey');
  Future<String> response =
      api.call(Methods.TRADE_BALANCE, parameters: {'asset': 'ZEUR'});

  response.then(
    (body) {
      Map<String, dynamic> tradeBalances = jsonDecode(body)['result'];
      return tradeBalances;
    },
  );
}
8
likes
150
points
52
downloads

Publisher

verified publisherbegnis.dev

Weekly Downloads

Dart Library for the Kraken API (https://www.kraken.com/features/api).

Homepage
Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

crypto, http

More

Packages that depend on kraken_api