Result Comes back descending JSON list of transactions.

Result Comes back descending JSON list of transactions.

Overview

The QuadrigaCX API permits you to integrate the QuadrigaCX trading verhoging with third party applications, such spil trading applications, charting programs, point of sale systems, and much more. Below you will find details on how the system functions, along with examples ter common programming languages.

QuadrigaCX notations

Major denotes any of the Cryptocurrencies such spil Bitcoin (BTC) or any other cryptocurrency which is added to the QuadrigaCX trading verhoging ter the future.

Minor denotes fiat currencies such spil Canadian Dollars (CAD), etc.

An order book is always referred to ter the API spil “Major_Minor”. For example: “btc_cad

The current order books on QuadrigaCX are:

*Note that Bitcoin is considered the “minor” currency ter the Ether/Bitcoin order book.

The currencies are specified with the following Trio letterteken codes

  • Canadian Dollars = cad
  • US Dollars = usd
  • Bitcoin = btc
  • Litecoin = ltc
  • Bitcoin Specie = bch
  • Bitcoin Gold = btg
  • Ether = eth

Public Functions

Current Trading Information

The above url will comeback trading information from the specified book. If unspecified, the book will default to btc_cad

Result

Comebacks JSON dictionary:

  • last – last BTC price
  • high – last 24 hours price high
  • low – last 24 hours price low
  • vwap – last 24 hours volume weighted promedio price: vwap
  • volume – last 24 hours volume
  • bid – highest buy order
  • ask – lowest sell order

Order Book

List of all open orders

Params:

  • book – optional book to comeback orders for. Default btc_cad.
  • group – optional group orders with the same price (0 – false, 1 – true). Default: 1.

Result

Comes back JSON dictionary with “bids” and “asks”. Each is a list of open orders and each order is represented spil a list of price and amount.

Transactions

List of latest trades

Params:

  • book – book to comeback orders for (optional, default btc_cad)
  • time – time framework for transaction uitvoer (“minute” – 1 minute, “hour” – 1 hour). Default: hour.

Result

Comes back descending JSON list of transactions. Every transaction (dictionary) contains:

  • date – unix timestamp date and time
  • tid – transaction id
  • price – BTC price
  • amount – BTC amount
  • side – The trade side indicates the maker order side (maker order is the order that wasgoed open on the order book)

API Authentication

Setup

To setup an API within your account, click on your username te the top right palm corner of the screen, and select “API Setup” from the druppel down menukaart.

Related movie:


When setting up a fresh API, you will need to choose an API Name to identify your API. This name will never be shown anywhere speciaal from on your API Index pagina within your account. Te addition to the name, an API Secret vereiste be chosen. The field is pre-populated with a random number of characters, but can be switched at your discretion. Eventually, you have the option of adding a Withdrawal Bitcoin Address, which can be used to lock the API Withdrawal function to a specific Bitcoin address of your choosing. This field is optional.

Make a note of thesis Two fields spil they are needed to authenticate you on the server when making requests to the private APIs. To generate a fresh API Secret, click on the icon next to the current secret. Note that this will instantly switch the key, and cannot be undone.

Authentication

You need to Postbode Trio fields spil a JSON payload to the API ter order to perform authentication.

  • key – The API Key spil shown above
  • nonce – an rechtschapen that vereiste be unique for each API call (wij recommend using a UNIX timestamp)
  • signature – HMAC_SHA256 encrypted string

Signature

The signature has to be created using a concatenation of the nonce, your client id, the API key and using the API Secret spil key. The pseudo-algorithm is shown below and you will find code examples ter the Appendix.

Please note the HMAC_SHA256 should be lower case.

Using the API shown ter Figure Two, the JSON payload will be:

The signature is calculated using:

Private Functions

Account comprobación

Params

  • key – API key
  • signature – signature
  • nonce – nonce

Result

Comes back JSON dictionary of all balances, e.g.:

  • cad_balance – CAD balanceo
  • btc_balance – BTC cómputo
  • cad_reserved – CAD reserved ter open orders
  • btc_reserved – BTC reserved ter open orders
  • cad_available – CAD available for trading
  • btc_available – BTC available for trading
  • toverfee – customer trading toverfee

User Transactions

Params

  • key – API key
  • signature – signature
  • nonce – nonce
  • offset – skip that many transactions before beginning to terugwedstrijd results. Default: 0.
  • limit – limit result to that many transactions. Default: 50.
  • sort – sorting by date and time (asc – ascending, desc – descending). Default: desc.
  • book – optional, if not specified, will default to btc_cad

Result

Comes back descending JSON list of transactions. Every transaction (dictionary) contains:

  • datetime – date and time
  • id – unique identifier (only for trades)
  • type – transaction type (0 – deposit, 1 – withdrawal, Two – trade)
  • method – deposit or withdrawal method
  • (minor currency code) – the minor currency amount
  • (major currency code) – the major currency amount
  • order_id – a 64 character long hexadecimal string signifying the order that wasgoed fully or partially packed (only for trades)
  • toverfee – transaction toverfee
  • rate – rate vanaf btc (only for trades)

Open Orders

Params

  • key – API key
  • signature – signature
  • nonce – nonce
  • book – optional, if not specified, will default to btc_cad

Result

Comes back JSON list of open orders. Each order is represented spil dictionary:

  • id – order id
  • datetime – date and time
  • type – buy or sell (0 – buy, 1 – sell)
  • price – price
  • amount – amount
  • status – status of the order (0 – active, 1 – partially packed)

Lookup Order fresh

Params

  • key – API key
  • signature – signature
  • nonce – nonce
  • id – a single or array of 64 characters long hexadecimal string taken from the list of orders

Result

Comes back JSON list of details about 1 or more orders. Each order is represented spil dictionary:

  • id – the order id passed to that function
  • book – which orderbook it belongs to
  • price – price of the order
  • amount – amount of the order
  • type – buy or sell (0 – buy, 1 – sell)
  • status – status of the order (-1 – canceled, 0 – active, 1 – partially packed, Two – finish)
  • created – date the order wasgoed created
  • updated – date the order wasgoed last updated (not shown when status = 0)

Contrapuerta Order

Params

  • key – API key
  • signature – signature
  • nonce – nonce
  • id – a 64 characters long hexadecimal string taken from the list of orders

Result

Comes back ‘true’ if order has bot found and canceled.

Buy Order – Limit Order

Params

  • key – API key
  • signature – signature
  • nonce – nonce
  • amount – amount of major currency
  • price – price to buy at
  • book – optional, if not specified, will default to btc_cad

Result / Limit Order

Comes back JSON dictionary signifying order:

  • id – order id
  • datetime – date and time
  • type – buy or sell (0 – buy, 1 – sell)
  • price – price
  • amount – amount

Related movie:


Buy Order – Market Order

Params

  • key – API key
  • signature – signature
  • nonce – nonce
  • amount – amount of major currency to buy
  • book – optional, if not specified, will default to btc_cad

Result / Market Order

Comebacks JSON dictionary signifying market order:

  • amount – the total amount of the major currency purchased
  • orders_matched – a set of amount/price pairs, one for each order that wasgoed matched te the trade

Sell Order – Limit Order

Params

  • key – API key
  • signature – signature
  • nonce – nonce
  • amount – amount of major currency
  • price – price to sell at
  • book – optional, if not specified, will default to btc_cad

Result / Limit Order

Comebacks JSON dictionary indicating order:

  • id – order id
  • datetime – date and time
  • type – buy or sell (0 – buy, 1 – sell)
  • price – price
  • amount – amount

Sell Order – Market Order

Params

  • key – API key
  • signature – signature
  • nonce – nonce
  • amount – amount of major currency to sell
  • book – optional, if not specified, will default to btc_cad

Result / Market Order

Comebacks JSON dictionary indicating market order:

  • amount – the total amount of the minor currency acquired ter the sale
  • orders_matched – a set of amount/price pairs, one for each order that wasgoed matched ter the trade

Bitcoin Deposit

Payload

  • key – API key
  • signature – signature
  • nonce – nonce

Result

Comebacks a bitcoin deposit address for funding your account.

Bitcoin Withdraw

Payload

  • key – API key
  • signature – signature
  • nonce – nonce
  • amount – The amount to withdraw
  • address – The bitcoin address wij will send the amount to

Result

Bitcoin Specie Deposit

Payload

  • key – API key
  • signature – signature
  • nonce – nonce

Result

Comes back a bitcoin metselspecie deposit address for funding your account.

Bitcoin Metselspecie Withdraw

Payload

  • key – API key
  • signature – signature
  • nonce – nonce
  • amount – The amount to withdraw
  • address – The bitcoin contant address wij will send the amount to

Result

Bitcoin Gold Deposit

Payload

  • key – API key
  • signature – signature
  • nonce – nonce

Result

Comes back a bitcoin gold deposit address for funding your account.

Bitcoin Gold Withdraw

Payload

  • key – API key
  • signature – signature
  • nonce – nonce
  • amount – The amount to withdraw
  • address – The bitcoin gold address wij will send the amount to

Result

Litecoin Deposit

Payload

  • key – API key
  • signature – signature
  • nonce – nonce

Result

Comes back a litecoin deposit address for funding your account.

Litecoin Withdraw

Payload

  • key – API key
  • signature – signature
  • nonce – nonce
  • amount – The amount to withdraw
  • address – The litecoin address wij will send the amount to

Result

Ether Deposit

Payload

  • key – API key
  • signature – signature
  • nonce – nonce

Result

Comebacks the ethereum deposit address for funding your account.

4 comments

  1. Nothing is wrong with bitfinex, I trade on bitfinex all the time. The rumours and it’s effect te cryptocurrency could be meaty. If you don’t know what you are doing te this space one could lightly be derail.

  2. Nicole_mommy-2-3boys
  3. Good to see! I know alot of people were worried about this. Rumors were going around that bitfinex wasgoed hacked. Personally I didn’t believe it, but you know how thesis rumors get around so quickly. So glad to see that they’re wrapping it up. I also feel bad for those who had their funds or anything else tied up on bitfinex during this process!

  4. Changpeng Zhao, CEO of bitfinex, called the stir the platform’s “next big step” te its integral expansion strategy.

Leave a Reply

Your email address will not be published. Required fields are marked *

*