finance/py-financedatabase: New port: Database of 300.000+ symbols containing Equities, ETFs, Funds, Indices

This commit is contained in:
Yuri Victorovich 2022-12-24 23:00:48 -08:00
parent 5c9026862c
commit de5fdea5ab
5 changed files with 64 additions and 0 deletions

View File

@ -99,6 +99,7 @@
SUBDIR += py-backtrader
SUBDIR += py-bitcoin
SUBDIR += py-ebaysdk
SUBDIR += py-financedatabase
SUBDIR += py-finvizfinance
SUBDIR += py-fundamentalanalysis
SUBDIR += py-investiny

View File

@ -0,0 +1,33 @@
PORTNAME= financedatabase
PORTVERSION= 1.0.2
CATEGORIES= finance python
MASTER_SITES= CHEESESHOP
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
MAINTAINER= yuri@FreeBSD.org
COMMENT= Database of 300.000+ symbols containing Equities, ETFs, Funds, Indices
WWW= https://github.com/JerBouma/FinanceDatabase
LICENSE= MIT
PY_DEPENDS= ${PYTHON_PKGNAMEPREFIX}dill>=0.3.3:devel/py-dill@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}fundamentalanalysis>=0.2.10:finance/py-fundamentalanalysis@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}matplotlib>=3.3.2:math/py-matplotlib@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}pandas>=1.1.2:math/py-pandas@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}requests>=2.25.1:www/py-requests@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}tablib>=3.0.0:textproc/py-tablib@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}tqdm>=4.56.0:misc/py-tqdm@${PY_FLAVOR}
BUILD_DEPENDS= ${PY_DEPENDS}
RUN_DEPENDS= ${PY_DEPENDS}
USES= python:3.6+
USE_PYTHON= distutils autoplist
NO_ARCH= yes
TEST_ENV= ${MAKE_ENV} PYTHONPATH=${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}
do-test:
@${SETENV} ${TEST_ENV} ${PYTHON_CMD} ${FILESDIR}/test.py
.include <bsd.port.mk>

View File

@ -0,0 +1,3 @@
TIMESTAMP = 1671950543
SHA256 (financedatabase-1.0.2.tar.gz) = 7b03d37ef5eef8433380d92122f2fd24bad741971518eaf1bd4a9c6f30763e23
SIZE (financedatabase-1.0.2.tar.gz) = 21007

View File

@ -0,0 +1,17 @@
import financedatabase as fd
# Obtain all countries from the database
equities_countries = fd.show_options('equities', 'countries')
print(f"equities_countries={equities_countries}")
# Obtain all sectors from the database
equities_sectors = fd.show_options('equities', 'sectors')
print(f"equities_sectors={equities_sectors}")
# Obtain all industries from the database
equities_industries = fd.show_options('equities', 'industries')
print(f"equities_industries={equities_industries}")
# Obtain all countries + sectors + industries from the database
equities_all_categories = fd.show_options('equities')
print(f"equities_all_categories={equities_all_categories}")

View File

@ -0,0 +1,10 @@
financedatabase is a database of 300.000+ symbols containing Equities, ETFs,
Funds, Indices, Currencies, Cryptocurrencies and Money Markets.
As a private investor, the sheer amount of information that can be found on the
internet is rather daunting. Trying to understand what type of companies or ETFs
are available is incredibly challenging with there being millions of companies
and derivatives available on the market. Sure, the most traded companies and
ETFs can quickly be found simply because they are known to the public (for
example, Microsoft, Tesla, S&P500 ETF or an All-World ETF). However, what else
is out there is often unknown.