{"_id":"@elizaos/app-polymarket","_rev":"2-80460e61cc93dbbe62cc897d5ab146aa","name":"@elizaos/app-polymarket","dist-tags":{"beta":"2.0.0-beta.1","latest":"2.0.0-beta.1"},"versions":{"2.0.0-beta.1":{"name":"@elizaos/app-polymarket","version":"2.0.0-beta.1","_id":"@elizaos/app-polymarket@2.0.0-beta.1","maintainers":[{"name":"haruhunab1320","email":"jakob@magickml.com"},{"name":"shawticus","email":"shawmakesmagic@gmail.com"},{"name":"odilitime","email":"janesmith@airmail.cc"}],"dist":{"shasum":"06ac2b29a21e93f94d9069c813118dedcb0ea53c","tarball":"https://registry.npmjs.org/@elizaos/app-polymarket/-/app-polymarket-2.0.0-beta.1.tgz","fileCount":62,"integrity":"sha512-67RmYs7afki0yNIw0t8JZYzV1Mu7KS5WB8rRBwYqHeMYunDRSl+Snfn9yrBqdvIKOMaeYdOqtfNwYolrc4p1Mw==","signatures":[{"sig":"MEYCIQDAnI2GqLGLWmfftx07muCiLkLeQ5VhcKXBjPXNfjooLwIhAIA+bX8jqc1UjTh7bCvvHso+Wqitwt8S/BniUYd/4by3","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":180842},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","elizaos":{"app":{"heroImage":"assets/hero.svg"}},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","default":"./dist/index.js"},"./plugin":{"types":"./dist/plugin.d.ts","import":"./dist/plugin.js","default":"./dist/plugin.js"}},"gitHead":"fb5c65dd89117b393a3c8d0962fe19302efc7cc7","scripts":{"build":"bun run build:js && bun run build:types","clean":"rm -rf dist","build:js":"tsup --config ../tsup.plugin-packages.shared.ts","build:types":"tsc --noCheck -p tsconfig.build.json"},"_npmUser":{"name":"shawticus","email":"shawmakesmagic@gmail.com"},"_npmVersion":"11.5.1","description":"Native Polymarket app plugin for market discovery, orderbook quote reads, position reads, and trading readiness context.","directories":{},"_nodeVersion":"24.5.0","dependencies":{"@elizaos/ui":"2.0.0-beta.1","lucide-react":"^1.0.0","@elizaos/core":"2.0.0-beta.1","@elizaos/shared":"2.0.0-beta.1","@elizaos/app-core":"2.0.0-beta.1"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.5.1"},"_npmOperationalInternal":{"tmp":"tmp/app-polymarket_2.0.0-beta.1_1778451319041_0.867214674600888","host":"s3://npm-registry-packages-npm-production"}}},"time":{"created":"2026-05-10T22:15:18.938Z","modified":"2026-06-16T05:13:24.924Z","2.0.0-beta.1":"2026-05-10T22:15:19.219Z"},"description":"Native Polymarket app plugin for market discovery, orderbook quote reads, position reads, and trading readiness context.","maintainers":[{"email":"shawmakesmagic@gmail.com","name":"shawticus"},{"email":"janesmith@airmail.cc","name":"odilitime"}],"readme":"# @elizaos/app-polymarket\n\nNative Polymarket app plugin for market discovery, orderbook quote reads, position reads, and trading readiness context.\n\n## Agent Actions\n\nWhen the runtime plugin is loaded, it exposes these agent actions:\n\n- `PREDICTION_MARKET`\n\nUse `target: \"polymarket\"` and `subaction: \"read\"` with `kind: \"status\" | \"markets\" | \"market\" | \"orderbook\" | \"positions\"` for public reads. Legacy names such as `POLYMARKET_READ`, `POLYMARKET_STATUS`, `POLYMARKET_GET_MARKETS`, and `POLYMARKET_GET_ORDERBOOK` remain compatibility similes for the consolidated action.\n\nUse `subaction: \"place-order\"` for trading readiness. Signed order placement is intentionally disabled until CLOB signing support is implemented. Legacy `POLYMARKET_PLACE_ORDER` remains a compatibility simile and reports readiness and required configuration instead of placing trades.\n\n## CLI Interoperability Checks\n\nUse the same CLOB token id when comparing app output with the Polymarket CLI. Conditional tokens require the token id, not just the condition id.\n\nUseful parity checks:\n\n```sh\npolymarket-trader diagnose\npolymarket-trader gamma-markets --limit 3\npolymarket-trader quote <TOKEN_ID>\npolymarket-trader orderbook <TOKEN_ID>\npolymarket-trader balance --asset-type COLLATERAL\n```\n\nThe app route `GET /api/polymarket/orderbook?token_id=<TOKEN_ID>` reads the full CLOB orderbook and derives best bid and best ask from all returned levels, matching CLI quote semantics when the upstream CLOB response is not already sorted. Retry transient network errors such as `ECONNRESET` before treating parity checks as failures.\n","readmeFilename":"README.md"}