bitkub_client

Creator: coderz1093

Last updated:

0 purchases

bitkub_client Image
bitkub_client Images

Languages

Categories

Add to Cart

Description:

bitkub client

Bitkub Client for Dart


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






Documentation #
Documentation of Bitkub Client for Dart can be found here
Official Documentation of Bikub public API can be found here
Usage #
Getting tickers
//Initialize the client
var client = BitkubClient();
//Get the tickers
var tickers = await client.getTickers(symbol: BkSymbols.THB_BTC);
//...
print(tickers.tickerList.first.lastPrice);
copied to clipboard
Getting ask,bid orders
//Initialize the client
var client = BitkubClient();
//Get the orders
var orders = await client.getOpenOrders(BkSymbols.THB_BTC);
//...
print(orders.asks.first.quoteRate);
copied to clipboard
Connecting to trade stream
//Initialize the socket client
var socketClient = BitkubSocketClient();
//Get the stream of trade
var tradeStream = socketClient.connectToTradeStream([BkSymbols.THB_BTC]);
//Listen to matchedOrder change
tradeStream.listen((matchedOrder) {
//...
print(matchedOrder);
});
copied to clipboard
Accessing the full name of symbols
var fullName = BkSymbols.THB_ETH.fullName;
print(fullName);
//Ethereum
copied to clipboard
Milestone #

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

Contribution #
Before creating a new issues please read the official Bitkub API first for Breaking Changes.
Feel free to contribute and shot the pull requests!
License #
Mit

License

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files In This Product:

Customer Reviews

There are no reviews.