Skip to content
Open
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
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
The diff you're trying to view is too large. We only load the first 3000 changed files.
Empty file added creds.env
Empty file.
65 changes: 65 additions & 0 deletions financial-data-agent/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
# Financial Data Agent

This project is designed to retrieve financial data for requested companies using the Gemini AI model. It provides a structured approach to interact with the Gemini API and serves financial data through a RESTful API.

## Project Structure

- **src/**: Contains the source code for the application.
- **index.ts**: Entry point of the application.
- **services/**: Contains service classes for interacting with the Gemini AI model and processing financial data.
- **geminiClient.ts**: Client for interacting with the Gemini AI model.
- **financialDataService.ts**: Service for retrieving and formatting financial data.
- **controllers/**: Contains controllers for handling incoming requests.
- **companyDataController.ts**: Controller for managing company data requests.
- **routes/**: Contains route definitions for the application.
- **companyRoutes.ts**: Routes for company data requests.
- **types/**: Contains TypeScript interfaces for data structures.
- **index.ts**: Defines interfaces for CompanyData and FinancialData.

- **config/**: Contains configuration files.
- **geminiConfig.ts**: Configuration for the Gemini AI model, including API keys and endpoints.

- **tests/**: Contains unit tests for the application.
- **geminiClient.test.ts**: Tests for the GeminiClient class.
- **financialDataService.test.ts**: Tests for the FinancialDataService class.
- **companyDataController.test.ts**: Tests for the CompanyDataController class.

- **package.json**: Lists project dependencies and scripts.
- **tsconfig.json**: TypeScript configuration file.
- **README.md**: Documentation for the project.

## Setup Instructions

1. Clone the repository:
```
git clone <repository-url>
```

2. Navigate to the project directory:
```
cd financial-data-agent
```

3. Install dependencies:
```
npm install
```

4. Configure the Gemini AI model by updating the `config/geminiConfig.ts` file with your API keys and endpoint URLs.

5. Start the application:
```
npm start
```

## Usage

To retrieve financial data for a specific company, send a GET request to the `/api/company-data/:companyName` endpoint, where `:companyName` is the name of the company you want to query.

## Contributing

Contributions are welcome! Please open an issue or submit a pull request for any improvements or bug fixes.

## License

This project is licensed under the MIT License.
6 changes: 6 additions & 0 deletions financial-data-agent/config/geminiConfig.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
export const geminiConfig = {
apiKey: 'YOUR_API_KEY_HERE',
apiSecret: 'YOUR_API_SECRET_HERE',
endpointUrl: 'https://api.gemini.com/v1',
timeout: 5000, // timeout in milliseconds
};
16 changes: 16 additions & 0 deletions financial-data-agent/node_modules/.bin/acorn

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

17 changes: 17 additions & 0 deletions financial-data-agent/node_modules/.bin/acorn.cmd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

28 changes: 28 additions & 0 deletions financial-data-agent/node_modules/.bin/acorn.ps1

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 16 additions & 0 deletions financial-data-agent/node_modules/.bin/browserslist

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

17 changes: 17 additions & 0 deletions financial-data-agent/node_modules/.bin/browserslist.cmd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

28 changes: 28 additions & 0 deletions financial-data-agent/node_modules/.bin/browserslist.ps1

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 16 additions & 0 deletions financial-data-agent/node_modules/.bin/escodegen

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

17 changes: 17 additions & 0 deletions financial-data-agent/node_modules/.bin/escodegen.cmd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

28 changes: 28 additions & 0 deletions financial-data-agent/node_modules/.bin/escodegen.ps1

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 16 additions & 0 deletions financial-data-agent/node_modules/.bin/esgenerate

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

17 changes: 17 additions & 0 deletions financial-data-agent/node_modules/.bin/esgenerate.cmd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

28 changes: 28 additions & 0 deletions financial-data-agent/node_modules/.bin/esgenerate.ps1

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 16 additions & 0 deletions financial-data-agent/node_modules/.bin/esparse

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

17 changes: 17 additions & 0 deletions financial-data-agent/node_modules/.bin/esparse.cmd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

28 changes: 28 additions & 0 deletions financial-data-agent/node_modules/.bin/esparse.ps1

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading