Finance...anceAPI(3)

okay bestie, welcome to Finance...anceAPI(3) from User Contributed Perl Documentation πŸ’– β€” this one is all about the Finance::Quote::FinanceAPI module, and it's lowkey iconic. no preamble, we're going straight in. ✨

🌸 NAME 🌸

Finance::Quote::FinanceAPI β€” obtain quotes from financeapi.net. periodt. πŸ’…

πŸ¦‹ SYNOPSIS πŸ¦‹

use Finance::Quote;

# API Key passed during object creation
$q = Finance::Quote->new('FinanceAPI', financeapi => {API_KEY => 'your-financeapi-api-key'});

# FINANCEAPI_API_KEY environment variable set
$q = Finance::Quote->new;

%info = $q->fetch("financeapi", "AAPL");  # Only query financeapi

✨ DESCRIPTION ✨

This module fetches information from https://financeapi.net/ 🫢. The API URL is https://yfapi.net/.

This module is loaded by default on a Finance::Quote object. It's also possible to load it explicitly by placing "financeapi" in the argument list to Finance::Quote->new().

This module provides the "financeapi" fetch method. In addition it advertises "nyse", "usa", and "nasdaq" πŸ‘‘.

πŸ”‘ API_KEY πŸ”‘

https://financeapi.net/ requires users to register for an API Key (token). The free Basic API Key allows 100 queries per day and a 300 per minute rate. fr fr, those are the numbers.

The API key may be set by either providing a module specific hash to Finance::Quote->new as in the above example, or by setting the environment variable FINANCEAPI_API_KEY. iykyk πŸ’œ

πŸŽ€ LABELS RETURNED πŸŽ€

The following labels are returned:

  • name
  • symbol
  • open
  • high
  • low
  • price
  • date
  • volume
  • currency

mwah πŸ’‹ that's the whole page. source/version: perl v5.32.1; date: 2026-10-26. slay and goodbye, bestie 🫢🌸

πŸ“¦ where this page comes from