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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
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
Algorithm | Hash digest | |
---|---|---|
SHA256 | d5febd79d99c452bea16e5ee768b760dec76d15313c3dba5a9b53d32b03a56b1 |
|
MD5 | ce0c563558e7414b367d37a3b138327b |
|
BLAKE2b-256 | b9159a75eaf1a3dda8f4c7441767f42debaf5123b4583a1aa8f85c93502b07da |
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
Algorithm | Hash digest | |
---|---|---|
SHA256 | d89323c6bdc53cecd6443732738396768d0a271211bce1e7f59d2972ed03545f |
|
MD5 | d257ee28765e97de3bc28377025b8679 |
|
BLAKE2b-256 | 99f18f73b21b320423b4f0144ef48781b7774ea601a631b5804627ce390187a1 |