Skip to main content

Chart Library Python SDK — the stock market memory for AI agents

Project description

Chart Library Python SDK

Pattern intelligence for AI agents. Search 24 million historical chart patterns and see what happened next.

Install

pip install chartlibrary

Quick Start

from chartlibrary import ChartLibrary

cl = ChartLibrary(api_key="cl_your_key")  # or set CHART_LIBRARY_KEY env var

# One call — full intelligence
intel = cl.intelligence("NVDA")
print(f"Top match: {intel['matches'][0]['symbol']} {intel['matches'][0]['date']}")
print(f"5-day outlook: {intel['follow_through']['horizon_returns']['5']}")
print(f"Market regime: {intel['regime']['spy_summary'][:100]}...")

# Market regime snapshot
regime = cl.regime()
for sym, data in regime["regime"].items():
    print(f"{sym}: {data['avg_10d']:+.1f}% 10d outlook")

# Pattern search
results = cl.search("AAPL 2024-06-15")
for match in results["results"][:5]:
    print(f"  {match['symbol']} {match['date']} — {match['match_score']}%")

Endpoints

Method What it does
cl.intelligence(symbol) One-call full picture (matches + regime + summary)
cl.regime() Market-wide regime snapshot (SPY + QQQ + 11 sectors)
cl.regime_detail(symbol) Detailed regime analysis with overlay data
cl.search(query) Pattern similarity search
cl.analyze(query) Search + follow-through + summary
cl.discover() Daily top patterns
cl.status() Database stats

Free API Key

Get one at chartlibrary.io/developers — 200 calls/day, no credit card.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

chartlibrary-0.2.0.tar.gz (6.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

chartlibrary-0.2.0-py3-none-any.whl (6.8 kB view details)

Uploaded Python 3

File details

Details for the file chartlibrary-0.2.0.tar.gz.

File metadata

  • Download URL: chartlibrary-0.2.0.tar.gz
  • Upload date:
  • Size: 6.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.2

File hashes

Hashes for chartlibrary-0.2.0.tar.gz
Algorithm Hash digest
SHA256 4f506c42a432cabacde79eb930dbc3ab9bbb96f4367818d4e546ceccf3e9c428
MD5 b7ede195f4fa6576ba74cc8eafa1f314
BLAKE2b-256 ee3bb466c13d2046e3086c670528bbb30387cfbb6c39b7faeaedd1d1e37c0607

See more details on using hashes here.

File details

Details for the file chartlibrary-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: chartlibrary-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 6.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.2

File hashes

Hashes for chartlibrary-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 dd9655d0127982b3504310d168f358f1b82877aeadcf5ea9089b9df6956aac4b
MD5 fb9c9798a7cbb47033b66f78c5bc9eaa
BLAKE2b-256 a6334c60f4bffff7abb361722ea311f669d99160c4691edcd6fc73291e5236f7

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page