import pmxt
kalshi = pmxt.Kalshi()
kalshi_event_1 = kalshi.fetch_event(slug="kxcabout-26mar")
kalshi_event_2 = kalshi.fetch_event(slug="kxgovca-26")
print(kalshi_event_1)
print(kalshi_event_2)
Two issues for Kalshi, the first is the UnifiedEvent description. For kalshi_event_1 the description is description='If {x}0, 2026, then the market resolves to Yes.' Rather than the correct "If {x} is the first member of the Cabinet of Donald Trump to leave or announce they will leave (such as by quitting, being fired, or being impeached) after Mar 10, 2026, then the market resolves to Yes." I assume this is because the underlying code is looking for a common suffix to the description. However a new option was added to the event with slightly different suffix: "If Markwayne Mullin is the first member of the Cabinet of Donald Trump to leave or announce they will leave (such as by quitting, being fired, or being impeached) after Mar 30, 2026, then the market resolves to Yes."
Second is the label in MarketOutcome. In kalshi_event_1 the label is working as intended, however in kalshi_event_2 the label is label=':: Democratic' or label='Not :: Democratic'.
Two issues for Kalshi, the first is the UnifiedEvent description. For kalshi_event_1 the description is description='If {x}0, 2026, then the market resolves to Yes.' Rather than the correct "If {x} is the first member of the Cabinet of Donald Trump to leave or announce they will leave (such as by quitting, being fired, or being impeached) after Mar 10, 2026, then the market resolves to Yes." I assume this is because the underlying code is looking for a common suffix to the description. However a new option was added to the event with slightly different suffix: "If Markwayne Mullin is the first member of the Cabinet of Donald Trump to leave or announce they will leave (such as by quitting, being fired, or being impeached) after Mar 30, 2026, then the market resolves to Yes."
Second is the label in MarketOutcome. In kalshi_event_1 the label is working as intended, however in kalshi_event_2 the label is label=':: Democratic' or label='Not :: Democratic'.