Skip to main content

Luno Crypto Currency Exchanage Python API

Project description

Luno Python Library

Sync and Async Python 3 clients for the Luno API


This library includes 2 types of clients, a sync client built using the requests library and an async library built with treq and twisted.

Sync client

from luno.clients.sync import LunoSyncClient

api_key = ''
api_secret = ''

client = LunoSyncClient(api_key=api_key, secret=api_secret)

Async client

from typing import Dict
from twisted.internet import reactor
from luno.clients.asynchronous import LunoAsyncClient

api_key = ''
api_secret = ''

client = LunoAsyncClient(api_key=api_key, secret=api_secret)
d = client.ticker('XBTZAR') # returns a twisted deferred

def print_data(data: Dict) -> None:
    """prints the json response from an API call"""


The library can be installed from PyPi as follows.

pip install luno

The async client is an optional extra and may be installed as follows.

pip install luno[async]

To install the version on this repository follow the steps below.

git clone
cd luno
python -m venv env # virtualenv env
source env/bin/activate
pip install . #pip install .[async] for the async client


Clone the repo and install the package with it's development requirements.

git clone
cd luno
python -m venv env # virtualenv env
source env/bin/activate
pip install -e .[dev]


Note this library is still in beta.

  • Write documentation

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

luno-0.3.6.tar.gz (9.8 kB view hashes)

Uploaded source

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page