Anatomy of a Chain

In PolyOrbit, a "Chain" is not a single script but a modular workflow constructed from three distinct types of nodes. Understanding these components is essential for building effective automation strategies.

1. The Source Node (The Trigger)

The Source Node is the starting point of every chain. It represents the external event or market state that the system monitors.

  • Function: It listens for specific data changes on the Polymarket protocol.

  • Configuration: You must select a specific Market ID (e.g., "Presidential Election 2028") and the specific outcome you are tracking (e.g., "YES").

  • Status: This node remains in a "Waiting" state until the external event occurs.

2. The Condition Node (The Logic)

The Condition Node acts as the brain of the chain. It processes the data received from the Source Node and determines if the workflow should proceed. It operates on Boolean logic (True/False).

  • Resolution Logic: Checks if the market resolved to the specific outcome you selected (e.g., "IF Result IS YES").

  • Price Logic: Checks if the price of an asset crosses a specific threshold (e.g., "IF Price < $0.30").

  • Gatekeeping: If the condition is met (True), the signal passes to the Action Node. If the condition is not met (False), the Chain stops or terminates to prevent capital loss.

3. The Action Node (The Execution)

The Action Node is the output command. It defines exactly what PolyOrbit should do with your capital once the condition is verified.

  • Buy Action: Uses available USDC to purchase shares in a new Target Market.

  • Sell Action: Liquidates an existing position to USDC.

  • Split Action: Divides the capital into multiple streams, sending a portion to a wallet and the rest to another market.

Last updated