Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Trader is a command line tool to crawl equity data and to rate equities with arbitrary rating systems.
Trader is a command line tool build with node to crawl equity data and to rate equities with arbitrary rating systems.
The tool is inspired by [https://github.com/sscit/trader].
$ npm -g install trader
$ trader -h
Usage: trader [options]
Options:
-h, --help output usage information
-V, --version output the version number
-p, --progress show a progress bar if possible (do not use progress if you want to pipe the output)
-i, --input <importer> importer to use to fetch equities [dax]
-o, --output <format> choose output format [table]
-r, --rating <type> choose rating system [none]
There are the following importers shipped with trader:
There are the following output formatters shipped with trader:
There are the following rating systems shipped with trader:
Load the 30 equities of the DAX and display as text table:
$ trader -i dax -o table
Load equities of TecDax from Frankfurt Stock Exchange and output as JSON:
$ trader -i index:tecdax:FSE -o json
Load a single equity by ISIN:
$ trader -i isin:DE0005419105:FSE -o table
Load the 30 equities of the DAX, display as text table and order by dividend per share descending:
$ trader -i dax -o table -r orderby:dividendPerShare
Rate DAX with Levermann rating system:
$ trader -i dax -o table -r levermann
Output DAX to file first, read from file and rate with Levermann:
$ trader -i dax -o json > dax.json
$ trader -i jsonfile:dax.json -o table -r levermann:DAX
An equity object should contain the following attributes:
{
isin: The ISIN unique equity id
wkn: The WKN unique equity id
name: The name of the equity
currency: e.g. EUR or USD
latestPrice: The current price (as realtime as possible)
monthlyPrices: [...] Array of monthly prices of the first day in each month of the last 12 months starting with the price at the beginning of the current month.
dailyPrices: [...] Array of daily prices at the beginning of each day in the last 30 trading(!) days starting with the price of the last ended trading day.
latestFacts: {
year: The year of the facts
pbRatio: P/B ratio (german: KBV)
peRatio: P/E ratio (german: KGV)
dividendPerShare: (german: Dividende pro Aktie)
returnOfEquity: (german: Eigenkapitalrendite)
ebitMargin: (german: EBIT Marge)
ebitdaMargin: (german: EBITDA Marge)
equityRatio: (german: Eigenkapitalquote)
marketCap: (german: Marktkapitalisierung)
earningsPerShare: (german: Ergebnis je Aktie)
dynamicPeRatio: (german: Dynamisches KGV)
cashflowPerShare: (german: Cashflow je Aktie)
pcfRatio: price / cashflow ratio (german: KCV)
psRatio: price sales ratio (german: KUV)
profitGrowth: (german: Gewinnwachstum)
salesGrowth: (german: Umsatzwachstum)
dividendYield: (german: Dividendenrendite)
returnOnSales: (german: Brutto-Umsatzrendite)
employees: number of employees
sales: (german: Umsatz)
cashfowMargin: (german: Cashflow-Marge)
debtEquityRatio: (german: Verschuldungsgrad)
dynamicDebtEquityRatio: (german: Dynamischer Verschuldungsgrad)
cfroi: Cashflow Return-on-Investment
}
historicFacts: [{},...] Array containing the same objects as latestFacts but with facts of the last years, latestFacts is not included in this list
}
If some values cannot be retrieved they will be null.
$ grunt simplemocha
(The MIT License)
Copyright (c) 2013 Mario Volke <info@mariovolke.com>
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the 'Software'), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
FAQs
Trader is a command line tool to crawl equity data and to rate equities with arbitrary rating systems.
The npm package trader receives a total of 4 weekly downloads. As such, trader popularity was classified as not popular.
We found that trader demonstrated a not healthy version release cadence and project activity because the last version was released 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.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.