Nordnet
Worksheet Name:
Ensure that your Excel file contains the necessary data in an appropriate worksheet. The code does not rely on a specific worksheet name.
Column Headers:
The code expects specific columns in your worksheet. Make sure your columns have the following headers:
Handelsdag
Oppgjørsdag
Transaksjonstype
Type verdipapir
Verdipapir (Ticker)
ISIN
Antall
Valuta
Kurtasje
Beløp
Totale Avgifter
Vekslingskurs
Verdipapir
Verifikationsnummer
Transaksjonstekst
Kjøpsverdi
Data Entries:
Enter your data in the appropriate columns below the headers. The code processes rows based on specific columns and their corresponding values.
Date Formats:
Ensure that date-related columns like Handelsdag and Oppgjørsdag follow the appropriate date format. The code uses
DateTime.Parseto read date values.
Numeric Values:
Numeric columns should contain valid numeric values. The code expects positive numeric values for Antall, Beløp, Totale Avgifter, Vekslingskurs, and Kjøpsverdi columns.
Currency Codes:
The Valuta column should contain valid currency codes. Ensure that currency codes are in uppercase (e.g., USD, EUR).
Instrument Type:
Type verdipapir column indicates the type of the instrument.
Transaction Types:
The Transaksjonstype column defines the type of transaction, and the code handles various transaction types accordingly.
ISIN, Ticker, and Instrument Name:
Ensure that ISIN and Verdipapir (Ticker) columns are provided for each row. The code uses Verdipapir for the instrument name.
Positive Values:
The code assumes positive values for Antall, Beløp, Totale Avgifter, Vekslingskurs, and Kjøpsverdi columns.
Optional Columns:
Include optional columns if relevant to your data:
Kurtasje
Verifikationsnummer
Transaksjonstekst
Save the File:
Save your Excel file in a common format (e.g., .xlsx).
By following these guidelines and replacing the placeholders with your actual column names, your Excel file will align with the expectations of the provided Nordnet Excel Converter code. If you have any specific business rules or requirements related to your data, make sure to follow those as well. If you have any questions or need further assistance, feel free to ask!