Please teach me the SetContractType problem

Author: lilinaugust, Created: 2020-04-06 14:18:30, Updated:

Please note that if the SetContractType is only called once at the time of program initialization, set to quarter, then after entering the main cycle, it is no longer called, when over time, the original quarterly contract position is changed to the "quarterly" or "quarterly" type, at which time the main program continues to call the buy and sell functions in the cycle, whether for the new quarterly contract operation or for the original contract.


More

The grassUsing IO to pass specific contract names, since quarterly deliveries are infrequent, parameters can be modified directly at the time

The grassNew quarter

lilinaugustThank you, thank you.

lilinaugustThis is to ensure that the original contract type is operated on before delivery. The API can only set the button for the week, next week or quarter, not a specific date.