gwangyi / pycoinone

Python wrapper for Coinone API

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

PyCoinone

A Python wrapper for Coinone API

Coinone API documentation can be obtain in Coinone API Documentation.

Install

Clone this repository and install with pip.

git clone https://github.com/gwangyi/pycoinone
cd pycoinone
pip install .

Example

from coinone.core import Coinone, CoinoneV1, CoinoneV2

api = Coinone()

print(api.orderbook(currency='btc'))  # http://api.coinone.co.kr/orderbook/

api = CoinoneV1(access_token="YOUR_ACCESS_TOKEN")

print(api.account.balance())  # https://api.coinone.co.kr/v1/account/balance/

api = CoinoneV2(access_token="YOUR_ACCESS_TOKEN",
                secret_key="YOUR_SECRET_KEY")

print(api.account.balance())  # https://api.coinone.co.kr/v2/account/balance/

License

See the LICENSE file for license rights and limitations (MIT).

About

Python wrapper for Coinone API

License:MIT License


Languages

Language:Python 100.0%