1%
1 words - 1 min read.

Week 7 Recap

Blah blah blah, bitcoin recovery, segwit2x, New York Agreement, blah blah blah. Seems like the news this week has been all about Bitcoin's future, who still supports the New York Agreement, and whether the segwit supporters will honor their 2x pledge. I'm not interested in putting forward a position on this topic, but I will say that it's probably a Really Good Idea to move your Bitcoin off exchange (if you haven't already!) and into a personal wallet in the near future. The folks who pushed segwit (segregated witness) have set a deadline sometime in November for the second part of their proposal (the 2x part of segwit2x) to be implemented. As the community appears strongly divdied on this topic, it seems like we're headed for a hard fork before the end of the year.

forks

If this does occur, it'll be the second hard fork of Bitcoin this year. The first hard fork to take place this year was on August 1st 2017, when Bitcoin Cash was created via hard fork. This hard fork mirrored the Bitcoin blockchain up until the time of the fork: if you had 1 BTC on July 31st, 2017, you now had 1 BTC and 1 BCH on August 1st, 2017. Many sites like Coinbase did not provide a way for customers to access their Bitcoin Cash, and others like localbitcoins.com simply stole your Bitcoin Cash. If you kept your Bitcoin on these platforms, you were unable to take advantage of what was essentially free money due to a lack of support from a number of exchanges. If we have another hard fork in November, you may not have access to the new Bitcoin fork if the exchange you're storing your Bitcoin on does not support the fork. Most folks already know that it's best practice to store your cryptocurrency in a personal wallet or in offline cold storage, but I wanted to reiterate that it's important to do so in the near future if a fork is imminent.

Week 7 Code Changes

To display d3.js charts within the blog is a bit tricky so I've been embedding screenshots of each chart instead of bothering with putting live graphs in. Instead of actually solving the problem of displaying charts in my blog posts, I decided to spend an hour or two rejigging the code to support PhantomJS (a headless webkit browser), which allows me to generate a screenshot of each chart programmatically. This should save me at least 5 minutes a week; I'm not sure what I'll do with all the free time. The code is a bit janky; I used a 500 milliseconds timeout to check to see if each phantomjs job was done rather than properly handling the async callbacks.

Github Repo Here.

PhantomJS Code Snippet:

var metaInfo = [
    { url: baseUrl + '/html/balance-line.html?date=' + curDate + '&weekNum=' + week,
      filename: 'week' + week + '_balance.png',
      width: 800,
      height: 600,
      jobName: "Balance Chart"
    },
    ....
];
var queue = [];
for (var i = 0; i < metaInfo.length; i++) {
    queue .push({});
    openPage(metaInfo[i]);
}
function openPage(info) {
    var page = require('webpage').create(); 
    page.onCallback = function(data) {
        console.log(info.jobName + " page rendered.");
        page.render(imageDestinationPath + info.filename); 
        queue.pop();
    };
    page.open(info.url);
}
//Wait until all jobs are done.
setInterval(function() {
    if (queue.length == 0) {
        phantom.exit();
    }
}, 500);

Node web server code that serves up d3.js html and kicks off the PhantomJS script:

var connect = require('connect');
var serveStatic = require('serve-static');
var spawn = require('child_process').spawn;
connect().use(serveStatic(__dirname)).listen(8080, function(){
    console.log(new Date().toISOString().substring(0, 19) + ' Server running on 8080.');
    var phantom = spawn('phantomjs', [ 'bin/image-render.js' ]);
        phantom.stdout.on('data', function(data) {
        process.stdout.write(new Date().toISOString().substring(0, 19) + ' ' + data.toString());
    });
    phantom.on('close', function(code) {
        console.log(new Date().toISOString().substring(0, 19) + ' PhantomJS script is complete with code ' + code);
        process.exit();
    });
});

Weekly script to run this:

node phantomjs-server.js >> weekly.log

Week 7 Results

This was a fantastic week overall; the winner by a clear margin was AEON again with a whopping gain of +21.05 USD (192.25%) and the biggest loser again was Edgeless (EDG) with a loss of -1.76 USD (-18%). I honestly don't know what the hell is going on with AEON other than maybe some folks are losing confidence in Monero. What I found the most interesting this week was that although the portfolio overall did well, only 3 alt-coins beat out Bitcoin this week: AEON, ZCash, and ZR Coin. Every other alt underperformed Bitcoins huge rally this week. Details below:

week7_summary-2

week7_positions

week7_usd

week7_usd_percent

week7_btc

week7_balance-3

week7_multiline

Symbol Quantity Price September 24th October 1st Change $ Change %
AEON 12.4 2.58 10.95 31.992 21.05 192%
BCN 8500 0.001388 10.31 11.798 1.49 14%
BTC 0.00248323 4400.44 9.17 10.92730462 1.75 19%
BNT 3.42 2.28 7.28 7.7976 0.51 7%
DASH 0.035 317.73 11.69 11.12055 -0.57 -5%
DCT 8.221 0.6231 4.12 5.1225051 1.00 24%
DNT 47.75 0.04651 1.62 2.2208525 0.60 37%
DOGE 6000 0.001064 5.31 6.384 1.07 20%
EDG 11 0.738 9.88 8.118 -1.76 -18%
EOS 7.524 0.7227 4.15 5.4375948 1.29 31%
ETC 0.701 12.92 7.38 9.05692 1.68 23%
ETH 0.029 304.1 8.33 8.8189 0.49 6%
LSK 3.31 5.56 19.16 18.4036 -0.76 -4%
LTC 0.2 54.89 9.54 10.978 1.44 15%
MAID 20 0.4745 9.65 9.49 -0.16 -2%
NXT 94 0.07556 5.63 7.10264 1.47 26%
OAX 5.587 0.5443 2.13 3.0410041 0.91 43%
PLBT 1.346 4.39 6.57 5.90894 -0.66 -10%
PPC 5.618 1.27 6.74 7.13486 0.39 6%
QAU 59.229 0.1876 10.95 11.1113604 0.16 1%
SC 1400 0.004973 6.72 6.9622 0.24 4%
SNC 112.863 0.03376 3.82 3.81025488 -0.01 0%
STRAT 1.844 4.05 7.32 7.4682 0.15 2%
STX 4.167 0.6103 2.00 2.5431201 0.55 27%
XDN 3700 0.002353 7.67 8.7061 1.04 14%
XEM 38 0.2458 8.31 9.3404 1.03 12%
XMR 0.12 93.9 10.83 11.268 0.44 4%
XRP 62 0.2012 10.96 12.4744 1.52 14%
ZEC 0.04 269.65 8.16 10.786 2.63 32%
ZRC 7.808 1.2 7.29 9.3696 2.08 29%
ZRX 28.066 0.2154 4.84 6.0454164 1.21 25%
Totals: 238.48 280.74 42.26 18%

Want to follow along?

If you're Canadian and want to try the same thing, I use QuadrigaCX (wire transfer, interac online) and Coinbase (VISA, Mastercard, AMEX) to purchase bitcoin, ethereum, or litecoin to then transfer to an exchange that supports all these alternative currencies. I used HitBTC to buy all 31 currencies.

Click here for details about this experiment and what the rules are.

© 2018. All Rights Reserved.

Proudly published with Ghost