What does Buyer Pricing, Fee Steps and Accessory Attach conclude, in numbers, about “Five Days Open: Currency Risk in a Live Buying Window”?

Answer: Chapter 5 computes the currency risk of a five-day buying window: under fat tails the 99% loss is 0.0253 to 0.0395 of the cost, and at a normal margin a buffer costs more than it saves.

Scope of the numbers: Marked boxes separate published evidence, runnable Python calculations (16 programs), classical sources and the author's hypotheses.

中文版

Data table

The numbers below are printed verbatim by the chapter's Python program and can be reproduced by running it. standard-library Python onlyprinted values that match the answer: 0.0253, 0.0395, 99

dailynormal 95normal 99t 95t 99t ES99on 30000
0.00450.01670.02370.01620.02530.0319758
0.00700.02610.03710.02510.03950.05101185
Show the full program
# Chapter 5. p09: The five-day window as a currency risk. The buyer
# quotes in TWD on day 0 and pays the boutique in euros or yen up to
# five trading days later. Daily log changes have volatility s (0.0045
# and 0.0070, illustrative); we compare the normal value at risk
# z s sqrt(5) with a fat-tailed Student t (4 degrees of freedom, scaled
# to the same variance) simulated over 100000 windows, and the expected
# shortfall beyond the 99% level. Loss is the rise of the foreign price
# in TWD. Seed 110.
import math
import random
from statistics import NormalDist

NU, DAYS, RUNS = 4, 5, 100000

def t_step(rng):
    z = rng.gauss(0.0, 1.0)
    chi = rng.gammavariate(NU / 2.0, 2.0)
    return z / math.sqrt(chi / NU) / math.sqrt(NU / (NU - 2.0))

def window(rng, s):
    return math.expm1(s * math.fsum(t_step(rng) for _ in range(DAYS)))

if __name__ == "__main__":
    rng = random.Random(110)
    print("     daily   normal 95   normal 99   t 95     t 99     t ES99"
          "   on 30000")
    for s in (0.0045, 0.0070):
        n95 = math.expm1(NormalDist().inv_cdf(0.95) * s * math.sqrt(DAYS))
        n99 = math.expm1(NormalDist().inv_cdf(0.99) * s * math.sqrt(DAYS))
        xs = sorted(window(rng, s) for _ in range(RUNS))
        t95 = xs[int(0.95 * RUNS)]
        t99 = xs[int(0.99 * RUNS)]
        es = math.fsum(xs[int(0.99 * RUNS):]) / (RUNS - int(0.99 * RUNS))
        print("     {:.4f}  {:9.4f}   {:9.4f}   {:.4f}   {:.4f}   {:.4f}"
              "   {:8.0f}".format(s, n95, n99, t95, t99, es, 30000 * t99))

Single source and citation

Fan, Y. (2026). Cross-Border Buyer Dynamic Pricing, Fee-Threshold Payment Routing and Accessory Attach Economics (Version 1.0.0), Chapter 5: Five Days Open: Currency Risk in a Live Buying Window. 5D Library. DOI pending

DOI pending · monograph page goes live after publication · 5DL-B-110 · v1.0.0 · CC-BY-NC-ND-4.0

BibTeX
@book{fan2026110,
  author    = {Fan, Yafu},
  title     = {Cross-Border Buyer Dynamic Pricing, Fee-Threshold Payment Routing and Accessory Attach Economics},
  year      = {2026},
  publisher = {5D Library},
  edition   = {1.0.0},
  note      = {DOI pending}
}

Other chapter answers in this book