Skip to main content

Python Wallet that enables P&L

Project description

# BitWallet

A python module that provides a wallet that can do P&L

## Installation

Quick install/upgrade with `pip install bitwallet`

## Running

You can get your balances from any number of exchanges by doing:
`bitwallet balances <your name>`. You should have a `<your name>.yaml` file
with the following format:

```
- name: <exchange name - should be a ccxt module>
key: <key>
secret: <secret>
uid: <uid for exchanges that need it>
alias: <optional name - in case you have multiple accounts in single
exchange>
```

All the [ccxt exchanges](https://github.com/ccxt/ccxt/tree/master/python/ccxt)
are supported.

`bitwallet` creates temporary files to avoid hitting your exchanges at every
call. The temporary files are called `<your name>_balances.pkl`. Remove them
every time you make some transactions in order to reload them. Unless you do so
the only thing updated between subsequent calls is the coin-USD exchange rate.

## Notes

To debug run: `clear && rm -f dkl_balances.pkl && PYTHONPATH=. bin/bitwallet
balances <your name>`

Local installation: `python setup.py install`
To run tests: `python setup.py test`

To release, increase version number in setup.py and then `rm -rf dist`, `python
setup.py sdist`, `twine upload dist/*`.


Clean install with updates: `pip install --no-cache-dir -U bitwallet`

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

bitwallet-1.0.8.tar.gz (4.9 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page