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 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.1.0.tar.gz (4.7 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.1.0-py3-none-any.whl (5.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: Python_Peatio-1.1.0.tar.gz
  • Upload date:
  • Size: 4.7 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.1.0.tar.gz
Algorithm Hash digest
SHA256 84a92ec344a4fd10d84ac690e58abd51311b2eb207ca5b6320708015376d6a7c
MD5 370520a33e5580fbc746ddecaac91a80
BLAKE2b-256 a604e60b9eb0ef700ba19212e50f5e3baa07eb0f58764e1309ffef6a83c187c5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: Python_Peatio-1.1.0-py3-none-any.whl
  • Upload date:
  • Size: 5.6 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.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b7f1cb2ab93a731246a4085bd39ed887b555d59b0899fe7b9d6934a693209076
MD5 48f5b3bf8eed59a63cfe608764f07b0d
BLAKE2b-256 ed4bdf40cfb41694b51eba31e57230173818103d13ac89ce3401a3131ea99f89

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