
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
price-ticker
Advanced tools
A highly customizable and installable prices ticker to display real-time market prices and price changes on 3rd party websites or apps using data from TradrAPI. This ticker is designed to show information related to financial instruments, with each block of information referred to as a TickerItem.
The ticker can be configured to display trending directions, fetch data at regular intervals, and be easily integrated into any frontend project.
The TradrAPI Ticker can be installed via npm. To install the package, run the following command:
npm install @tradrapi/ticker
To start using the ticker in your project, you'll need to initialize it with the following options:
import { Ticker } from '@tradrapi/ticker';
const ticker = new Ticker({
projectUid: "OSP",
securities: ["crypto"],
type: ["Change"],
rootElement: "ticker-root" // this should be an id of an existing html element,
});
Alternatively, an example in React:
import { useEffect } from "react";
import { TradrAPITicker } from "@tradrapi/ticker";
export default function App() {
useEffect(() => {
// Initialize
const ticker = new Ticker({
projectUid: "OSP",
securities: "crypto",
type: ["Change"],
rootElement: "App" // this should be an id of an existing html element
});
}, []);
return (
<div className="App">
<h1>Price indicators</h1>
</div>
);
}
The package supports several configuration options to customize its behavior. Here are the available options:
Initialization Options for TradrAPI Ticker
When initializing the TradrAPI Prices Ticker, you have the flexibility to configure its behavior according to your project's specific requirements. Here's a breakdown of the available initialization options:
projectUid (Required):
stringaccountId (Optional):
numbernullrtl (Optional):
booleanfalsetrue, the ticker will scroll from right to left; otherwise, it will scroll from left to right.instruments (Optional):
string[]securities (Optional):
string[]type (Optional):
Enum<Change, Ask, Bid>[]['change']Change: Displays the percentage change of the instrument.Ask: Displays the current ask price of the instrument.Bid: Displays the current bid price of the instrument.sort (Optional):
(TickerItem[]) => TickerItem[]Upon initialization the ticker will start animating, to pause or resume the animation, call:
Ticker.toggleAnimation();
The list of supported securities may be obtained via API using the TradrAPI SDK. Usage requires a valid API key.
Alternatively, the list of supported securities is as follows:
FAQs
Frontend ticker powered by TradrAPI.
We found that price-ticker 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.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.