Skip to content

Openware's Peatio Exchange API python implementation for automated trading.

License

Notifications You must be signed in to change notification settings

athenasaurav/Python_Peatio

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Welcome to Open Source Peatio Deployed Exchange API

Updated 25th June 2021

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

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

Source code
https://github.com/athenasaurav/Python_Peatio
Complete Documentation:
https://prescient-automation.medium.com/python-wrapper-for-open-ware-crypto-currency-peatio-based-exchanges-9abe60e7416

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 get Auth Parameter

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

To 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)
Youtube:
https://youtube.com/channel/UCll57xqeADb2UOlNDIXgYzQ

About

Openware's Peatio Exchange API python implementation for automated trading.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages