Install
openclaw skills install @upkuajing/customs-overview-summaryQuery national trade overview summary data — retrieve annual trade totals, quarterly trade volume, and supplier/buyer counts by country pair. Trigger: trade overview summary, annual trade statistics, country trade totals, supplier buyer counts, trade volume summary
openclaw skills install @upkuajing/customs-overview-summaryQuery national trade overview summary data from customs data using the UpKuaJing Open Platform API.
This skill provides aggregated trade summary data from UpKuaJing's customs database. Given an origin country, arrival country, and year, it returns trade totals, quarterly volume, and counts of suppliers and buyers — a high-level overview of trade activity between country pairs.
python --versionpip install -r requirements.txtScript directory: scripts/*.py
Run example: python scripts/*.py
Important: Always use direct script invocation like python scripts/customs_overview_summary.py. Do NOT use shell compound commands like cd scripts && python customs_overview_summary.py
customs_overview_summary.py)This skill requires an API key. The API key is stored in the ~/.upkuajing/.env file:
cat ~/.upkuajing/.env
Example file content:
UPKUAJING_API_KEY=your_api_key_here
First check if the ~/.upkuajing/.env file has UPKUAJING_API_KEY;
If UPKUAJING_API_KEY is not set, prompt the user to choose:
auth.py --new_key), the new key will be automatically saved to ~/.upkuajing/.env
Wait for user selection;When API response indicates insufficient balance, explain and guide user to top up:
auth.py --new_rec_order)Use this script to get account information for UPKUAJING_API_KEY: auth.py --account_info
All API calls incur fees, different interfaces have different billing methods.
Latest pricing: Users can visit Detailed Price Description
Or use: python scripts/auth.py --price_info (returns complete pricing for all interfaces)
Billed by number of calls, each call returns one trade overview summary:
Any operation that incurs fees must first inform and wait for explicit user confirmation. Do not execute in the same message as the notification.
| User Intent | Use API |
|---|---|
| "Get trade summary between China and US for 2025" | Overview Summary Query |
| "Show annual trade overview for CN to US in 2025" | Overview Summary Query |
| "How many suppliers and buyers traded between China and US in 2025" | Overview Summary Query |
User request: "Get trade summary between China and US for 2025"
python scripts/customs_overview_summary.py --params '{"originCountryCode":"CN","arrivalCountryCode":"US","year":2025}'
Query without origin country (all origins to US):
python scripts/customs_overview_summary.py --params '{"arrivalCountryCode":"US","year":2025}'
Query without destination country (from CN to all destinations):
python scripts/customs_overview_summary.py --params '{"originCountryCode":"CN","year":2025}'
UPKUAJING_API_KEY in ~/.upkuajing/.env fileCheck API documentation:
Country codes:
originCountryCode is the origin country (exporter's country)arrivalCountryCode is the destination country (importer's country)Year format:
Cross-skill usage:
year is the only required parametertradeTotal is the annual total trade volumequarterTradeTotal is the latest quarter's trade volumesellerCount and buyerCount are the number of distinct suppliers and buyers respectivelypython scripts/auth.py --price_info to get accurate pricing informationOther UpKuaJing skills you might find useful: