|
1 |
| -coming soon |
| 1 | +# CryptoCredible |
| 2 | +#### The missing crypto-exchange data exporter |
| 3 | + |
| 4 | +###### _tldr: run locally to export your crypto tx data from popular exchanges via api connections._ |
| 5 | + |
| 6 | +Ever tried to export your crypto transactions from an exchange only to find out there's missing data? 🙄<br> |
| 7 | +...or that the file format is completely different from every other exchange? 🙄<br> |
| 8 | +...or that they didn't account for the fees, so your tax is now too high? 🙄 |
| 9 | + |
| 10 | +Well, this tool is for you... |
| 11 | + |
| 12 | +Install locally, and with a single command, CryptoCredible will safely and securely fetch **all** your transaction data, and output a csv file with nothing missing, in a single standard format. |
| 13 | + |
| 14 | +What's better is the output is designed to work perfectly with the amazing open source tax software [BittyTax](https://github.com/BittyTax/BittyTax). |
| 15 | + |
| 16 | +#### Supported exchanges |
| 17 | +* [Coinbase](https://github.com/leeovery/cryptocredible/tree/develop#coinbase) |
| 18 | +* [Coinbase Pro](https://github.com/leeovery/cryptocredible/tree/develop#coinbase-pro) |
| 19 | +* _...with more coming soon!_ |
| 20 | + |
| 21 | +## Installation |
| 22 | + |
| 23 | +To run CryptoCredible you will first need to install php locally on your system. |
| 24 | + |
| 25 | +#### Apple |
| 26 | +For Mac users this is easy. |
| 27 | + |
| 28 | +Install HomeBrew using their instructions [here](https://brew.sh/), then install php by entering this command into a Terminal window: |
| 29 | + |
| 30 | +```bash |
| 31 | +brew install php |
| 32 | +``` |
| 33 | + |
| 34 | +#### Windows |
| 35 | +Windows is a little more complex. |
| 36 | + |
| 37 | +A standalone phar file will be supported soon, but for now, you could use [Docker](https://docs.docker.com/desktop/windows/install/) or [WSL2](https://www.sitepoint.com/wsl2/). |
| 38 | + |
| 39 | +## Usage |
| 40 | + |
| 41 | +First you need to configure your api connections with your crypto exchange(s) - see below. |
| 42 | + |
| 43 | +Once that's done, open up a terminal window and run the command suitable for your exchange(s): |
| 44 | + |
| 45 | +#### Coinbase |
| 46 | + |
| 47 | +Login into your [Coinbase](https://www.coinbase.com/settings/api) account to create new api credentials, selecting all the permissions with `:read` in them. Paste the credentials into the `.env` file at the root of the project directory using the following structure: |
| 48 | + |
| 49 | +```bash |
| 50 | +COINBASE_API_KEY=[api key here] |
| 51 | +COINBASE_API_SECRET=[api secret here] |
| 52 | +``` |
| 53 | + |
| 54 | +Then run this command in a terminal window from the root directory of this project: |
| 55 | + |
| 56 | +``` php |
| 57 | +php cryptocredible sync:coinbase |
| 58 | +``` |
| 59 | + |
| 60 | +#### Coinbase Pro |
| 61 | + |
| 62 | +Login into your [Coinbase Pro](https://pro.coinbase.com/profile/api) account and create new **view** api credentials. Paste them into the `.env` file at the root of the project directory: |
| 63 | + |
| 64 | +```bash |
| 65 | +COINBASE_PRO_API_KEY=[api secret here] |
| 66 | +COINBASE_PRO_API_SECRET=[api secret here] |
| 67 | +COINBASE_PRO_API_PASSPHRASE=[api passphrase here] |
| 68 | +``` |
| 69 | + |
| 70 | +Then run this command in a terminal window from the root directory of this project: |
| 71 | + |
| 72 | +``` php |
| 73 | +php cryptocredible sync:coinbase-pro |
| 74 | +``` |
| 75 | + |
| 76 | +### Options |
| 77 | + |
| 78 | +Each command accepts the follow options: |
| 79 | + |
| 80 | +| Argument | Shortcut | Description | default | |
| 81 | +|---|---|---|---| |
| 82 | +| --output-dir | -o | Provide a dir on local file system to output csv to | ./../ | |
| 83 | +| --json | -j | Provide a json file rather than fetch txs via api. | n/a | |
| 84 | +| --dump | n/a | Dump all the transactions fetched via the api into a json file. | n/a | |
| 85 | + |
| 86 | +### Is it safe? |
| 87 | + |
| 88 | +Yes, but you are using it without warranty, and at your own risk. Having said that, here are some strong points which make this safe: |
| 89 | +* It runs locally on your own computer, and you have total control over the data and even the code. |
| 90 | +* The exchange connections are configured via the `.env` file using **read-only** api credentials. These credentials never leave your system in a usable format. |
| 91 | +* The code is open-source, so feel free to poke around and ensure it's safe. Other people have probably poked around too. Safety in numbers. |
| 92 | + |
| 93 | +_Trust but verify._ |
| 94 | + |
| 95 | +### Changelog |
| 96 | + |
| 97 | +Please see [CHANGELOG](CHANGELOG.md) for more information what has changed recently. |
| 98 | + |
| 99 | +## Contributing |
| 100 | + |
| 101 | +Please see [CONTRIBUTING](CONTRIBUTING.md) for details. |
| 102 | + |
| 103 | +### Security |
| 104 | + |
| 105 | +If you discover any security related issues, please email me@leeovery.com instead of using the issue tracker. |
| 106 | + |
| 107 | +## Credits |
| 108 | + |
| 109 | +- [Lee Overy](https://github.com/leeovery) |
| 110 | +- [All Contributors](../../contributors) |
| 111 | + |
| 112 | +## License |
| 113 | + |
| 114 | +The MIT License (MIT). Please see [License File](LICENSE.md) for more information. |
0 commit comments