# OrderFlux: Crypto Market Intelligence

> Quantitative Binance Spot market microstructure analysis: examine Level 2 order-book depth, bid-ask spreads, visible liquidity imbalance and concentrations, aggressive buy/sell trade flow, and VWAP. No trading credentials required.

OrderFlux: Crypto Market Intelligence is a free AI agent skill on Agensi by Anup, in Trading & Investing. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: Free
- Creator: [Anup](https://www.agensi.io/creators/anup)
- Category: [Trading & Investing](https://www.agensi.io/skills/trading-investing)
- Version: 1.0
- Last updated: 2026-11-22
- Security: scan passed (2026-11-22); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/orderflux-crypto-market-intelligence
- Tags: trading, web3, research, crypto-analysis, binance-spot, order-book, market-microstructure, liquidity-analysis

## About this skill

### OrderFlux: Crypto Market Intelligence

**Read the depth. Understand the flow.

OrderFlux is an AI-agent skill for quantitative cryptocurrency market microstructure analysis. It examines Binance Spot order-book snapshots and recent aggregate trades to reveal visible liquidity conditions, bid-ask spread dynamics, order-book imbalances and aggressive trading activity.

Unlike simple price lookups or candle-based analysis, OrderFlux examines the underlying visible order book and recent executed trades. It combines deterministic Python calculations with an AI-generated analytical report, helping traders, researchers and developers understand market conditions using structured quantitative evidence.

#### What OrderFlux Does

##### 1. Top-of-Book and Spread Analysis
Calculates the best bid, best ask, mid-price, absolute spread and relative spread in basis points and percentage terms. Classifies the observed spread into predefined liquidity regimes.

##### 2. Level 2 Order-Book Depth
Analyses visible bid and ask liquidity at configurable price-distance bands:
- 5 basis points
- 10 basis points
- 25 basis points
- 50 basis points
- Optional extended 100 basis points

##### 3. Order-Book Imbalance
Calculates quote-notional imbalance independently for each supported depth band, identifying whether visible resting liquidity is more concentrated on the bid or ask side.

##### 4. Visible Liquidity Concentrations
Identifies the largest visible bid and ask price-level concentrations, their quantities, quote notionals, distance from mid-price and share of visible side liquidity.

##### 5. Aggressive Trade-Flow Analysis
Uses Binance aggregate-trade maker flags to distinguish buyer-aggressed from seller-aggressed trades.

Calculates:
- Aggressive buy and sell trade counts.
- Base-asset volume.
- Quote-asset notional.
- Net aggressive volume and notional.
- Buy/sell volume ratio.
- Overall and side-specific VWAP.

##### 6. Data Quality Assessment
Checks data completeness, timestamps, freshness, invalid values, duplicate trade IDs, order-book integrity and actual sample coverage.

##### 7. Market Intelligence Reporting
Produces a structured 10-section report combining quantitative metrics, factual observations, analytical interpretation and operational limitations.

#### How It Works

OrderFlux separates market-data retrieval from quantitative analysis.

**Step 1: Retrieve market data**

For live analysis, the skill uses Binance's public Spot REST API through a standalone Python helper, provided the agent environment permits outbound HTTPS.

Alternatively, users can supply structured JSON market data without requiring an external network connection.

**Step 2: Validate and process data**

The retrieved or supplied data is checked against the OrderFlux data contract.

**Step 3: Perform deterministic calculations**

A standalone Python analysis engine uses `decimal.Decimal` arithmetic with 28 digits of working precision to calculate market metrics.

**Step 4: Generate the report**

The AI agent interprets the calculated results and produces a structured market intelligence report, while keeping factual observations separate from interpretation.

#### Who Should Use OrderFlux?

- **Cryptocurrency traders:** Examine visible liquidity and aggressive trading activity.
- **Quantitative researchers:** Study order-book asymmetry and trade-flow metrics.
- **Market analysts:** Generate structured market microstructure reports.
- **Developers:** Integrate deterministic market analysis into AI-assisted workflows.

#### Example Use Cases

- Analysing BTCUSDT or ETHUSDT market conditions.
- Comparing visible bid and ask liquidity.
- Identifying large visible liquidity concentrations.
- Measuring order-book imbalance across depth bands.
- Comparing aggressive buyer and seller activity.
- Analysing VWAP relative to the mid-price.
- Reviewing spread and liquidity conditions.
- Generating structured market intelligence reports from supplied JSON data.

#### Requirements and Data Access

- Python 3.8 or later.
- An AI agent supporting the SKILL.md standard and terminal/shell execution.
- Outbound HTTPS access to Binance public Spot REST endpoints for live data retrieval.
- Alternatively, a user-provided JSON payload conforming to the OrderFlux data contract.

No Binance account, private exchange API key or trading credentials are required.

#### Important Limitations

- Currently supports Binance Spot only.
- Performs on-demand, point-in-time analysis, not continuous monitoring.
- Analyses visible order-book depth, not hidden or iceberg liquidity.
- Visible limit orders can be modified or cancelled.
- Trade-flow conclusions depend on the actual returned trade sample and its time coverage.
- Live retrieval may be unavailable in restricted agent environments; JSON input provides an alternative.

OrderFlux does not place trades, manage exchange accounts, provide guaranteed price predictions or constitute financial advice.

## Requires

- Python

Live market retrieval requires outbound HTTPS to public Binance Spot endpoints. If your agent environment blocks network access, provide a structured market-data JSON payload instead. No Binance account, API key or trading credentials are required.

## Known limitations

- **Exchange Support:** Currently limited to Binance Spot markets.
- **Snapshot-Based Analysis:** Performs on-demand, point-in-time market analysis, not continuous WebSocket monitoring.
- **Visible Liquidity Only:** Analyses displayed Level 2 order-book data. Hidden and iceberg orders are not captured.
- **Dynamic Orders:** Visible liquidity can be modified or cancelled at any time.
- **Network Requirement:** Live Binance data retrieval requires outbound HTTPS access. Restricted environments can use user-provided JSON instead.
- **No Trading:** Does not execute trades, manage exchange accounts or provide financial advice.

## How to use this skill

1. Connect your AI agent to Agensi once: add the MCP server https://mcp.agensi.io/mcp/auth and sign in with your Agensi account (OAuth, no API key). Steps for Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and other agents: https://www.agensi.io/docs/mcp-setup
2. Ask your agent: "Use the OrderFlux: Crypto Market Intelligence skill from Agensi" and describe your task.
3. Your agent loads the skill from Agensi when it needs it. Nothing is downloaded.

## Frequently asked questions

### How does OrderFlux differ from asking a standard AI agent to analyze market trends?

OrderFlux uses a deterministic Python analysis engine to calculate order-book depth, bid-ask spreads, liquidity imbalance, aggressive trade flow and VWAP. Instead of relying on an AI model to perform financial calculations through prompting alone, it provides structured numerical results for the agent to interpret.

### Which AI agents or frameworks can I use with OrderFlux?

OrderFlux follows the SKILL.md standard and is designed for compatible AI agents that support skill loading, Python 3 execution and terminal/shell operations. Live market-data retrieval additionally requires outbound HTTPS access. Alternatively, you can provide structured JSON market data.

### What exactly is included in the OrderFlux skill package?

The package includes two standalone Python scripts: a Binance Spot market-data retrieval helper and a deterministic quantitative analysis engine. It also includes the SKILL.md instructions, reference documentation, JSON data contract and sample inputs and outputs.

### Do I need a paid Binance API subscription or special credentials to use this?

No. OrderFlux uses Binance's public Spot market-data endpoints and does not require a Binance account, paid API subscription or private API credentials. Live data retrieval requires outbound HTTPS access. If your AI agent environment restricts network access, you can provide market data through the supported JSON format.

### Can I use OrderFlux to analyze markets on other exchanges like Coinbase or Kraken?

OrderFlux is currently optimized for Binance Spot pairs only, though its underlying logic can be adapted for other exchanges that provide similar Layer-2 order book and trade flow data.

### How does the skill ensure the accuracy of the quantitative market metrics it reports?

The skill uses a deterministic processing engine to calculate metrics like VWAP and quote-notional imbalance at specific basis point levels, ensuring mathematical precision rather than generative "hallucinations."

### Does OrderFlux execute trades or provide guaranteed trading signals?

No. OrderFlux is an analytical tool only. It does not execute trades, manage exchange accounts or provide guaranteed price predictions. Its outputs describe observed market conditions and are not financial advice.

---

Source: [Agensi](https://www.agensi.io), the marketplace of skills for AI agents. Any MCP-compatible agent (Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and more) connects at https://mcp.agensi.io/mcp/auth and signs in with an Agensi account; setup for every agent: https://www.agensi.io/docs/mcp-setup. Append .md to any skill, guide or docs address on agensi.io for its markdown version.
