quadrigacx

nodejs interface for QuadrigaCX bitcoin exchange

Usage no npm install needed!

<script type="module">
  import quadrigacx from 'https://cdn.skypack.dev/quadrigacx';
</script>

README

Node QuadrigaCX

This is a node.js wrapper for the QuadrigaCX API.

Install

npm install cointrader

var QuadrigaCX = require('quadrigacx');

var quadrigacx = new QuadrigaCX(client_id, key, secret);

var params = {
    amount: 1.1
    price: 342.42
    book: 'btc_cad'	
};

quadrigacx.api('buy', params, function(err, order){
    if(err){
        throw(err)
    }

    console.log(order);
});

Functions

api is the main function which accepts any method name, either public or private, and parameters and makes the request.

api(method, params, cb)

public_request(path, params, cb)

private_request(path, params, cb)