Metadata-Version: 2.4
Name: luno-python
Version: 0.3.0
Summary: A Python client for the Luno cryptocurrency exchange API
Home-page: https://github.com/luno/luno-python
Download-URL: https://github.com/luno/luno-python/tarball/0.3.0
Author: Neil Garb
Author-email: neil@luno.com
License: MIT
Keywords: Luno API Bitcoin Ethereum
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Programming Language :: Python :: 3.14
Requires-Python: >=3.11
Description-Content-Type: text/markdown
License-File: LICENSE.txt
Requires-Dist: requests>=2.18.4
Requires-Dist: six>=1.11.0
Provides-Extra: test
Requires-Dist: pytest; extra == "test"
Requires-Dist: pytest-cov; extra == "test"
Requires-Dist: requests_mock; extra == "test"
Provides-Extra: dev
Requires-Dist: pytest; extra == "dev"
Requires-Dist: pytest-cov; extra == "dev"
Requires-Dist: requests_mock; extra == "dev"
Requires-Dist: pre-commit; extra == "dev"
Requires-Dist: black; extra == "dev"
Requires-Dist: isort; extra == "dev"
Requires-Dist: flake8; extra == "dev"
Requires-Dist: flake8-docstrings; extra == "dev"
Requires-Dist: flake8-bugbear; extra == "dev"
Requires-Dist: bandit[toml]; extra == "dev"
Dynamic: author
Dynamic: author-email
Dynamic: classifier
Dynamic: description
Dynamic: description-content-type
Dynamic: download-url
Dynamic: home-page
Dynamic: keywords
Dynamic: license
Dynamic: license-file
Dynamic: provides-extra
Dynamic: requires-dist
Dynamic: requires-python
Dynamic: summary

<img src="https://d32exi8v9av3ux.cloudfront.net/static/images/luno-email-336.png">

# Luno Python SDK

[![Run Tests](https://github.com/luno/luno-python/actions/workflows/test.yml/badge.svg)](https://github.com/luno/luno-python/actions/workflows/test.yml)
[![PyPI version](https://img.shields.io/pypi/v/luno-python.svg)](https://pypi.org/project/luno-python/)
[![Python Versions](https://img.shields.io/pypi/pyversions/luno-python.svg)](https://pypi.org/project/luno-python/)
[![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](https://github.com/luno/luno-python/blob/main/LICENSE.txt)

[![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?project=luno_luno-python&metric=alert_status)](https://sonarcloud.io/dashboard?id=luno_luno-python)
[![Bugs](https://sonarcloud.io/api/project_badges/measure?project=luno_luno-python&metric=bugs)](https://sonarcloud.io/dashboard?id=luno_luno-python)
[![Security Rating](https://sonarcloud.io/api/project_badges/measure?project=luno_luno-python&metric=security_rating)](https://sonarcloud.io/dashboard?id=luno_luno-python)
[![Vulnerabilities](https://sonarcloud.io/api/project_badges/measure?project=luno_luno-python&metric=vulnerabilities)](https://sonarcloud.io/dashboard?id=luno_luno-python)
[![Duplicated Lines (%)](https://sonarcloud.io/api/project_badges/measure?project=luno_luno-python&metric=duplicated_lines_density)](https://sonarcloud.io/dashboard?id=luno_luno-python)

This Python package provides a wrapper for the [Luno API](https://www.luno.com/api).

### Installation

```
pip install luno-python
```

### Authentication

Please visit the [Settings](https://www.luno.com/wallet/settings/api_keys) page
to generate an API key.

### Example usage

```python
from luno_python.client import Client

c = Client(api_key_id='key_id', api_key_secret='key_secret')
try:
  res = c.get_ticker(pair='XBTZAR')
  print(res)
except Exception as e:
  print(e)
```

For more examples, see the [examples](./examples) folder.

### License

[MIT](https://github.com/luno/luno-python/blob/main/LICENSE.txt)
