← 返回
数据分析 中文

Trade Compass

Global landed cost calculator for traders shipping to the US. Combines live USITC tariffs, Section 232/301/AD-CVD duties, real-time exchange rates (ECB), oce...
面向对美出口贸易商的全球完税成本计算器,整合实时USITC关税、232/301/反倾销与反补贴税、欧洲央行实时汇率等数据。
zhaoningliu1-lang
数据分析 clawhub v3.2.0 1 版本 100000 Key: 无需
★ 0
Stars
📥 589
下载
💾 19
安装
1
版本
#latest

概述

SKILL: Trade Compass

> ClawHub Skill · v3.2.0 · Python 3.11+ · FastAPI backend required

Overview

Trade Compass answers the question: "What does it actually cost me to land this product in the US?"

It combines tariffs (USITC base + Section 232/301 + AD/CVD), exchange rates (18 currencies with 30-day trends), ocean freight (25+ routes from global ports to US coasts), compliance (CPSC/FDA/FCC/UFLPA), and customs costs (broker, ISF, bond, MPF, HMF) into a single landed-cost-per-unit calculation.

Designed for global traders from any country shipping to the United States — not just China.


Capabilities (v3.2)

FeatureDescription
------
Live HTS lookupFetches current MFN base rate directly from USITC (auto-discovers latest revision)
Section 232 overlayAdds steel (+25%) or aluminum (+10%) surcharge for all non-USMCA origins
Section 301 overlayChina-specific: +25% (most goods) or +7.5% (apparel/footwear ch. 61–64)
AD/CVD ordersChecks 16+ active anti-dumping/countervailing duty orders against China; shows "all others" rate and risk level
Live exchange rates14 currencies from ECB (daily auto-refresh) + 4 simulated; optional premium API for all 18
Ocean freight rates25+ routes from global ports to US West/East Coast, with FCL/LCL pricing and 30-day trends
Landed cost calculatorOne-stop endpoint: tariff + FX + shipping + customs = total per-unit landed cost
Auto-refresh schedulerAPScheduler: FX daily, shipping daily, USITC weekly — data persisted in SQLite
Compliance reportMaps HTS chapter to regulatory agencies (CPSC, FDA, FCC, EPA, DOT) with certification requirements
UFLPA risk assessmentFlags cotton, polysilicon, tomato, aluminum, PVC products for CBP detention risk
Customs entry costsCalculates broker fee, ISF filing, bond, MPF, HMF, and exam risk — amortized per unit
Section 122 advisoryFlags the temporary 10% global surcharge (in effect 2026-02-24, expires 2026-07-24)
18+ origin countriesCN, VN, IN, BD, TH, ID, MY, PH, PK, KR, JP, TW, DE, GB, MX, CA, BR, TR and more
Profit calculatorFull breakdown: COG + shipping + tariff + customs + FBA fee + referral fee

How Claude Uses This Skill

When invoked, Claude should:

  1. Identify the HTS code from the user's product description.
    • Use Claude's built-in HTS knowledge to suggest the most specific 10-digit code.
    • If uncertain, start with a 4- or 6-digit prefix.
  1. Call the effective tariff endpoint:

```

GET http://localhost:8000/tariff/{hts_code}/effective?origin={ISO2}

```

Default origin: CN (China). Accept natural-language origin ("Vietnam" → VN).

  1. Present the result clearly:
    • List each duty layer (MFN base, Section 232, Section 301) with its rate and legal basis.
    • Show effective_total_pct as the confirmed total.
    • If adcvd is present, highlight the AD/CVD risk and worst-case total.
    • If compliance_flags is present, list the regulatory agencies.
    • Always display the advisory field if non-empty — the user needs to know about Section 122.
    • Remind the user to verify with a licensed customs broker.
  1. For full landed cost (the most powerful endpoint), call:

```

GET http://localhost:8000/landed-cost?hts_code={code}&origin={ISO2}&cog_local=32&units=500&cbm=5&destination=USWC

```

This combines tariff + FX + shipping + customs into one response.

  1. For exchange rate impact, call:

```

GET http://localhost:8000/fx/{currency}/impact?cog_local=32&units=500

```

  1. For shipping rates, call:

```

GET http://localhost:8000/shipping/{origin}?destination=USWC

```

  1. For AD/CVD, compliance, or profit, call the respective endpoints below.

API Endpoints Reference

MethodPathDescription
---------
GET/landed-cost?hts_code=...&origin=CN&cog_local=32&units=500&cbm=5Comprehensive landed cost — tariff + FX + shipping + customs in one call
GET/tariff/{hts_code}/effective?origin=CNEffective tariff with per-layer breakdown + AD/CVD + compliance flags
GET/live/tariff/{hts_code}Raw USITC MFN rate only (no overlay)
GET/fx/ratesAll tracked exchange rates with 30-day trends
GET/fx/{currency}Single currency rate + trend
GET/fx/{currency}/history30-day daily FX history
GET/fx/{currency}/impact?cog_local=32&units=500FX impact on cost of goods
GET/shipping/routes?origin=CNAll shipping routes with current rates
GET/shipping/{origin}?destination=USWCRates for a specific route
GET/shipping/{origin}/history30-day freight rate history
GET/shipping/{origin}/cost?cbm=2.5&units=500Per-unit shipping cost (LCL/FCL)
GET/adcvd/{hts_code}?origin=CNAD/CVD order matching
GET/compliance/{hts_code}?origin=CNCompliance report (regulatory + UFLPA + marking)
GET/compliance/entry-costs?origin=CN&estimated_value_usd=5000Customs entry costs
GET/amazon/profit/{asin}?origin=CN&include_adcvd=trueAmazon FBA profit with full tariff + customs
GET/data-sourcesShow active data sources and last refresh times
GET/healthAPI health check

Data Sources & Auto-Refresh

Data TypeFree SourceRefreshPremium Source (optional)
------------
Tariff ratesUSITC live (always free)Weekly (Monday)
Exchange ratesECB via frankfurter.app (14 currencies)Dailyexchangerate-api.com (all 18 currencies)
Shipping ratesCalibrated simulation (based on FBX index)DailyFreightos API (real container rates)

ECB Currency Gap

The free ECB feed does not cover: VND, BDT, PKR, TWD. These 4 currencies use calibrated simulation and are marked with source: "simulated" in the response. Set EXCHANGERATE_API_KEY to get real rates for all 18 currencies.

Optional Premium API Keys

For more accurate data, users can register for paid APIs. The skill will automatically detect and use them:

Env VariableProviderFree TierWhat It Unlocks
------------
EXCHANGERATE_API_KEYexchangerate-api.com1,500 calls/monthReal rates for VND, BDT, PKR, TWD + sub-daily updates
FREIGHTOS_API_KEYFreightosPaid onlyReal container shipping rates from carriers
TARIFF_WATCH_DATA_DIRCustom path for SQLite data (default: ~/.tariff-watch/)

Without any API keys, the skill works fully using free ECB data + calibrated simulation. No registration required.

Data Refresh Schedule

  • FX rates: Updated daily (after ECB publishes)
  • Shipping rates: Updated daily (simulation or Freightos)
  • USITC tariffs: Updated weekly (Monday)
  • First startup: Automatically backfills 30 days of history

Tariff Logic (Current as of 2026-02-26)

Confirmed in-force duties

LayerAuthorityRateScope
------------
MFN baseUSITC HTSVaries (0–6.5% typical)All countries
Section 232 — SteelTrade Expansion Act s.232+25%All except USMCA (ch. 72–73)
Section 232 — AluminumTrade Expansion Act s.232+10%All except USMCA (ch. 76)
Section 301 — Lists 1–4ATrade Act of 1974 s.301+25%China only (most goods)
Section 301 — List 4BTrade Act of 1974 s.301+7.5%China only (apparel/footwear ch. 61–64)

AD/CVD orders (company-specific — "all others" rate shown)

ProductCaseAll Others Rate
---------
Aluminum ExtrusionsA-570-967 / C-570-96832.79%
Aluminum FoilA-570-116 / C-570-11748.64%
Steel NailsA-570-900 / C-570-901118.04%
Wooden Bedroom FurnitureA-570-847198.08%
Quartz Surface ProductsA-570-082 / C-570-083294.57%
… and 11 more orders

Struck down — NOT applied

LayerReason
------
IEEPA reciprocal tariffsSCOTUS ruling 2026-02-20 (Learning Resources v. Trump)
IEEPA fentanyl tariff on ChinaSame ruling; CBP stopped collection 2026-02-24

Advisory — shown but NOT added to calculated total

LayerStatus
------
Section 122 +10% global surcharge (HTS 9903.03.01)In effect 2026-02-24 to 2026-07-24; Congress must act to extend

Limitations & Disclaimer

  • Data source: USITC publishes the official HTS schedule; this skill reads it directly. Rate data is as current as the latest USITC revision.
  • Section 122 is confirmed in effect but deliberately excluded from effective_total_pct due to its temporary, politically fluid nature — always check the advisory field.
  • AD/CVD rates are company-specific. The "all others" rate shown is applied to exporters without an individual rate from a Commerce Dept. administrative review. Your actual rate may be lower.
  • Compliance data covers major agencies but is not exhaustive. Some products have additional state-level or industry-specific requirements.
  • For informational purposes only. Always verify tariff obligations with CBP binding rulings, a licensed customs broker, or qualified trade counsel before making import decisions.

版本历史

共 1 个版本

  • v3.2.0 当前
    2026-03-30 15:02 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

data-analysis

A股量化 AkShare

mbpz
A股量化数据分析工具,基于AkShare库获取A股行情、财务数据、板块信息等。用于回答关于A股股票查询、行情数据、财务分析、选股等问题。
★ 165 📥 60,092
data-analysis

Excel / XLSX

ivangdavila
创建、检查和编辑 Microsoft Excel 工作簿及 XLSX 文件,支持可靠的公式、日期、类型、格式、重算及模板保留功能。
★ 368 📥 140,594
productivity

Tariff Watch Clean

zhaoningliu1-lang
面向输美贸易商的全球到岸成本计算器。实时查询美国关税,叠加232/301/反倾销-反补贴税,监控汇率及海运费。
★ 0 📥 651