Skip to main content

Python Crypto Payments Library for the Coino Live API v2

Accept crypto payments in Python with the official library for the Coino Live crypto payment gateway and its REST API v2. With it you can create payment checkouts, verify webhooks, give your users lifetime deposit addresses, check balances and send withdrawals.

Version: 1.0.0 · Requires: Python 3.8+ · Dependencies: standard library only · License: MIT

Updating from the old version? Earlier code in this repository used the Coino Live API v1, which has been retired: its endpoints (/api/v1/...) no longer answer. This version uses the current API v2. Replace the old files with these.

Supported assets, fees and payment flow

Coino Live is a crypto payment gateway that supports 117 assets on 11 networks: Bitcoin, Litecoin, Ethereum, BNB Smart Chain, opBNB, Polygon, Base, Arbitrum, TRON, TON and Solana. USDT and USDC are available on most of these networks. Dogecoin and Bitcoin Cash are not accepted.

  • Platform fee: 0.25% per payment. Blockchain network fees are separate.
  • Signup: email and password, no KYC.
  • Payment flow: payments are credited to your Coino Live balance, and you withdraw them to your own wallet.

Install the Python library

Download coinolive-python-<version>.zip from coino.live/api-guide, unzip it and install the folder:

pip install ./coinolive-python

Or copy the coinolive folder inside it next to your code.

Create a crypto payment

Use your API key from Dashboard → Developers. Create a payment, then redirect your customer to its checkout URL from your web app's request handler:

import coinolive

coino = coinolive.Client("ck_live_…")  # Dashboard → Developers

payment = coino.payments.create(
    amount="25.00",          # a string, at most 2 decimals
    currency="EUR",          # any code from coino.currencies(); USD by default
    order_id="1001",
    success_url="https://shop.example/thanks",
    cancel_url="https://shop.example/cart",
    notify_url="https://shop.example/coino-webhook",
)

return redirect(payment["checkout_url"])

Confirm the payment before shipping the order

Ship the order only when a fresh read says paid:

payment = coino.payments.retrieve(payment_id)
if payment["status"] == "paid":
    ...

Payment statuses: open, confirming, partially_paid, paid, expired, cancelled.

Verify payment webhooks

The signature covers the raw request body, so pass the body to verify() unparsed:

from coinolive import webhooks, SignatureVerificationError

@app.post("/coino-webhook")  # Flask
def coino_webhook():
    try:
        event = webhooks.verify(request.get_data(), request.headers.get("X-Coino-Signature"), SIGNING_SECRET)
    except SignatureVerificationError:
        return "", 401
    if event["event"].startswith("payment."):
        payment = coino.payments.retrieve(event["data"]["id"])  # act on what the API says, not on the webhook body
    return "", 200

In Django, use request.body and request.headers.get("X-Coino-Signature").

List and cancel payments

coino.payments.list(status="paid", order_id="1001")   # {"data": […], "meta": {"next_cursor": …}}
for payment in coino.payments.all(status="paid"):     # every page
    ...
coino.payments.cancel(payment_id)                     # only while nothing was received

Check currencies, assets and balances

coino.currencies()                                    # prices can be in these
coino.assets()                                        # customers can pay with these
coino.balances()                                      # your balance per coin, with usd_value

Give users lifetime deposit addresses

Create custody users with lifetime deposit addresses, list their deposits and move their balances to yours:

user = coino.custody.create("user-42", name="Ada")    # lifetime deposit addresses for your users
coino.custody.retrieve(user["id"])
coino.custody.list(external_id="user-42")
coino.custody.deposits(user["id"])
coino.custody.transfer(user["id"], "usdt-tron")       # move the user's balance to yours

Create and retrieve withdrawals

coino.withdrawals.create("usdt-tron", "50", "T…", reference="payout-77")
coino.withdrawals.retrieve(withdrawal_id)

Handle errors and retries

Every failure raises one of these exceptions, all available from coinolive:

Error When
AuthenticationError Wrong or revoked key, or the gateway is suspended (401)
NotFoundError Unknown ID, or it belongs to another gateway (404)
ValidationError The request was refused; e.errors names the fields (422)
RateLimitError Too many requests (429)
ApiError Anything else; the parent of the four above, with e.status
ConnectionError The API could not be reached, or the request timed out

All of them inherit from CoinoLiveError.

Network errors, 429 responses and 5xx responses are retried twice with a short pause, but only for requests that are safe to repeat:

  • reads
  • payments.create(), which always sends an idempotency key (random unless you pass idempotency_key=)
  • custody.create(), where the same external_id means the same user
  • withdrawals.create() with a reference

You can set the timeout, retries and base URL on the client:

coino = coinolive.Client("ck_live_…", timeout=30, max_retries=2, base_url="https://coino.live/api/v2")

Run the tests

python tests/run.py
COINOLIVE_API_URL=https://… COINOLIVE_API_KEY=ck_test_… python tests/run.py   # also against a real API

Documentation and license

Full API reference: coino.live/api-guide. This library is released under the MIT License.

Metadata

Release files for coinolive 1.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for coinolive 1.0.0
File Size Uploaded Provenance Actions
coinolive-1.0.0.tar.gz 8.9 kB With provenance Details for coinolive-1.0.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for coinolive 1.0.0
File Interpreter ABI Platform Actions
coinolive-1.0.0-py3-none-any.whl Python 3 none any Details for coinolive-1.0.0-py3-none-any.whl

Total release size: 19.1 kB

Release files / coinolive-1.0.0.tar.gz

Download URL coinolive-1.0.0.tar.gz
Size 8.9 kB
Tags Source
SHA-256 checksum
How to use checksums
01fe399035f6c24d72d244324248200061c3f464af5f16cd577b642af6516ba9
BLAKE2b-256 checksum
How to use checksums
25914711fd0de0dbb3e2c4ef48811ed89ff846a487e3171467d287a9f728f071
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 20, 2026.

Transparency log

Release files / coinolive-1.0.0-py3-none-any.whl

Download URL coinolive-1.0.0-py3-none-any.whl
Size 10.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
652a236548dc12ffab0de963f47ef9b3a35c6d6a2d668a09b529439cda403bd0
BLAKE2b-256 checksum
How to use checksums
790c823215ed39e690854595de4541d5c2a4632cf333ee93d7f67494f91188b4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 20, 2026.

Transparency log

Security for coinolive 1.0.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for coinolive-1.0.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 20, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

1.0.0 This release

2 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page