Merge branch 'new_targets'
This commit is contained in:
commit
37fead59ff
@ -195,7 +195,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
|
||||
@ -210,7 +210,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
|
||||
|
@ -383,7 +383,12 @@ BEGIN
|
||||
TRY_CAST(q.last_price_norm AS NUMERIC(20,5)),
|
||||
TRY_CAST(q.listprice_eff AS NUMERIC(20,5)),
|
||||
TRY_CAST(q.last_date AS DATE),
|
||||
.15, 1.0, 1.0
|
||||
--allowable price drop percent
|
||||
.05,
|
||||
--cap on last price
|
||||
1.0,
|
||||
--cap on list percent
|
||||
1.0
|
||||
) g;
|
||||
|
||||
--------------------------------------------------------------------------------
|
||||
|
Loading…
Reference in New Issue
Block a user