Metadata-Version: 2.5
Name: mantis-ib
Version: 0.2.0
Summary: Interactive Brokers source provider for MANTIS
Author-email: Louis Zhuang <yzhuang@outlook.com>
Requires-Python: >=3.14
Requires-Dist: adbc-driver-postgresql>=1.12.0
Requires-Dist: asof-store[sql-postgres,sql-sqlite]
Requires-Dist: mantis-imf
Requires-Dist: polars[adbc,pyarrow]>=2.0.0
Requires-Dist: pydantic>=2.0
Requires-Dist: service-registrar>=0.2.1
Requires-Dist: zapros>=0.20.0
Description-Content-Type: text/markdown

# MANTIS Interactive Brokers provider

This package provides the IB instrument source for MANTIS IMF through a
`service-registrar` entry point and the provider-specific command line.

Install `mantis-ib` alongside `mantis-imf` to enable the default IB resolver
source and the `ib` CLI.

## Commands

```powershell
ib index
ib scrape-instruments
ib scrape-reconcile
ib scrape-funds
ib scrape-exchanges
```

The `ib index` command requires PostgreSQL and adds trigram indexes to the
instrument and template tables. The instrument scraping commands accept
repeated `--product-type` and `--product-country` filters. Use `--dry-run` to
print the remote product summary without opening a store. Pass `--sql-uri URI`
to override the configured SQL URI for a command. Run `ib <command> --help` to
see command-specific options.

Configure the default SQL URI in the repository's `service-registrar.toml`:

```toml
["asof-store.sql"]
sql_uri = "sqlite:///ib-instruments.db"
```
