<p></p>
<h3>Description</h3>
<p>Transaction side (Buy/Sell) is recorded backwards on Portfolio History and also when exporting transactions to csv</p>
<h4>Version</h4>
<p>This happens on current version v.1.5.3, but it seems that this is a bug from version 1.1.5 and previous versions (August 2019), so transactions made with those versions are wrongly recorded in the database, so they are still wrongly shown at Portfolio / History in current versions.</p>
<h3>Steps to reproduce</h3>
<p>You need to have transactions previous to August 2019.  Go to Portfolio / History and pick a transaction older than August 2019. See below how at the top Bisq says I am the buyer, but in the payment details it says I am the seller.  I have checked it with the bank and I was the seller.</p>
<p><a target="_blank" rel="noopener noreferrer" href="https://user-images.githubusercontent.com/17677608/103409827-d8bed880-4b68-11eb-8f81-e6e0107f0db1.png"><img src="https://user-images.githubusercontent.com/17677608/103409827-d8bed880-4b68-11eb-8f81-e6e0107f0db1.png" alt="image" style="max-width:100%;"></a></p>
<h3>Expected behaviour</h3>
<p>To correctly record and show buy transactions as buy transactions and sell transactions as sell transactions</p>
<h3>Actual behaviour</h3>
<p>Old transactions (older than august 2019) are showed with the side reversed.  This is also happening when exporting those transactions to csv.  Most transactions prior to that date have the side reversed, but there are just a few that are correct. I have not figured out any pattern so far.</p>
<h4>Device or machine</h4>
<p>Windows 7</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/bisq-network/bisq/issues/5035">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AJFFTNTF2EGKRMH26OO2QILSXRTF7ANCNFSM4VPLT6XA">unsubscribe</a>.<img src="https://github.com/notifications/beacon/AJFFTNUVG4DSAIWB5ZDRG2TSXRTF7A5CNFSM4VPLT6XKYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4LSPF5YA.gif" height="1" width="1" alt="" /></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/bisq-network/bisq/issues/5035",
"url": "https://github.com/bisq-network/bisq/issues/5035",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>