Updating Shipped Multiple Prices (March 28, 2024) - Assertion Error Supplied <> Generated #1409
-
Dear PST community, Has anyone else experienced last contract mismatches (AssertionError) with updating the supplied multiple prices as of March 28, 2024 from the development branch and updating with IB? I have downloaded the latest multiple prices from development branch (March 28, 2024) instead of from master as it is further back (August 31, 2023) than one year lookback as of Sept 2024. I was able to run the seed_price_data_from_ib.py successfully for the list of instruments. I am trying to update them following the steps outlined in the "Updating shipped multiple prices" section. Many of instrument codes worked, but about 30 failed--ALUMINIUM, GOLD, LEANHOG, SOYMEAL--excluding ones where current prices are missing (e.g., LME).) Using ALUMINIUM as the example, the supplied multiple prices csv file changed the current contract on March 26, 2024 18:00:00 from contract 20240500 to 20240600 on March 26, 2024 18:00:01 (note this is 1 sec later) and continues until the end of the month. DATETIME,CARRY,CARRY_CONTRACT,PRICE,PRICE_CONTRACT,FORWARD,FORWARD_CONTRACT However, the generated roll calendar and multiple prices have, correctly, based on roll config, the current contract 20240500 until 2024.04.01 (see below). Roll Config: Generated roll calendar: Generated multiple_prices: So, we have a contract mismatch on March 28, 2024 when trying to splice the data between the supplied contract 20240600 and generated current contract 20240500. How does one correct this issue? Do you delete the rows in the supplied multiple file, assuming the newly generated roll calendar and multiple prices are correct? Thanks, Adnan |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 5 replies
-
Please see this discussion, and in particular this comment |
Beta Was this translation helpful? Give feedback.
-
In this case I am tempted to delete the offending rows rather than fix the roll calendar. That's because the new forward contract is missing prices for a few days which would seem to indicate that it was rolled too early perhaps. |
Beta Was this translation helpful? Give feedback.
Please see this discussion, and in particular this comment