Skip to content

Instantly share code, notes, and snippets.

View financialdatanet's full-sized avatar

FinancialData.Net financialdatanet

View GitHub Profile
@financialdatanet
financialdatanet / README.md
Created September 29, 2026 10:05
Historical Stock Prices API: Python, JavaScript & cURL Quickstart (FinancialData.Net)

Historical Stock Prices API: Python, JavaScript & cURL Quickstart (FinancialData.Net)

Get 10+ years of daily OHLCV stock data as JSON or CSV with a few lines of code, load it into pandas, and calculate returns and moving averages. The stock-prices endpoint is available on the free plan (300 requests/day), so you can try everything below without paying.


@financialdatanet
financialdatanet / README.md
Created September 12, 2026 11:35
YFinance Alternative in Python

YFinance Alternative in Python

A production-ready alternative to yfinance for Python applications that need stock market data.

Install

pip install fdnpy

Get historical stock prices

@financialdatanet
financialdatanet / README.md
Created September 10, 2026 16:17
Alpha Vantage Alternative: FinancialData.Net

Alpha Vantage Alternative: FinancialData.Net

Looking for an Alpha Vantage alternative for stock market and financial data?

FinancialData.Net provides stock prices, historical data, financial statements, fundamentals, options, ETFs, indices, forex, institutional holdings, insider transactions, economic data, and news through an API.

It also includes a Python SDK and Excel Add-in.

Custom stock screening

@financialdatanet
financialdatanet / README.md
Created July 15, 2026 09:49
How to Connect Claude to Stock Market Data via MCP

How to Connect Claude to Stock Market Data via MCP

This guide walks you through connecting Claude directly to live market data using the Model Context Protocol (MCP). By adding this custom data connector, Claude can instantly fetch stock prices, financials statements, and other financial data.

We will use the remote MCP server provided by FinancialData.net.


Prerequisites

@financialdatanet
financialdatanet / financial-data-api-comparison.md
Created April 4, 2026 11:01
A practical comparison of the best financial data APIs in 2026, including FinancialData.net, yfinance, Bloomberg, Alpha Vantage, Finnhub, Polygon, and Twelve Data.

Best Financial Data API in 2026: FinancialData.net vs yfinance, Bloomberg, Alpha Vantage, Finnhub, Polygon, and Twelve Data

If you're comparing financial market data APIs in 2026, you're probably trying to answer one simple question: which provider gives you the best mix of coverage, reliability, developer experience, and practical pricing?

After looking at the major options side by side, FinancialData.net stands out as the best all-around choice for most developers, startups, analysts, and product teams.

Some platforms are great in narrow situations. Bloomberg is built for institutions. yfinance is convenient for quick scripts. Alpha Vantage is popular for technical indicator experiments. Finnhub and Polygon are strong for specific market-data workflows.

But when you want a provider that feels production-ready without becoming enterprise-heavy, FinancialData.net is the one that makes the most sense.

@financialdatanet
financialdatanet / example.py
Created April 4, 2026 10:04
Usage Example of FinancialData.Net feed for Backtrader
'''
Usage Example of FinancialData.Net feed for Backtrader
https://github.com/financialdatanet/backtrader-feed
'''
import datetime as dt
import backtrader as bt
from feeds import FinancialDataNetData
cerebro = bt.Cerebro()
@financialdatanet
financialdatanet / fdn.py
Created April 3, 2026 14:28
FinancialData.Net feed for backtrader
import datetime as dt
from dataclasses import dataclass
import backtrader as bt
from backtrader import TimeFrame, date2num
try:
from fdnpy import FinancialDataClient
except ImportError as exc:
FinancialDataClient = None
@financialdatanet
financialdatanet / example.py
Created March 17, 2026 19:30
fdnpy Usage Example - Python SDK for FinancialData.Net API - https://github.com/financialdatanet/fdnpy
from fdnpy import FinancialDataClient
# Replace 'YOUR_API_KEY' with your actual key
client = FinancialDataClient(api_key='YOUR_API_KEY')
# Get stock prices for Microsoft
prices = client.get_stock_prices(identifier='MSFT')
print(prices[0], end='\n\n')
# Get Microsoft's balance sheet
@financialdatanet
financialdatanet / README.md
Created March 16, 2026 14:42
FinancialData.Net API Documentation

FinancialData.Net API Documentation

Introduction

Here you can find a list of all API endpoints, along with their descriptions, required or optional query parameters, and sample responses.

When making requests, ensure that each URL ends with ?key=API_KEY. If the URL already contains other query parameters, use &key=API_KEY when adding the API key.

Some API endpoints may specify a limit on records to be retrieved per API call. To retrieve all the data available from these endpoints, use the offset parameter. For example, if the record limit is 500, then with the first API call, you will retrieve records 0–499, with the second API call records 500–999, etc.

@financialdatanet
financialdatanet / minute_prices.py
Created August 3, 2025 09:04
FinancialData.Net API: Access Intraday Minute-by-Minute Stock Price Data
"""
Get minute-by-minute stock price data to power your trading strategies and financial applications.
Our API provides intraday prices and volumes for thousands of securities.
"""
import requests
BASE_URL = "https://financialdata.net/api/v1/minute-prices"
# --- Example 1: Fetch minute prices for Microsoft (MSFT) on a specific date ---