Code Monkey home page Code Monkey logo

profbit's Introduction

profbit logo

Circle CI codecov Deploy

Track your bitcoin, bitcoin cash, ethereum, and litecoin gains and losses in one place. profbit preview

Development Setup

Requirements

We use Pipenv to manage requirements.

pip install pipenv
pipenv install
pipenv shell
npm install --dev

Server Config

You will first have register an application on Coinbase. When registering your app be sure to add the redirect url i.e. https://app-name.herokuapp.com/complete/coinbase/. Then export the following configuration variables and create the database:

cd profbit

export SECRET_KEY="super-secret-key"
export SOCIAL_AUTH_COINBASE_KEY="coinbase-key"
export SOCIAL_AUTH_COINBASE_SECRET="coinbase-secret"
export FLASK_APP=app.py
export FLASK_DEBUG=1

flask syncdb
npm build

Donate

Profbit is an open source side project. To support development and keep our server running, you can donate using:

  • Bitcoin: 19UsnMKjhm22mFEYKKNHjxdFCfnShTcbPM
  • Bitcoin Cash: 1L7qfnMFdgfrE5qTLDYvQskn3TiubUUpJP
  • Ethereum: 0x97A3D535391A5a87f8362935B26f252E68C25Aca
  • Litecoin: LWk4TL8n866gmLmEvQWSs9V7tBBdyoWjgQ

Attribution

The heart icon was created by Jivan from the Noun Project.

profbit's People

Contributors

dependabot[bot] avatar joshblum avatar peterldowns avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

profbit's Issues

confusion regarding "withdrawn" and "invested"

It's confusing that when "invested" is a negative value, it switches to "withdrawn"

If I've invested $1000, and withdrawn $1500 (after making profits), I've still invested $1000.

If the above is correct, and I'm not misunderstanding, then my proposal is that we show "invested" and "withdrawn" as two separate values.

If I'm misunderstanding, I'd appreciate some clarification :) thanks!

software issue

I noticed that on the upper coin tabs for btc, bch, ltc and eth its not showing how much I invested initially

TypeError: decoding str is not supported

APIError
Traceback (most recent call last):
File "/home/vagrant/.local/share/virtualenvs/learning_apis_app-NnD07vdN/lib/python3.6/site-packages/requests/models.py", line 861, in text
content = str(self.content, encoding, errors='replace')
TypeError: decoding str is not supported

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/home/vagrant/learning_apis_app/learning_apis/routes.py", line 76, in stats_api
response = get_coinbase_stats(access_token, currency, period)
File "/home/vagrant/learning_apis_app/learning_apis/coinbase_stats.py", line 311, in get_coinbase_stats
user, accounts = _get_user_and_accounts(access_token, cache_date)
File "/home/vagrant/learning_apis_app/learning_apis/coinbase_stats.py", line 301, in _get_user_and_accounts
accounts = paginate_response(client, 'get_accounts', **{'limit': '100'})
File "/home/vagrant/learning_apis_app/learning_apis/coinbase_stats.py", line 71, in paginate_response
coinbase_response = coinbase_func(*args, **kwargs)
File "/home/vagrant/.local/share/virtualenvs/learning_apis_app-NnD07vdN/lib/python3.6/site-packages/coinbase/wallet/client.py", line 276, in get_accounts
return self._make_api_object(response, Account)
File "/home/vagrant/.local/share/virtualenvs/learning_apis_app-NnD07vdN/lib/python3.6/site-packages/coinbase/wallet/client.py", line 179, in _make_api_object
blob = response.json()
File "/home/vagrant/.local/share/virtualenvs/learning_apis_app-NnD07vdN/lib/python3.6/site-packages/requests/models.py", line 897, in json
return complexjson.loads(self.text, **kwargs)
File "/home/vagrant/.local/share/virtualenvs/learning_apis_app-NnD07vdN/lib/python3.6/site-packages/requests/models.py", line 869, in text
content = str(self.content, errors='replace')
TypeError: decoding str is not supported

any ideas on this?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.