Skip to main content

Python library for interacting with the CryptoFuse API

Project description

# CryptoFusePy

CryptoFusePy is a Python library for interacting with the CryptoFuse API. It enables developers to easily integrate CryptoFuse's cryptocurrency swapping functionality into their Python applications.

## Installation

Alternatively, if the package is available on PyPI, you can install it using pip:

git clone https://github.com/your_username_here/cryptofusepy.git
cd cryptofusepy
pip install .

Usage

You can use the CryptoFuseClient class from the cryptofusepy package to interact with the CryptoFuse API.

Here's a quick example on how you can instantiate the client and fetch the available cryptocurrencies:

from cryptofusepy import CryptoFuseClient

# Instantiate the client
client = CryptoFuseClient()

# Fetch available cryptos
available_cryptos = client.fetch_available_cryptos()
print(available_cryptos)

For a more detailed example that shows how to use all the endpoints, please see the example.py file in this repository.

Available Methods

Here is a list of available methods in the CryptoFuseClient class:

  • fetch_available_cryptos(): Fetches the available cryptocurrencies.
  • fetch_exchange_rate(from_crypto, to_crypto): Fetches the exchange rate between two cryptocurrencies.
  • generate_address(from_crypto, to_crypto, user_address, referral=None): Generates an address for swapping.
  • register_referral(to_crypto, user_address, referral): Registers a referral.
  • get_address_by_uuid(uuid): Retrieves address information by UUID.
  • get_latest_transaction(uuid, latest_known_transaction_id=None, latest_known_transaction_status=None): Retrieves the latest transaction for the provided UUID.
  • get_crypto_swap_status(): Retrieves the Crypto Swap status.

Contributing

Contributions are welcome! Please feel free to submit a pull request or create an issue if you find a bug or have a feature request.

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

cryptofusepy-0.1.1.tar.gz (2.7 kB view details)

Uploaded Source

Built Distribution

cryptofusepy-0.1.1-py3-none-any.whl (3.1 kB view details)

Uploaded Python 3

File details

Details for the file cryptofusepy-0.1.1.tar.gz.

File metadata

  • Download URL: cryptofusepy-0.1.1.tar.gz
  • Upload date:
  • Size: 2.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.10

File hashes

Hashes for cryptofusepy-0.1.1.tar.gz
Algorithm Hash digest
SHA256 d5febd79d99c452bea16e5ee768b760dec76d15313c3dba5a9b53d32b03a56b1
MD5 ce0c563558e7414b367d37a3b138327b
BLAKE2b-256 b9159a75eaf1a3dda8f4c7441767f42debaf5123b4583a1aa8f85c93502b07da

See more details on using hashes here.

File details

Details for the file cryptofusepy-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: cryptofusepy-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 3.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.10

File hashes

Hashes for cryptofusepy-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 d89323c6bdc53cecd6443732738396768d0a271211bce1e7f59d2972ed03545f
MD5 d257ee28765e97de3bc28377025b8679
BLAKE2b-256 99f18f73b21b320423b4f0144ef48781b7774ea601a631b5804627ce390187a1

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