Skip to content
This repository was archived by the owner on Dec 10, 2024. It is now read-only.

Commit 24af162

Browse files
authored
Create README.md
1 parent b5ab5d2 commit 24af162

1 file changed

Lines changed: 37 additions & 0 deletions

File tree

README.md

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
# Google Finance API
2+
3+
The Google Finance API is a tool that provides financial data, including stock indices, quotes, active stocks, gainers, losers, and news. It's built with Node.js and Express, and uses web scraping to gather data from Google Finance.
4+
5+
## Documentation
6+
7+
For more detailed information about the API, including request parameters and response formats, please visit the
8+
9+
[API documentation site](https://gfinance-api-doc.web.app/).
10+
11+
## API Endpoints
12+
13+
The API provides the following endpoints:
14+
15+
- `/indices/:region?country?`: Get stock indices by a region. Optionally, specify a country with the `country` parameter.
16+
- `/fullQuote/:symbol?exchange?`: Get full quote for a specific stock symbol and its exchange.
17+
- `/quote/:symbol?exchange?`: Get a simple quote for a specific stock symbol and its echange.
18+
- `/active`: Get the stocks or funds with the highest trading volume (in shares) during the current trading session
19+
- `/gainers`: The top gaining stocks or funds (by percent change) during the current trading session
20+
- `/losers`: The top losing stocks or funds (by percent change) during the current trading session
21+
- `/news:symbol?:exchange?`: Get financial news related to a stock
22+
23+
## Rate Limiting
24+
25+
Please note that the API uses rate limiting to prevent abuse and ensure fair usage. Each client can make 10 requests per minute. If the rate limit is exceeded, the API will respond with a 429 status code.
26+
If you would like to use the API for yourself, you will have to fork this repo and create your own X-API-Key as an environment variable in a .env file,deploy the project to your own firebase project.
27+
28+
## Deploy to Firebase
29+
30+
Firebase deploys my functions directory as a cloud function and hosts my docs directory. If you are forking my repo, create your own Firebase project and download the [Firebase CLI](https://firebase.google.com/docs/cli/).
31+
Initialize firebase with `firebase init` and choose your project. Ensure that your .firebaserc and firebase.json match your project details
32+
33+
### Recommended Resources
34+
35+
- [Firebase Hosting](https://youtu.be/5n1-wQFoZtU?si=M8qkJyTWvr8cE-T8)
36+
- [Firebase Cloud Functions](https://youtu.be/LW26kpjGl2c?si=f4dKzsUJSc7zzuK4)
37+

0 commit comments

Comments
 (0)