Skip to main content

Python Package for Openware Peatio Cryptocurrency Exchange & Accounting Software

Project description

Open Source Peatio Deployed Exchange API

This is an unofficial Python wrapper for the Peatio exchange REST API v2. I am in no way affiliated with Openware Peatio Project, use at your own risk.

If you came here looking for the exchange to purchase cryptocurrencies, then go here.

If you want to automate interactions with Peatio Exchanges stick around.

Source code

Link to Source Code

Features

  • Implementation of all General, Market Data and Account endpoints.
  • Simple handling of authentication
  • No need to generate timestamps yourself, the wrapper does it for you
  • Response exception handling
  • Symbol Depth Cache
  • Kline/Candle fetching function
  • Withdraw functionality
  • Deposit addresses
  • API Trading

Quick Start

Register an account with a Peatio Exchange.

Generate an API Key and API Secret.

Install

pip install Python_Peatio

To Use

from Python_Peatio.Auth import Auth
auth = Auth(api_key, api_secret)

Get Nonce and Signature

auth.signed_param()

To get account balance of all the currency on exchange

from Python_Peatio.Accounts import Accounts
Accounts = Accounts(api_key, api_secret)
balances = Accounts.all_currency_balance(
    URL='your http peatio url')

To place an BUY order

from Python_Peatio.Market import Market
Market = Market(api_key, api_secret)
order = Market.create_limit_order(
    URL='your http peatio url',
    market = 'symbol of cryptocurrency pair',
    side='buy',
    volume='0.002',
    price='38000')

To place an SELL order

from Python_Peatio.Market import Market
Market = Market(api_key, api_secret)
order = Market.create_limit_order(
    URL='your http peatio url',
    market = 'symbol of cryptocurrency pair',
    side='Sell',
    volume='0.002',
    price='38000')

To cancel an Buy or Sell order

from Python_Peatio.Market import Market
Market = Market(api_key, api_secret)
order = Market.id_cancel(
    URL='your http peatio url',
    id = buy or sell id to cancel)

All the use cases will be uploaded soon

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

Python_Peatio-1.4.0.tar.gz (4.8 kB view details)

Uploaded Source

Built Distribution

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

Python_Peatio-1.4.0-py3-none-any.whl (5.9 kB view details)

Uploaded Python 3

File details

Details for the file Python_Peatio-1.4.0.tar.gz.

File metadata

  • Download URL: Python_Peatio-1.4.0.tar.gz
  • Upload date:
  • Size: 4.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.6.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.8.5

File hashes

Hashes for Python_Peatio-1.4.0.tar.gz
Algorithm Hash digest
SHA256 6d05605a6c924296db37c318971d6e4caa54f00ab402b8d529445110050b2953
MD5 83696b8caf9b9c07513c7d61f79dc567
BLAKE2b-256 6696e823b7f73a0b3678a535e71077d7578360b2c4f5ac500dd6448413e3946e

See more details on using hashes here.

File details

Details for the file Python_Peatio-1.4.0-py3-none-any.whl.

File metadata

  • Download URL: Python_Peatio-1.4.0-py3-none-any.whl
  • Upload date:
  • Size: 5.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.6.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.8.5

File hashes

Hashes for Python_Peatio-1.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 52f8bf1fa8de9f5be6c352817d4c002b8de9b17618c1af8e920187029e8a5eed
MD5 ca61f3b5cd99508fa3b0ca0e9cba5366
BLAKE2b-256 a0bee0f854bd489c0819c4f5711958a216312314a197967f32214c4d69fa8c24

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