Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Search and retrieve current data and historical information for publicly traded companies
Readme
PyStoxx is a Python library of Stoxx by Recursiv that allows users to retrieve current data and historical information for publicly traded companies with our JSON API.
Install Stoxx using Pip
pip install pystoxx
Import Stoxx
from pystoxx import Stoxx
Add your API Token using the RapidAPI extension. Sign up for a free plan without a credit card by visiting Stoxx By Recursiv hosted at RapidAPI.
stoxx = Stoxx()
stoxx.RapidAPI("add-your-token-here")
Query your data of interest:
stoxx.get_historical_prices(ticker="msft", months=2)
Input:
# Get historical daily pricing data
stoxx.get_historical_prices(ticker="msft", months=2)
Output:
{
"changePercent": 0,
"close": 198.76,
"date": "2020-03-19",
"high": 208.75,
"low": 195.27,
"open": 201,
"symbol": "MSFT",
"updated": 1613017108000,
"volume": 4796717
}
Input:
# Get historical news & sentiment data
stoxx.get_historical_news(ticker="msft", months=2)
Output:
{
"FeedUrl": "url-to-article",
"Polarity": 0.08882323,
"PublishDate": "2021-02-17T20:04:00+00:00",
"Subjectivity": 0.2944154,
"Title": "News Corp. and Google Settle Long Pay Fight With Global News Pact",
"VaderAggregate": 0.9933,
"VaderNegative": 0.045,
"VaderNeutral": 0.827,
"VaderPositive": 0.127,
"id": "4cb8b419-2ec1-32d0-849a-2ac524475c23"
},
Input:
# Get company information
stoxx.get_company_data("msft")
Output:
{
"companyName": "Microsoft Corporation",
"country": "US",
"industry": "Data Processing, Hosting, and Related Services",
"sector": "Information",
"symbol": "MSFT",
"tags": [
"Technology Services",
"Packaged Software",
"Information",
],
"website": "https://www.microsoft.com/en-us",
"zip": "98052-6399"
}
Input:
# Get a price quote
stoxx.get_price_quote("msft")
Output:
{
"close": 230.72,
"exchange": "NASDAQ/NGS (GLOBAL SELECT MARKET)",
"high": 234.19,
"high52w": 245.56,
"lastTime": "March 18, 2021",
"lastUpdate": 1616097600583,
"low": 230.33,
"low52w": 131.19,
"marketCap": 1740140021762,
"name": "Microsoft Corporation",
"pe": 34.38,
"symbol": "MSFT",
"volume": 34852251
}
Input:
# Get a list of all publicly traded companies
stoxx.get_public_companies()
Output:
[
{ "symbol" : "msft" },
{ "symbol" : "amzn" },
{ "symbol" : "amgn" },
...
]
Input:
# Get company competition
stoxx.get_company_competition("msft")
Output:
{
"company": "msft",
"competition": [
"ORCL",
"IBM",
"GOOGL",
"AAPL",
...
]
}
Input:
# Get market performance
stoxx.get_market_performance()
Output:
[
{
"datetimeUpdated": 1616097600045,
"performance": -0.00209,
"sector": "Health Care"
},
...
]
Input:
# Calculate Sentiment
stoxx.calculate_sentiment({"content" : "This is an amazing pypi library!"})
Output:
{
"VaderPositive": 0.45,
"VaderNeutral": 0.55,
"VaderNegative": 0.0,
"VaderAggregate": 0.6239,
"Subjectivity": 0.9,
"Polarity": 0.750
}
Disclosures & Disclaimers:
Investing involves substantial risk. Recursiv LLC, the author, nor any of their respective affiliates make any guarantee or other promises as to any result that may be obtained from using the information provided through the Stoxx service or the pyStoxx library. While past performance may be analyzed using the Stoxx service, past performance should not be considered indicative of future performance. Investment decisions should not be made without first consulting a personal financial advisor and careful study of the issuer's prospectus and other public filings. To the maximum extent permitted by law Recursiv LLC, the author, and their respective affiliates, disclaim any and all liability in the event any information, commentary, analysis, opinions, advice and/or recommendations provided by the service prove to be inaccurate, incomplete or unreliable, or result in any investment or other losses. Any and all data provided by the service should be considered commentary and opinion and are subject to change at any time. The information provided in the service is obtained from sources which Recursiv LLC believes to be reliable. However, Recursiv LLC nor the author have not independently verified or otherwise investigated all such information. Neither Recursiv LLC, the author, nor any of their respective affiliates guarantees the accuracy or completeness of any such information. Recursiv LLC, the author, nor any of their respective affiliates are responsible for any errors or omissions in any of the information provided.
FAQs
Search and retrieve current data and historical information for publicly traded companies
We found that pystoxx demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.