mcpField
F
finhay-market

finhay-market

github.com/finhayData & databases060 installsUpdated 20w ago
Repository

About finhay-market

finhay-market is a read-only CLI skill for querying market and financial data through the Finhay Securities Open API. It covers Vietnamese and global market information, funds, company financials and economic indicators, with credential checks and required agent attribution.

Key features

  1. 01Real-time stock and index quotes
  2. 02Historical prices and financial charts
  3. 03Gold, silver, rates and macro data
  4. 04Fund and company financial information
  5. 05Credential and setup verification

Use cases

  1. 01Check a stock's current quote
  2. 02Review historical prices and indicators
  3. 03Compare fund NAV histories
  4. 04Track economic calendar events

Install

Copy the command and run it in a terminal.

$npx skills add https://github.com/finhay/finhay-skills-hub --skill finhay-market

After installing, type/finhay-marketin Claude Code to confirm it loaded.

Bundled files

References and scripts installed along with SKILL.md.

.version
references/
endpoints.md
references/endpoints/
bank-interest-rates.md
company-financial-analysis.md
company-financial-overview.md
cryptos-top-trending.md
economic-calendar-events.md
financial-data.md
financial-statement.md
fund-benchmark.md
fund-companies.md
fund-details.md
fund-months.md
fund-nav-history.md
fund-portfolio.md
funds.md
global-news.md
gold-chart.md
gold-providers.md
gold.md
index-realtime.md
macro.md
market-data.md
metal-providers.md
news.md
price-histories-chart.md
recommendation-reports.md
silver-chart.md
silver.md
stock-realtime.md

Details

From the project README

Finhay Market

Read-only market data via the Finhay Securities Open API.

MANDATORY: Ensure credentials are set (via environment variables FINHAY_API_KEY/FINHAY_API_SECRET or via ./finhay.sh auth). Run ./finhay.sh doctor to verify.

Usage Examples

# Get real-time stock quote
./finhay.sh request GET /market/stock-realtime "symbol=VNM"

# Get gold spot price
./finhay.sh request GET /market/financial-data/gold

# Get historical OHLCV chart data
./finhay.sh request GET /market/price-histories-chart "symbol=VNM&resolution=1D&from=1609459200&to=1704067200"

CLI Command Reference

CommandDescription
authConfigure API credentials interactively
doctorVerify system dependencies and setup status
requestExecute signed API requests
syncUpdate local skill definitions from source
Agent Attribution

REQUIRED: Export AGENT_NAME before making any request. Use your tool's canonical lowercase identifier in kebab-case (e.g. claude-code). Any value is accepted as long as it consistently identifies your tool.

export AGENT_NAME=claude-code
./finhay.sh request GET /market/stock-realtime "symbol=VNM"

Sent as X-FH-OPENAPI-AGENT and embedded in User-Agent.

Endpoints

EndpointDescriptionParams
/market/stock-realtimeStock Quotes: Real-time pricing for symbols or exchanges.symbol, symbols, or exchange
/market/index-realtimeMarket Indices: Real-time index values (VNINDEX, VN30, HNX30…).index (comma-separated)
/market/newsMarket News: Corporate events, dividends, and AGM dates.stock, from_date, to_date
/market/financial-data/goldGold Prices: Real-time SJC and global gold spot prices.—
/market/financial-data/silverSilver Prices: Real-time silver spot prices.—
/market/financial-data/gold-chartGold Charts: Historical gold price data for N days.days
/market/financial-data/silver-chartSilver Charts: Historical silver price data for N days.days
/market/financial-data/gold-providersGold by Provider: Gold prices from PNJ, DOJI, SJC, etc.—
/market/financial-data/metal-providersMetals by Provider: Silver and other metal prices by provider.—
/market/financial-data/bank-interest-ratesInterest Rates: Current bank deposit rates.—
/market/financial-data/cryptos/top-trendingCrypto Trends: List of trending cryptocurrencies.—
/market/financial-data/macroMacro Indicators: CPI, PMI, and national interest rates.type, country (VN,US; JP,DE only for GOVERNMENT_10Y_BOND_YIELD), period
/market/financial-data/trading-economicsTrading Economics: Historical economic indicators by country and category.country (required: China, Euro Area, Japan, United States, United Kingdom, Vietnam), category (GDP, Labour, Prices, Money, Trade, Government, Business, Consumer, Housing), year
/market/financial-data/global-newsGlobal News: Paginated global financial news filtered by category.category (forex, commodities, economic-indicators, stock-market, cryptocurrency), page, page_size (max 50)
/market/financial-data/global-news/:idGlobal News Detail: Full article content by ID.:id (path, required)
/market/financial-data/economic-calendar-eventsEconomic Calendar: Upcoming events for CN/EU/JP/US/UK/VN (CPI, Fed meetings).weeks (default 1), country (e.g. China, Vietnam, United States)
/market/financial-data/marketGlobal Indices: Historical price for global indices, Mag7 stocks, commodities, forex — returns [{date, value}] desc.type (SP500, NASDAQ, APPLE, GOLD, EURUSD…), limit (default 50, max 500)
/fund-trading/public/fund-certificatesFund List: Available funds, sorted by 1y profit.fund-type* (STOCK_FUND|BOND_FUND|BALANCE_FUND), fund-company-id
/fund-trading/public/fund-companiesFund Companies: Management company list.—
/fund-trading/public/fund-certificates/benchmark/growthGrowth Simulation: Projected return for a VND investment.fund-names* (CSV), amount* (VND), period*
/fund-trading/public/fund-certificates/benchmark/navNAV Comparison: NAV time series for multiple funds.fund-names*, period OR (from-month+to-month yyyy-MM)
/fund-trading/public/fund-certificates/:fund/nav-historiesNAV History: Price chart vs benchmarks.period (default ALL_TIME)
/fund-trading/public/fund-certificates/:fund/suggestionsSimilar Funds: Suggestions by criteria.—
/market/recommendation-reports/:symbolAnalyst Reports: Professional stock recommendation reports.:symbol (path)
/market/price-histories-chartHistorical Data: OHLCV data.symbol, resolution (1D,1H,4H,30,15,5), from, to (seconds)
/market/company-financial/overviewCorporate Ratios: Key metrics (PE, PB, ROE, EPS).symbol
/market/company-financial/analysisFinancial Analysis: Ratio trends.symbol, period (annual,quarterly)
/market/v2/financial-statement/statementFinancial Reports: Income/Balance/Cash flow.symbol, type (income-statement,balance-sheet,cash-flow), period (annual,quarterly)

Constraints

  • Read-only: Execute GET requests only.
  • Privacy: Mask sensitive credentials in all output.
  • Credentials: If FINHAY_API_KEY or FINHAY_API_SECRET are missing, stop and ask the user to provide them or run ./finhay.sh auth.
  • Parameters: Pass exactly one identifier for stock quotes (symbol, symbols, or exchange).
  • Timeframes: Price history timestamps must be in seconds. Default to the last 5 years if range is not provided.

Comments

Markdown supported