diff --git a/api.ts b/api.ts index e236f7d..1960f6b 100644 --- a/api.ts +++ b/api.ts @@ -114,6 +114,8 @@ function apply_guidance(doc: any) { }; } + doc.targetPrice = doc.v1tp ?? doc.v0tp ?? null; + return doc; }