Reliable library to
Project description
Overview
Installation
pip install CryptoBotSyncApi
First Steps
- Create your application and get an API token: Open @CryptoBot or @CryptoTestnetBot (for testnet).
- Send bot a command
/payto create a new app and get API Token. - Copy
All queries to the Crypto Pay API must be sent over HTTPS
Example
pay = CryptoPay("crypto_bot_api")
invoice = pay.create_invoice(amount='500', currency_type='fiat', accepted_assets='usdt,btc', fiat='RUB')
Methods
- get_me() - Use this method to test your app's authentication token. Requires no parameters.
- create_invoice() - Use this method to test your app's authentication token. Requires no parameters.
- delete_invoice - Use this method to delete invoices created by your app.
- create_check - Use this method to create a new check.
- delete_check - Use this method to delete checks created by your app.
- transfer - Use this method to send coins from your app's balance to a user. This method must first be enabled in the security settings of your app. Open @CryptoBot (@CryptoTestnetBot for testnet), go to Crypto Pay → My Apps, choose an app, then go to Security -> Transfers... and tap Enable.
- get_invoices() - Use this method to get invoices created by your app.
- get_transfers() - Use this method to get transfers created by your app.
- get_checks() - Use this method to get checks created by your app.
- get_balance() - Use this method to get balances of your app. Requires no parameters.
- get_exchange_rates() - Use this method to get exchange rates of supported currencies. Requires no parameters.
- get_currencies() - Use this method to get a list of supported currencies. Requires no parameters.
- get_stats() - Use this method to get app statistics.
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file cryptobotsyncapi-1.0.0.tar.gz.
File metadata
- Download URL: cryptobotsyncapi-1.0.0.tar.gz
- Upload date:
- Size: 7.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e796e026950751672cf3a0816bf48a259f400eee7698970647bbbb9a3e27d5ad
|
|
| MD5 |
3cd70af53b606905f3fb6ef6da22d6a2
|
|
| BLAKE2b-256 |
034fbc1bce4b23e6c8c55022b39ab3c11722f42872bd308df1cfd938b854f539
|
File details
Details for the file cryptobotsyncapi-1.0.0-py3-none-any.whl.
File metadata
- Download URL: cryptobotsyncapi-1.0.0-py3-none-any.whl
- Upload date:
- Size: 6.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8ad1388db247d5080368ced2d2acfae7dc385469fae7d22f5176cfebefe7c79f
|
|
| MD5 |
9d454fe4f94a75ea0caf732506f37ed9
|
|
| BLAKE2b-256 |
ab29b86bd3464d41ea34ecc0f2f42a14665e15f270b2af1555632ee7aa268f4b
|