From 9abb33d8e77bbf97b481d5d447a0974c4efcfe30 Mon Sep 17 00:00:00 2001 From: Simon Michael Date: Tue, 5 Jan 2021 15:59:58 -0800 Subject: [PATCH] ;valuation: document the price search limit (#1439) --- hledger/hledger.m4.md | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/hledger/hledger.m4.md b/hledger/hledger.m4.md index 938cae489..19fe41570 100644 --- a/hledger/hledger.m4.md +++ b/hledger/hledger.m4.md @@ -783,7 +783,12 @@ in this order of preference a chain of any market prices, including both forward and reverse prices (1 and 2 above), leading from A to B. -Amounts for which no applicable market price can be found, are not converted. +There is a limit to the length of these price chains; if hledger +reaches that length without finding a complete chain or exhausting +all possibilities, it will give up (with a "gave up" message +visible in `--debug=2` output). That limit is currently 1000. + +Amounts for which no suitable market price can be found, are not converted. ## --infer-value: market prices from transactions