Skip to main content

finsolvepy is a Python package for comprehensive financial analysis, enabling users to access detailed stock and cryptocurrency data, validate market symbols, convert currencies, and perform key financial calculations with ease.

Project description

finsolvepy

finsolvepy is a versatile Python package for financial enthusiasts and professionals, offering powerful tools to access and analyze stock market, cryptocurrency, and currency exchange data.
Whether you are a retail investor, analyst, or developer, finsolvepy provides an easy-to-use API to fetch, validate, and calculate financial metrics.


Features

Stocks & Indices

  • Detailed Stock Information: Get market cap, price, company description, ROE, ROCE, and more.
  • Validate Stock Symbols: Ensure ticker symbols are correct before querying.
  • Market Index Data: Retrieve descriptions and lists of Indian and US indices.

Cryptocurrencies

  • Detailed Coin Information: Access market cap, price, description, rankings, and more.
  • Validate Crypto Symbols: Quickly check if a cryptocurrency ticker is valid.

Currency Conversion

  • Currency Converter: Convert amounts between any two currencies in real time.
  • Exchange Rates: Fetch the current exchange rate between two currencies.

Financial Calculations

  • Price-to-Earnings (P/E) Ratio
  • Years to Double Investment

Installation

pip install finsolvepy

Usage Examples

Get Detailed Stock Information

from finsolvepy.information import StockInsights

obj = StockInsights()
apple_details = obj.stock_detail('AAPL')
print(apple_details)

Example Output:

{
  "symbol": "AAPL",
  "company": "Apple Inc",
  "market_cap": "3456956105000 USD",
  "about": "Apple Inc. is an American multinational technology company...",
  "curr_market_price": "$227.3877",
  "book_value": "51.83",
  "dividend": "0.0044",
  "roce": 3.812053060477029,
  "roe": "1.606",
  "face_value": 10
}

Validate Stock Symbol

from finsolvepy.information import StockInsights

obj = StockInsights()
print(obj.is_valid_symbol('TATAMOTORS'))

Output:

True

Calculate Price-to-Earnings (P/E) Ratio

from finsolvepy.calculation import Metrics

obj = Metrics()
pe = obj.pe_ratio(earnings=227270000000, no_of_shares=2534202430, current_market_price=1779)
print(pe)

Output:

19.836960984599816

Calculate Years to Double Your Money

from finsolvepy.calculation import Metrics

obj = Metrics()
years = obj.years_to_double_money(interest=7.5)
print(years)

Output:

9.6 years

Get Cryptocurrency Details

from finsolvepy.information import CryptocurrencyInsights

crypto = CryptocurrencyInsights()
btc_details = crypto.coin_details("Bitcoin")
print(btc_details)

Example Output:

{
  "data": {
    "name": "Bitcoin",
    "symbol": "btc",
    "description": "Bitcoin is the first successful internet money...",
    "current_price_usd": 118745,
    "market_cap": 2363422930356,
    "volume": 34429259271,
    "market_cap_rank": 1,
    "fully_diluted_valuation": 2363422930356,
    "last_updated": "2025-08-10T14:58:20.713Z"
  }
}

Validate Cryptocurrency Symbol

from finsolvepy.information import CryptocurrencyInsights

crypto = CryptocurrencyInsights()
print(crypto.is_valid_symbol("BTC"))

Output:

True

Convert Currency

from finsolvepy.information import CurrencyConverter

cc = CurrencyConverter()
converted_amount = cc.convert(from_currency="INR", to_currency="USD", amount=100)
print(converted_amount)

Output:

$1.141

Get Currency Exchange Rate

from finsolvepy.information import CurrencyConverter

cc = CurrencyConverter()
rate = cc.exchange_rate(from_currency="USD", to_currency="INR")
print(rate)

Output:

87.6119

Conclusion

With a wide range of features from stock market insights to cryptocurrency analysis and currency conversion — finsolvepy is your go-to toolkit for financial data. Whether you're an experienced trader or just starting your investment journey, finsolvepy empowers you to make informed financial decisions.


Author

Vengatesh K GitHub Feel free to fork the repository and contribute!

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

finsolvepy-2.0.0.tar.gz (164.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

finsolvepy-2.0.0-py3-none-any.whl (164.3 kB view details)

Uploaded Python 3

File details

Details for the file finsolvepy-2.0.0.tar.gz.

File metadata

  • Download URL: finsolvepy-2.0.0.tar.gz
  • Upload date:
  • Size: 164.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.7

File hashes

Hashes for finsolvepy-2.0.0.tar.gz
Algorithm Hash digest
SHA256 ce4003b81d2b80134365d78230b67ceb56d253ae007458c48b26bc28c5478ea2
MD5 dce816342619cbc0199baa615c4c0404
BLAKE2b-256 72a9875cfdb2d0f8df30c85f39c590971fb90bab0555c99f73ac899dd7dbcc76

See more details on using hashes here.

File details

Details for the file finsolvepy-2.0.0-py3-none-any.whl.

File metadata

  • Download URL: finsolvepy-2.0.0-py3-none-any.whl
  • Upload date:
  • Size: 164.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.7

File hashes

Hashes for finsolvepy-2.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 391bbac919b8d903b4a2ea0f8d0f23f4a16ef41cf5956d950ec328bfdac8cb31
MD5 00435182c5fa9d04faa63b7ce44e0204
BLAKE2b-256 ff262adfa13a2e9c8bf1376931d0c90cf469c21751bd05c6a30e1612c3f65998

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page