Fintech & Banking
Introduction to Financial Markets: Money, Rates, Risk and Valuation
Beginner8 min readUpdated
Financial software is easier to build when you understand what the numbers mean. This introduction explains why markets exist, how interest rates and central banks shape everything priced in a currency, what a yield curve says, how foreign exchange quotes work, and how discounting turns future cash into a value today.
What you will learn
- Explain the economic functions markets perform and who the participants are
- Describe how policy rates propagate into the rates that businesses and households pay
- Read a yield curve and a foreign exchange quote correctly
- Compute a present value and explain why a future amount is worth less today
- Name the main risk categories and recognise how each shows up in software
Engineers who join a bank, a broker or a fintech quickly notice that the domain vocabulary is not optional. You cannot design a schema for a bond position, or debug a pricing job, or interpret a risk report, without a working idea of what a rate is and why a number in the future is not worth the same as the same number today. The good news is that the foundations are small, quantitative and learnable in an afternoon.
This is that afternoon. It covers the economic ideas — money, rates, the yield curve, foreign exchange, risk and discounting — rather than the market plumbing of venues, order books and settlement, which is the subject of capital markets for engineers. Everything below is educational explanation; none of it is financial advice, and none of it should be used to make investment decisions.
What markets are for
Strip away the jargon and financial markets perform four jobs.
They move capital from savers to users. A pension fund has money and no projects; a company has projects and no money. Markets connect them, in exchange for a claim on future cash — a share of profits, or interest plus repayment.
They transfer risk to whoever is willing to hold it. An airline that fears a fuel price rise, or an exporter that fears a currency move, can hand that exposure to someone whose business is bearing it.
They discover prices. A continuously traded market aggregates the opinions, information and constraints of thousands of participants into a single number that everyone else can use for valuation, accounting and decisions.
They provide liquidity: the ability to convert a holding into cash quickly at a price near the last one. Liquidity is the quiet variable behind most financial crises, because it is abundant right up until it is not.
Participants split into those with money to place (households, pension and insurance funds, sovereign funds), those seeking it (companies, governments), the intermediaries between them (banks, brokers, exchanges, custodians), and the public authorities — central banks and regulators — that set the rules and the price of money itself.
Money and interest rates
An interest rate is the price of borrowing money for a period. It compensates the lender for three things: doing without the money (time), the possibility of not being repaid (credit risk), and the erosion of purchasing power while they wait (inflation).
That last point deserves a distinction that trips people up. The nominal rate is the number on the contract. The real rate is what is left after inflation. A 5% return with 6% inflation loses purchasing power, which is why economic commentary insists on the difference.
Rates are quoted for a period and must be normalised before they can be compared. The convention is annualisation, and how days are counted is itself a convention — actual over 360, actual over 365, 30 over 360 — chosen per market and per instrument. A pricing bug in day-count handling produces small, plausible, wrong numbers, which is the worst kind. When comparing quoted rates and fees expressed in different ways, our percentage calculator handles the routine arithmetic.
Compounding matters as soon as periods are shorter than the quote. Money that grows at r per period for n periods multiplies by (1 + r)^n, not by 1 + n·r. Over one year the difference is small; over a mortgage it is a room in the house.
Central banks and how policy propagates
A central bank does not set the rate your employer pays on a loan. It sets a small number of policy rates at which commercial banks can deposit with it or borrow from it, and it operates in markets to keep short-term rates near that level. Everything else follows by arbitrage.
The transmission runs roughly like this. The policy rate anchors overnight interbank lending. Expectations of future overnight rates determine longer market rates. Those market rates feed the cost of funding for banks, which sets the rates offered on mortgages, corporate loans and deposits. Changed borrowing costs alter spending and investment, which eventually alters inflation — with a lag measured in quarters, not days.
Central banks also act as lender of last resort, oversee payment infrastructure (the settlement systems described in payment systems fundamentals are typically central bank operated), and in recent decades have used balance-sheet tools such as large-scale asset purchases when policy rates approach their lower bound.
For a system builder, the operational consequences are prosaic but real: rates are time series with effective dates, benchmark rates are published on a calendar you do not control, contracts reference specific benchmarks that occasionally get replaced, and historical revisions happen. Store rates as effective-dated facts, never as a single mutable current value.
Reading a yield curve
Plot the yield on comparable debt against the time to maturity and you get the yield curve. It is one chart with a lot of information in it.
Government yields by maturity (illustrative)
maturity 3M 1Y 2Y 5Y 10Y 30Y
yield % 2.90 3.05 3.20 3.45 3.70 3.85
normal : long > short (upward sloping, the usual shape)
flat : little difference across maturities
inverted : short > long (often read as expected rate cuts)
steepening : the gap between long and short is widening
An upward slope is normal: lending for longer means more uncertainty, so lenders want more. A flat or inverted curve says the market expects short rates to fall, which usually means it expects the economy to slow. Curves are watched because they combine expectations about growth, inflation and policy into a single readable shape — and, more practically, because the curve is the discount function used to value almost every other instrument.
Two related terms recur. Yield is the return implied by an instrument's price and its future payments, so price and yield move in opposite directions: pay more today for the same fixed coupons and your return is lower. A spread is the difference between two yields, most usefully between a risky borrower and a government of the same maturity — that gap is the market's price for credit risk.
Present value: the calculation to memorise
Everything in valuation reduces to one idea. A payment of C received n periods from now, discounted at rate r, is worth today:
PV = C / (1 + r)^n
Example: 100 received in 3 years, discount rate 4%
(1 + 0.04)^3 = 1.124864
PV = 100 / 1.124864 = 88.90
Interpretation: 88.90 invested today at 4% compounds to 100 in three years,
so the two amounts are economically equivalent at that rate.
An instrument with several payments is just the sum of the present values of each one:
static double presentValue(double[] cashFlows, double rate) {
double pv = 0.0;
for (int period = 1; period <= cashFlows.length; period++) {
pv += cashFlows[period - 1] / Math.pow(1 + rate, period);
}
return pv;
}
// a 3-year bond, 5% coupon on 1000 nominal, discounted at 4%:
// presentValue(new double[]{50, 50, 1050}, 0.04) -> about 1027.75
Two observations that carry a long way. First, the discount rate does the work: raise it and every distant payment shrinks, which is why long-dated assets react so violently to rate moves. Second, the same machinery values a bond, a project, a lease and a company — only the estimation of the cash flows and the choice of rate differ, and those are where the arguments live. Note also that the example uses a double for clarity; production valuation code uses fixed-precision decimals with agreed rounding rules.
Foreign exchange
A currency pair is quoted as BASE/QUOTE, and the number is how many units of the quote currency buy one unit of the base. In EUR/USD = 1.0850, one euro costs 1.0850 dollars. Dealers quote two prices — a bid at which they buy the base and an ask at which they sell it — and the difference is the spread.
EUR/USD bid 1.0848 / ask 1.0851 spread = 0.0003 (3 "pips")
You sell 1,000,000 EUR at the bid -> receive 1,084,800 USD
You buy 1,000,000 EUR at the ask -> pay 1,085,100 USD
Round trip cost = 300 USD
Spot is the immediate exchange, conventionally settling a couple of business days later. A forward fixes today a rate for exchange at a future date; its price is not a forecast but arithmetic, derived from the two currencies' interest rates so that no risk-free profit is available by borrowing in one currency and lending in the other. That relationship — covered interest parity — is one of the tidiest results in finance.
For engineers the FX pitfalls are concrete: never assume two decimal places, since currencies have zero, two or three; store the pair, direction, rate and timestamp with every conversion, because a converted amount without its rate is unauditable; and decide explicitly whether your system's book of record is single-currency or multi-currency, because retrofitting the answer is painful.
The risk vocabulary
Five categories cover most conversations, and each has a software footprint.
- Market risk — losses from moving prices, rates or exchange rates. Measured with sensitivities and with scenario or historical simulations. Drives heavy nightly compute and a large appetite for time-series data.
- Credit risk — a counterparty fails to pay. Managed with limits, collateral and central clearing. Drives exposure aggregation across systems, which is mostly a data quality problem.
- Liquidity risk — the inability to raise cash, or to exit a position without moving the price. Drives cash-flow projection and stress testing.
- Operational risk — losses from failed processes, systems or people. This is the one engineers own directly: an unavailable service, a failed batch, a mispriced feed, a fat-finger order. Controls, audit trails and reconciliations exist because of it. The framing in risk management transfers well.
- Model risk — the model itself is wrong or misapplied. Handled with independent validation, documented assumptions and version-controlled model code.
Indices, benchmarks and comparison
An index is a rules-based portfolio used as a yardstick: which instruments are included, how they are weighted (by market capitalisation, by price, or equally), and when it is rebalanced. Indices serve as performance benchmarks, as the basis for passive funds, and as the underlying for derivatives.
Separately, benchmark rates are reference interest rates published daily and embedded in contracts. The industry moved away from survey-based benchmarks toward rates computed from actual overnight transactions, on the reasonable principle that a rate anchored in real trades is harder to manipulate than a rate based on estimates. Any system holding rate-linked contracts needs to treat the benchmark as a versioned reference with a publication calendar, fallbacks and holiday rules, not a constant.
Reporting on all of this — performance, exposures, attribution — is a dimensional analytics problem more than a financial one, and the modelling advice in business intelligence applies directly: date dimensions, slowly changing attributes, and a single agreed definition of every measure.
Key takeaways
- Markets exist to allocate capital, transfer risk, discover prices and provide liquidity; every product and job title serves one of those four.
- Interest rates price time, credit and inflation; nominal and real rates differ, and day-count conventions are a real source of bugs.
- Central banks set short-term policy rates and the rest of the curve follows from expectations, with a lag before the effect reaches the economy.
- The yield curve is simultaneously a picture of expectations and the discount function used to value other instruments.
- Present value — divide by one plus the rate, once per period — underlies bond pricing, project appraisal and valuation generally.
- FX quotes are base per quote with a bid-ask spread; always persist the rate, direction and timestamp with any converted amount.
- Market, credit, liquidity, operational and model risk each translate into concrete system requirements, and operational risk is the one engineers own.
Sources and further reading
Frequently asked questions
- Why is money in the future worth less than money today?
- Because today's money can be lent or invested and grow, and because waiting carries the risk that you are never repaid and that inflation erodes what you eventually receive. Discounting expresses all of that in one number, the discount rate, and dividing by one plus that rate for each period converts a future amount into its value today.
- What does an inverted yield curve mean?
- It means investors accept a lower return for lending long than for lending short, which usually implies they expect policy rates to fall — most often because they expect the economy to weaken. It has historically preceded downturns, but it is a signal read from prices rather than a mechanism, and it has produced false alarms.
- How should I store money amounts in code?
- As integers in the currency's minor unit together with the currency code, never as a floating-point number. Binary floating point cannot represent decimal fractions exactly, so sums drift. Prices and rates that need many decimals should use a fixed-precision decimal type with an explicit rounding rule agreed with the business, applied at defined points rather than everywhere.
- Does this guide tell me what to invest in?
- No. It is educational material that explains the mechanics of markets for engineers who build systems that touch them. It contains no recommendations, no forecasts and no advice about buying or selling anything, and it should not be used to make financial decisions. Speak to a regulated adviser for that.