# Awtrix Stocks

Stocks app for AWTRIX NG on the Ulanzi TC002 pixel clock

一个 Berry 小程序，把跑 AWTRIX NG 的 Ulanzi TC002 像素钟变成行情牌：最多二十只股票排成滚动条，每块左边公司标志，中间大字号代码，旁边小字显示当日涨跌，颜色分方向但不带正负号，价格在下方，右下角再补一个上下三角，不靠颜色也能读。

- id: abhijitgore-awtrix-stocks
- author: abhijitgore
- repository: https://github.com/abhijitgore/awtrix-stocks
- license: MIT
- shape: matrix
- scenes: art, home
- boards: Ulanzi TC002
- browser_playable: no
- preview: Project screenshots
- html: https://esp32gallery.com/projects/abhijitgore-awtrix-stocks/
- html_zh: https://esp32gallery.com/zh/projects/abhijitgore-awtrix-stocks/
- json: https://esp32gallery.com/data/catalog/projects/abhijitgore-awtrix-stocks.json

## Hardware

Supported hardware: Ulanzi TC002. Confirm the exact board revision and pin map in the upstream repository.

支持硬件：Ulanzi TC002。烧录前请在上游仓库核对板卡版本与引脚定义。

## English

```
A Berry app that turns a Ulanzi TC002 pixel clock running AWTRIX NG into a stock ticker: up to twenty quotes as scrolling blocks, each with the company logo, the ticker in large type, the day change in colour with no sign, the price beneath and a small triangle so direction reads without colour. A second mode shows one stock per page with a dot row along the bottom. Quotes come from Yahoo Finance's public chart endpoint, logos from a GitHub icon set with a fallback site, and earnings dates from Nasdaq — all keyless, all over HTTPS with certificate checks. The first page also reports the market state as a drawn glyph, and session times come from the first stock's quote so the stock feed already handles daylight saving. Installed by PUTting the .ax file to the clock's apps API.
```

## 中文

```
一个 Berry 小程序，把跑 AWTRIX NG 的 Ulanzi TC002 像素钟变成行情牌：最多二十只股票排成滚动条，每块左边公司标志，中间大字号代码，旁边小字显示当日涨跌，颜色分方向但不带正负号，价格在下方，右下角再补一个上下三角，不靠颜色也能读。另有一个分页模式，一次一只，底部一排点表示进度。行情取自 Yahoo Finance 的公开图表接口，标志来自 GitHub 上的图标库，缺图时换用另一家图床，财报日期来自 Nasdaq，全部免密钥，HTTPS 且校验证书。第一页还会画一个图标表示开市、休市、即将开盘或即将收盘，交易时段直接读第一只股票的报价，夏令时交给上游处理。安装只要把 .ax 文件 PUT 到时钟的应用接口。
```
