FinAPI

command module
v0.0.0-...-4244937 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 20, 2025 License: GPL-3.0 Imports: 7 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

Historical Financial Data API

Overview

This project provides a local API for retrieving historical equity price data. It spins up a Gin web server that accepts HTTP requests and proxies them to the Yahoo Finance API via the finance-go library. The API currently returns daily closing prices for the past year, formatted as JSON, and can also generate simple price charts for individual equities. This service is designed to be consumed by internal programs or tools that need quick access to historical market data without directly calling external APIs.

Features

  • Retrieve 1 year of historical closing price data
  • Support for multiple equity tickers per request
  • JSON-formatted responses
  • Simple equity price chart generation
  • Lightweight local server using Gin
Example of an equity request

http://0.0.0.0:8080/equity?tickers=AAPL,GOOGL,D

Example of a graph request

http://0.0.0.0:8080/graph?ticker=AAPL

Test in terminal

curl "http://0.0.0.0:8080/graph?ticker=AAPL"

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
⌂ 换网址