A framework acting as a SWIFT wrapper around the Bittrex Exchange APIs allowing the retrieval of public, market and account data.
- Development Version
- Current Support
- Requirements
- Installation
- Built With
- Usage
- Contributing
- Versioning
- Authors
- License
- 1.4.3
Bittrex Public APIs:
- getMarkets
- getCurrencies
- getTicker
- getMarketSummaries
- getMarketSummary
- getOrderBook
- getMarketHistory
Bittrex Market APIs:
- buyLimit
- sellLimit
- cancel
- getOpenOrders
Bittrex Account APIs:
- getBalances
- getBalance
- getDepositAddress
- withdraw
- getOrder
- getOrderHistories
- getOrderHistory
- getWithdrawalHistories
- getWithdrawalHistory
- getDepositHistories
- getDepositHistory
- iOS 10.0+
- Xcode 10.0+
- Swift 4.0+
Carthage is a decentralized dependency manager that builds your dependencies and provides you with binary frameworks.
You can install Carthage with Homebrew using the following command:
$ brew update
$ brew install carthage
To integrate BittrexTracker into your Xcode project using Carthage, specify it in your Cartfile:
github "matthewdovey/BittrexTracker"
Run carthage update to build the framework and drag the built BittrexTracker.framework into your Xcode project.
- Bittrex Developer API v1.1 (https://bittrex.github.io/api/v1-1)
- CryptoSwift 0.15.0 (https://github.com/krzyzanowskim/CryptoSwift/releases/tag/0.15.0)
Import the framework into the class you wish to use it in:
#import BittrexTracker
Call the desired API on the created manager object and access the data or error encapsulated in the result:
let bittrexManager = BittrexManager()
bittrexManager.getCurrencies { result in
switch result {
case .success(let data):
print(data)
case .failure(let error):
print(error)
}
}
bittrexManager.getMarkets { result in
switch result {
case .success(let data):
print(data)
case .failure(let error):
print(error)
}
}
Feel free to contribute with pull requests and to create issues / feature requests following the contributing file
This version will be increased by 0.1.0 per release and 0.0.1 per pull request that goes into the project.
- Matthew Dovey https://github.com/matthewdovey
This project is licensed under the MIT License - see the LICENSE file for details