Definition

What is condition_id?

A condition_id is the identifier for a market's underlying condition in the Conditional Tokens Framework. Every distinct market — including every individual cycle of a recurring Up/Down market — has its own condition_id, which is how a bot addresses the correct market at runtime.

Also called: condition id

Why it matters

Because a new cycle is a new condition, the condition_id must be looked up each cycle rather than stored in configuration. This is the most common reason a working bot silently stops trading: it is still pointed at a market that resolved hours ago.

The common mistake

Putting it in a config file. It is per-market and, on recurring markets, per-cycle — it has to be resolved at runtime every time.

Related terms

Where this comes up

More

Browse the full glossary (32 terms), the strategy database, or the build guides.

Join Discord