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
- 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
Register an account with a Peatio Exchange.
Generate an API Key and API Secret.
pip install Python_Peatio
from Python_Peatio.Auth import Auth auth = Auth(api_key, api_secret)
auth.signed_param()
from Python_Peatio.Accounts import Accounts
Accounts = Accounts(api_key, api_secret)
balances = Accounts.all_currency_balance(
URL='your http peatio url')
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')
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')
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)