Hoa Kỳpiquette/finance-go
:bar_chart: Financial markets data library implemented in go.
Thành tựu nổi bật
Những danh hiệu mới nhất của dự án
#1 Repository của tháng
#1 Repository của tháng
#1 Repository của tháng
📊 Thư viện Go lấy dữ liệu tài chính từ Yahoo Finance
Một gói Go streamlined để kéo quote, historical data và options info từ Yahoo Finance vào ứng dụng của bạn chỉ với vài dòng mã.
piquette/finance-go là thư viện Go cung cấp quyền truy cập dữ liệu thị trường tài chính hiện tại và lịch sử từ Yahoo Finance, được đóng gói thành các struct rõ ràng và dễ sử dụng. Dự án được thiết kế theo hướng dẫn của stripe-go, tập trung vào việc mỗi hàm làm đúng một việc — lấy giá cổ phiếu, lấy lịch sử giao dịch, hay tính options straddle.
✅ Điểm nổi bật
- Nhiều loại tài sản: hỗ trợ equity, index, option, forex pair, cryptocurrency pair, futures, ETF, mutual fund — tất cả từ Yahoo Finance
- Historical OHLCV: kéo dữ liệu giá lịch sử theo khoảng thời gian tùy chọn (1h, 1d, 1w...)
- Options straddles: tính toán chuỗi straddle từ Yahoo Finance
- CLI companion: đi kèm ứng dụng qtrn để in quote/options trực tiếp trên terminal
- Go 1.13+ module: cài đặt đơn giản bằng
go get github.com/piquette/finance-go - API đơn giản:
quote.Get("AAPL")hoặcequity.Get("AAPL")— rõ ràng, ít boilerplate
💡 Vì sao đáng chú ý
Thư viện lấp đầy khoảng trống cho lập trình Go muốn làm việc với dữ liệu tài chính mà không cần chuyển sang Python/pandas. Mỗi loại tài sản có hàm riêng biệt (quote, equity, chart,...) nên người dùng không bị lạc trong một API chung chung. Cộng đồng duy trì project này cũng cung cấp finance-mock — một test server local giúp chạy unit test ổn định mà không phụ thuộc hoàn toàn vào Yahoo Finance API.
Lưu ý: Yahoo Finance thay đổi API mà không báo trước, nên project có thể gặp instability theo thời gian. Dù vậy, đây vẫn là lựa chọn nhẹ và thực tế cho các ứng dụng Go cần dữ liệu thị trường.
#Go #Finance #StockMarket #FinancialData #TiniX
Dự án tương tự
Khám phá các dự án và mô hình AI khác có sự tương đồng.
A curated list of insanely awesome libraries, packages and resources for Quants (Quantitative Finance)
FinceptTerminal is a modern finance application offering advanced market analytics, investment research, and economic data tools, designed for interactive exploration and data-driven decision-making in a user-friendly environment.
Python toolkit for quantitative finance: stock analysis, technical indicators, strategy backtesting, portfolio optimization, and financial modeling.
Extract data from a wide range of Internet sources into a pandas DataFrame.
Qlib is an AI-oriented Quant investment platform that aims to use AI tech to empower Quant Research, from exploring ideas to implementing productions. Qlib supports diverse ML modeling paradigms, including supervised learning, market dynamics modeling, and RL, and is now equipped with https://github.com/microsoft/RD-Agent to automate R&D process.