You need to check the FX rate from the day you acquired the shares, and then from the day you sold them. I use the historical rates at https://www.exchange-rates.org/history/USD/EUR/T personally
If the purchase and sale are through a brokerage account denominated in USD then there is no exchange rate involved in the transaction, so it will not be mentioned on the contract note