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 details)

Uploaded Source

File details

Details for the file bitwallet-1.0.8.tar.gz.

File metadata

  • Download URL: bitwallet-1.0.8.tar.gz
  • Upload date:
  • Size: 4.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for bitwallet-1.0.8.tar.gz
Algorithm Hash digest
SHA256 cd618d1e69baa0e2a94f9a14b2f761324871723fee41dff537b705e6ae93b3a2
MD5 1d1751581377c364ee4e4a97a6934080
BLAKE2b-256 e74362b3e436232c4f29038b01ffba81e00bf836658f9f4759ebd03a9a64ef94

See more details on using hashes here.

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