{"action":"created","issue":{"url":"https://api.github.com/repos/bitsofwinter/cryptotaxsweden/issues/2","repository_url":"https://api.github.com/repos/bitsofwinter/cryptotaxsweden","labels_url":"https://api.github.com/repos/bitsofwinter/cryptotaxsweden/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/bitsofwinter/cryptotaxsweden/issues/2/comments","events_url":"https://api.github.com/repos/bitsofwinter/cryptotaxsweden/issues/2/events","html_url":"https://github.com/bitsofwinter/cryptotaxsweden/issues/2","id":314452551,"number":2,"title":"Coin costs while exchanging crypto against each other","user":{"login":"baytuni","id":23097617,"avatar_url":"https://avatars3.githubusercontent.com/u/23097617?v=4","gravatar_id":"","url":"https://api.github.com/users/baytuni","html_url":"https://github.com/baytuni","followers_url":"https://api.github.com/users/baytuni/followers","following_url":"https://api.github.com/users/baytuni/following{/other_user}","gists_url":"https://api.github.com/users/baytuni/gists{/gist_id}","starred_url":"https://api.github.com/users/baytuni/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/baytuni/subscriptions","organizations_url":"https://api.github.com/users/baytuni/orgs","repos_url":"https://api.github.com/users/baytuni/repos","events_url":"https://api.github.com/users/baytuni/events{/privacy}","received_events_url":"https://api.github.com/users/baytuni/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":24,"created_at":"2018-04-15T21:13:28Z","updated_at":"2018-04-30T16:43:24Z","closed_at":null,"author_association":"NONE","body":"Please correct me if I am wrong but as I understand from glancing at the code:\r\n\r\nLet's say you bought BTC with SEK then bought LTC with that BTC then sold that LTC for SEK.\r\nThe cost basis calculation always adds the column \"value in SEK\" price to the average. In the above scenerio The cost for buying that LTC is taken from the cointracking database in SEK on the trade day. But the actual cost is the SEK value of BTC you bought. Similar example is given on the [https://www.skatteverket.se/privat/skatter/vardepapper/andratillgangar/kryptovalutor.4.15532c7b1442f256bae11b60.html](url)  third example down on the page.\r\n![screenshot 2018-04-15 at 23 09 46](https://user-images.githubusercontent.com/23097617/38783439-4aad42ac-4102-11e8-9418-ab4e9ae73a3c.png)\r\n"},"comment":{"url":"https://api.github.com/repos/bitsofwinter/cryptotaxsweden/issues/comments/385456584","html_url":"https://github.com/bitsofwinter/cryptotaxsweden/issues/2#issuecomment-385456584","issue_url":"https://api.github.com/repos/bitsofwinter/cryptotaxsweden/issues/2","id":385456584,"user":{"login":"bitsofwinter","id":37977257,"avatar_url":"https://avatars3.githubusercontent.com/u/37977257?v=4","gravatar_id":"","url":"https://api.github.com/users/bitsofwinter","html_url":"https://github.com/bitsofwinter","followers_url":"https://api.github.com/users/bitsofwinter/followers","following_url":"https://api.github.com/users/bitsofwinter/following{/other_user}","gists_url":"https://api.github.com/users/bitsofwinter/gists{/gist_id}","starred_url":"https://api.github.com/users/bitsofwinter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bitsofwinter/subscriptions","organizations_url":"https://api.github.com/users/bitsofwinter/orgs","repos_url":"https://api.github.com/users/bitsofwinter/repos","events_url":"https://api.github.com/users/bitsofwinter/events{/privacy}","received_events_url":"https://api.github.com/users/bitsofwinter/received_events","type":"User","site_admin":false},"created_at":"2018-04-30T16:43:24Z","updated_at":"2018-04-30T16:43:24Z","author_association":"OWNER","body":"@OriginalMadman I know, the point of the example was to illustrate that option 3 wasn't really an option."}}
{"actor":{"display_login":"bitsofwinter"}}