Skip to content

Conversation

@rudrasheth
Copy link
Contributor

feat: Add World Bank API wrapper

## Description

This pull request introduces a new, comprehensive API wrapper for the World Bank Open Data API. This adds a crucial worldwide macroeconomic and development data source to the Fincept Terminal, moving beyond specific assets like stocks and crypto.

The wrapper is built following the project's established standards, with a full command-line interface for easy integration and testing.

## Key Features

  • Global Data Coverage: Fetches data for over 200 countries and regions.
  • Indicator Fetching: Implements core functionality to retrieve specific economic time-series data (e.g., GDP, population, inflation) using indicator codes.
  • Commodity Prices: Includes a function to fetch global commodity prices (the "Pink Sheet") for assets like crude oil and coffee.
  • Advanced Filtering: Supports filtering by single countries, multiple countries, and specific date ranges.
  • Utility Endpoints: Includes functions to list all available countries and data sources for discovery.

## API Information

## Testing

The following commands have been manually tested and confirmed to be working correctly:

  • countries: Fetched the full list of countries.
  • indicators IN NY.GDP.PCAP.CD: Successfully retrieved GDP per capita for India.
  • commodity_prices PCRUDE_BRENT: Successfully retrieved historical price data for Brent crude oil.
  • economic_snapshot DE: Fetched a correct economic summary for Germany.
  • Error handling for invalid commands and timeouts was also verified.

- Implements endpoints for countries, sources, and economic indicators.
- Supports fetching data by country, region, and commodity.
- Includes a full CLI interface for testing and integration.
@tilakpatel22 tilakpatel22 merged commit cbfe693 into Fincept-Corporation:main Oct 16, 2025
1 of 5 checks passed
tilakpatel22 added a commit that referenced this pull request Oct 24, 2025
tilakpatel22 added a commit that referenced this pull request Nov 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants