{"id":"8946bfe6-4ed6-45e3-989b-7e7db2581faa","slug":"etherdrake-openclaw-china-market-gateway","name":"openclaw-china-market-gateway","description":"China Market Gateway Skill","canonicalUrl":"https://www.xpersona.co/skill/etherdrake-openclaw-china-market-gateway","sourceUrl":"https://github.com/Etherdrake/openclaw-china-market-gateway","homepage":null,"source":"GITHUB_OPENCLEW","vendor":{"slug":"etherdrake","label":"Etherdrake","url":"https://github.com/Etherdrake/openclaw-china-market-gateway"},"protocols":["OPENCLEW"],"capabilities":["the"],"trustScore":null,"trustConfidence":"unknown","artifactCount":0,"benchmarkCount":0,"lastRelease":null,"freshnessAt":"2026-04-14T22:24:24.040Z","freshnessLabel":"Apr 14, 2026","securityReviewed":true,"openapiReady":true,"stats":[{"label":"Trust score","value":"Unknown"},{"label":"Compatibility","value":"OpenClaw"},{"label":"Freshness","value":"Apr 14, 2026"},{"label":"Vendor","value":"Etherdrake"},{"label":"Artifacts","value":"0"},{"label":"Benchmarks","value":"0"},{"label":"Last release","value":"Unpublished"}],"factsPreview":[{"factKey":"docs_crawl","category":"integration","label":"Crawlable docs","value":"6 indexed pages on the official domain","href":"https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fopenclaw%2Fskills%2Ftree%2Fmain%2Fskills%2Fasleep123%2Fcaldav-calendar","sourceUrl":"https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fopenclaw%2Fskills%2Ftree%2Fmain%2Fskills%2Fasleep123%2Fcaldav-calendar","sourceType":"search_document","confidence":"medium","observedAt":"2026-04-15T05:03:46.393Z","isPublic":true},{"factKey":"vendor","category":"vendor","label":"Vendor","value":"Etherdrake","href":"https://github.com/Etherdrake/openclaw-china-market-gateway","sourceUrl":"https://github.com/Etherdrake/openclaw-china-market-gateway","sourceType":"profile","confidence":"medium","observedAt":"2026-04-14T22:24:24.040Z","isPublic":true},{"factKey":"traction","category":"adoption","label":"Adoption signal","value":"3 GitHub stars","href":"https://github.com/Etherdrake/openclaw-china-market-gateway","sourceUrl":"https://github.com/Etherdrake/openclaw-china-market-gateway","sourceType":"profile","confidence":"medium","observedAt":"2026-04-14T22:24:24.040Z","isPublic":true},{"factKey":"protocols","category":"compatibility","label":"Protocol compatibility","value":"OpenClaw","href":"https://www.xpersona.co/api/v1/agents/etherdrake-openclaw-china-market-gateway/contract","sourceUrl":"https://www.xpersona.co/api/v1/agents/etherdrake-openclaw-china-market-gateway/contract","sourceType":"contract","confidence":"medium","observedAt":"2026-02-24T19:43:31.607Z","isPublic":true},{"factKey":"auth_modes","category":"compatibility","label":"Auth modes","value":"api_key","href":"https://www.xpersona.co/api/v1/agents/etherdrake-openclaw-china-market-gateway/contract","sourceUrl":"https://www.xpersona.co/api/v1/agents/etherdrake-openclaw-china-market-gateway/contract","sourceType":"contract","confidence":"high","observedAt":"2026-02-24T19:43:31.607Z","isPublic":true},{"factKey":"schema_refs","category":"artifact","label":"Machine-readable schemas","value":"OpenAPI or schema references published","href":"https://github.com/Etherdrake/openclaw-china-market-gateway#input","sourceUrl":"https://www.xpersona.co/api/v1/agents/etherdrake-openclaw-china-market-gateway/contract","sourceType":"contract","confidence":"high","observedAt":"2026-02-24T19:43:31.607Z","isPublic":true},{"factKey":"handshake_status","category":"security","label":"Handshake status","value":"UNKNOWN","href":"https://www.xpersona.co/api/v1/agents/etherdrake-openclaw-china-market-gateway/trust","sourceUrl":"https://www.xpersona.co/api/v1/agents/etherdrake-openclaw-china-market-gateway/trust","sourceType":"trust","confidence":"medium","observedAt":null,"isPublic":true}],"highlights":["3 GitHub stars","Schema refs published","Trust evidence available"],"agentCard":{"name":"openclaw-china-market-gateway","description":"China Market Gateway Skill","source":"GITHUB_OPENCLEW","sourceId":"github:1149032343","repository":"https://github.com/Etherdrake/openclaw-china-market-gateway","documentation":"https://www.xpersona.co/skill/etherdrake-openclaw-china-market-gateway/agent/etherdrake-openclaw-china-market-gateway","protocols":["OPENCLEW"],"capabilities":["the"],"languages":["typescript"],"install":{"command":"git clone https://github.com/Etherdrake/openclaw-china-market-gateway.git","ecosystem":"git"},"examples":[{"kind":"example","language":"python","snippet":"import requests\nfrom bs4 import BeautifulSoup\nimport json\nimport re\nimport time\nfrom datetime import datetime, timedelta\nfrom typing import Optional, Dict, List, Any\nimport logging\n\n# Configure logging\nlogging.basicConfig(level=logging.INFO)\nlogger = logging.getLogger(__name__)\n\nclass YuanData:\n    \"\"\"Chinese Finance Data Retrieval Class\"\"\"\n\n    def __init__(self, proxy: Optional[str] = None):\n        self.session = requests.Session()\n        self.proxy = proxy\n        self.headers = {\n            'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36',\n            'Accept': 'application/json, text/html,application/xhtml+xml',\n            'Accept-Language': 'zh-CN,zh;q=0.9,en;q=0.8',\n        }\n        if proxy:\n            self.session.proxies = {'http': proxy, 'https': proxy}\n\n    def _request(self, url: str, headers: Optional[Dict] = None, \n                 timeout: int = 30) -> Optional[Any]:\n        \"\"\"Generic HTTP request handler\"\"\"\n        try:\n            req_headers = {**self.headers, **(headers or {})}\n            response = self.session.get(url, headers=req_headers, timeout=timeout)\n            response.raise_for_status()\n            return response\n        except Exception as e:\n            logger.error(f\"Request failed: {url} - {e}\")\n            return None"},{"kind":"example","language":"python","snippet":"class SinaStockAPI:\n    \"\"\"Sina Finance Real-Time Stock Data\"\"\"\n\n    BASE_URL = \"http://hq.sinajs.cn\"\n\n    def __init__(self, yuan_data: YuanData):\n        self.parent = yuan_data\n\n    def get_stock_quote(self, stock_code: str) -> Optional[Dict]:\n        \"\"\"\n        Get real-time stock quote from Sina\n\n        Args:\n            stock_code: Stock code (e.g., 'sh600519', 'hk00700')\n\n        Returns:\n            Dict with price, volume, change data\n        \"\"\"\n        # Handle HK stock format (add leading zero)\n        if stock_code.startswith('hk') and len(stock_code) == 6:\n            stock_code = 'hk0' + stock_code[2:]\n\n        timestamp = int(time.time() * 1000)\n        url = f\"{self.BASE_URL}/rn={timestamp}&list={stock_code}\"\n\n        headers = {\n            'Host': 'hq.sinajs.cn',\n            'Referer': 'https://finance.sina.com.cn/',\n        }\n\n        response = self.parent._request(url, headers=headers)\n        if not response:\n            return None\n\n        # Parse response: var hq_str_sh600519=\"name,open,high,low,close,...\";\n        content = response.text\n        match = re.search(r'hq_str_' + re.escape(stock_code) + r'=\"([^\"]+)\";', content)\n\n        if not match or not match.group(1).strip():\n            logger.warning(f\"No data for {stock_code}\")\n            return None\n\n        data = match.group(1).split(',')\n        return self._parse_stock_data(stock_code, data)\n\n    def _parse_stock_data(self, code: str, data: List[str]) -> Dict:\n        \"\"\"Parse Sina stock data response\"\"\"\n        if code.startswith('sh') or code.startswith('sz'):\n            return {\n                'code': code,\n                'name': data[0],\n                'open': float(data[1]),\n                'pre_close': float(data[2]),\n                'close': float(data[3]),\n                'high': float(data[4]),\n                'low': float(data[5]),\n                'buy_price': float(data[6]),\n                'sell_price': float(data[7]),\n                'volume': int(data[8]),\n    "}]}}