Receive Market Rule

View as MarkdownOpen in Claude

EWrapper.marketRule (

marketRuleId: int. Market Rule ID requested.

priceIncrements: PriceIncrement[]. Returns the available price increments based on the market rule.
)

Returns minimum price increment structure for a particular market rule ID market rule IDs for an instrument on valid exchanges can be obtained from the contractDetails object for that contract

def marketRule(self, marketRuleId: int, priceIncrements: ListOfPriceIncrements):
print("Market Rule ID: ", marketRuleId)
for priceIncrement in priceIncrements:
print("Price Increment.", priceIncrement)