Patent 12014360 was granted and assigned to Lukka (blockchain) on June, 2024 by the United States Patent and Trademark Office.
Systems and methods for gain and loss computation for cryptocurrency transactions. An example method comprises: storing a plurality of cryptocurrency acquisition transactions in an ascending order of respective transaction timestamps; storing a plurality of cryptocurrency disposal transactions in an ascending order of respective transaction timestamps; selecting a cryptocurrency disposal transaction of the plurality of cryptocurrency disposal transactions; selecting, from the plurality of cryptocurrency acquisition transactions, one or more cryptocurrency acquisition transactions, such that a timestamp of each selected cryptocurrency acquisition transaction is less than a timestamp of the selected cryptocurrency disposal transaction; matching the selected cryptocurrency disposal transaction with at least a subset of the selected one or more cryptocurrency acquisition transactions; determining, for each of the matched transactions, a corresponding fiat currency transaction amount; and computing, using the fiat currency transaction amounts, one of: a gain associated with the cryptocurrency disposal transaction or a loss associated with the cryptocurrency disposal transaction.