1.2.1 • Published 3 years ago

crypto-janitor v1.2.1

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

The Crypto Janitor

Takes the trash out of getting crypto account data

npm version Build Status quality language license

The Crypto Janitor provides a simple interface for

  • Aggregating account transactions
  • Getting USD values for transactions

Features

  • Get transaction data from Bittrex, Coinbase, Coinbase Pro, and Kucoin via API keys
  • Get transaction data from Nexo via CSV import
  • Get transaction data from Ethereum Blockchain via address

Dependencies

This library makes use of the following packages:

  • ccxt - Used to fetch data from exchange connections
  • etherscan-api - Used to fetch data from Ethereum Blockchain

Installation

The Crypto Janitor requires Node.js v12+ to run.

Install The Crypto Janitor from npm

npm install crypto-janitor

Or with yarn

yarn add crypto-janitor

Documentation

The Crypto Janitor API exposes

  • Implemented connections (check em out)
  • Connection base classes (so create your own connections!)
  • Helper function to resolve and connection based on inputs

Implemented Connections

NameTypeParams
BittrexAPI{ apiKey, secret }
CoinbaseAPI{ apiKey, secret }
Coinbase ProAPI{ apiKey, secret, password }
KucoinAPI{ apiKey, secret, password }
EtherscanAddress{ address, apiKey }
NexoCSV{ fileName, loadFileContents }

Base Connections

NameTypeParams
Baseany{ name, type, params }
CCXTAPI{ name, credentials, params }
CSVAPI{ name, fileName, loadFileContents }

Helper Methods

NameParams
resolveConnection{ name, type, params }

Development

Want to contribute? Great!

The Crypto Janitor is written in TypeScript and tested using jest. Make a sure all new features are tested before creating PR.

Build:

npm run build

Run tests:

npm run test

License

MIT

Free Software, Hell Yeah!