New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

cpro

Package Overview
Dependencies
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cpro

Coinbase Pro Fix Client

latest
Source
npmnpm
Version
1.1.12
Version published
Weekly downloads
16
1500%
Maintainers
1
Weekly downloads
 
Created
Source

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:

  • Post a pull request.
  • 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.

© 2022 Scott Ballantyne. See LICENSE for details.

Keywords

api

FAQs

Package last updated on 22 Jan 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts