Skip to main content

lopjlb

Thin Python client + CLI for LOPJLB quantitative equity research.

Talks only to https://www.lopjlb.com/bff/api/ (never api.lopjlb.com).

Four peer surfaces over one BFF (CLI does not call MCP):

Surface Install / use
REST curl https://www.lopjlb.com/bff/api/…
CLI uv tool install lopjlb · brew install lopjlb/tap/lopjlb · curl -fsSL https://www.lopjlb.com/install.sh | sh
PyPI pip install lopjlb / import lopjlb
Remote MCP Claude / ChatGPT / Cursor → https://www.lopjlb.com/mcp (every plan, OAuth sign-in; Enterprise keys also work)

License: Proprietary — not open source. Copyright © LOPJLB Research. All rights reserved. See the repository LICENSE. You may use this client only to access LOPJLB’s published services under LOPJLB’s terms; you may not relicense or redistribute it as free/open source.

Install

# recommended
uv tool install lopjlb

# or
pipx install lopjlb
pip install lopjlb

# one-liner
curl -fsSL https://www.lopjlb.com/install.sh | sh

# Homebrew (after tap publish)
brew install lopjlb/tap/lopjlb

Free research needs no browser and no API key.

Free (no account)

Sample single-name research — direction, HMM regime, thin signal-card teaser, earnings CallCards. Full PF / composite packs need Pro or an Enterprise key. Anon freemium ticker routes: 30/min · 500/day.

import lopjlb

print(lopjlb.regime())
t = lopjlb.Ticker("AAPL")
print(t.summary())       # direction, regime, teaser (+ next_actions via CLI)
print(t.intel())         # earnings CallCard / rollup
print(t.info)            # company profile

# NLP desk (same /chat pipeline; anon 1/day · free 3/day)
print(lopjlb.Client().ask("What is the current market regime?"))
lopjlb ticker AAPL
lopjlb ticker AAPL intel
lopjlb regime
lopjlb ask "What is the current market regime?"
lopjlb ask "AAPL signal brief" --payload   # done JSON: route/symbol/response/embeds
lopjlb hours           # world exchange open/closed (see /market-hours)
lopjlb treasuries      # US yield curve (see /treasury-rates)
lopjlb search NVDA
lopjlb schema          # CLI → REST map (not MCP)
lopjlb schema metrics  # 180 screener columns (public)
lopjlb doctor

Stdout is JSON (pretty on a TTY). Errors go to stderr as JSON with retryable (true for 429, 5xx and {"error": "network"}, exit 6); GETs retry twice with backoff first. Product research commands do not prompt; lopjlb auth claim is the exception (opens AuthKit and asks for the page code).

Example outputs (illustrative)

// lopjlb regime
{ "success": true, "regime": { "regime": "BULL", "days_in_regime": 10, "date": "2026-10-09" } }

// lopjlb ask "…" --payload (ticker)
{
  "route": "ticker_context",
  "symbol": "NVDA",
  "response": "### Snapshot\n- Directional signal: BUY …",
  "followups": [{"label": "NVDA chart", "prompt": "…"}],
  "embeds": []
}

// lopjlb ask "amazons' chart" --payload
{
  "route": "ticker_context",
  "symbol": "AMZN",
  "embeds": [{"kind": "ticker_chart", "symbol": "AMZN", "range_days": 90}],
  "response": "### AMZN — chart snapshot\n→ /stock/AMZN"
}

More recipes: lopjlb-skill workflows.

Agent Registration (optional)

Bind a WorkOS user to an agent registration via AuthKit (claim UI is hosted by AuthKit — not lopjlb.com). Skill: npx skills add lopjlb/lopjlb-skill. Docs: https://www.lopjlb.com/auth.md

lopjlb auth claim --email you@example.com   # opens verification URI; paste page code
lopjlb auth token --print                   # short-lived Bearer for BFF REST

Claim does not grant Enterprise. Pro follows the claimed user’s Stripe/IAP entitlement. MCP hosts sign in with OAuth at https://www.lopjlb.com/mcp on any plan.

Enterprise (REST)

Mint a key in Settings after a live Enterprise entitlement is active (browser once), then:

export LOPJLB_API_KEY=lopjlb_live_…
lopjlb screen                              # Pro REST via Enterprise key
lopjlb export signals --format csv --out signals.csv   # --out required
lopjlb intraday AAPL
client = lopjlb.Client(api_key="lopjlb_live_…")

Optional MCP debug smoke (hosts should call /mcp directly):

lopjlb debug mcp tools
lopjlb debug mcp call get_market_regime

Errors: 401 bad key · 402 entitlement · 429 rate limit.

Not included

Raw OHLCV dumps / FMP passthrough. Use sparklines / charts via the API or the stock page.

Metadata

Release files for lopjlb 0.1.8

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for lopjlb 0.1.8
File Size Uploaded Provenance Actions
lopjlb-0.1.8.tar.gz 33.8 kB Without provenance Details for lopjlb-0.1.8.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for lopjlb 0.1.8
File Interpreter ABI Platform Actions
lopjlb-0.1.8-py3-none-any.whl Python 3 none any Details for lopjlb-0.1.8-py3-none-any.whl

Total release size: 62.3 kB

Release files / lopjlb-0.1.8.tar.gz

Download URL lopjlb-0.1.8.tar.gz
Size 33.8 kB
Tags Source
SHA-256 checksum
How to use checksums
685b8ab97b593ff77435b10a18d3085b6d1a9d43d7d5e278a5313ce85cac1e40
BLAKE2b-256 checksum
How to use checksums
9a6d4eda6020be33efb59c814f12bc598657d87bfa84b96c36b4d74aa04b1073
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.6 {"installer":{"name":"uv","version":"0.13.6","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / lopjlb-0.1.8-py3-none-any.whl

Download URL lopjlb-0.1.8-py3-none-any.whl
Size 28.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
13b7793550893c85b96b1d9a141c777ed56d874b7c0f1fe1f6899fd19dc62320
BLAKE2b-256 checksum
How to use checksums
eb50705d9fcf17673d100d14ad6170371e7a10194c9d1f5f4c01da0a32316861
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.6 {"installer":{"name":"uv","version":"0.13.6","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Security for lopjlb 0.1.8

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page