marslin1220 / BinanceAPI

The Binance open API in Swift

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

BinanceAPI

CI Status Version License Platform

The framework BinanceAPI is written in Swift as a client of Binance API service to monitor the market status or even trade the cryptocurrencies with that.

Example

To run the example project:

  1. Clone the repo.
  2. Run pod install from the Example directory first.
  3. Following the How to Create API tutorial to create the API and Secret keys
  4. Put the keys as parameters of the service (e.g. BinanceSavingService ) contructors.
let service = BinanceSavingService(
  apiKey: "Replace it with your API Key",
  secretKey: "Replace it with your Secret Key"
)
service.getProductList { result in
    switch result {
    case let .success(products):
        print(products)
    case let .failure(error):
        print(error)
    }
}

Requirements

Installation

BinanceAPI is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod 'BinanceAPI'

Author

Cheng Lung Lin, marslin@gmail.com

License

BinanceAPI is available under the MIT license. See the LICENSE file for more info.

About

The Binance open API in Swift

License:MIT License


Languages

Language:Swift 89.0%Language:Ruby 11.0%