Coder Social home page Coder Social logo

robjohnston / quadrigacx.api Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 132 KB

A .Net Standard client for the QuadrigaCX cryptocurrency API.

Home Page: https://www.quadrigacx.com/?ref=c7flx49lbhc3b1awgl8pig7l

License: MIT License

C# 100.00%
api-client cryptocurrency bitcoin litecoin ether quadrigacx quadrigacx-api crypto-exchange

quadrigacx.api's Introduction

QuadrigaCX.Api

A .Net Standard client for the QuadrigaCX API.

Features

  • Full coverage of the QuadrigaCX API v2.
  • Simple API abstraction uses similar method names and parameters as the QuadrigaCX API documentation.
  • Exceptions returned from the server include the error code and message to ease troubleshooting.
  • Built using the Task-based Asynchronous Pattern, the recommended asynchronous design pattern for new development.
  • Compatible with .NET Standard 2.0.

Getting started

An account is not required to access the public API methods. However, if you do create an account, please use my referral code (c7flx49lbhc3b1awgl8pig7l) when you register. It's an easy way to give back to this project at no cost to you.

Sign-up with QuadrigaCX

Installation via NuGet

nuget Downloads

Install-Package QuadrigaCX.Api

Example usage

using System;
using System.Threading.Tasks;
using QuadrigaCX.Api;

namespace ConsoleApp1
{
    class Program
    {
        static void Main(string[] args)
        {
            Console.WriteLine("Hello QuadrigaCX!\n");

            using (var client = new QuadrigaClient())
            {
                try
                {
                    var t = Task.Run(() => client.GetTickerInformationAsync("btc_cad"));
                    var ticker = t.Result;

                    Console.WriteLine(string.Format("Bid = {0}, Ask = {1}, Volume = {2}", 
                        ticker.Bid, ticker.Ask, ticker.Volume));
                }
                catch (QuadrigaException qex)
                {
                    Console.WriteLine(string.Format("Error: {0} - {1}", qex.Code, qex.Message));
                }
                catch (Exception ex)
                {
                    Console.WriteLine(ex.Message);
                }
            }

            Console.WriteLine("\nPress any key to exit.");
            Console.ReadKey();
        }
    }
}

Output

Hello QuadrigaCX!

Bid = 9050.00, Ask = 9099.98, Volume = 207.56169241

Press any key to exit.

API Coverage

PUBLIC Covered
Ticker
Order Book
Transactions
AUTHENTICATED Covered
Balance
User Transactions
Open Orders
Lookup Order
Cancel Order
Buy Order - Limit
Buy Order - Market
Sell Order - Limit
Sell Order - Market
Bitcoin Deposit
Bitcoin Withdraw
Bitcoin Cash Deposit
Bitcoin Cash Withdraw
Bitcoin Gold Deposit
Bitcoin Gold Withdraw
Litecoin Deposit
Litecoin Withdraw
Ether Deposit
Ether Withdraw

Errors

The following error have been found through experimentation and are not documented by QuadrigaCX. Errors are listed in numerical order of their code with a sample message beside them.
They are thrown as a QuadrigaException.

  • 21 - Incorrect Amount: $98,544.47CAD exceeds available CAD balance
  • 23 - Incorrect price $1.00CAD is below the minimum of $10.00CAD
  • 101 - Invalid API Code or Invalid Signature
  • 105 - Invalid or missing payload
  • 108 - Address rejected - does not match API withdrawal address
  • 106 - Cannot perform request - not found
  • 300 - Permission denied
  • 301 - Your ability to withdraw is temporarily disabled due to a recent profile or major settings change. For your protection, this measure is in place for 24hrs from the time the change was made

API rate limit

QuadrigaCX seems to operate an out-of-band support group on reddit. From a question posted 2018-01-01:

"You're limited to 30 calls per minute on both the public and private APIs to allow you to get a feel for the API. Once you have managed to trade efficiently, we can consider removing these limits."

Source: https://www.reddit.com/r/QuadrigaCX/comments/88m649/api_limit/

My related projects

Donation addresses

  • Bitcoin: 361kH8JtiP41G5qfwYj3z4vuTwyPiWdNUW
  • Bitcoin Cash: 16z7wZy9aku3P3UeihjLmUDbt3aU6DaHtS
  • Bitcoin Gold: GcqW8X1od3wH5Mwn3MUTf8j3N4iHCaw1PW
  • Ether: 0xb8f65ea3e9fc2c48e02a5e0ab2fab006998bc9fa
  • Litecoin: LMbcKyXLxVGwMFPT1hRaBXb6AoiVgXrYhQ

quadrigacx.api's People

Contributors

robjohnston avatar

Watchers

 avatar  avatar

quadrigacx.api's Issues

API no longer works because QuadrigaCX has applied for creditor protection

Calls to the API return a "301" error with the following text:

Our site is down for maintenance. We apologize for the inconvenience this may cause. We appreciate your patience, and will keep you updated as we know more. Thank you.

The quadrigacx.com website had shown the same message but now shows this message:

Message from QuadrigaCX Board of Directors

January 31, 2019

Dear Customers,

An application for creditor protection in accordance with the Companies' Creditors Arrangement Act (CCAA) was filed today in the Nova Scotia Supreme Court to allow us the opportunity to address the significant financial issues that have affected our ability to serve our customers. The Court is being asked at a preliminary hearing on Tuesday February 5 to appoint a monitor, Ernst & Young Inc., as an independent third party to oversee these proceedings.

For the past weeks, we have worked extensively to address our liquidity issues, which include attempting to locate and secure our very significant cryptocurrency reserves held in cold wallets, and that are required to satisfy customer cryptocurrency balances on deposit, as well as sourcing a financial institution to accept the bank drafts that are to be transferred to us. Unfortunately, these efforts have not been successful. Further updates will be issued after the hearing.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.