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.2.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.2.0-py3-none-any.whl (5.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: Python_Peatio-1.2.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.2.0.tar.gz
Algorithm Hash digest
SHA256 81c54becf331f1295fbcc8df9dfaf0a5baa640174985faaa9637546c302da96f
MD5 6e88121bff43f6c524c8513566e383c5
BLAKE2b-256 7ea14de3a361aa24d6cfa401d44cd0cb55c7c1d539a920862861451db4273909

See more details on using hashes here.

File details

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

File metadata

  • Download URL: Python_Peatio-1.2.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.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ea0eb517bf961fcb7208c44c68937757f88e3034258598146562080ff6c63c34
MD5 ecb91af6b1097ec62773074153e4663f
BLAKE2b-256 4dbfc3734b869ee24cd464b1c943100dee7fbd0dc26ed2e54691925810864e64

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