Skip to main content

Nexo Pro REST API python implementation

Project description

Unofficial Nexo API Wrapper (Python)

✨ A Python wrapper for the Nexo Pro API ✨

lint tests codecov CodeFactor Percentage of issues still open PipPerMonths Pip version fury.io GitHub license GitHub contributors

Description 📰

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

If you came here looking for the Nexo exchange to purchase cryptocurrencies, then go to the official Nexo website. If you want to automate interactions with Nexo, stick around.

Click here to register a Nexo account

Heavily influenced by python-binance

You can check which endpoints are currently functional here

  • ✨ Work in Progress
  • 🎌 Built with Python
  • 🐋 Docker Available
  • 🍻 Actively Maintained

Roadmap 🌱

See it on Issue https://github.com/guilyx/python-nexo/issues/2 Checkout the Changelog

Preparation 🔎

  • Register a Nexo Account. here
  • Generate an API Key in Nexo Pro with the permissions you want.

Set it up 💾

PIP

  1. Install the pip package: python3 -m pip install python-nexo
  2. Explore the API:
import nexo
import os
c = nexo.Client("your_api_key", "your_api_secret")
balances = c.get_account_balances()
print(balances)

Docker (source)

  1. Clone the Project: git clone -b master https://github.com/guilyx/python-nexo.git
  2. Move to the Repository: cd python-nexo
  3. Create a copy of .env.example and name it .env
  4. Fill up your API Key/Secret
  5. Build and Compose the Docker: docker-compose -f docker/docker-compose.yml up - The container should keep running so that you can explore the API
  6. Attach to the docker: docker exec -it $(docker ps -qf "name=docker_python-nexo") /bin/bash
  7. Run python in the docker's bash environment: python3
  8. From there, copy the following snippet to instantiate a Client:
import nexo
import os
nexo_key = os.getenv("NEXO_PUBLIC_KEY")
nexo_secret = os.getenv("NEXO_SECRET_KEY")
assert(nexo_key)
assert(nexo_secret)
c = nexo.Client(nexo_key, nexo_secret)
  1. You can now explore the client's exposed endpoints, for instance:
balances = c.get_account_balances()
print(balances)

Contribute 🆘

Open an issue to state clearly the contribution you want to make. Upon aproval send in a PR with the Issue referenced. (Implement Issue #No / Fix Issue #No).

Maintainers Ⓜ️

  • Erwin Lejeune

Buy me a Coffee

ERC-20 / EVM: 0x482A82761710aeAf04665BB28E32Fb256B4a7bC8

BTC: bc1q0c45w3jvlwclvuv9axlwq4sfu2kqy4w9xx225j

DOT: 1Nt7G2igCuvYrfuD2Y3mCkFaU4iLS9AZytyVgZ5VBUKktjX

DAG: DAG7rGLbD71VrU6nWPrepdzcyRS6rFVvfWjwRKg5

LUNC: terra12n3xscq5efr7mfd6pk5ehtlsgmaazlezhypa7g

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

python-nexo-1.0.1.tar.gz (10.5 kB view details)

Uploaded Source

Built Distribution

python_nexo-1.0.1-py3-none-any.whl (9.4 kB view details)

Uploaded Python 3

File details

Details for the file python-nexo-1.0.1.tar.gz.

File metadata

  • Download URL: python-nexo-1.0.1.tar.gz
  • Upload date:
  • Size: 10.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.8.10

File hashes

Hashes for python-nexo-1.0.1.tar.gz
Algorithm Hash digest
SHA256 f4662bb8a9653866789073525d9b1cddc8a8c649373433e151640038756dfac1
MD5 f7432e00b17ecf9bf71458598a4b4331
BLAKE2b-256 13425777c0b5ad212d0c922d835e92accbfc8a92ac1f4ff755aa9c2a7490b58f

See more details on using hashes here.

File details

Details for the file python_nexo-1.0.1-py3-none-any.whl.

File metadata

  • Download URL: python_nexo-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 9.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.8.10

File hashes

Hashes for python_nexo-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 cfe99a4d509b4d1702951ed052aff2d7cc66f056fc620849489ab576ebbfefd5
MD5 a3e07a2a02657c27cbbc9ce4e2e38079
BLAKE2b-256 d52b2af552c9008988da3c51c14971985dac66dda96a8bf722b88c724291dac8

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page