1.1.12 • Published 2 years ago

cpro v1.1.12

Weekly downloads
2
License
MIT
Repository
github
Last release
2 years ago

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.

1.1.1

2 years ago

1.1.8

2 years ago

1.1.6

2 years ago

1.1.5

2 years ago

1.0.6

2 years ago

1.1.4

2 years ago

1.1.3

2 years ago

1.0.4

2 years ago

1.1.2

2 years ago

1.1.12

2 years ago

1.1.11

2 years ago

1.1.10

2 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago