AI prompts
base on 使用日历软件订阅美股的财报日期 # OhEarningsCal
<a href="https://trendshift.io/repositories/8148" target="_blank"><img src="https://trendshift.io/api/badge/repositories/8148" alt="jason5ng32%2FOhEarningsCal | Trendshift" style="width: 250px; height: 55px;" width="250" height="55"/></a>
这个项目本来是我自用的一个小工具,功能是,将我关注的美股公司的财报日程,自动导入到我的日历(比如 Google Calendar)中。
啊,我就是不喜欢打开炒股 app 看,我就是喜欢在日历中看。
或许这个工具对你也有用,所以我把它开源了。
代码很粗糙的,但是能用(毕竟我是个产品经理啊)。
## 直接使用
打开 [https://stock.retire.money/](https://stock.retire.money/),找到已经生成的 ics 文件,复制链接,然后在你的日历软件中,添加一个新的日历,输入这个链接,就可以了。
备注:仅仅包含美国市场的财报日历。日历内容只包含当天前后 30 天的,再多其实没有意义。
## 关于更新
项目已经设置了使用 Github Actions 自动更新:
1. 每天 2 次从纳斯达克定时抓取未来 30 天的财报日历
2. 每天 2 次生成对应的 ics 订阅文件
通常,更新会自动执行。不过,实测发现,有时候 Github Actions 会出现延迟,有时候甚至可能因为高负荷而错过执行。
如果你发现了这种情况,可以通过 Github API 触发手动执行。
## 关于 ics 清单
默认情况下,程序会生成 6 个 ics 文件,分别是:
1. `all.ics`: 包含所有公司的财报日历
2. `nasdaq100.ics`: 包含纳斯达克 100 指数成分股的财报日历
3. `sp500.ics`: 包含标普 500 指数成分股的财报日历
4. `dow30.ics`: 包含道琼斯 30 指数成分股的财报日历
5. `customstock.ics`: 项目作者,也就是我自己,关注的一些个股的财报日历
6. `selected.ics`: 2-5 的合集
## 自己部署
如果你想自己部署这个项目,可以参考以下步骤:
实际上,程序本身是可以在本地使用 npm 进行部署到,这部分代码我也已经写了,不过我还是比较鼓励使用 Github 进行部署并执行自动化。
1. Fork 这个项目
2. 自行修改 `api/datas/cusomstock.json` 文件,将你关注的个股代码添加进去
3. 在 Github 项目的环境变量中,根据 `env.example` 创建对应的环境变量
4. 看看你创建的名称和 `github/workflows` 的 yml 文件中环境名称和对应的环境变量名称是否一致
5. 然后就可以了
", Assign "at most 3 tags" to the expected json: {"id":"8148","tags":[]} "only from the tags list I provide: [{"id":77,"name":"3d"},{"id":89,"name":"agent"},{"id":17,"name":"ai"},{"id":54,"name":"algorithm"},{"id":24,"name":"api"},{"id":44,"name":"authentication"},{"id":3,"name":"aws"},{"id":27,"name":"backend"},{"id":60,"name":"benchmark"},{"id":72,"name":"best-practices"},{"id":39,"name":"bitcoin"},{"id":37,"name":"blockchain"},{"id":1,"name":"blog"},{"id":45,"name":"bundler"},{"id":58,"name":"cache"},{"id":21,"name":"chat"},{"id":49,"name":"cicd"},{"id":4,"name":"cli"},{"id":64,"name":"cloud-native"},{"id":48,"name":"cms"},{"id":61,"name":"compiler"},{"id":68,"name":"containerization"},{"id":92,"name":"crm"},{"id":34,"name":"data"},{"id":47,"name":"database"},{"id":8,"name":"declarative-gui "},{"id":9,"name":"deploy-tool"},{"id":53,"name":"desktop-app"},{"id":6,"name":"dev-exp-lib"},{"id":59,"name":"dev-tool"},{"id":13,"name":"ecommerce"},{"id":26,"name":"editor"},{"id":66,"name":"emulator"},{"id":62,"name":"filesystem"},{"id":80,"name":"finance"},{"id":15,"name":"firmware"},{"id":73,"name":"for-fun"},{"id":2,"name":"framework"},{"id":11,"name":"frontend"},{"id":22,"name":"game"},{"id":81,"name":"game-engine "},{"id":23,"name":"graphql"},{"id":84,"name":"gui"},{"id":91,"name":"http"},{"id":5,"name":"http-client"},{"id":51,"name":"iac"},{"id":30,"name":"ide"},{"id":78,"name":"iot"},{"id":40,"name":"json"},{"id":83,"name":"julian"},{"id":38,"name":"k8s"},{"id":31,"name":"language"},{"id":10,"name":"learning-resource"},{"id":33,"name":"lib"},{"id":41,"name":"linter"},{"id":28,"name":"lms"},{"id":16,"name":"logging"},{"id":76,"name":"low-code"},{"id":90,"name":"message-queue"},{"id":42,"name":"mobile-app"},{"id":18,"name":"monitoring"},{"id":36,"name":"networking"},{"id":7,"name":"node-version"},{"id":55,"name":"nosql"},{"id":57,"name":"observability"},{"id":46,"name":"orm"},{"id":52,"name":"os"},{"id":14,"name":"parser"},{"id":74,"name":"react"},{"id":82,"name":"real-time"},{"id":56,"name":"robot"},{"id":65,"name":"runtime"},{"id":32,"name":"sdk"},{"id":71,"name":"search"},{"id":63,"name":"secrets"},{"id":25,"name":"security"},{"id":85,"name":"server"},{"id":86,"name":"serverless"},{"id":70,"name":"storage"},{"id":75,"name":"system-design"},{"id":79,"name":"terminal"},{"id":29,"name":"testing"},{"id":12,"name":"ui"},{"id":50,"name":"ux"},{"id":88,"name":"video"},{"id":20,"name":"web-app"},{"id":35,"name":"web-server"},{"id":43,"name":"webassembly"},{"id":69,"name":"workflow"},{"id":87,"name":"yaml"}]" returns me the "expected json"