aboutsummaryrefslogtreecommitdiffstats
path: root/python/collateral
diff options
context:
space:
mode:
Diffstat (limited to 'python/collateral')
-rw-r--r--python/collateral/jpm.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/python/collateral/jpm.py b/python/collateral/jpm.py
index c5ff41ee..f1813975 100644
--- a/python/collateral/jpm.py
+++ b/python/collateral/jpm.py
@@ -39,10 +39,10 @@ def get_collateral(collat_page):
return float(get_col(collat_page, 200, 300, 1000, 1100)[0].replace(",", ""))
-def load_positions(positions_page):
+def load_positions(positions_page, bottom_offset=25):
anchor = next(c for c in positions_page if c.text.startswith("Total Product Group"))
- bottom = int(anchor["top"]) - 25
- widths = (10, 160, 300, 380, 450, 500, 550, 635, 700, 780, 850, 960, 1000, 1200)
+ bottom = int(anchor["top"]) - bottom_offset
+ widths = (10, 160, 340, 400, 480, 520, 600, 690, 780, 850, 950, 1035, 1100, 1250)
cols = [
get_col(positions_page, 200, bottom, l, r) for l, r in zip(widths, widths[1:])
]