diff --git a/procs/matrix_guidance.pg.sql b/procs/matrix_guidance.pg.sql index 9c8f3e9..85920b9 100644 --- a/procs/matrix_guidance.pg.sql +++ b/procs/matrix_guidance.pg.sql @@ -194,7 +194,7 @@ BEGIN tprice = tp.price, tmath = to_json(tp.math), volume_range = tp.vol::TEXT - FROM pricequote.target_prices tp + FROM pricequote.target_prices_base tp WHERE tp.stlc = q.stlc AND tp.ds = q.v1ds @@ -209,7 +209,7 @@ BEGIN UPDATE pricequote.queue q SET tprice_last = tp2.price - FROM pricequote.target_prices tp2 + FROM pricequote.target_prices_base tp2 WHERE q.last_dataseg IS NOT NULL AND tp2.stlc = q.stlc diff --git a/procs/single_price_call.pg.sql b/procs/single_price_call.pg.sql index c3d7d54..457c7f6 100644 --- a/procs/single_price_call.pg.sql +++ b/procs/single_price_call.pg.sql @@ -265,7 +265,7 @@ BEGIN ,_tmath ,_volume_range FROM - pricequote.target_prices tp + pricequote.target_prices_base tp WHERE tp.stlc = _stlc AND tp.ds = _v1ds @@ -283,7 +283,7 @@ BEGIN INTO _tprice_last FROM - pricequote.target_prices tp + pricequote.target_prices_base tp WHERE tp.stlc = _stlc AND tp.ds = _last_dataseg