bitkub_client 0.1.1 copy "bitkub_client: ^0.1.1" to clipboard
bitkub_client: ^0.1.1 copied to clipboard

outdated

A Dart client for Bitkub public API.

Bitkub Client for Dart #

A well-documented client library for accessing Bitkub public APIs, works for Dart and Flutter.

Todos (In orders) #

  • Non-secure endpoints
  • WebSocket APIs as streams
  • Full examples
  • Migrate to Null-safety
  • Secure endpoints using authentication

Usage #

Getting tickers

import 'package:bitkub_client/bitkub_client.dart';

void main() async {
  //Initialize the client
  var client = BitkubClient();
  //Get the tickers
  var tickers = await client.getTickers(symbol: BkSymbols.THB_BTC);
  print(tickers.tickerList.first.lastPrice);
}

Getting ask,bid orders for specific currency

void main() async {
  //Initialize the client
  var client = BitkubClient();
  //Get the orders
  var orders = await client.getOpenOrders(BkSymbols.THB_BTC);
  print(orders.asks.first.quoteRate);

Contribution #

Feel free to contribute and shot the pull requests!

License #

MIT

2
likes
0
pub points
0%
popularity

Publisher

unverified uploader

A Dart client for Bitkub public API.

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

http, meta

More

Packages that depend on bitkub_client