Not able to update current contract through update_sampled_contracts #567
Answered
by
robcarver17
TobiasAntiGravity
asked this question in
Q&A
Replies: 1 comment 1 reply
-
You need to roll
…On Mon, 28 Mar 2022, 12:53 TobiasAntiGravity, ***@***.***> wrote:
Hi
I have now gotten my system to the point where the stack_handler is in
motion on the paper trading account. Very Exiting stuff!!!!
I have, however, met a stubborn problem. Stack_handler crashes on the
first order contract - which is EURO600. It is trying to create an order on
the 202203 contract, which has expired, and therefore crashes.
I investigated and adjusted prices weren't updated since 09.03.2022, so I
amended this. I then proceeded to run the update_sampled_contracts for the
instrument. But, I does not seem to want to update. Running the following
still yields march as current contract;
from sysproduction.data.prices import diagPrices
multiple_prices = diag_prices.get_multiple_prices("EURO600")
multiple_prices.current_contract_dict()
>>>> setOfContracts [('CARRY', '20220600'), ('FORWARD', '20220600'), ('PRICE', '20220300')]
Would very much appreciate any suggestions on what could be done to
resolve this!
—
Reply to this email directly, view it on GitHub
<#567>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/ADCLPEXDXKLZIJR4YHBGT33VCGMSPANCNFSM5R24L62Q>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
TobiasAntiGravity
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi
I have now gotten my system to the point where the stack_handler is in motion on the paper trading account. Very Exiting stuff!!!!
I have, however, met a stubborn problem. Stack_handler crashes on the first order contract - which is EURO600. It is trying to create an order on the 202203 contract, which has expired, and therefore crashes.
I investigated and adjusted prices weren't updated since 09.03.2022, so I amended this. I then proceeded to run the update_sampled_contracts for the instrument. But, I does not seem to want to update. Running the following still yields march as current contract;
Would very much appreciate any suggestions on what could be done to resolve this!
Beta Was this translation helpful? Give feedback.
All reactions