liveBook · Manning

Currency conversion

As explained in Investing for Programmers

Currency conversion is the transformation of a monetary amount from one currency into an equivalent amount in another currency.

Currency conversion transforms monetary values into a shared currency so positions held across exchanges can be valued and summed consistently. section 6.5 section 6.5.1

A practical conversion workflow:

  • Choose a target currency, such as USD. section 6.5.1
  • Extend the exchange mapping when required exchanges are missing; exchange-rate fluctuations add risk. section 6.5.1

Converting a mixed-stock portfolio

Convert Microsoft shares traded in US dollars and BMW shares traded in euros into USD, then calculate each position’s total value from its share count. section 6.5.1

How Investing for Programmers covers it

How deep it goes
Implements exchange mapping, row-wise conversion, and share aggregation, while stopping short of broader exchange-rate risk analysis.
Examples
Uses Microsoft and BMW holdings, exchange mappings, USD conversion, and per-share portfolio calculations.
What you can do after
Apply it via CurrencyConverter and pandas-style DataFrame operations to standardize and aggregate multi-currency holdings.
How it connects
Links currency conversion to asset monitoring, exchanges, DataFrames, stocks, shares, yields, and exchange-rate risk.

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Investing for Programmers. The section links point to the parts of the book it draws on.