dex-data

v1.7.0
com.donnyautomation/dex-data Checked 1 day ago Published 2 months ago

DEX market data, SEC EDGAR change oracles, LEI and US Treasury curve.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

get_base_liquidity

DEX liquidity, market depth and TVL for a trading pair on BASE, broken down by venue. Returns per-venue USD liquidity, the pools backing it and the total, so you can tell a quote backed by a deep pool from one backed by dust. $0.01 USDC per call after the free tier. First 25 calls/day are free — no wallet, no signup, no key. Example: pair="WETH/USDC".

ParameterTypeDescription
pair *stringToken pair as SYM/SYM on Base, e.g. WETH/USDC.

get_polygon_token_price

Live USD price of a token on POLYGON PoS, read from DEX pools at call time rather than from a cached feed. Returns the price, the pair it was priced through, the USD liquidity backing that quote and a confidence rating; refuses to return a price backed by a dust pool instead of reporting an unreliable number. $0.01 USDC per call after the free tier. First 25 calls/day are free — no wallet, no signup, no key. Example: symbol="WMATIC".

ParameterTypeDescription
symbol *stringToken symbol on Polygon PoS, e.g. WMATIC, WETH, WBTC, USDC, USDT, DAI, LINK.

get_avalanche_pool_reserves

Raw AMM pool reserves and live pool state for a pair on AVALANCHE C-Chain: both token balances, the pool fee in bps, the implied price from those reserves and the pool TVL, all read at one block height which is returned with the answer. This is the underlying data the price and depth tools are derived from — use it when you need to compute your own, or to audit a quote against the chain. $0.01 USDC per call after the free tier. First 25 calls/day are free — no wallet, no signup, no key. Example: pair="WAVAX/USDC".

ParameterTypeDescription
pair *stringToken pair as SYM/SYM on Avalanche C-Chain, e.g. WAVAX/USDC.

find_polygon_arbitrage

Scan POLYGON PoS for cross-venue arbitrage right now: pairs whose price differs enough between DEX venues to be worth acting on, ranked by gross spread. Returns the pair, the cheap and expensive venue, the spread in bps and the liquidity on each side. Gross, not net — gas and slippage are yours to subtract. $0.01 USDC per call after the free tier. First 25 calls/day are free — no wallet, no signup, no key. Example: minSpreadBps=25.

ParameterTypeDescription
limitnumberMaximum opportunities returned.
minSpreadBpsnumberMinimum gross spread to report, in basis points. Default 10.
minVenueTvlUsdnumberIgnore venues thinner than this, in USD. Default 1000.

find_avalanche_arbitrage

Scan AVALANCHE C-Chain for cross-venue arbitrage right now: pairs whose price differs enough between DEX venues to be worth acting on, ranked by gross spread. Returns the pair, the cheap and expensive venue, the spread in bps and the liquidity on each side. Gross, not net — gas and slippage are yours to subtract. $0.01 USDC per call after the free tier. First 25 calls/day are free — no wallet, no signup, no key. Example: minSpreadBps=25.

ParameterTypeDescription
limitnumberMaximum opportunities returned.
minSpreadBpsnumberMinimum gross spread to report, in basis points. Default 10.
minVenueTvlUsdnumberIgnore venues thinner than this, in USD. Default 1000.

get_v4_hook_risk

Uniswap v4 HOOK SECURITY SCAN on Base: decode a hook contract before routing a trade through it. Decodes all 14 hook permission bits from the address (v4-core Hooks.sol), flags swap custody, fee-taking and EIP-1967 upgradeable hooks, and verifies source via Basescan/Sourcify/Blockscout consensus. Returns a custody class (PASSIVE | FLOW_CONTROL | FEE_TAKING | SWAP_CUSTODY | OPAQUE), risk flags and the verification state. It is capability analysis and NEVER outputs SAFE: it tells you what the hook is able to do to your trade, not whether its author intends to. $0.01 USDC per call after the free…

ParameterTypeDescription
address *stringUniswap v4 hook contract address on Base mainnet, 0x + 40 hex characters.

lookup_lei

Look up a company in the GLEIF Legal Entity Identifier golden copy BY NAME, not just by identifier — knowing the LEI already is the hard part. Returns the LEI, registered legal name, previous names, legal form, jurisdiction, legal and headquarters addresses and the registration record. Lapsed, retired and annulled entities come back FLAGGED rather than filtered out: a hidden record and no record are indistinguishable to the caller. $0.03 USDC per call after the free tier. First 25 calls/day are free — no wallet, no signup, no key. Example: q="Apple Inc.".

ParameterTypeDescription
leistringExact 20-character LEI, for a single record instead of a name search.
limitnumberMaximum name-search results, 1..50. Default 10.
qstringLegal entity name, max 200 chars. A bare brand name works — "Apple" finds Apple Inc. Results are ranked across the legal name and any alternative names.

get_company_dossier

COUNTERPARTY DOSSIER for one legal entity in a single call: who it is (GLEIF), whether it is sanctioned (OFAC name screening) and whether it is an SEC registrant, joined and returned together. Use this instead of calling lookup_lei and screening separately when the question is "can we deal with this party". A name match is a REVIEW ITEM, never a determination — the score and the matched alias come back with it. $0.05 USDC per call after the free tier. First 25 calls/day are free — no wallet, no signup, no key. Example: q="Apple Inc." or ticker="AAPL".

ParameterTypeDescription
cikstringSEC Central Index Key, 1 to 10 digits. Alternative to ticker; cik wins if both are sent.
leistringExact 20-character LEI, for an unambiguous subject. Use instead of q.
minScorenumberOFAC name-match threshold 0.1..1, default 0.85. 1.0 is an exact name-token match. Lower it to WIDEN the review set, never to narrow it.
qstringLegal entity name, max 200 chars. Include the suffix for a precise match, e.g. "Apple Inc." rather than "Apple".
tickerstringExchange ticker, e.g. AAPL. Resolves the SEC block directly and supplies the registered name to search GLEIF with.

get_treasury_yield_curve

US Treasury par yield curve: the full set of constant-maturity rates for one business day, from 1 month to 30 years, as published by the Treasury. The risk-free curve behind any discounting, spread or carry calculation. A non-publication date returns 404 with the available range rather than the nearest guess. $0.03 USDC per call after the free tier. First 25 calls/day are free — no wallet, no signup, no key. Example: no arguments for the latest curve, or date="2026-09-02".

ParameterTypeDescription
datestringYYYY-MM-DD business day, for a specific past day. Omit for the most recent published curve.

get_sec_filings

SEC EDGAR FILING CHANGE ORACLE for one issuer: everything this company has filed with the SEC since your cursor, as a delta rather than a dump. Returns accession number, form type, filing and period dates, and the document URL. Amendments are matched with their original (10-K also matches 10-K/A). Reports `matched` and `truncated` so a cut-off delta is never mistaken for a complete one. $0.05 USDC per call after the free tier. First 25 calls/day are free — no wallet, no signup, no key. Example: ticker="AAPL", since="2026-09-01", forms="8-K".

ParameterTypeDescription
since *stringISO date YYYY-MM-DD. INCLUSIVE cursor: filings on this date are returned. Required — this route returns a delta, not a dump.
cikstringSEC Central Index Key, 1 to 10 digits, zero padding optional (e.g. 320193 or 0000320193). Alternative to ticker.
formsstringComma separated form filter, e.g. "10-K,10-Q,8-K". A form also matches its /A amendment; "8-K/A" alone matches only amendments.
limitnumberMaximum filings returned, 1 to 200. Default 50.
tickerstringExchange ticker, e.g. AAPL. Send cik instead when you have it: cik is EDGAR identity, ticker is a convenience. If both are sent, cik wins.

get_sec_events

SEC EDGAR MATERIAL EVENT ORACLE for one issuer: which material events this company has reported since your cursor, decoded from its 8-K item codes rather than left as raw filings. Returns the item code, what it means, and the filing it came from. Filter to the events you care about — 1.01 material agreement, 5.02 officer departure, 2.06 impairment. A malformed code returns 400 bad_items rather than being silently ignored. $0.05 USDC per call after the free tier. First 25 calls/day are free — no wallet, no signup, no key. Example: ticker="TSLA", since="2026-09-01", items="5.02".

ParameterTypeDescription
since *stringISO date YYYY-MM-DD. INCLUSIVE cursor: events filed on this date are returned. Required — this route returns a delta, not a dump.
cikstringSEC Central Index Key, 1 to 10 digits (e.g. 1318605). Alternative to ticker.
itemsstringComma separated 8-K item codes to filter on, e.g. "1.01,5.02,2.06". A filing matches if it carries ANY of them.
limitnumberMaximum events returned, 1 to 200. Default 50.
tickerstringExchange ticker, e.g. TSLA. Send cik instead when you have it. If both are sent, cik wins.

get_sec_insiders

SEC EDGAR OWNERSHIP CHANGE ORACLE for one issuer: who has reported a change in their position since your cursor. Covers Forms 3, 4, 5, SC 13D and SC 13G and nothing outside that set. Returns the reporting owner, their relationship to the issuer, the form and the filing. An amendment is matched with its original and is NOT a second transaction. Active issuers file many Form 4s, so `matched` and `truncated` tell you when you hit the cap. $0.05 USDC per call after the free tier. First 25 calls/day are free — no wallet, no signup, no key. Example: ticker="NVDA", since="2026-09-01", forms="4".

ParameterTypeDescription
since *stringISO date YYYY-MM-DD. INCLUSIVE cursor: ownership filings on this date are returned. Required — this route returns a delta, not a dump.
cikstringSEC Central Index Key, 1 to 10 digits (e.g. 1045810). Alternative to ticker.
formsstringComma separated filter within the ownership set, e.g. "4" or "SC 13D". A form also matches its /A amendment.
limitnumberMaximum filings returned, 1 to 200. Default 50.
tickerstringExchange ticker, e.g. NVDA. Send cik instead when you have it. If both are sent, cik wins.

get_spend_budget

How much this session has spent on paid calls, and the caps in force. Free, local, no network: it makes the cost of continuing visible BEFORE it is incurred. Call it first if you are about to run a loop over paid tools.