Metadata-Version: 2.4
Name: fidelity-helper
Version: 0.1.1
Summary: Fetch Fidelity transactions
Project-URL: Homepage, https://github.com/righteffort/finance-helper/tree/main/python/fidelity-helper
Project-URL: Source, https://github.com/righteffort/finance-helper.git
Project-URL: Documentation, https://righteffort.github.io/finance-helper/python/fidelity-helper
Project-URL: Issues, https://github.com/righteffort/finance-helper/issues
Author-email: Ted Romer <tromer@gmail.com>
License-Expression: MIT
License-File: LICENSE
Keywords: banking,fidelity,finance
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Requires-Python: >=3.10
Requires-Dist: pydantic>=2.12.5
Requires-Dist: pystache>=0.6.8
Description-Content-Type: text/markdown

# fidelity-helper

Retrieve Fidelity transaction data via fetch calls to fidelity.com in the context of a browser.

[API documentation](https://righteffort.github.io/finance-helper/python/fidelity-helper)

## Usage

```python
from datetime import date
from fidelity_helper import Fidelity

# In this example the callback assumes page.evaluate is provided by your browser
# automation framework.
fidelity = Fidelity(lambda expr: page.evaluate(expr, await_promise=True))

# Get transactions for specific accounts and date range
transactions = await fidelity.get_transactions(
    accounts=["123456789", "987654321"], start=date(2024, 1, 1), end=date(2024, 1, 31)
)

for t in transactions:
    print(f"{t.date}\t${t.amount}\t{t.description}")
```

See [fidelity_example.py](https://github.com/righteffort/finance-helper/tree/main/python/fidelity-example/fidelity_example.py) for a working example.
