I have done zero reading on this one but it makes sense that your basis will be established at the time of buy-in. Ie, I fund coinbase and buy 15k of bitcoin at xxx price, that's my basis. From there it's none of the IRS' business where it goes, until it ends up back in coinbase for me to cash...