cpro

1.1.12 • Public • Published

cpro

Here is a FIX client for the Coinbase Pro api. More information is available at this website https://docs.pro.coinbase.com/#fix-api

Methods and parameters found here: https://docs.cloud.coinbase.com/exchange/docs/messages

Installation

npm install cpro --save

Usage

var options = {
  "key": process.env.KEY,
  "secret": process.env.SECRET,
  "passphrase": process.env.PASSPHRASE,
  "host": 'fix-public.sandbox.pro.coinbase.com',
  "port": "4198"
}


var Fix = require('cpro');
var fix = new Fix(options);

fix.on('message', function(report) {
  console.log(report);
})

fix.connect();

setTimeout(function() {
  fix.sendOrder({symbol: 'ETH-BTC', side: 'sell', price: '0.03507', order_qty: '2.974'});
}, 1000);

Contributing

If you'd like to contribute a feature or bugfix: Thanks! To make sure your fix/feature has a high chance of being included, please read the following guidelines:

  1. Post a pull request.
  2. Make sure there are tests! We will not accept any patch that is not tested. It's a rare time when explicit tests aren't needed. If you have questions about writing tests for paperclip, please open a GitHub issue.

And once there are some contributors, then I would like to thank all of the contributors!

License

It is free software, and may be redistributed under the terms specified in the MIT-LICENSE file.

Copyright

© 2022 Scott Ballantyne. See LICENSE for details.

Readme

Keywords

Package Sidebar

Install

npm i cpro

Weekly Downloads

2

Version

1.1.12

License

MIT

Unpacked Size

43.7 kB

Total Files

31

Last publish

Collaborators

  • ussballantyne