Skip to main content

News widget parameters

All parameters are optional. Pass them as data-* attributes on the script tag (kebab-case), or as query parameters on the iframe URL (camelCase).

Content​

ParameterAttributeTypeDefaultNotes
variantdata-variantminimal | fullminimalminimal = one page + "Load more" (or "See more", see seeMoreMode); full = tabs, search, infinite scroll
symboldata-symbolstringnoneInstrument to scope the feed to, as an FMP ticker or a major instrument's broker code (see Symbols), e.g. AAPL, EURUSD, CLUSD. Uppercased automatically; letters, digits and . ^ : -, max 20 chars
categorydata-categorygeneral | stock | forex | cryptocurrencynoneIgnored when symbol is set
pageSizedata-page-sizeinteger 1–5010Articles per page
maxItemsdata-max-itemsinteger 10–200100Cap on total articles loaded
localedata-localestringenSee supported locales

Symbols​

symbol takes an FMP ticker, the symbol DealSize uses. For the major instruments it also takes your broker code (OILUSD for WTI crude); for the rest, the FMP ticker can differ from your broker's name (Apple is AAPL, not APLUSD). A symbol the widget doesn't recognise causes no error: the feed shows "No recent news for APLUSD". Symbols lists the major instruments and their codes, and which instruments have no news.

Appearance​

ParameterAttributeTypeDefaultNotes
accentColordata-accent-colorhex color#069BECLinks, hovers, active tab, AI button
headingColordata-heading-colorhex color#000000Article titles
textColordata-text-colorhex color#6B7280Dates, relative time, inactive tabs, labels
badgeBgColordata-badge-bg-colorhex color#1E1B4BBadges and chips (chips render a light tint of it)
badgeTextColordata-badge-text-colorhex color#FFFFFFText on solid badges

Features​

ParameterAttributeTypeDefaultNotes
showAnalysisButtondata-show-analysis-buttonbooleantrueShows the AI-Nalysis button on articles
showImagesdata-show-imagesbooleantrueArticle thumbnails
seeMoreModedata-see-more-modeload | linkloadMinimal variant only. load appends the next page of articles in place, one page per click, up to maxItems. link shows "See more", which opens seeMoreUrl in a new tab (Linking minimal to full)
seeMoreUrldata-see-more-urlhttp(s) URLDealSize news page"See more" target, used only with seeMoreMode="link". The symbol is added as ds_symbol, which a full widget on that page picks up. A {symbol} token is also replaced
showSeeMoredata-show-see-morebooleantrueShows the "Load more" or "See more" control. Set false to add your own link instead (Using your own link)

Attribution​

ParameterAttributeTypeDefaultNotes
utmSourcedata-utm-sourcestringnoneStrongly recommended. Your domain, used to credit sign-ups to you. See Attribution

Sizing (iframe-level, never forwarded)​

AttributeDefaultNotes
data-width100%CSS width of the container
data-height600pxCSS height, or auto to track content height
data-container-idgeneratedUse an existing element as the container