Search content
Sort by

Showing 6 of 6 results by VinzzB
Post
Topic
Board Off-topic
Load All CoinMarketCap coins in Excel (non blocking lib) + Auto Refresh
by
VinzzB
on 09/03/2018, 19:19:16 UTC
Hello,

I've created an Excel library that loads all Crypto Currencies from CoinMarketCap into an excel sheet without the user Interface being blocked (async http calls).  

all information, code and the Excel file can be found at https://github.com/VinzzB/Async_CoinMarketCap_Excel_Api

a short overview:

How Does It Work

    This library loads 1500 coins (by default) from CoinMarketCap.com API (CMC-API) in one request and without blocking the user interface. The amount of coins and requests can be adjusted in the Workbook_Open() method by calling the Setup() method in the Reader class.
    Prices are shown in USD by default. You can choose to convert prices to another currency in the Workbook_Open() method by calling the Setup() method in the Reader class. all supported currencies can be found at https://coinmarketcap.com/api/
    The refresh timer is also adjustable through the StartTimer() method.

Code:
Private Sub Workbook_Open()
    
    'load all in one request. (could fail if api is under heavy load) and load prices in EURO.
    reader.Setup 1500, 0, "EUR"
    
    'Load 1500 coins in three requests
    'reader.Setup 500,3, "USD"
    
    'Reload data every 2 minutes.
    reader.StartTimer "ReadApi", "00:02:00"
End Sub

    These function are available in an excel worksheet:
        GetCurrencyFor(coinName As String, dummyDateTime As Date) As Double
        GetCurrencyForTicker(coinTicker As String, dummyDateTime As Date) As Double
        GetCoinOnRank(Rank As Integer, getFieldName As String, dummyDateTime As Date)
        GetCoinForName(coinName As String, getFieldName As String, dummyDateTime As Date) as Variant
        GetCoinForTicker(coinTicker As String, getFieldName As String, dummyDateTime As Date) as Variant
        LastUpdate(dummyDateNow As Date) As Date
        NextUpdate(dummyDateNow As Date) As Date

    All functions uses a 'dummyDateNow' parameter. Use the NOW() function, this will force Excel to update the cell on every refresh. examples for an excel cell formula:

Code:
   GetCurrencyFor("bitcoin", now())

    GetCurrencyForTicker("btc", now())

    GetCoinForTicker("btc", "24hchange", now())

    GetCoinOnRank, GetCoinForName, and GetCoinForTicker uses the 'getFieldName' argument to get specific data from a coin. These are all valid fieldnames:
        id
        circulatingsupply or availablesupply
       totalsupply
        marketcap
        name

        percentchange1h or 1hchange or change1h
        percentchange24h or 24hchange or change24h
        percentchange7d or 7dchange or change7d
       price
        pricebtc or btcprice
        rank
        ticker

        volume24 or volume24h or volume or 24hvolume

    You can also attach the ReadApi() method to a custom ribbon or quick toolbar button which allows you to load (or refresh) the CMC data manually. A button is provided in the excel workbook.

To Start, Download the cmc.xlsm file from here. Some examples are included in the workbook. The first 200 coins ranked on CMC are also listed in a separate worksheet called 'CMC'.

Enjoy!

Post
Topic
Board Announcements (Altcoins)
Re: ANN [BGR] Bongger! Wooooo!!! Weeeeeeeeee!!! Bonggers!!!!! Yeah!!!
by
VinzzB
on 09/01/2018, 23:53:51 UTC
LTC and DGD markets are closed on cryptopia. New exchanges / markets comming soon?
Post
Topic
Board Announcements (Altcoins)
Re: [B3]B3Coin Hybrid POW/POS [Scrypt] - ANTI-INSTAMINE, NO PREMINE, NO ICO, NO IPO
by
VinzzB
on 06/01/2018, 23:14:08 UTC
What about if I never had B3 wallet and want to install it now. Do I have to install the latest version and that's it? Or do I have to configure something?

i've installed the wallet on a clean pc and it was downloading the wrong blockchain from one or more peers.
So i had to download the blockchain manually (only once) and place it in the correct appdata folder. The wallet should work once you have done this.

I think this error i due to people that are still running an old wallet and are broadcasting the wrong chain.
Post
Topic
Board Announcements (Altcoins)
Re: [B3]B3Coin Hybrid POW/POS [Scrypt] - ANTI-INSTAMINE, NO PREMINE, NO ICO, NO IPO
by
VinzzB
on 06/01/2018, 22:55:03 UTC
Anyone else having syncing issues with the new wallet? I'm definitely using 3.1.1.2, but whatever I do, the block height on my wallet is always around 50 blocks behind what it should be. I have a total of 3 wallets, 2 of them are running just fine. I tried copying the blk0001.dat from my working wallets to the bad one, still the same results. I've tried a full resync by deleting everything except for my wallet.dat and config file. The hardware is identical to one of my other working wallets. I've heard that there is a fix for this particular issue, but so far I have not found anyone who knows how to fix this.
https://github.com/B3-Coin/B3-CoinV2/wiki/FAQ

close your b3 wallet and download the blockchain manually from github (see zip file under v3.1.1.1) and extract the zip under the %appdata%\B3-CoinV2.
Delete the old blockchain first! Delete folders 'database'; 'txleveldb' and the file 'blk0001.dat'.  IMPORTANT: Keep your wallet.dat file! Then unzip the correct blockchain and restart the wallet.
Post
Topic
Board Speculation (Altcoins)
Re: PickleRicks (RICKS) Altcoin opened on Cryptopia - Price Skyrocketing
by
VinzzB
on 05/01/2018, 17:00:11 UTC
this is hilarious. I just bought some coins just for fun.

btw: You're not gonna regret it, The payout is huge! says Pickle Rick
Post
Topic
Board Announcements (Altcoins)
Re: [B3]B3Coin Hybrid POW/POS [Scrypt] - ANTI-INSTAMINE, NO PREMINE, NO ICO, NO IPO
by
VinzzB
on 04/01/2018, 01:28:25 UTC
Hello,

fyi,

The wallet will not work correctly if you let it sync from zero on a clean pc (without config files for B3 wallet). I think it downloads the wrong chain from a peer?
I transferred some coins from coinsexchange today but my balance was still 0.

The debug window showed me 87136 blocks with the latest block on 4 jan 2018 @ 0:25:37 GMT, while blockexplorer was already on block 87245.
I tried downloading the blockchain twice, but both chains failed to show my balance.

After downloading the blockchain manually from the github page it started working and my coins are now visible in my wallet.