maxt 0.4.2 copy "maxt: ^0.4.2" to clipboard
maxt: ^0.4.2 copied to clipboard

Dart and Flutter client for Upbit, Bithumb, Binance, and Hyperliquid through one native and Web API.

example/main.dart

import 'package:maxt/maxt.dart';

Future<void> main() async {
  final market = Market.spot(Exchange.binance, 'BTC', 'USDT');
  print('Prepared public market: $market');

  try {
    await Maxt.initialize();

    // Reads public market data without credentials, orders, or transfers.
    final client = Client(BinanceAdapter.spot());
    final ticker = await client.ticker(market);
    final average = await client.adapter.spotAveragePrice(market);
    print('${ticker.market}: ${ticker.lastPrice}');
    print('Binance ${average.minutes}-minute average: ${average.price}');
  } on MaxtError catch (error) {
    print('Could not read the public quote: $error');
  } catch (error) {
    print('Unexpected error: $error');
  } finally {
    if (Maxt.isInitialized) await Maxt.dispose();
  }
}
0
likes
160
points
408
downloads

Documentation

Documentation
API reference

Publisher

unverified uploader

Weekly Downloads

Dart and Flutter client for Upbit, Bithumb, Binance, and Hyperliquid through one native and Web API.

Repository (GitHub)
View/report issues
Contributing

Topics

#cryptocurrency #exchange #trading

License

MIT (license)

Dependencies

ffi, flutter_rust_bridge, freezed_annotation, hooks, native_toolchain_rust

More

Packages that depend on maxt