Get market structure
get_market_structureMarket structure of a symbol at a moment, as TraderWAI's rule engine sees it (closed candles only, no look-ahead): confirmed swings, the last break of structure (BOS / CHoCH), trend by structure (higher highs and lows / lower highs and lows), the last impulse with its Fibonacci levels and the live zones (order blocks, flip zones = broken bases, Fibonacci 0.5-0.618 zone, fair value gaps, equal highs/lows) with how many times price has visited each. Use it to explain a past date ("why did the backtest enter here?"), to check that the detection matches the user's chart before trusting a structure backtest, or to pick concrete levels for an analysis. at = an ISO time (default now). Pure calculation on TraderWAI's market feed, no AI.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| at | No | ISO 8601 time to look at (default now): what was known at the close of the last candle before it | |
| symbol | Yes | Symbol (e.g. XAU_USD, EUR_USD, NAS100_USD) | |
| strength | No | Candles on each side of a swing (1-10, default 3; the same parameter as in the rules) | |
| timeframe | Yes | Structure timeframe | |
| minSwingAtr | No | Ignore swings that stand out less than this × ATR(14) (default 0) |