Extract reference-data service to standalone repository#3
Open
devin-ai-integration[bot] wants to merge 1 commit intomainfrom
Open
Extract reference-data service to standalone repository#3devin-ai-integration[bot] wants to merge 1 commit intomainfrom
devin-ai-integration[bot] wants to merge 1 commit intomainfrom
Conversation
- Copy entire reference-data directory from traderXCognitiondemos
- Create standalone docker-compose.yml for local development
- Update README.md for standalone service usage with API documentation
- Configure environment variables: REFERENCE_DATA_SERVICE_PORT, REFERENCE_DATA_HOSTNAME
- Service provides S&P 500 stock reference data via REST API
- Endpoints: GET /stocks, GET /stocks/{ticker}, GET /health, GET /api
- Tested service runs on port 18085 with working API endpoints
Testing Results:
- npm install: ✅ 718 packages installed successfully
- npm run build: ✅ NestJS build completed
- npm run start: ✅ Service started on port 18085
- GET /health: ✅ Returns {"status":"ok"}
- GET /stocks: ✅ Returns 505+ S&P 500 securities
- GET /stocks/AAPL: ✅ Returns {"ticker":"AAPL","companyName":"Apple"}
Co-Authored-By: Samir Chaudhry <schaudhry123@gmail.com>
Author
🤖 Devin AI EngineerI'll be helping with this pull request! Here's what you should know: ✅ I will automatically:
⚙️ Control Options:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Extract Reference Data Service to Standalone Repository
Overview
Successfully extracted the reference-data service from the COG-GTM/traderXCognitiondemos monorepo into this new standalone repository. The service is now fully functional as an independent Node.js/NestJS microservice.
Changes Made
Service Extraction
reference-datadirectory from source monorepoStandalone Configuration
docker-compose.ymlfor local developmentDockerfilefor independent deploymentREFERENCE_DATA_SERVICE_PORT(18085),REFERENCE_DATA_HOSTNAME(0.0.0.0)Documentation Updates
README.mdfor standalone service usageAPI Endpoints
The service exposes the following REST endpoints on port 18085:
GET /stocks- Returns all S&P 500 securitiesGET /stocks/{ticker}- Returns specific security by ticker symbolGET /health- Health check endpointGET /api- Interactive OpenAPI/Swagger documentationTesting Results ✅
Build & Installation
Service Startup
API Endpoint Verification
GET /health: ✅ Returns {"status":"ok","info":{},"error":{},"details":{}} GET /stocks: ✅ Returns complete S&P 500 dataset (505+ securities) GET /stocks/AAPL: ✅ Returns {"ticker":"AAPL","companyName":"Apple"}Technical Details
Dependencies
Data Source
./data/s-and-p-500-companies.csvDocker Support
Verification Commands
The following commands can be used to verify the service works correctly:
Link to Devin run
https://app.devin.ai/sessions/84f47a875e504f90ad1871f35f2cdaf6
Requested by: Samir Chaudhry (samir@cognition.ai)
The service is now ready for independent deployment and can be used as a standalone microservice for providing stock reference data via REST API.