npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

tradytics

v0.7.0

Published

JavaScript and TypeScript client for the Tradytics API: options flow, dark pool prints, dealer exposure and market data.

Readme

Tradytics for JavaScript

The official JavaScript and TypeScript client for the Tradytics API: stock quotes and bars, options flow and dealer positioning, dark pool prints, 24/7 stock perpetuals, brokerage-verified Crowd positioning, SEC-backed thematic Takes, Stock DNA, company financials, SEC filings, tracked hedge fund and Congress copy portfolios, and prediction markets. 99 endpoints, one typed method each, no dependencies.

npm types PyPI Endpoints Docs License

npm install tradytics

What you get

  • Options flow: every big print from the full OPRA tape (every US options exchange), live and historical, with side, sweep or block, and whether it opened a position.
  • Dark pool: block and off-exchange prints, each ranked against the stock's own history, and the levels where size traded.
  • Dealer exposure: gamma, delta, vanna and charm by strike and expiry, refreshed through the session, with the change over a day, a week and two weeks.
  • The market: quotes and bars from 1 second to 1 month, Stock DNA factor scores, breadth, sectors, movers, the options market, research, tracked hedge fund and Congress copy portfolios, 24/7 stock perpetuals, brokerage-verified Crowd positioning, SEC-backed thematic Takes, the full-market scanner, Signals, Kalshi and Polymarket odds and the AI Fund.
  • Runs anywhere fetch does: Node 18+, Bun, Deno and edge runtimes. ESM, typed parameters, retries on rate limits, paging and live streaming built in.

Quickstart

Every Tradytics plan includes API access. Make a key at tradytics.com/developer/keys and pass it in, or export it as TRADYTICS_API_KEY. A key you pass wins over the environment.

import Tradytics from 'tradytics'

const client = new Tradytics('tdy_...') // or new Tradytics({ apiKey: 'tdy_...' })
// or set TRADYTICS_API_KEY and call new Tradytics()

const flow = await client.options.flow({ symbol: 'NVDA', min_premium: 1_000_000, opening: true })
for (const p of flow.data) console.log(p.time, p.symbol, p.type, p.strike, p.expiry, p.premium_usd)

Objects come back as { data, meta } and lists as { data, next_cursor, next_url, meta }, the same JSON as the REST API. Keep the key on a server: anyone holding it uses your quota.

Examples

// The year's biggest dark pool prints for one stock, ranked against its own year
await client.darkpool.prints({ symbol: 'AAPL', from: '2026-01-01', max_rank: 10 })

// Dealer gamma by strike with the call wall, put wall and flip; 0DTE only
await client.options.exposure({ symbol: 'SPY', greek: 'gamma', dte: 0 })

// Every quarter Apple has filed, and its 8-Ks as they land
await client.fundamentals.income_statement({ symbol: 'AAPL', period: 'quarter', limit: 40 })
await client.filings.list({ symbol: 'AAPL', form: '8-K' })

// Insider buys over $1M, and Tesla's deliveries quarter by quarter
await client.disclosures.insiders({ type: 'buy', min_value: 1_000_000 })
await client.kpis.list({ symbol: 'TSLA', kpi: 'vehicle_deliveries' })

// Screen the market on any field
await client.screener.stocks({ min_relative_volume: 2, max_rsi: 30, sort: 'change_pct', limit: 25 })

Find relevant SEC filing passages and open their source documents on EDGAR.

const result = await client.filings.search({ q: 'How does Apple manage supply chain risks?', symbol: 'AAPL', form: '10-K' })
for (const filing of result.data) console.log(filing.passage, filing.url)

Every page

for await (const p of client.paginate(client.options.flow, { symbol: 'TSLA', min_premium: 500_000, from: '2026-01-01' })) {
  console.log(p.time, p.premium_usd)
}

New prints as they happen

for await (const p of client.stream(client.options.flow, { min_premium: 250_000 })) {
  console.log(p.symbol, p.type, p.strike, p.premium_usd)
}

stream works with client.options.flow and client.darkpool.prints, polls every two seconds and yields each print once, oldest first.

Errors, retries and limits

Free gets 50 calls a day and 5 a minute. Plus gets 1,000 a day and 10 a minute. Pro gets 50,000 a day and 300 a minute. All API keys and MCP connections share your account limits.

import Tradytics, { TradyticsError } from 'tradytics'

try {
  await client.options.flow({ symbol: 'NVDA', limit: 5000 })
} catch (e) {
  if (e instanceof TradyticsError) console.log(e.status, e.code, e.message, e.requestId) // 400 invalid_parameter ...
}

A 429 or 5xx answer is retried up to three times, waiting as Retry-After says; the daily quota isn't retried. new Tradytics({ apiKey, timeout: 30_000, maxRetries: 3 }) changes the defaults, and client.get('/any/path', params) calls any endpoint by path.

Reference

| Method | Request | Name | | --- | --- | --- | | options | | | | options.flow(params) | GET /options/flow | Options flow | | options.flow_print(id) | GET /options/flow/{id} | One print | | options.flow_timeline(params) | GET /options/flow/timeline | Flow timeline | | options.flow_leaders(params) | GET /options/flow/leaders | Flow leaders | | options.flow_strikes(params) | GET /options/flow/strikes | Flow by strike | | options.unusual(params) | GET /options/unusual | Unusual contracts | | options.chain(params) | GET /options/chain | Option chain | | options.expirations(params) | GET /options/expirations | Expirations | | options.contracts(params) | GET /options/contracts | Contracts | | options.contract(contract) | GET /options/contracts/{contract} | Contract | | options.contract_bars(contract, params) | GET /options/contracts/{contract}/bars | Contract bars | | options.open_interest(params) | GET /options/open-interest | Open interest | | options.exposure(params) | GET /options/exposure | Dealer exposure | | options.exposure_history(params) | GET /options/exposure/history | Exposure history | | options.volatility(params) | GET /options/volatility | Volatility | | options.volatility_history(params) | GET /options/volatility/history | Volatility history | | darkpool | | | | darkpool.prints(params) | GET /darkpool/prints | Dark pool prints | | darkpool.levels(params) | GET /darkpool/levels | Dark pool levels | | darkpool.daily(params) | GET /darkpool/daily | Dark pool by day | | perps | | | | perps.markets(params) | GET /perps/markets | Markets | | perps.market(symbol, params) | GET /perps/markets/{symbol} | Market | | perps.prints(params) | GET /perps/prints | Prints | | perps.positioning(params) | GET /perps/positioning | Live positioning | | perps.wallets(params) | GET /perps/wallets | Top wallets | | perps.wallet(wallet) | GET /perps/wallets/{wallet} | Wallet profile | | stocks | | | | stocks.quotes(params) | GET /stocks/quotes | Quotes | | stocks.bars(params) | GET /stocks/bars | Bars | | stocks.snapshot(params) | GET /stocks/snapshot | Market snapshot | | stocks.technicals(params) | GET /stocks/technicals | Technicals | | stocks.short_interest(params) | GET /stocks/short-interest | Short interest | | stocks.short_volume(params) | GET /stocks/short-volume | Short volume | | stocks.corporate_actions(params) | GET /stocks/corporate-actions | Dividends and splits | | stocks.dna(params) | GET /stocks/dna | Stock DNA rankings | | stocks.dna_detail(symbol, params) | GET /stocks/dna/{symbol} | Stock DNA detail | | fundamentals | | | | fundamentals.profile(params) | GET /fundamentals/profile | Company profile | | fundamentals.income_statement(params) | GET /fundamentals/income-statement | Income statement | | fundamentals.balance_sheet(params) | GET /fundamentals/balance-sheet | Balance sheet | | fundamentals.cash_flow(params) | GET /fundamentals/cash-flow | Cash flow statement | | fundamentals.ratios(params) | GET /fundamentals/ratios | Ratios | | fundamentals.segments(params) | GET /fundamentals/segments | Revenue segments | | fundamentals.earnings(params) | GET /fundamentals/earnings | Earnings | | fundamentals.estimates(params) | GET /fundamentals/estimates | Analyst estimates | | fundamentals.analysts(params) | GET /fundamentals/analysts | Analysts | | fundamentals.transcripts(params) | GET /fundamentals/transcripts | Call transcripts | | fundamentals.etf_holdings(params) | GET /fundamentals/etf-holdings | ETF holdings | | filings | | | | filings.list(params) | GET /filings | List filings | | filings.search(params) | GET /filings/search | Search filings | | filings.get(accession) | GET /filings/{accession} | Filing | | filings.sections(accession, params) | GET /filings/{accession}/sections | Filing sections | | disclosures | | | | disclosures.insiders(params) | GET /disclosures/insiders | Insider trades | | disclosures.institutions(params) | GET /disclosures/institutions | Institutional holders | | disclosures.institution(cik, params) | GET /disclosures/institutions/{cik} | Institution holdings | | disclosures.activists(params) | GET /disclosures/activists | Activist stakes | | disclosures.congress(params) | GET /disclosures/congress | Congress trades | | disclosures.funds(params) | GET /disclosures/funds | Tracked hedge funds | | disclosures.fund(slug) | GET /disclosures/funds/{slug} | Tracked hedge fund book | | disclosures.congress_portfolios(params) | GET /disclosures/congress/portfolios | Congress portfolios | | disclosures.congress_portfolio(slug) | GET /disclosures/congress/portfolios/{slug} | Congress member portfolio | | crowd | | | | crowd.positioning(params) | GET /crowd/positioning | Crowd positioning | | crowd.traders(params) | GET /crowd/traders | Top verified traders | | crowd.trader(id) | GET /crowd/traders/{id} | Verified trader | | crowd.activity(params) | GET /crowd/activity | Crowd activity tape | | takes | | | | takes.list(params) | GET /takes | List takes | | takes.get(id) | GET /takes/{id} | One take | | kpis | | | | kpis.list(params) | GET /kpis | KPIs | | kpis.definitions(params) | GET /kpis/definitions | KPI definitions | | market | | | | market.status() | GET /market/status | Market status | | market.indices() | GET /market/indices | Indices | | market.breadth() | GET /market/breadth | Breadth | | market.sectors(params) | GET /market/sectors | Sectors and themes | | calendar | | | | calendar.earnings(params) | GET /calendar/earnings | Earnings calendar | | calendar.economic(params) | GET /calendar/economic | Economic calendar | | news | | | | news.list(params) | GET /news | News | | screener | | | | screener.stocks(params) | GET /screener/stocks | Screen stocks | | screener.fields() | GET /screener/fields | Screener fields | | signals | | | | signals.list(params) | GET /signals | List signals | | signals.get(id) | GET /signals/{id} | Signal | | signals.performance(params) | GET /signals/performance | Signal performance | | signals.regime() | GET /signals/regime | Market regime | | insights | | | | insights.market(params) | GET /insights/market | Market digest | | insights.movers(params) | GET /insights/movers | Why it's moving | | probabilities | | | | probabilities.list(params) | GET /probabilities | List questions | | probabilities.get(id) | GET /probabilities/{id} | Question | | probabilities.history(id, params) | GET /probabilities/{id}/history | Outcome history | | probabilities.outlook() | GET /probabilities/outlook | S&P 500 outlook | | probabilities.settled(params) | GET /probabilities/settled | Settled markets | | fund | | | | fund.get() | GET /fund | The fund | | fund.trades(params) | GET /fund/trades | Fund trades | | symbols | | | | symbols.list(params) | GET /symbols | List symbols | | symbols.get(symbol) | GET /symbols/{symbol} | Symbol | | account | | | | account.portfolio() | GET /account/portfolio | Your portfolio | | account.portfolio_trades() | GET /account/portfolio/trades | Your trades | | account.portfolio_factors() | GET /account/portfolio/factors | Your factors | | account.portfolio_versus() | GET /account/portfolio/versus | Portfolio vs market | | account.backtests(params) | GET /account/backtests | Your backtests | | account.backtest(id) | GET /account/backtests/{id} | A backtest | | account.dashboards() | GET /account/dashboards | Your dashboards | | account.dashboard(id) | GET /account/dashboards/{id} | A dashboard | | account.watchlists() | GET /account/watchlists | Your watchlists |

Parameters are typed and described in your editor; fields for each are on its docs page.

More