Code Monkey home page Code Monkey logo

nucoin-wallet-sim's Introduction

nucoin-wallet-sim

This python module allows you simulate your nucoin wallet using simple functions.

from nucoin import NucoinWallet, BTC_BRL, NCN_BRL
# 14 de Junho xD
w = NucoinWallet(75.00)
w.freeze(50.00)
w.freeze(25.00)
w.reward(spent=60.00)
w.buy(BRL=39.00,NCN=3000.00)
w.freeze(1000.00)
w.freeze(2000.00)
w.buy_crypto(BRL=90.00,amount=.0003,name='BTC')
w.sell(BRL=5.90, NCN=64.96)
w.melt(3075.00)
# Selling everything the world is melting!
w.sell_crypto(BRL=100.00, amount=  .0003, name='BTC')
w.sell(NCN=w.available["NCN"].value, BRL=w.available["NCN"].convert_to("BRL").value)
print(w)
FREEZE: -50.0 NCN
LEVEL UP: 1 to 2
FREEZE: -25.0 NCN
REWARD: 0.6 NCN from 60.0 BRL spent.
BUY:    3000.0 NCN = 39.0 BRL @ 0.013000
FREEZE: -1000.0 NCN
LEVEL UP: 2 to 4
FREEZE: -2000.0 NCN
LEVEL UP: 4 to 5
(BTC) BUY:    0.00029999 BTC = 90.0 BRL @ 0.300010
(BTC) REWARD: 6.3 NCN from 90.0 BRL spent.
SELL:   64.95 NCN = 5.9 BRL @ 0.090839
MELT: 3075.0 NCN
LEVEL DOWN: 5 to 1
SELL (BTC):   0.00029999 BTC = 100.0 BRL @ 0.333344
SELL:   3016.95 NCN = 165.03 BRL @ 0.054701
------------------------------------------------
---------------- WALLET SNAPSHOT ---------------
------------------------------------------------
1 NCN = R$ 0.05470000
1 BTC = R$ 309471.00
CURRENT LEVEL: 1
NEXT LEVEL: 50.0 NCN = 2.73 BRL
------------------------------------------------
-------------------- REWARDS -------------------
------------------------------------------------
CC: 60.0 BRL and got 0.6 NCN (1.00%)
NCN: 39.0 BRL and got 0.0 NCN (0.00%)
BTC: 90.0 BRL and got 6.3 NCN (7.00%)
MATIC: 0.0 BRL and got 0.0 NCN (0.00%)
------------------------------------------------
In total you spent 189.0 BRL and got 6.9 NCN (3.65%).
------------------------------------------------
-------------------- LIQUID --------------------
------------------------------------------------
NCN: 0.0 NCN = 0.0 BRL
BTC: 0.0 BTC = 0.0 BRL
MATIC: 0.0 MATIC = 0.0 BRL
BRL: 141.93 BRL = 141.93 BRL
------------------------------------------------
In total you have liquid 141.93 BRL and 0.0 BRL frozen.
------------------------------------------------
MEAN PRICE NCN: 3000.0 NCN = 39.0 BRL @ 0.013000
SELL PRICE NCN: 3081.9 NCN = 170.93 BRL @ 0.055463
------------------------------------------------
PROFIT NCN: 131.93 BRL
------------------------------------------------
MEAN PRICE BTC: 0.00029999 BTC = 90.0 BRL @ 0.300010
SELL PRICE BTC: 0.00029999 BTC = 100.0 BRL @ 0.333344
------------------------------------------------
PROFIT BTC: 10.0 BRL
------------------------------------------------
TOTAL_PROFIT: 141.93 BRL
------------------------------------------------
WALLET WORTH: 141.93 BRL
------------------------------------------------

nucoin-wallet-sim's People

Contributors

nucoinha avatar

Watchers

 avatar

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.