Repository: rotki/rotki

Issue:
Import Data > Nexo
## Import Data > Nexo

Error Message in Red > Invalid CSV format, missing required field: 'Currency'

## Logs

<!-- Before being able to provide logs you need to enable debug logging on rotki, which is off by default.
For information on how to enable it check here: https://rotki.readthedocs.io/en/latest/contribute.html#id2

Attach the relevant part of the logs to the issue, making sure to omit any sensitive/identifiable information. Or join [our discord](https://discord.com/invite/aGCxHG7) and DM it to somebody from our team.

-->


### System Description


Operating system: MacOS 12.3.1
Rotki version: 1.24.1



Discussion:
Hello @B0ll3D3rF1ck3r This would mean that either the format has changed in the exported CSV or something is bad with the file. We would need that you post the head of the file + some rows (to keep info private you can modify numbers but keeping the real) or you can also sent it to the dev team in discord. Here is the invite https://discord.gg/aGCxHG7 and you can see us with special labels and colors in the top of the persons at the server
Transaction,Type,Input Currency,Input Amount,Output Currency,Output Amount,USD Equivalent,Details,Outstanding Loan,Date / Time
NXT1isX0Refua,Interest,ETH,0.00178799,ETH,0.00178799,$1.98,"approved / ETH Interest Earned",$0.00,2022-07-14 07:00:07
NXTNru1bVwXqN,ExchangeToWithdraw,GBPX,-1000.00000000,GBP,1000.00000000,$1936.905,"rejected / GBPX to GBP",$0.00,2022-07-13 09:41:49
NXT0holq0qpzw,LockingTermDeposit,MATIC,-3055.00000000,MATIC,3055.00000000,$4641.17433,"approved / Transfer from Savings Wallet to Term Wallet",$0.00,2022-03-22 15:58:56
NXTGjeCTHAXxg,Deposit,MATIC,3050.00000000,MATIC,3050.00000000,$4639.42515,"approved / GGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGG",$0.00,2022-03-22 15:52:33
NXT9aSBjiAOjq,Deposit,MATIC,5.00000000,MATIC,5.00000000,$7.6345,"approved / GGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGG",$0.00,2022-03-22 15:45:25

> Transaction,Type,Input Currency,Input Amount,Output Currency,Output Amount,USD Equivalent,Details,Outstanding Loan,Date / Time NXT1isX0Refua,Interest,ETH,0.00178799,ETH,0.00178799,$1.98,"approved / ETH Interest Earned",$0.00,2022-07-14 07:00:07 NXTNru1bVwXqN,ExchangeToWithdraw,GBPX,-1000.00000000,GBP,1000.00000000,$1936.905,"rejected / GBPX to GBP",$0.00,2022-07-13 09:41:49 NXT0holq0qpzw,LockingTermDeposit,MATIC,-3055.00000000,MATIC,3055.00000000,$4641.17433,"approved / Transfer from Savings Wallet to Term Wallet",$0.00,2022-03-22 15:58:56 NXTGjeCTHAXxg,Deposit,MATIC,3050.00000000,MATIC,3050.00000000,$4639.42515,"approved / GGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGG",$0.00,2022-03-22 15:52:33 NXT9aSBjiAOjq,Deposit,MATIC,5.00000000,MATIC,5.00000000,$7.6345,"approved / GGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGG",$0.00,2022-03-22 15:45:25

Just had the same issue and saw the issue was reported but no data, so here is some
> Transaction,Type,Input Currency,Input Amount,Output Currency,Output Amount,USD Equivalent,Details,Outstanding Loan,Date / Time NXT1isX0Refua,Interest,ETH,0.00178799,ETH,0.00178799,$1.98,"approved / ETH Interest Earned",$0.00,2022-07-14 07:00:07 NXTNru1bVwXqN,ExchangeToWithdraw,GBPX,-1000.00000000,GBP,1000.00000000,$1936.905,"rejected / GBPX to GBP",$0.00,2022-07-13 09:41:49 NXT0holq0qpzw,LockingTermDeposit,MATIC,-3055.00000000,MATIC,3055.00000000,$4641.17433,"approved / Transfer from Savings Wallet to Term Wallet",$0.00,2022-03-22 15:58:56 NXTGjeCTHAXxg,Deposit,MATIC,3050.00000000,MATIC,3050.00000000,$4639.42515,"approved / GGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGG",$0.00,2022-03-22 15:52:33 NXT9aSBjiAOjq,Deposit,MATIC,5.00000000,MATIC,5.00000000,$7.6345,"approved / GGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGG",$0.00,2022-03-22 15:45:25

Hello! Thank you very much for the example. Do you know if there are multiple CSVs files that can be exported from nexo? Or is this the only one?
A single csv file 

Note: I only have 372 transaction on nexo, so no idea if they split and or at which points.
So I guess at this point we have to assume Nexo has completely changed their csv format and we need to adjust?
Yes.

Daniel CIMA

> On 16 Jul 2022, at 04:36, Lefteris Karapetsas ***@***.***> wrote:
> 
> ﻿
> So I guess at this point we have to assume Nexo has completely changed their csv format and we need to adjust?
> 
> —
> Reply to this email directly, view it on GitHub, or unsubscribe.
> You are receiving this because you were mentioned.


Resolving patch:
diff --git a/rotkehlchen/data_import/importers/nexo.py b/rotkehlchen/data_import/importers/nexo.py
--- a/rotkehlchen/data_import/importers/nexo.py
+++ b/rotkehlchen/data_import/importers/nexo.py
@@ -42,6 +42,7 @@ def _consume_nexo(
         ignored_entries = (
             'ExchangeToWithdraw',
             'DepositToExchange',
+            'Repayment',  # informational loan operation
             'UnlockingTermDeposit',  # Move between nexo wallets
             'LockingTermDeposit',  # Move between nexo wallets
             'TransferIn',  # Transfer between nexo wallets
@@ -58,15 +59,15 @@ def _consume_nexo(
             log.debug(f'Ignoring rejected nexo entry {csv_row}')
             return
 
-        asset = asset_from_nexo(csv_row['Currency'])
-        amount = deserialize_asset_amount_force_positive(csv_row['Amount'])
+        asset = asset_from_nexo(csv_row['Output Currency'])
+        amount = deserialize_asset_amount_force_positive(csv_row['Output Amount'])
         entry_type = csv_row['Type']
         transaction = csv_row['Transaction']
 
-        if entry_type == 'Exchange':
+        if entry_type in ('Exchange', 'CreditCardStatus'):
             self.db.msg_aggregator.add_warning(
-                'Found exchange transaction in nexo csv import but the entry will be ignored '
-                'since not enough information is provided about the trade.',
+                'Found exchange/credit card status transaction in nexo csv import but the entry '
+                'will be ignored since not enough information is provided about the trade.',
             )
             return
         if entry_type in ('Deposit', 'ExchangeDepositedOn'):
@@ -111,13 +112,13 @@ def _consume_nexo(
                 notes=f'{entry_type} from Nexo',
             )
             self.add_ledger_action(cursor, action)
-        elif entry_type in ('Interest', 'Bonus', 'Dividend', 'FixedTermInterest'):
+        elif entry_type in ('Interest', 'Bonus', 'Dividend', 'FixedTermInterest', 'Cashback', 'ReferralBonus'):  # noqa: E501
             # A user shared a CSV file where some entries marked as interest had negative amounts.
             # we couldn't find information about this since they seem internal transactions made
             # by nexo but they appear like a trade from asset -> nexo in order to gain interest
             # in nexo. There seems to always be another entry with the amount that the user
             # received so we'll ignore interest rows with negative amounts.
-            if deserialize_asset_amount(csv_row['Amount']) < 0:
+            if deserialize_asset_amount(csv_row['Output Amount']) < 0:
                 log.debug(f'Ignoring nexo entry {csv_row} with negative interest')
                 return
             action = LedgerAction(
@@ -133,6 +134,22 @@ def _consume_nexo(
                 notes=f'{entry_type} from Nexo',
             )
             self.add_ledger_action(cursor, action)
+        elif entry_type == 'Liquidation':
+            input_asset = asset_from_nexo(csv_row['Input Currency'])
+            input_amount = deserialize_asset_amount_force_positive(csv_row['Input Amount'])
+            action = LedgerAction(
+                identifier=0,
+                timestamp=timestamp,
+                action_type=LedgerActionType.LOSS,
+                location=Location.NEXO,
+                asset=input_asset,
+                amount=input_amount,
+                rate=None,
+                rate_asset=None,
+                link=transaction,
+                notes=f'{entry_type} from Nexo',
+            )
+            self.add_ledger_action(cursor, action)
         elif entry_type in ignored_entries:
             pass
         else:


Test patch:
diff --git a/rotkehlchen/tests/data/nexo.csv b/rotkehlchen/tests/data/nexo.csv
--- a/rotkehlchen/tests/data/nexo.csv
+++ b/rotkehlchen/tests/data/nexo.csv
@@ -1,19 +1,24 @@
-Transaction,Type,Currency,Amount,USD Equivalent,Details,Outstanding Loan,Date / Time
-NXT0000000001,LockingTermDeposit,USDC,-1,$1.1226435,approved / Transfer from Savings Wallet to Term Wallet,$0.00,2021-03-06 09:51:54
-NXT0000000002,Interest,USDC,1,$1.16806918161,approved / USDC Interest Earned,$0.00,2021-03-06 01:20:20
-NXT0000000003,ExchangeDepositedOn,EUR,10,$15.1411,approved / EUR,$0.00,2021-02-26 19:09:00
-NXT0000000004,DepositToExchange,EUR,100,$120.1509,approved / EUR Top Up,$0.00,2021-02-26 14:58:12
-NXT0000000005,WithdrawExchanged,EUR,-2000.79,$2500.63591346,approved / EUR Withdrawal,$0.00,2020-12-16 15:09:24
-NXT0000000006,ExchangeToWithdraw,USDC,-2000.79,$2500.5364681,approved / User,$0.00,2020-12-16 21:18:33
-NXT0000000007,Dividend,NEXO,10.3585507,$3.43448965222,approved / Loyalty Dividend,$0.00,2020-08-15 12:01:55
-NXT0000000008,ExchangeToWithdraw,USDC,-2000,$2500.5,rejected / USER,$0.00,2020-08-15 01:10:12
-NXT0000000009,Dividend,NEXO,22.5653042,$16.0708424630,approved / Base Dividend,$0.00,2019-08-15 17:01:04
-NXT0000000010,ExchangeDepositedOn,EUR,10000,$11174.47,approved / USDC,$0.00,2019-08-15 23:47:01
-NXT0000000011,Deposit,NEXO,1.00001,$5487.0248909704,approved / 0x999999999849662f1106541b0d2e78be4445e6d8d870ac8616a3cf79de969c9b,$0.00,2019-05-24 17:50:10
-NXT0000000012,Withdrawal,BTC,-0.9995,$5574.2115,approved / BTC withdrawal,$0.00,2019-04-24 16:18:19
-NXT0000000013,Deposit,BTC,1,$5579.7,approved / 3699999999999999999999999,$0.00,2019-04-24 14:42:44
-NXT0000000014,Interest,USD,-10,-$10,approved / Interest,$0.00,2020-04-24 14:42:44
-NXT0000000015,Interest,NEXONEXO,10,$10,approved / Interest,$0.00,2020-04-24 14:43:44
-NXT0000000016,FixedTermInterest,ETH,10,$10,approved / Term Deposit Interest,$0.00,2020-04-25 14:43:44
-NXT0000000017,UnlockingTermDeposit,ETH,10,$10,approved / Transfer from Term Wallet to Savings Wallet,$0.00,2020-04-25 14:45:44
-
+Transaction,Type,Input Currency,Input Amount,Output Currency,Output Amount,USD Equivalent,Details,Outstanding Loan,Date / Time
+NXTZOvzs3be6e,FixedTermInterest,GBPX,127.5520683,GBPX,127.5520683,$166.15914566,approved / Term Deposit Interest,$0.00,2022-02-01 07:01:00
+NXTNru1bVwXqN,ExchangeToWithdraw,GBPX,-1000.00000000,GBP,1000.00000000,$1936.905,"rejected / GBPX to GBP",$0.00,2022-07-13 09:41:49
+NXT0holq0qpzw,LockingTermDeposit,MATIC,-3055.00000000,MATIC,3055.00000000,$4641.17433,"approved / Transfer from Savings Wallet to Term Wallet",$0.00,2022-03-22 15:58:56
+NXTGjeCTHAXxg,Deposit,MATIC,3050.00000000,MATIC,3050.00000000,$4639.42515,"approved / GGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGG",$0.00,2022-03-22 15:52:33
+NXT9aSBjiAOjq,Deposit,MATIC,5.00000000,MATIC,5.00000000,$7.6345,"approved / GGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGG",$0.00,2022-03-22 15:45:25
+NXTabcdefghij,Cashback,NEXO,0.10000001,NEXO,0.10000001,$0.40174998,"approved / a description of vendor | | details from vendor",$100.00,2022-03-01 00:00:00
+NXTabcdefghij,CreditCardStatus,USD,-80.35000000,GBP,61.39000000,$80.35,"approved / a description of vendor | | details from vendor",$100.00,2022-03-01 00:00:00
+NXTabcdefghij,CreditCardStatus,USD,-1.31000000,GBP,1.00000000,$1.31,"rejected / a description of vendor | | details from vendor",$1.31,2022-04-01 00:00:00
+NXTabcdefghij,Liquidation,GBPX,-710.82000000,GBPX,710.82000000,$930.6076743,"approved / Fiat Repayment",$930.61,2022-04-09 00:00:00
+NXTabcdefghij,ReferralBonus,BTC,0.00999999,BTC,0.00999999,$99.99971452,"approved / Referral bonus",$0.00,2022-04-10 00:00:00
+NXTabcdefghij,Repayment,USD,930.60767430,USD,0.00000000,$930.6076743,"approved / Fiat Repayment",$0.00,2022-02-11 00:00:00
+NXTabcdefghij,TransferOut,BTC,-14.59000000,BTC,-14.59000000,$125000.60224953,"approved / Transfer from Savings Wallet to Credit Line Wallet",$0.00,2022-03-06 00:00:00
+NXTigcmvsts2L,Deposit,USDC,595.92,USDC,595.92,$595.62204,approved / 0xd4e7f6bf268f8c123b7f922dea3ea4331e00c0b7bee237cae2bca4d1b84fff75,$0.00,2022-04-13 19:15:00
+NXTUXIqDoz2V7,DepositToExchange,GBP,54,GBPX,54,$70.524,approved / GBP Top Up,$0.00,2022-04-17 10:41:00
+NXTsDa2LR4Pcw,Exchange,GBPX,-54,BTC,0.0017316,$69.85,approved / Exchange GBPX to Bitcoin,$0.00,2022-04-17 10:41:00
+NXT6r1e6CtfNI,ExchangeDepositedOn,GBP,54,GBPX,54,$70.524,approved / GBP to GBPX,$0.00,2022-04-17 10:41:00
+NXTPv1ZpdnIZa,ExchangeToWithdraw,GBPX,-5000,GBP,5000,$7079.345,approved / GBPX to GBP,$0.00,2021-05-21 21:28:00
+NXTGWynyMmm5K,Interest,USDC,1.09246793,USDC,1.09246793,$1.09,approved / USDC Interest Earned,$0.00,2022-04-20 07:00:00
+NXT1isX0Refua,Interest,ETH,0.00178799,ETH,0.00178799,$1.98,"approved / ETH Interest Earned",$0.00,2022-07-14 07:00:07
+NXTntAhYzNwvP,LockingTermDeposit,GBPX,-6785.49,GBPX,6785.49,$8827.80035118,approved / Transfer from Savings Wallet to Term Wallet,$0.00,2022-04-19 00:58:00
+NXT682mMVx8bw,UnlockingTermDeposit,GBPX,6657.94,GBPX,6657.94,$8673.14530538,approved / Transfer from Term Wallet to Savings Wallet,$0.00,2022-04-18 07:01:00
+NXTdtS1ezWxeN,Withdrawal,BTC,-0.0017316,BTC,0.0017316,$69.86150519,approved / BTC withdrawal,$0.00,2022-04-17 10:43:00
+NXTo1JlZsUlAd,WithdrawExchanged,GBP,-5000,GBP,5000,$7093.005,approved / GBP withdrawal,$0.00,2021-05-25 11:00:00
\ No newline at end of file
diff --git a/rotkehlchen/tests/utils/dataimport.py b/rotkehlchen/tests/utils/dataimport.py
--- a/rotkehlchen/tests/utils/dataimport.py
+++ b/rotkehlchen/tests/utils/dataimport.py
@@ -13,6 +13,7 @@
     A_EUR,
     A_KNC,
     A_LTC,
+    A_MATIC,
     A_SAI,
     A_UNI,
     A_USD,
@@ -30,7 +31,7 @@
 from rotkehlchen.exchanges.data_structures import AssetMovement, Trade
 from rotkehlchen.fval import FVal
 from rotkehlchen.rotkehlchen import Rotkehlchen
-from rotkehlchen.tests.utils.constants import A_AXS, A_CRO, A_MCO, A_XMR
+from rotkehlchen.tests.utils.constants import A_AXS, A_CRO, A_GBP, A_MCO, A_XMR
 from rotkehlchen.types import (
     AssetAmount,
     AssetMovementCategory,
@@ -697,133 +698,144 @@ def assert_nexo_results(rotki: Rotkehlchen):
     warnings = rotki.msg_aggregator.consume_warnings()
     errors = rotki.msg_aggregator.consume_errors()
     assert len(errors) == 0
-    assert len(warnings) == 0
+    assert len(warnings) == 2
+    assert 'Found exchange/credit card status transaction in nexo csv' in str(warnings)
 
     expected_actions = [LedgerAction(
-        identifier=3,
-        timestamp=Timestamp(1565888464),
+        identifier=1,
+        timestamp=Timestamp(1643698860),
         action_type=LedgerActionType.INCOME,
         location=Location.NEXO,
-        amount=AssetAmount(FVal('22.5653042')),
-        asset=symbol_to_asset_or_token('NEXO'),
+        amount=AssetAmount(FVal('127.5520683')),
+        asset=A_GBP,
         rate=None,
         rate_asset=None,
-        link='NXT0000000009',
-        notes='Dividend from Nexo',
+        link='NXTZOvzs3be6e',
+        notes='FixedTermInterest from Nexo',
     ), LedgerAction(
-        identifier=4,
-        timestamp=Timestamp(1587739424),
+        identifier=2,
+        timestamp=Timestamp(1646092800),
         action_type=LedgerActionType.INCOME,
         location=Location.NEXO,
-        amount=AssetAmount(FVal('10')),
+        amount=AssetAmount(FVal('0.10000001')),
         asset=symbol_to_asset_or_token('NEXO'),
         rate=None,
         rate_asset=None,
-        link='NXT0000000015',
-        notes='Interest from Nexo',
+        link='NXTabcdefghij',
+        notes='Cashback from Nexo',
     ), LedgerAction(
-        identifier=5,
-        timestamp=Timestamp(1587825824),
+        identifier=3,
+        timestamp=Timestamp(1649462400),
+        action_type=LedgerActionType.LOSS,
+        location=Location.NEXO,
+        amount=AssetAmount(FVal('710.82000000')),
+        asset=A_GBP,
+        rate=None,
+        rate_asset=None,
+        link='NXTabcdefghij',
+        notes='Liquidation from Nexo',
+    ), LedgerAction(
+        identifier=4,
+        timestamp=Timestamp(1649548800),
         action_type=LedgerActionType.INCOME,
         location=Location.NEXO,
-        amount=AssetAmount(FVal('10')),
-        asset=symbol_to_asset_or_token('ETH'),
+        amount=AssetAmount(FVal('0.00999999')),
+        asset=A_BTC,
         rate=None,
         rate_asset=None,
-        link='NXT0000000016',
-        notes='FixedTermInterest from Nexo',
+        link='NXTabcdefghij',
+        notes='ReferralBonus from Nexo',
     ), LedgerAction(
-        identifier=2,
-        timestamp=Timestamp(1597492915),
+        identifier=5,
+        timestamp=Timestamp(1650438000),
         action_type=LedgerActionType.INCOME,
         location=Location.NEXO,
-        amount=AssetAmount(FVal('10.3585507')),
-        asset=symbol_to_asset_or_token('NEXO'),
+        amount=AssetAmount(FVal('1.09246793')),
+        asset=A_USDC,
         rate=None,
         rate_asset=None,
-        link='NXT0000000007',
-        notes='Dividend from Nexo',
+        link='NXTGWynyMmm5K',
+        notes='Interest from Nexo',
     ), LedgerAction(
-        identifier=1,
-        timestamp=Timestamp(1614993620),
+        identifier=6,
+        timestamp=Timestamp(1657782007),
         action_type=LedgerActionType.INCOME,
         location=Location.NEXO,
-        amount=AssetAmount(FVal('1')),
-        asset=symbol_to_asset_or_token('USDC'),
+        amount=AssetAmount(FVal('0.00178799')),
+        asset=A_ETH,
         rate=None,
         rate_asset=None,
-        link='NXT0000000002',
+        link='NXT1isX0Refua',
         notes='Interest from Nexo',
     )]
 
     expected_movements = [AssetMovement(
         location=Location.NEXO,
-        category=AssetMovementCategory.DEPOSIT,
-        timestamp=Timestamp(1556116964),
+        category=AssetMovementCategory.WITHDRAWAL,
+        timestamp=Timestamp(1621940400),
         address=None,
         transaction_id=None,
-        asset=A_BTC,
-        amount=AssetAmount(FVal('1')),
+        asset=A_GBP,
+        amount=AssetAmount(FVal('5000')),
         fee_asset=A_USD,
         fee=Fee(ZERO),
-        link='NXT0000000013',
+        link='NXTo1JlZsUlAd',
     ), AssetMovement(
         location=Location.NEXO,
-        category=AssetMovementCategory.WITHDRAWAL,
-        timestamp=Timestamp(1556122699),
+        category=AssetMovementCategory.DEPOSIT,
+        timestamp=Timestamp(1647963925),
         address=None,
         transaction_id=None,
-        asset=A_BTC,
-        amount=AssetAmount(FVal('0.9995')),
+        asset=A_MATIC,
+        amount=AssetAmount(FVal('5.00000000')),
         fee_asset=A_USD,
         fee=Fee(ZERO),
-        link='NXT0000000012',
+        link='NXT9aSBjiAOjq',
     ), AssetMovement(
         location=Location.NEXO,
         category=AssetMovementCategory.DEPOSIT,
-        timestamp=Timestamp(1558720210),
+        timestamp=Timestamp(1647964353),
         address=None,
         transaction_id=None,
-        asset=symbol_to_asset_or_token('NEXO'),
-        amount=AssetAmount(FVal('1.00001')),
+        asset=A_MATIC,
+        amount=AssetAmount(FVal('3050.00000000')),
         fee_asset=A_USD,
         fee=Fee(ZERO),
-        link='NXT0000000011',
+        link='NXTGjeCTHAXxg',
     ), AssetMovement(
         location=Location.NEXO,
         category=AssetMovementCategory.DEPOSIT,
-        timestamp=Timestamp(1565912821),
+        timestamp=Timestamp(1649877300),
         address=None,
         transaction_id=None,
-        asset=A_EUR,
-        amount=AssetAmount(FVal('10000')),
+        asset=A_USDC,
+        amount=AssetAmount(FVal('595.92')),
         fee_asset=A_USD,
         fee=Fee(ZERO),
-        link='NXT0000000010',
+        link='NXTigcmvsts2L',
     ), AssetMovement(
         location=Location.NEXO,
-        category=AssetMovementCategory.WITHDRAWAL,
-        timestamp=Timestamp(1608131364),
+        category=AssetMovementCategory.DEPOSIT,
+        timestamp=Timestamp(1650192060),
         address=None,
         transaction_id=None,
-        asset=A_EUR,
-        amount=AssetAmount(FVal('2000.79')),
+        asset=A_GBP,
+        amount=AssetAmount(FVal('54')),
         fee_asset=A_USD,
         fee=Fee(ZERO),
-        link='NXT0000000005',
+        link='NXT6r1e6CtfNI',
     ), AssetMovement(
         location=Location.NEXO,
-        category=AssetMovementCategory.DEPOSIT,
-        timestamp=Timestamp(1614366540),
+        category=AssetMovementCategory.WITHDRAWAL,
+        timestamp=Timestamp(1650192180),
         address=None,
         transaction_id=None,
-        asset=A_EUR,
-        amount=AssetAmount(FVal('10')),
+        asset=A_BTC,
+        amount=AssetAmount(FVal('0.0017316')),
         fee_asset=A_USD,
         fee=Fee(ZERO),
-        link='NXT0000000003',
+        link='NXTdtS1ezWxeN',
     )]
-
     assert ledger_actions == expected_actions
     assert asset_movements == expected_movements