Skip to Content
Canonical source of truth stays in the repository docs. This site is the polished presentation layer.
Workflows And CLI

Workflows And CLI

This page covers the higher-level orchestration layer and the published CLI.

sdk.workflows

sdk.workflows exists for tasks that naturally require multiple lower-level calls.

The same class is also exported as WorkflowResource, but most users access it through sdk.workflows.

Workflow Methods

MethodReturnsBest ForNotes
getPublicMarketFeeds(options?)Promise<CsfloatPublicMarketFeedWorkflowResult>scanners, dashboards, quick public snapshotspulls public search page plus top-deals/newest/unique feeds
getAccountWorkspace(options?)Promise<CsfloatAccountWorkspaceResult>authenticated dashboards and operator toolingpulls me, watchlist, stall, offers, trades, and auto-bids
getSingleSkinBuyOrderInsights(defIndex, paintIndex, options?)Promise<CsfloatSingleSkinBuyOrderInsightResult>research on one skin’s buy-order marketbuilds expression preview, similar orders, and matching listings

Workflow Defaults

ExportMeaning
CSFLOAT_PUBLIC_FEED_WORKFLOW_DEFAULTSdefault feed_limit and public_page_limit
CSFLOAT_ACCOUNT_WORKSPACE_DEFAULTSdefault watchlist/stall/offer/trade/auto-bid limits
CSFLOAT_BUY_ORDER_INSIGHT_DEFAULTSdefault preview price, similar limit, listing limit, and sort

When To Prefer Workflows

Use workflows when:

  • you want a fast snapshot without rebuilding the same Promise.all(...) calls
  • you are wiring dashboards or CLI tools
  • the default orchestration is already close to what you need

Use raw resources when:

  • you need precise per-call parameters
  • you only need one piece of the workflow
  • you want your own batching, ordering, or failure behavior

CLI

The package publishes one bin:

  • csfloat-node-sdk

If the package is installed, you can use:

npx csfloat-node-sdk help

If you are working from source after npm run build, you can use:

node dist/cli.js help

Commands

CommandWhat It Does
feedsfetch the public search snapshot plus current homepage feed variants
workspacefetch the account workspace snapshot
buy-order-similarbuild a single-skin buy-order insight snapshot

feeds

Usage:

csfloat-node-sdk feeds [--api-key <key>] [--public-page-limit <n>] [--feed-limit <n>]

Flags:

FlagMeaning
--api-keyoverride CSFLOAT_API_KEY
--public-page-limitlimit for the public search page
--feed-limitlimit for each homepage feed

Output shape:

  • public_search_page
  • top_deals
  • newest
  • unique

Each list is summarized down to listing essentials such as id, market_hash_name, price, and float_value where available.

workspace

Usage:

csfloat-node-sdk workspace [--api-key <key>] [--watchlist-limit <n>] [--stall-limit <n>] [--offer-limit <n>] [--trade-limit <n>] [--auto-bid-limit <n>]

Flags:

FlagMeaning
--api-keyoverride CSFLOAT_API_KEY
--watchlist-limitwatchlist page size
--stall-limitstall page size
--offer-limitoffer page size
--trade-limittrade page size
--auto-bid-limitnumber of auto-bids to include

Output shape:

  • me
  • watchlist
  • stall
  • offers
  • trades
  • auto_bids

buy-order-similar

Usage:

csfloat-node-sdk buy-order-similar --def-index <n> --paint-index <n> [--api-key <key>] [--similar-limit <n>] [--listing-limit <n>] [--sort-by <value>] [--stattrak true|false] [--souvenir true|false] [--min-float <n>] [--max-float <n>] [--paint-seed <n>] [--rarity <n>] [--preview-max-price <n>] [--quantity <n>]

Required flags:

  • --def-index
  • --paint-index

Optional flags:

FlagMeaning
--api-keyoverride CSFLOAT_API_KEY
--similar-limitnumber of similar orders to fetch
--listing-limitnumber of matching listings to fetch
--sort-bylisting sort for the preview listing query
--stattraktrue or false
--souvenirtrue or false
--min-floatminimum float constraint
--max-floatmaximum float constraint
--paint-seedexact paint seed constraint
--rarityexact rarity constraint
--preview-max-pricemax_price used in the request preview
--quantityoptional preview quantity

Output shape:

  • expression
  • request_preview
  • similar_orders
  • matching_listings

CLI Examples

npx csfloat-node-sdk feeds --api-key "$CSFLOAT_API_KEY" npx csfloat-node-sdk workspace --api-key "$CSFLOAT_API_KEY" --watchlist-limit 3 --stall-limit 3 npx csfloat-node-sdk buy-order-similar --api-key "$CSFLOAT_API_KEY" --def-index 7 --paint-index 72 --stattrak false --souvenir false
Last updated on