Skip to content

Mid Info Share

Family: Microstructure

What it computes

Emits MidInfoShareTick ticks carrying rho_sign, theta_info, phi_liq, info_share_pct off trade tape.

Available on the live, historical, and replay drives.

Methodology

Madhavan-Richardson-Roomans (1997) two-coefficient OLS on tick-rule sign, info_share = 100·θ²/(θ²+φ²).

See the methodology overview for the citation index.

Inputs

Trade tape.

Key outputs

Rho_sign, theta_info, phi_liq, info_share_pct. The full field set is in the tick table below.

Output schema (MidInfoShareTick)

The field / type / description table below is regenerated from the MidInfoShareTick Rust source by docs-site/scripts/inject-doc-tables.ts on every npm run docs:build. Do not hand-edit between the sentinels.

FieldTypeDescription
symbolArc<str>Underlying symbol (interned).
datei32Trading-session date (YYYYMMDD) at emission time.
ms_of_dayi32Milliseconds since midnight ET at emission time.
rho_signf64Sample lag-1 autocorrelation of the Lee-Ready tick-rule trade-direction series over the rolling window — the MRR ρ parameter, in [−1, 1] past the cold-start guard.
theta_infof64Permanent-component (information-revealing) price-impact coefficient θ recovered from the MRR decomposition. NaN under the documented degenerate-denominator / cold-start guards.
phi_liqf64Transitory-component (liquidity-bouncing) price-impact coefficient φ recovered from the MRR decomposition. NaN under the documented degenerate-denominator / cold-start guards.
info_share_pctf64Information-share percentage 100 · θ² / (θ² + φ²) — the institutional decomposition flagging whether intraday price changes are permanent (information-driven) or transitory (liquidity-driven). NaN under the documented degenerate-denominator / cold-start guards.
n_printsi32Count of admitted trade prints currently inside the rolling window — the MRR N parameter. Values below 4 flag the cold-start regime where every decomposition column stays NaN.

Configuration (MidInfoShareParams)

Regenerated from the MidInfoShareParams Rust source — see the note above.

FieldTypeDescription
contractsSecurityFilterContracts the subscription tracks. Stocks only — the analytic silently ignores option / index trades at the on_tick entry point.
conditionsConditionPolicyTrade-condition admission policy applied to every print.
venuesExchangeFilterExchange / venue admission policy.
window_printsi32Rolling-window length in admitted trade prints. Defaults to [DEFAULT_WINDOW_PRINTS] (200).
min_emit_interval_msi32Minimum interval between consecutive emissions per symbol, in milliseconds. Defaults to [DEFAULT_MIN_EMIT_INTERVAL_MS] (1_000).

Example

Python

python
import kairos_thetadata as kt

client = kt.Client.connect(kt.Credentials.from_env())

def on_event(row):
    print(row)

sub = client.live().mid_info_share(["QQQ"]).on_event(on_event)
sub.wait(timeout_seconds=60.0)

TypeScript

typescript
import { Client, Credentials } from "kairos-thetadata";

const client = await Client.connect(Credentials.fromEnv());

await client
  .live()
  .midInfoShare(["QQQ"])
  .onEvent((tick) => {
    console.log(tick);
  });

Rust

rust
// Cargo.toml:
//   kairos = "0.1"

use kairos::{Client, MidInfoShareRow};

# fn run() -> Result<(), Box<dyn std::error::Error>> {
let client = Client::connect(("me@example.com", "secret"))?;

let sub = client
    .live()
    .mid_info_share(["QQQ"])
    .on_event(|row: &MidInfoShareRow| println!("theta={} phi={}", row.theta_info, row.phi_liq))?;

// ... later, to stop delivery ...
sub.unsubscribe();
# Ok(())
# }

Proprietary. All rights reserved.