Skip to content
 
 

Repository files navigation

Welcome to python-kucoin v0.1.0

This is an unofficial Python wrapper for the Kucoin exchanges REST API v1. I am in no way affiliated with Kucoin, use at your own risk.

PyPi
https://pypi.python.org/pypi/python-kucoin
Source code
https://github.com/sammchardy/python-kucoin
Documentation
https://python-kucoin.readthedocs.io/en/latest/

Features

  • Implementation of all REST endpoints.
  • Simple handling of authentication
  • Response exception handling
  • Simple buy and sell order functions

Quick Start

Register an account with Kucoin.

Generate an API Key and enable it.

pip install python-kucoin
from kucoin.client import Client
client = Client(api_key, api_secret)

# get currencies
currencies = client.get_currencies()

# get market depth
depth = client.get_order_book('KCS-BTC', limit=50)

# get symbol klines
from_time = 1507479171
to_time = 1510278278
klines = client.get_kline_data_tv(
    'KCS-BTC',
    Client.RESOLUTION_1MINUTE,
    from_time,
    to_time
)

# place a buy order
transaction = client.create_buy_order('KCS-BTC', '0.01', '1000')

# get list of active orders
orders = client.get_active_orders('KCS-BTC')

For more check out the documentation.

Donate

If this library helped you out feel free to donate.

  • ETH: 0x79c9A113d63B6AC024c1AAae6f6419721C3611A3
  • NEO: AVJB4ZgN7VgSUtArCt94y7ZYT6d5NDfpBo
  • BTC: 1Dknp6L6oRZrHDECRedihPzx2sSfmvEBys

Other Exchanges

If you use Binance check out my python-binance library.

If you use Quoinex or Qryptos check out my python-quoine library.

If you use IDEX check out my python-idex library.

https://analytics-pixel.appspot.com/UA-111417213-1/github/python-kucoin?pixel

About

Kucoin REST API python implementation

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages