chg: feat: rewrite to be a torrent indexer

This commit is contained in:
2023-09-23 17:02:55 +00:00
parent c68df1ab37
commit faa721dc19
15 changed files with 711 additions and 389 deletions

View File

@@ -1,30 +1,7 @@
# vercel-lambdas
# torrent-indexer
This is a collection of lambdas for personal use powered by [vercel](https://vercel.com/).
This is a simple torrent indexer that can be used to index torrents from HTML pages. It is written in Golang and uses Redis as a cache.
## statusinvest
## Supported sites
The path `statusinvest` contains lambdas that fetches the status of a company (fundamentalist analysis) from [statusinvest.com](https://statusinvest.com.br/).
## b3
The path `b3` contains lambdas that fetches stock prices data directly from from [b3.com](https://b3.com.br/).
- `b3/prices/:symbol` [Test it!](https://vercel-lambdas-felipemarinho.vercel.app/api/b3/prices/IBOV)
- Returns the stock prices for a given symbol.
- Example Response:
```json
{
"symbol": "IBOV",
"name": "IBOVESPA",
"market": "Indices",
"openingPrice": 112295.87,
"minPrice": 111689.15,
"maxPrice": 113221.54,
"averagePrice": 112702.99,
"currentPrice": 112323.12,
"priceVariation": 0.02,
"indexComponentIndicator": false
}
```
- **Obs**: The `currentPrice` field has 15 minutes delay.
- [comando-torrents](https://comando.la/)