Latest 0.0.2
Homepage https://github.com/yoonhg84/CPCoinPrice
License MIT
Platforms ios 9.0, requires ARC
Dependencies Alamofire
Authors

Installation

CocoaPods

platform :ios, '9.0'
use_frameworks!

target '<Your Target Name>' do
    pod 'CPCoinPrice', '~> 0.0.1'
end

Support Exchange

  • Coinone
  • Binance
  • Bithumb
  • Korbit
  • Upbit

Support Market and Coin

  • Coinone – KRW

    • bch, btc, btg
    • etc, eth
    • iota
    • ltc
    • qtum
    • xrp
  • Binance – BTC

    • ada, adx, aion, amb, appc, ark, arn, ast
    • bat, bcc, bcd, bcpt, bnb, bnt, bqx, brd, btg, bts
    • cdt, cmt, cnd, ctr
    • dash, dgd, dlt, dnt
    • edo, elf, eng, enj, eos, etc, eth, evx
    • fuel, fun
    • gas, gto, gvt, gxs
    • hsr
    • icn, icx, iota
    • kmd, knc
    • lend, link, lrc, lsk, ltc, lun
    • mana, mco, mda, mod, mth, mtl
    • nav, nebl, neo, nuls
    • oax, omg, ost
    • poe, powr, ppt
    • qsp, qtum
    • rcn, rdn, req, rlc
    • salt, sngls, snm, snt, storj, strat, sub
    • tnb, tnt, trig, trx
    • ven, vib, vibe
    • wabi, waves, wings, wtc
    • xlm, xmr, xrp, xvg, xzc
    • yoyo
    • zec, zrx
  • Bithumb – KRW

    • bch, btc, btg
    • dash
    • eos, etc, eth
    • ltc
    • qtum
    • xmr, xrp
    • zec
  • Korbit – KRW

    • bch, btc, btg
    • etc, eth
    • xrp
  • Upbit – KRW

    • ada, ardr, ark
    • bcc, btc, btg
    • dash
    • emc2, etc, eth
    • grs
    • kmd
    • lsk, ltc
    • mer, mtl
    • neo
    • omg
    • pivx, powr
    • qtum
    • rep
    • sbd, snt, steem, storj, strat
    • tix
    • vtc
    • waves
    • xem, xlm, xmr, xrp
    • zec
  • Upbit – BTC
    • _1st
    • ada, adt, adx, agrs, amp, ant, ardr, ark
    • bat, bay, bcc, bitb, blk, block, bnt, bsd, btg, burst
    • cfi, cloak, cvc
    • dash, dcr, dct, dgb, dgd, dnt, doge, dyn
    • edg, emc2, eng, etc, eth, excl, exp
    • fct, ftc, fun
    • game, gbyte, gno, gnt, grs, gup
    • hmq
    • ion, iop
    • kmd, kore
    • lbc, lsk, ltc
    • maid, mana, mco, meme, mer, mona, mtl, mue, myst
    • nav, nbt, neo, nmr, nxs, nxt
    • ok, omg
    • part, pay, pivx, powr, ptoy
    • qrl, qtum
    • rads, rcn, rdd, rep, rise, rlc
    • salt, sbd, sc, shift, sib, sls, snt, sphr, steem, storj, strat, swt, synx, sys
    • tix, tx
    • ubq, ukg, unb
    • via, vib, vox, vrc, vtc
    • waves, wings
    • xdn, xel, xem, xlm, xmr, xrp, xvg, xzc
    • zec, zen

Usage

Fetch price

Factory.fetcher(exchangeType: .coinone).fetchPrice(marketType: .krw, coinTypes: [.bcc, .eth]) { coins, error in
}

Fetch order book

Factory.fetcher(exchangeType: .coinone).fetchOrders(marketType: .krw, coinType: .btc) { book, error in
}

(Upbit is unimplemented.)

Error

FetcherError

  • notSupportMarketType
  • notSupportCoinType
  • invalidResponse
  • nilSelf

License

CPCoinPrice is released under the MIT license. See LICENSE for details.

Latest podspec

{
    "name": "CPCoinPrice",
    "version": "0.0.2",
    "summary": "Fetch blockchain coin price",
    "description": "Fetch blockchain coin price from exchange (binance, upbit etc)",
    "homepage": "https://github.com/yoonhg84/CPCoinPrice",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "Chope": "[email protected]"
    },
    "platforms": {
        "ios": "9.0"
    },
    "source": {
        "git": "https://github.com/yoonhg84/CPCoinPrice.git",
        "tag": "0.0.2"
    },
    "source_files": "Source/**/*.swift",
    "requires_arc": true,
    "dependencies": {
        "Alamofire": [
            "~> 4.5.1"
        ]
    }
}

Pin It on Pinterest

Share This