Loading repository data…
Loading repository data…
phisix-org / repository
Simple PSEi (formerly known as PHISIX) RESTful API hosted on Google AppEngine
Simple PSEi (formerly known as PHISIX) RESTful API hosted on Google AppEngine
⚠️ IMPORTANT NOTICE: The public phisix-api.appspot.com service has been discontinued for legal reasons.
A takedown notice was received on November 30, 2023, and the service was shut down on December 4, 2023.
To access Philippine Stock Exchange data, please deploy your own instance using the instructions below.
Clone the repository
git clone https://github.com/phisix-org/phisix.git
cd phisix
Build the project
mvn clean compile
Run tests
mvn test
Run full verification (includes integration tests & code coverage)
mvn clean verify
Run locally (for development)
mvn clean package appengine:run
Note: Always use mvn clean package appengine:run during development to ensure:
Stage the application (optional - for testing staging process)
mvn clean package appengine:stage
Run locally (recommended for development)
mvn clean package appengine:run
The API will be available at: http://localhost:8080
http://localhost:8080/stocks.jsonhttp://localhost:8080/stocks.xmlhttp://localhost:8080/stocks/BDO.jsonhttp://localhost:8080/stocks/BDO.2024-01-15.jsonSetup Google Cloud Project
gcloud projects create your-project-id
gcloud config set project your-project-id
gcloud app create
Enable App Engine API
gcloud services enable appengine.googleapis.com
Authenticate
gcloud auth login
gcloud auth application-default login
Update pom.xml - Change the App Engine application name:
<properties>
<appengine.app.name>your-project-id</appengine.app.name>
</properties>
Deploy
mvn clean package appengine:deploy
Your API will be available at: https://your-project-id.appspot.com
phisix/
├── src/
│ ├── main/
│ │ ├── java/
│ │ │ └── com/googlecode/phisix/api/
│ │ │ ├── client/ # PSE website scraping clients
│ │ │ ├── ext/ # JAX-RS providers & filters
│ │ │ ├── parser/ # HTML & JSON parsers
│ │ │ ├── repository/ # Data access layer
│ │ │ └── resource/ # REST API endpoints
│ │ ├── resources/ # Configuration files
│ │ └── webapp/
│ │ ├── WEB-INF/ # Web app configuration
│ │ └── schema/ # XSD schemas
│ └── test/ # Unit & integration tests
├── target/ # Build output
├── pom.xml # Maven configuration
└── README.md # This file
Once running, the following endpoints will be available:
Stocks: look up stocks
GET http://phisix-api.appspot.com/stocks.{json|xml}
GET http://phisix-api.appspot.com/stocks/{symbol}.{json|xml}
GET http://phisix-api.appspot.com/stocks/{symbol}.{yyyy-MM-dd}.{json|xml}
http://phisix-api.appspot.com/schema/stocks/phisix-stocks.xsd