Metadata-Version: 2.5
Name: ismet
Version: 0.2.0
Summary: International Stock Market Engine and Toolkit: A unified Python package to connect to major stock exchanges.
Project-URL: Homepage, https://github.com/shreejitverma/ismet
Project-URL: Issues, https://github.com/shreejitverma/ismet/issues
Author: Shreejit Verma
License-Expression: MIT
License-File: LICENSE
Keywords: bse,finance,lse,nasdaq,nse,nyse,stock-market,trading
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Developers
Classifier: Intended Audience :: Financial and Insurance Industry
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Topic :: Office/Business :: Financial :: Investment
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Requires-Python: >=3.9
Requires-Dist: httpx>=0.27.0
Requires-Dist: pydantic>=2.0.0
Requires-Dist: websockets>=12.0
Provides-Extra: dev
Requires-Dist: build>=1.0.0; extra == 'dev'
Requires-Dist: pytest-asyncio>=0.23.0; extra == 'dev'
Requires-Dist: pytest>=8.0.0; extra == 'dev'
Requires-Dist: ruff>=0.4.0; extra == 'dev'
Requires-Dist: twine>=5.0.0; extra == 'dev'
Description-Content-Type: text/markdown

# ISMET: International Stock Market Engine and Toolkit

`ismet` is a high-performance, unified Python package designed to connect to major global stock exchanges. It provides a standardized interface for fetching historical data and streaming real-time market data.

## Features

- **Unified API**: One interface for multiple global exchanges (NYSE, NASDAQ, NSE, BSE, LSE, JPX, HKEX, SZSE).
- **Hybrid Data Fetching**: Supports both REST (historical/snapshot) and WebSockets (real-time streaming).
- **Standardized Models**: Consistent data structures regardless of the underlying exchange API.
- **Async First**: Built with `httpx` and `websockets` for modern, asynchronous applications.

## Installation

```bash
pip install ismet
```

## Quick Start

```python
import asyncio
from ismet import IsmetClient


async def main():
    client = IsmetClient()

    # Get quote from NYSE
    quote = await client.get_quote("AAPL", exchange="NYSE")
    print(f"{quote.symbol}: {quote.price}")

    # Stream real-time data
    async for trade in client.stream_trades(["AAPL", "TSLA"]):
        print(f"New trade: {trade.symbol} @ {trade.price}")


if __name__ == "__main__":
    asyncio.run(main())
```

## License

MIT
