# SML Orderflow Imbalance

> SML Orderflow Imbalance is a paid API for AI agents from scriptmasterlabs.com, paid per call via x402, $0.01/call, status unknown (last checked 2026-10-12).

Returns real-time order flow imbalance data for a given trading venue or instrument, priced at $0.01 USDC per call via x402 pay-per-call protocol.

## Facts

- Endpoint: POST https://scriptmasterlabs.com/v1/market/orderflow-imbalance?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-12
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/sml-orderflow-imbalance-f8f7ec51
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_Q4F8ISk0RxVfwK4HL6weo

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability sml-orderflow-imbalance-f8f7ec51 -d '<json body>'
```

Example prompt: I observed 850 buy volume and 320 sell volume from the Coinbase BTC-USD feed at 14:32 UTC today — can you run the SML Orderflow Imbalance calculation on that and tell me the imbalance signal?

## When to prefer this

Use this endpoint when you need a real-time, per-call orderflow imbalance signal derived from your own observed buy and sell volume data for a specific market source, and you want to pay only per successful call via x402 micropayment. Prefer this over batch or subscription-based market data services when latency matters and you want verified, delivery-confirmed data with proof.

## Known failure modes

- Payment not accepted — x402 payment header missing or insufficient funds result in 402 response with no data
- Invalid source identifier — unrecognized or unsupported source string causes error
- Missing required fields — omitting buy_volume or sell_volume returns validation error
- Stale or malformed observed_at timestamp — improper date format causes rejection
- Service unavailable — live data feed for the requested source may be temporarily offline

## How this service works

Pay-per-call APIs and a read-only provider check for x402 buyers. Inspect evidence and live terms before a caller-controlled payment; accept delivery with proof.

## Output

Returns a JSON payload with the SML Orderflow Imbalance product values for the given source, buy volume, sell volume, and timestamp — live route-specific metrics are revealed only after successful x402 payment and accepted delivery.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "source": {
   "type": "string"
  },
  "buy_volume": {
   "type": "number"
  },
  "observed_at": {
   "type": "string"
  },
  "sell_volume": {
   "type": "number"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "note": "Route-specific live values are returned after successful accepted delivery.",
  "product": "SML Orderflow Imbalance"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/sml-orderflow-imbalance-f8f7ec51/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from scriptmasterlabs.com](https://www.zero.xyz/host/scriptmasterlabs.com/llms.txt)
