Skip to main content

Reliable library to

Project description

Overview

Installation

pip install CryptoBotSyncApi

First Steps

  1. Create your application and get an API token: Open @CryptoBot or @CryptoTestnetBot (for testnet).
  2. Send bot a command /pay to create a new app and get API Token.
  3. 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

cryptobotsyncapi-1.0.0.tar.gz (7.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

cryptobotsyncapi-1.0.0-py3-none-any.whl (6.1 kB view details)

Uploaded Python 3

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

Hashes for cryptobotsyncapi-1.0.0.tar.gz
Algorithm Hash digest
SHA256 e796e026950751672cf3a0816bf48a259f400eee7698970647bbbb9a3e27d5ad
MD5 3cd70af53b606905f3fb6ef6da22d6a2
BLAKE2b-256 034fbc1bce4b23e6c8c55022b39ab3c11722f42872bd308df1cfd938b854f539

See more details on using hashes here.

File details

Details for the file cryptobotsyncapi-1.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for cryptobotsyncapi-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 8ad1388db247d5080368ced2d2acfae7dc385469fae7d22f5176cfebefe7c79f
MD5 9d454fe4f94a75ea0caf732506f37ed9
BLAKE2b-256 ab29b86bd3464d41ea34ecc0f2f42a14665e15f270b2af1555632ee7aa268f4b

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page