Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,14 @@ This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.htm

---

## [0.2.1] — 2026-09-26

### Fixed

- Every data endpoint (`/stocks`, `/indices`, `/sectors`, `/sectors/{name}/stocks`, `/screener`) was returning `502 upstream_data_error` since 2026-09-24, because PSX started requiring an `X-Req-Id` request token on its data endpoints and the pinned `psxdata` version had no way to send one. Bumped the `psxdata` pin to `1.1.1`, which fetches and sends the token automatically ([mtauha/psxdata#161](https://github.com/mtauha/psxdata/issues/161)). No API changes on our side.

---

## [0.2.0] — 2026-09-02

### Added
Expand Down Expand Up @@ -74,6 +82,7 @@ This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.htm

---

[0.2.1]: https://github.com/mtauha/psxdata-api/releases/tag/v0.2.1
[0.2.0]: https://github.com/mtauha/psxdata-api/releases/tag/v0.2.0
[0.1.3]: https://github.com/mtauha/psxdata-api/releases/tag/v0.1.3
[0.1.2]: https://github.com/mtauha/psxdata-api/releases/tag/v0.1.2
Expand Down
2 changes: 1 addition & 1 deletion api/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# API layer dependencies — installs psxdata from PyPI + FastAPI stack
psxdata==1.1.0
psxdata==1.1.1
fastapi~=0.100
uvicorn[standard]~=0.23
slowapi~=0.1
Expand Down
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@ build-backend = "setuptools.build_meta"

[project]
name = "psxdata-api"
version = "0.2.0"
version = "0.2.1"
description = "FastAPI REST service for Pakistan Stock Exchange (PSX) data"
readme = "README.md"
requires-python = ">=3.11"
license = {file = "LICENSE.md"}
dependencies = [
"psxdata==1.1.0",
"psxdata==1.1.1",
"fastapi[standard]>=0.100",
"uvicorn[standard]>=0.23",
"slowapi>=0.1",
Expand Down
Loading