Skip to main content

Oh My Share

Oh My Share is an open-source, local Python CLI that lets Claude Code, Codex, Pi, and humans query public listed-equity data through one stable interface.

It ships query software—not a stock-market dataset, hosted API, research platform, or investment advice.

What it provides

Six stable capabilities:

  • search — resolve listed equities
  • quote — latest available price observation
  • bars — unadjusted daily OHLCV
  • company — company profile
  • financials — normalized financial statements
  • actions — dividends, splits, and other corporate actions

Tier 1 covers mainland China, Hong Kong, and major US venues. Canonical identity is MIC:ticker, such as XSHG:600519, XHKG:0700, or XNAS:AAPL; common aliases are accepted when unambiguous.

Requirements

  • Python 3.11 or newer
  • macOS or Linux
  • Network access to the selected public data source

Windows is not part of the v0.1.2 support contract.

Install

From a clone:

uv sync
uv run oh-my-share --help

As an isolated tool from PyPI:

uv tool install oh-my-share
oh-my-share skill install
oh-my-share --help

skill install copies the complete versioned Skill—including the bounded reader and Receipt Schema—to ~/.agents/skills/oh-my-share. Pi and Codex can then use it outside a source checkout.

No account, API key, bundled market data, database, Node runtime, or background service is required.

Query examples

oh-my-share search Apple --market us
oh-my-share quote XNAS:AAPL
oh-my-share bars XSHG:600519 --start 2026-07-01 --end 2026-07-10
oh-my-share company 0700.HK
oh-my-share financials XNAS:AAPL --frequency latest
oh-my-share actions XSHG:600519

Every query command supports --provider and --timeout. An explicit Provider disables fallback. The default timeout is 30 seconds where the upstream adapter can enforce it.

Standard output contains only a compact JSON Receipt. Complete normalized data is written privately to:

~/.oh-my-share/results/<UTC-date>/<uuid>.json

Files use mode 0600; directories use mode 0700. Results are never written to the current repository.

oh-my-share artifacts prune --older-than 30d          # dry-run
oh-my-share artifacts prune --older-than 30d --delete # explicit deletion

See the CLI reference, data contract, and local live validation guide.

Agent integration

The shared Agent Skill is skills/oh-my-share/SKILL.md. It teaches an Agent to:

  1. translate the request into the Canonical CLI;
  2. validate the compact Receipt;
  3. read Artifact metadata first;
  4. use the bundled bounded reader for any selected records;
  5. report the actual Provider and Data Source.

The distribution includes:

  • oh-my-share skill install for user-level Pi and Codex discovery under ~/.agents/skills/oh-my-share;
  • .agents/skills/oh-my-share as a repository-development link to the same Skill;
  • .claude-plugin/plugin.json for Claude Code plugin packaging;
  • one shared Skill implementation—no host-specific data engine.

The Skill never installs the CLI automatically and never dumps a complete Artifact into Agent context. Bundled scripts and Schemas are always resolved relative to the installed SKILL.md, never from a repository path.

Providers and data sources

Oh My Share wraps maintained packages (AKShare, yfinance) and a small set of verified Python Native routes for Eastmoney, Tencent, and Sina. Provider provenance always identifies the actual Data Source.

A v0.1.2 A-share Quote resolves through Tencent then Yahoo. A-share Bars uses verified Eastmoney, Tencent, Sina, and Yahoo routes. Same-source alternate adapters are labeled and do not masquerade as distinct-source resilience.

Coverage and limitations are recorded in the Provider Capability Matrix. Upstream availability, delay, fields, and personal-use conditions can change. Users are responsible for following each source's current terms. Oh My Share does not claim exchange-direct or guaranteed real-time data.

Development

uv run pytest
uv run ruff check .
uv run mypy src
uv build
git diff --check

Committed JSON Schemas live under schemas/. Live tests are opt-in and bounded.

License

Apache-2.0. This license covers the repository software and does not grant rights to third-party market data.

Metadata

Release files for oh-my-share 0.1.2

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

Source distribution (sdist)

Source distribution for oh-my-share 0.1.2
File Size Uploaded
oh_my_share-0.1.2.tar.gz 191.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for oh-my-share 0.1.2
File Interpreter ABI Platform
oh_my_share-0.1.2-py3-none-any.whl Python 3 none any Details

Total release size: 270.6 kB

Release files / oh_my_share-0.1.2.tar.gz

Download URL oh_my_share-0.1.2.tar.gz
Size 191.3 kB
Tags Source
SHA-256 checksum
How to use checksums
82cea7ee8c4e15744c319f44c57dfdb2ff9d2f2096beec81f11ae48629df2559
BLAKE2b-256 checksum
How to use checksums
705ec1cdf014cb155b6af01dfd91340c984b41ac5f8259f3a3ca5daed93f3a71
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 9, 2026.

Transparency log

Release files / oh_my_share-0.1.2-py3-none-any.whl

Download URL oh_my_share-0.1.2-py3-none-any.whl
Size 79.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
596e503a869538aa6673fa8ca6f2b3b29b21117948973455b6dabe5bacf4f567
BLAKE2b-256 checksum
How to use checksums
fbf0a3268ce78c7fd2640b46060e79c6c6de15dbd68188b9e20db69a5938bdbb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 9, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.1.2 This release

2 release files

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