https://github.com/gazbert/bitx-android
https://github.com/gazbert/bitx-android
Last synced: 4 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/gazbert/bitx-android
- Owner: gazbert
- License: mit
- Created: 2015-10-17T22:12:25.000Z (about 10 years ago)
- Default Branch: develop
- Last Pushed: 2014-06-18T15:27:33.000Z (over 11 years ago)
- Last Synced: 2025-03-22T19:47:27.888Z (10 months ago)
- Language: Java
- Size: 449 KB
- Stars: 0
- Watchers: 1
- Forks: 5
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
BitX-Android
============
An unofficial Android client for the BitX API. See https://bitx.co.za/api
Work in progress.
Todo
----
* Publish to Maven Central
* Implement remaining API methods
* **List withdrawal requests** `GET /api/1/withdrawals`
* **Request a withdrawal** `POST /api/1/withdrawals`
* **Particular withdrawal request** `POST /api/1/withdrawals/{id}`
* **Cancel withdrawal request** `DELETE /api/1/withdrawals/{id}`
Usage
----
Compile `.aar` and include in your Android project. This will be simplified once the library has been published on Maven Central.
Refer to BitXAndroidSampleApp.
```java
BitXClient client = new BitXClient("id", "secret");
//example call to get ticker information
client.ticker(new Callback() {
@Override
public void success(Ticker ticker, Response response) {
Log.d("BitXClient", String.format("TICKER: bid: %s, ask: %s, lastTrade: %s",
ticker.bid, ticker.ask, ticker.lastTrade));
}
@Override
public void failure(RetrofitError error) {
Log.e("BitXClient", "Error: Failed to get ticker information.", error);
}
});
```