Posts

Showing posts from 2019

How to file crypto tax for free

I just published the scripts that I used to prepare tax for XRP sales. With no or minimal changes, it should work for any crypto, any exchange. The repo is at https://github.com/r0bertz/node-xrp-tax Below is the contents of README.md: XRP Tax This is a collection of scripts to prepare tax for crpyto (not necessarily XRP) sales. A majority of this project deals with XRP Ledger, so it is called "XRP Tax". The end product is a csv file that can be uploaded to http://www.easytxf.com . Things to note Terminology: Symbol : The currency being traded. Currency : The currency you paid/got when buying/selling Symbol. USDT is considered USD. The csv format (except that of the end product) is bitcoin.tax format 1 . The Source column is overloaded. If Action is SEND, Source is actually destination. Only LIFO (Last-In, First-Out) method is implemented. LIFO method is universally applied for a Symbol no matter where the trade actually happened. Like-kind exchange

Announcing https://orderbook.xrp.ninja

Image
I just made a website https://orderbook.xrp.ninja . I have explained why I did it in the front page. I am going to record some of the problems that I had and how I solved them in this post. Prod code doesn't work The code works in development mode. But it doesn't after minified. The error message was: Uncaught Error: [$injector:modulerr] Failed to instantiate module rp due to: Error: [$injector:unpr] Unknown provider: e I found a post on stackoverflow and fixed it like this . Add domain to an existing Letsencrypt cert $ certbot certonly --cert-name rippled.xrp.ninja -d rippled.xrp.ninja,ripple.xrp.ninja,www.xrp.ninja,xrp.ninja,orderbook.xrp.ninja Redirect http traffic to https on lighttpd Add this to lighttpd.con and also enable mod_redirect . $HTTP["scheme"] == "http" { # capture vhost name with regex conditiona -> %0 in redirect pattern # must be the most inner block to the redirect rule $HTTP["host"] =~ ".*&qu

Gulp bash completion

https://www.npmjs.com/package/gulp-bash-completion I tried this. I followed the instructions on the above page, but it didn't work. Then I did the following and it worked: Locate the gulp-completion.bash file installed by the package. Change the echo_gulp_tasks variable in gulp-completion.bash file to gulp --tasks-simple Copy gulp-completion.bash to /etc/bash_completion.d and source the file in current shell. Now try type gulp [space] and hit [enter] , the completion should work. At this time, this npm package is no longer required. So you can uninstall it.

Revive ripple-client-desktop

Update: as of Jan 15, 2019, trading is working. https://github.com/r0bertz/ripple-client-desktop The first goal is to make it fully functional with RippleAPI . Current status is most read only operations are working except order book. Please follow this twitter thread for the most recent updates: This weekend I tried to revive ripple-client-desktop. l I have reached a point at which I can run gulp without any warning on the command line. However, the app stuck at loading. Then I figured out that the client uses an ancient ripple-lib API. — r0bertz (@r0bertz) December 17, 2018