Giter Site home page Giter Site logo

c20's Introduction

c20

Build Status

Keep track of the value of your https://crypto20.com/ investment.

Config

num_tokens: <int> - Number of tokens owned>
currency: <string> - Currency to show token value in (eg. GBP) Default is 'USD'
total_investment: <int> - Total amount invested in C20 *Should be the same currency as {currency}*)
status_format: <string> - Custom format string for the message

Format String Options

nav - Token NAV value
token_sum - Total value for all your tokens in your currency
num_tokens - Number of tokens you have specified in config
currency - The currency you have chosen
total_investment - The amount of money you invested
exchange_rate - The current exchange rate to your currency from USD
growth_sum - The value increase from your investment cost to the current value_per_token * num_tokens
growth_percent - The percentage increase to your investment

Format String Examples

Some examples when building your string format.

This is the default string format if none is specified

C20: NAV: {nav} USD - Value: {token_sum} {currency} ({growth_percent})
C20: NAV: 1.3022 USD - Value: 13219.93 SEK (+32.2%)
C20: Value: {token_sum} {currency} ({growth_percent})
C20: Value: 13219.93 SEK (+32.2%)
C20: NAV: {nav} - Tokens: {num_tokens} - Value: {token_sum}{currency}
C20: NAV: 1.3022 - Tokens: 1200 - Value: 13219.93SEK
{token_sum}kr ({growth_percent})
13219.93kr (-11.9%)

Usage

pip install c20
echo "num_tokens: <tokens>" > ~/.config/c20.yaml
echo "total_investment: <investment>" >> ~/.config/c20.yaml
c20

Development

pip install -e .
pip install -r requirements.txt
# Run tests
tox

c20's People

Contributors

marhag87 avatar propyless avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

Forkers

propyless

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.