Latest 0.1.0
Homepage https://github.com/saeid/BittrexApiKit
License MIT
Platforms ios 10.0, requires ARC
Frameworks UIKit, Crypto, CommonCrypto, Foundation
Authors

Swift client for Bittrex api. It support all APIs with most recent changes. more info here

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

    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

    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

    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 '<Your Target Name>' do
    pod 'BittrexApiKit'
end

Contribution

You want help? That’s great!
submit a pull request! :grinning:

Latest podspec

{
    "name": "BittrexApiKit",
    "version": "0.1.0",
    "summary": "Swift wrapper for Bittrex exchange API",
    "homepage": "https://github.com/saeid/BittrexApiKit",
    "license": "MIT",
    "authors": {
        "Saeid Basirnia": "[email protected]"
    },
    "source": {
        "git": "https://github.com/saeid/BittrexApiKit.git",
        "tag": "0.1.0"
    },
    "pod_target_xcconfig": {
        "SWIFT_VERSION": "4.0"
    },
    "platforms": {
        "ios": "10.0"
    },
    "requires_arc": true,
    "source_files": "BittrexApiKit/**/*",
    "frameworks": [
        "UIKit",
        "Crypto",
        "CommonCrypto",
        "Foundation"
    ],
    "vendored_frameworks": [
        "CommonCrypto.framework",
        "Crypto.framework"
    ],
    "pushed_with_swift_version": "4.0"
}

Pin It on Pinterest

Share This