Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/saeid/BittrexApiKit
Swift Wrapper For Bittrex API
https://github.com/saeid/BittrexApiKit
Last synced: about 1 month ago
JSON representation
Swift Wrapper For Bittrex API
- Host: GitHub
- URL: https://github.com/saeid/BittrexApiKit
- Owner: saeid
- License: mit
- Created: 2018-01-02T11:34:24.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2018-01-03T08:21:31.000Z (about 7 years ago)
- Last Synced: 2024-11-29T16:45:00.588Z (about 2 months ago)
- Language: Swift
- Size: 238 KB
- Stars: 8
- Watchers: 2
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-ios - BittrexApiKit - Simple and complete Swift wrapper for Bittrex Exchange API. (SDK / Unofficial)
- awesome-ios-star - BittrexApiKit - Simple and complete Swift wrapper for Bittrex Exchange API. (SDK / Unofficial)
README
# BittrexApiKit
Swift client for Bittrex api. It support all APIs with most recent changes. more info [here](https://www.bittrex.com/Home/Api)```swift
let api = Bittrex(apikey: "api key", secretkey: "secret key")
api.getMarkets() { (response) in
switch response{
case .success(let data):
print(data)
case .failed(let err):
print(err)
}
}api.getBalance(currency: 'BTC') { (response) in
switch response{
case .success(let data):
print(data)
case .failed(let err):
print(err)
}
}
```## Supported APIs
### Public APIs
```swift
public func getMarkets()
public func getCurrencies()
public func getTicker()
public func getMarketSummaries()
public func getMarketSummary(market: String)
public func getOrderBook(market: String)
public func getMarketHistory(market: String)
```### Market APIs
```swift
public func buyLimit(market: String, quantity: String, rate: String)
public func sellLimit(market: String, quantity: String, rate: String)
public func cancelBuySell(uuid: String)
public func getOpenOrders(market: String)
```### Account APIs
```swift
public func getBalances()
public func getBalance(currency: String)
public func getDepositAddress(currency: String)
public func withdraw(currency: String, quantity: String, address: String)
public func getOrder(uuid: String)
public func getOrderHistory(uuid: String)
public func getWithdrawalHistory(currency: String)
public func getDepositHistory(currency: String)
```## Requirments
- Swift 4+
- iOS 9+## Installation
You can simply install using Cocoapods
```
source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '9.0'
use_frameworks!target '' do
pod 'BittrexApiKit'
end
```## Contribution
You want help? That's great!
submit a pull request! :grinning: