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