Skip to main content

Python Client for QuadrigaCX

Project description Package version Python Versions Test Coverage Issues Open MIT License


Quadriga is a Python client for Canadian cryptocurrency exchange platform QuadrigaCX. It wraps the exchange’s REST API v2 using requests library.


  • Quadriga has been completely overhauled in version 2.0.0.
  • Please see the releases page for details on the latest updates.


  • Python 2.7, 3.4, 3.5 or 3.6.
  • QuadrigaCX API secret, API key and client ID (the number used for your login).


To install a stable version from PyPi:

~$ pip install quadriga

To install the latest version directly from GitHub:

~$ pip install -e

You may need to use sudo depending on your environment.

Getting Started

Here are some usage examples:

from quadriga import QuadrigaClient

client = QuadrigaClient(
client.get_balance()                # Get the user's account balance
client.lookup_order(['order_id'])   # Look up one or more orders by ID
client.cancel_order('order_id')     # Cancel an order by ID

client.get_deposit_address('bch')   # Get the funding address for BCH
client.get_deposit_address('btc')   # Get the funding address for BTC
client.get_deposit_address('btg')   # Get the funding address for BTG
client.get_deposit_address('eth')   # Get the funding address for ETH
client.get_deposit_address('ltc')   # Get the funding address for LTC

client.withdraw('bch', 1, 'bch_wallet_address')  # Withdraw 1 BCH to wallet
client.withdraw('btc', 1, 'btc_wallet_address')  # Withdraw 1 BTC to wallet
client.withdraw('btg', 1, 'btg_wallet_address')  # Withdraw 1 BTG to wallet
client.withdraw('eth', 1, 'eth_wallet_address')  # Withdraw 1 ETH to wallet
client.withdraw('ltc', 1, 'ltc_wallet_address')  # Withdraw 1 LTC to wallet

book ='btc_cad')
book.get_ticker()                   # Get the latest ticker information
book.get_user_orders()              # Get user's open orders
book.get_user_trades()              # Get user's trade history
book.get_public_orders()            # Get public open orders
book.get_public_trades()            # Get recent public trade history
book.buy_market_order(10)           # Buy 10 BTC at market price
book.buy_limit_order(5, 10)         # Buy 5 BTC at limit price of $10 CAD
book.sell_market_order(10)          # Sell 10 BTC at market price
book.sell_limit_order(5, 10)        # Sell 5 BTC at limit price of $10 CAD

Check out the documentation for more details.


Please have a look at this page before submitting a pull request. Thanks!


If you found this library useful, feel free to donate.

  • BTC: 3QG2wSQnXNbGv1y88oHgLXtTabJwxfF8mU
  • ETH: 0x1f90a2a456420B38Bdb39086C17e61BF5C377dab


The author(s) of this project is in no way affiliated with QuadrigaCX, and shall not accept any liability, obligation or responsibility whatsoever for any cost, loss or damage arising from the use of this client. Please use at your own risk.

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for quadriga, version 2.1.0
Filename, size File type Python version Upload date Hashes
Filename, size quadriga-2.1.0.tar.gz (10.1 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page