Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/fsoky/cryptomusapi
Easy interaction with Cryptomus API, support for asynchronous approaches
https://github.com/fsoky/cryptomusapi
aiohttp api asyncio-api-wrapper cryptocurrency cryptomus cryptomus-api cryptopayments python
Last synced: about 1 month ago
JSON representation
Easy interaction with Cryptomus API, support for asynchronous approaches
- Host: GitHub
- URL: https://github.com/fsoky/cryptomusapi
- Owner: Fsoky
- License: mit
- Created: 2023-11-23T11:13:46.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-02-09T16:57:35.000Z (11 months ago)
- Last Synced: 2024-10-28T22:27:32.561Z (about 2 months ago)
- Topics: aiohttp, api, asyncio-api-wrapper, cryptocurrency, cryptomus, cryptomus-api, cryptopayments, python
- Language: Python
- Homepage: https://cryptomus.com/
- Size: 43 KB
- Stars: 14
- Watchers: 1
- Forks: 4
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
What are Cryptomus crypto payment gateway features?
🛡 Volatility protection
Automatic conversion of incoming payments into stablecoins will protect against cryptocurrency volatility.
The Withdrawal auto-convert feature allows you to withdraw your crypto in a preferred currency, and both features are completely free to use!
âš™ Transactions status management
- Adjust the allowed payment accuracy.
- View if an invoice has been overpaid or underpaid and send an additional invoice to collect a remaining amount.
💬 Support team
- Telegram
- Our website in the form of tickets
- As a personal manager for our merchants
📄 Mass payouts
Make mass payouts to thousands of addresses with automatic conversion in just one moment.
All features
About This Project
This project is written on pure enthusiasm, I want this library to be usable and used regularly. This project has the ability to run synchronously or asynchronously, which makes it more flexible.
The project will be maintained and improved, and you can buy me a coffee :)
Thanks, have a good day!Installation
> [!WARNING]
> Current Version in DEV. MODE (beta. u know.)- Installation using the pip package manager
```bash
$ pip install CryptomusAPI
```
- Install from GitHub *(requires [git](https://git-scm.com/downloads))*
```bash
$ git clone https://github.com/Fsoky/CryptomusAPI
$ cd CryptomusAPI
$ python setup.py install
```
- Or
```bash
$ pip install git+https://github.com/Fsoky/CryptomusAPI
```Get Started
> [!TIP]
> Refer to the documentation in any unclear situation: https://doc.cryptomus.com/ \
> To get **MERCHANT_ID** and **API_KEY** register and send an application to https://cryptomus.com/
>
> _âš Make sure you have a **ready project** in which you will connect **Cryptomus** otherwise the key will not be issued!_```python
import asyncio
from CryptomusAPI import CryptomusClientapi = CryptomusClient("MERCHANT-UUID", "API-KEY")
async def main() -> None:
invoice = await api.create_invoice(
amount=10,
currency="USDT"
network="tron",
lifetime=300
)
await api.session.close()
print(invoice.url)if __name__ == "__main__":
loop = asyncio.get_event_loop()
loop.run_until_complete(main()) # I need fix this.