/NOWPayments-Python-API

A Python wrapper for the NOWPaiments API.

Primary LanguagePythonMIT LicenseMIT

NOWPayments-Python-API

CodeQL codecov Black Code style: black

A Python wrapper for the NOWPayments API.

The api call descriptions are from the official documentation.

Getting Started

Before using the NOWPayments API, sign up for a API key here.

If you want to use the Sandbox, request your API key here.

To install the wrapper, enter the following into the terminal.

pip install nowpayments

Every api call requires this api key. Make sure to use this key when getting started.

from nowpayments import NOWPayments
payment = NOWPayments("API_KEY")

status = payment.get_api_status()

Sandbox is used in the same way in correspondence with the documentation as follows.

from nowpayments import NOWPaymentsSandbox

payment = NOWPaymentsSandbox("SANDBOX_API_KEY")

status = payment.get_api_status()