{"_id":"@alpha-arcade/sdk","_rev":"36-42f542b75ec357cd3ff422f7a3cb80e3","name":"@alpha-arcade/sdk","dist-tags":{"latest":"0.5.2"},"versions":{"0.1.0":{"name":"@alpha-arcade/sdk","version":"0.1.0","keywords":["algorand","prediction-market","trading","sdk","alpha-market","defi","orderbook"],"license":"MIT","_id":"@alpha-arcade/sdk@0.1.0","maintainers":[{"name":"alphagoat","email":"mark@lofty.ai"}],"homepage":"https://github.com/alpha-market/alpha-sdk#readme","bugs":{"url":"https://github.com/alpha-market/alpha-sdk/issues"},"dist":{"shasum":"728280ba847ff6c030a7eca026e17e9d6cceba10","tarball":"https://registry.npmjs.org/@alpha-arcade/sdk/-/sdk-0.1.0.tgz","fileCount":9,"integrity":"sha512-F9+NTxgwXwagcY8+gn3GKnSHCGT9E8d4/laHjOk9VGAwXXnZ1WWstmJ93OWLW7eIJDJ3zDA49tAT5yubPhsWmA==","signatures":[{"sig":"MEUCIDvISFhU/CRLEfkVHV6C5HL+tkwkwKX1AbkM6WjgAi0fAiEAn2r4kYXNKJfmtA4B3GyZyJN6iDQ0yCiX0pWUyO8TnH0=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":848603},"main":"./dist/index.cjs","type":"module","types":"./dist/index.d.ts","module":"./dist/index.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs"}},"gitHead":"4959ba76c888526326c22c17ae0dc4cc21b704c3","scripts":{"dev":"tsup --watch","docs":"typedoc --out docs src/index.ts","lint":"eslint src/","test":"vitest run","build":"tsup","test:unit":"vitest run tests/fees.test.ts","typecheck":"tsc --noEmit","test:watch":"vitest","prepublishOnly":"npm run build","test:integration":"vitest run tests/markets.test.ts tests/orderbook.test.ts tests/trading.test.ts tests/matching.test.ts tests/positions.test.ts tests/claim.test.ts"},"_npmUser":{"name":"alphagoat","email":"mark@lofty.ai"},"repository":{"url":"git+https://github.com/alpha-market/alpha-sdk.git","type":"git"},"_npmVersion":"9.6.7","description":"TypeScript SDK for trading on Alpha Market — Algorand prediction markets. Place orders, manage positions, read orderbooks, and build trading bots.","directories":{},"_nodeVersion":"18.17.1","dependencies":{"decimal.js":"^10.4.3"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.5.0","dotenv":"^16.4.7","eslint":"^9.0.0","vitest":"^3.0.0","algosdk":"^2.7.0","typedoc":"^0.27.0","typescript":"^5.6.3","@types/node":"^25.2.3","@algorandfoundation/algokit-utils":"^6.0.2"},"peerDependencies":{"algosdk":"^2.7.0","@algorandfoundation/algokit-utils":"^6.0.2"},"_npmOperationalInternal":{"tmp":"tmp/sdk_0.1.0_1771023456281_0.8255335064195546","host":"s3://npm-registry-packages-npm-production"}},"0.1.1":{"name":"@alpha-arcade/sdk","version":"0.1.1","keywords":["algorand","prediction-market","trading","sdk","alpha-market","defi","orderbook"],"license":"MIT","_id":"@alpha-arcade/sdk@0.1.1","maintainers":[{"name":"alphagoat","email":"mark@lofty.ai"}],"homepage":"https://github.com/phara23/alpha-sdk#readme","bugs":{"url":"https://github.com/phara23/alpha-sdk/issues"},"dist":{"shasum":"26372464b2c74d365740e4e83ab81c9c18d0cb7c","tarball":"https://registry.npmjs.org/@alpha-arcade/sdk/-/sdk-0.1.1.tgz","fileCount":9,"integrity":"sha512-mj3d+dKJFWrDuf7A2rb3Dt+qCrDgch5tfT9geBNIwPXPUri1sg5IaZ3p8qmM7steHkthQwFDDqbNVoK31WcNEg==","signatures":[{"sig":"MEYCIQCHY86/+tu9+x0hAlLljyBk5UTtf1ZrhjqzpTd9/6+f+AIhANsY4C6AHr+9EofP0dzDfblBtYudsrCQUdkose+0hpbA","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":848598},"main":"./dist/index.cjs","type":"module","types":"./dist/index.d.ts","module":"./dist/index.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs"}},"gitHead":"4a2091cb168daedc565fd7d61af5cc8c08d7c0c2","scripts":{"dev":"tsup --watch","docs":"typedoc --out docs src/index.ts","lint":"eslint src/","test":"vitest run","build":"tsup","test:unit":"vitest run tests/fees.test.ts","typecheck":"tsc --noEmit","test:watch":"vitest","prepublishOnly":"npm run build","test:integration":"vitest run tests/markets.test.ts tests/orderbook.test.ts tests/trading.test.ts tests/matching.test.ts tests/positions.test.ts tests/claim.test.ts"},"_npmUser":{"name":"alphagoat","email":"mark@lofty.ai"},"repository":{"url":"git+https://github.com/phara23/alpha-sdk.git","type":"git"},"_npmVersion":"9.6.7","description":"TypeScript SDK for trading on Alpha Market — Algorand prediction markets. Place orders, manage positions, read orderbooks, and build trading bots.","directories":{},"_nodeVersion":"18.17.1","dependencies":{"decimal.js":"^10.4.3"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.5.0","dotenv":"^16.4.7","eslint":"^9.0.0","vitest":"^3.0.0","algosdk":"^2.7.0","typedoc":"^0.27.0","typescript":"^5.6.3","@types/node":"^25.2.3","@algorandfoundation/algokit-utils":"^6.0.2"},"peerDependencies":{"algosdk":"^2.7.0","@algorandfoundation/algokit-utils":"^6.0.2"},"_npmOperationalInternal":{"tmp":"tmp/sdk_0.1.1_1771024344710_0.7822050135498948","host":"s3://npm-registry-packages-npm-production"}},"0.1.2":{"name":"@alpha-arcade/sdk","version":"0.1.2","keywords":["algorand","prediction-market","trading","sdk","alpha-market","defi","orderbook"],"license":"MIT","_id":"@alpha-arcade/sdk@0.1.2","maintainers":[{"name":"alphagoat","email":"mark@lofty.ai"}],"homepage":"https://github.com/phara23/alpha-sdk#readme","bugs":{"url":"https://github.com/phara23/alpha-sdk/issues"},"dist":{"shasum":"81be67f845a7ee239d8c0230853e1cf329d6583b","tarball":"https://registry.npmjs.org/@alpha-arcade/sdk/-/sdk-0.1.2.tgz","fileCount":9,"integrity":"sha512-HJZilfJRBOnuhHNXeCRB582gdysRvL4Qz6RYj7/UHrdI0PjBGhQlj9W1Z/qpnkm+RjMEIxPoO9v1WfyG7qAjmw==","signatures":[{"sig":"MEQCIERvfJ4t1vM/zPKRPtZEW6h8/+KKWS2zTrjZmUzhrnBLAiAaf40vjzTdHytd3+FG1H2y8JC0DYuTZHN80XTSFTsllw==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":847570},"main":"./dist/index.cjs","type":"module","types":"./dist/index.d.ts","module":"./dist/index.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs"}},"gitHead":"ec12c48baef0b9423007a8591f0b780f1172c635","scripts":{"dev":"tsup --watch","docs":"typedoc --out docs src/index.ts","lint":"eslint src/","test":"vitest run","build":"tsup","test:unit":"vitest run tests/fees.test.ts","typecheck":"tsc --noEmit","test:watch":"vitest","prepublishOnly":"npm run build","test:integration":"vitest run tests/markets.test.ts tests/orderbook.test.ts tests/trading.test.ts tests/matching.test.ts tests/positions.test.ts tests/claim.test.ts"},"_npmUser":{"name":"alphagoat","email":"mark@lofty.ai"},"repository":{"url":"git+https://github.com/phara23/alpha-sdk.git","type":"git"},"_npmVersion":"9.6.7","description":"TypeScript SDK for trading on Alpha Market — Algorand prediction markets. Place orders, manage positions, read orderbooks, and build trading bots.","directories":{},"_nodeVersion":"18.17.1","dependencies":{"decimal.js":"^10.4.3"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.5.0","dotenv":"^16.4.7","eslint":"^9.0.0","vitest":"^3.0.0","algosdk":"^2.7.0","typedoc":"^0.27.0","typescript":"^5.6.3","@types/node":"^25.2.3","@algorandfoundation/algokit-utils":"^6.0.2"},"peerDependencies":{"algosdk":"^2.7.0","@algorandfoundation/algokit-utils":"^6.0.2"},"_npmOperationalInternal":{"tmp":"tmp/sdk_0.1.2_1771024952975_0.24075527125067664","host":"s3://npm-registry-packages-npm-production"}},"0.2.0":{"name":"@alpha-arcade/sdk","version":"0.2.0","keywords":["algorand","prediction-market","trading","sdk","alpha-market","defi","orderbook"],"license":"MIT","_id":"@alpha-arcade/sdk@0.2.0","maintainers":[{"name":"alphagoat","email":"mark@lofty.ai"}],"homepage":"https://github.com/phara23/alpha-sdk#readme","bugs":{"url":"https://github.com/phara23/alpha-sdk/issues"},"dist":{"shasum":"795c0de19cca82963d142202e13b7c864fe81fe2","tarball":"https://registry.npmjs.org/@alpha-arcade/sdk/-/sdk-0.2.0.tgz","fileCount":9,"integrity":"sha512-sxqtutUJun30g/Ma6sJqY08M3SJYRmmETDpl5HSLtbYNTflDNn9oC0QKzRya0sguoD2O18Ic5uiCREg+haexAQ==","signatures":[{"sig":"MEQCIDu746f5RDHOLbyN8OLPql7SrkUwstTYiZOfQ3y9dVQeAiArVEdrO56p//Bom2d97fD5eJiKRYXMLF3dnol1GYgbjg==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":898138},"main":"./dist/index.cjs","type":"module","types":"./dist/index.d.ts","module":"./dist/index.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs"}},"gitHead":"2319afd998ef7f837d980b5581df7c4a94bd1f10","scripts":{"dev":"tsup --watch","docs":"typedoc --out docs src/index.ts","lint":"eslint src/","test":"vitest run","build":"tsup","test:unit":"vitest run tests/fees.test.ts","typecheck":"tsc --noEmit","test:watch":"vitest","prepublishOnly":"npm run build","test:integration":"vitest run tests/markets.test.ts tests/orderbook.test.ts tests/trading.test.ts tests/matching.test.ts tests/positions.test.ts tests/claim.test.ts"},"_npmUser":{"name":"alphagoat","email":"mark@lofty.ai"},"repository":{"url":"git+https://github.com/phara23/alpha-sdk.git","type":"git"},"_npmVersion":"9.6.7","description":"TypeScript SDK for trading on Alpha Market — Algorand prediction markets. Place orders, manage positions, read orderbooks, and build trading bots.","directories":{},"_nodeVersion":"18.17.1","dependencies":{"decimal.js":"^10.4.3"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.5.0","dotenv":"^16.4.7","eslint":"^9.0.0","vitest":"^3.0.0","algosdk":"^2.7.0","typedoc":"^0.27.0","typescript":"^5.6.3","@types/node":"^25.2.3","@algorandfoundation/algokit-utils":"^6.0.2"},"peerDependencies":{"algosdk":"^2.7.0","@algorandfoundation/algokit-utils":"^6.0.2"},"_npmOperationalInternal":{"tmp":"tmp/sdk_0.2.0_1771032539408_0.2150703773400362","host":"s3://npm-registry-packages-npm-production"}},"0.2.1":{"name":"@alpha-arcade/sdk","version":"0.2.1","keywords":["algorand","prediction-market","trading","sdk","alpha-market","defi","orderbook"],"license":"MIT","_id":"@alpha-arcade/sdk@0.2.1","maintainers":[{"name":"alphagoat","email":"mark@lofty.ai"}],"homepage":"https://github.com/phara23/alpha-sdk#readme","bugs":{"url":"https://github.com/phara23/alpha-sdk/issues"},"dist":{"shasum":"05dc39a8d4eac303b372d7320ffdb66b4366a7f5","tarball":"https://registry.npmjs.org/@alpha-arcade/sdk/-/sdk-0.2.1.tgz","fileCount":9,"integrity":"sha512-N//RQ1MzCS1q1xCFrty71KFceXloRfodu+t07B15CfKtPI4mvkXJ3HoLeYKsnQsmUCPJakmayAu1evokuUxpLw==","signatures":[{"sig":"MEYCIQCpG2qFtiuYHfhuL+MOyw1Q+YDMHW5R6W1vAxgahSvjMgIhAMC4x8ic1YGe9jQG06VwGib1fNi8vFiNa629IrPmrKWo","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":899866},"main":"./dist/index.cjs","type":"module","types":"./dist/index.d.ts","module":"./dist/index.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs"}},"gitHead":"7a9ff0006a58b1777da3189342f967d80275b464","scripts":{"dev":"tsup --watch","docs":"typedoc --out docs src/index.ts","lint":"eslint src/","test":"vitest run","build":"tsup","test:unit":"vitest run tests/fees.test.ts","typecheck":"tsc --noEmit","test:watch":"vitest","prepublishOnly":"npm run build","test:integration":"vitest run tests/markets.test.ts tests/orderbook.test.ts tests/trading.test.ts tests/matching.test.ts tests/positions.test.ts tests/claim.test.ts"},"_npmUser":{"name":"alphagoat","email":"mark@lofty.ai"},"repository":{"url":"git+https://github.com/phara23/alpha-sdk.git","type":"git"},"_npmVersion":"9.6.7","description":"TypeScript SDK for trading on Alpha Market — Algorand prediction markets. Place orders, manage positions, read orderbooks, and build trading bots.","directories":{},"_nodeVersion":"18.17.1","dependencies":{"decimal.js":"^10.4.3"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.5.0","dotenv":"^16.4.7","eslint":"^9.0.0","vitest":"^3.0.0","algosdk":"^2.7.0","typedoc":"^0.27.0","typescript":"^5.6.3","@types/node":"^25.2.3","@algorandfoundation/algokit-utils":"^6.0.2"},"peerDependencies":{"algosdk":"^2.7.0","@algorandfoundation/algokit-utils":"^6.0.2"},"_npmOperationalInternal":{"tmp":"tmp/sdk_0.2.1_1771139612504_0.17958252038883815","host":"s3://npm-registry-packages-npm-production"}},"0.2.2":{"name":"@alpha-arcade/sdk","version":"0.2.2","keywords":["algorand","prediction-market","trading","sdk","alpha-market","defi","orderbook"],"license":"MIT","_id":"@alpha-arcade/sdk@0.2.2","maintainers":[{"name":"alphagoat","email":"mark@lofty.ai"}],"homepage":"https://github.com/phara23/alpha-sdk#readme","bugs":{"url":"https://github.com/phara23/alpha-sdk/issues"},"dist":{"shasum":"bc979e6bd5a1203834bca8353ff38a7da570fa0a","tarball":"https://registry.npmjs.org/@alpha-arcade/sdk/-/sdk-0.2.2.tgz","fileCount":9,"integrity":"sha512-JbaUzb1DW9FcQsjIjafBsZd2Rt98K5A8ajlCEvfiuwoMElCqQS7OMcDCtxrlhB51YANQ4CCV6cAnjeyxbw/Gjg==","signatures":[{"sig":"MEYCIQC2P9fkOHhm6uZ2BJ6X45clcxwo6Yg7FW/gveftSp2qzgIhAKcs5FzA0sHPF2iIwpfDlhWqwluQPuGQ2Ze5xnKtCyse","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":899866},"main":"./dist/index.cjs","type":"module","types":"./dist/index.d.ts","module":"./dist/index.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs"}},"gitHead":"ae879943bcd658ffc2941de24a3bd960cfdf8776","scripts":{"dev":"tsup --watch","docs":"typedoc --out docs src/index.ts","lint":"eslint src/","test":"vitest run","build":"tsup","test:unit":"vitest run tests/fees.test.ts","typecheck":"tsc --noEmit","test:watch":"vitest","prepublishOnly":"npm run build","test:integration":"vitest run tests/markets.test.ts tests/orderbook.test.ts tests/trading.test.ts tests/matching.test.ts tests/positions.test.ts tests/claim.test.ts"},"_npmUser":{"name":"alphagoat","email":"mark@lofty.ai"},"repository":{"url":"git+https://github.com/phara23/alpha-sdk.git","type":"git"},"_npmVersion":"9.6.7","description":"TypeScript SDK for trading on Alpha Market — Algorand prediction markets. Place orders, manage positions, read orderbooks, and build trading bots.","directories":{},"_nodeVersion":"18.17.1","dependencies":{"decimal.js":"^10.4.3"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.5.0","dotenv":"^16.4.7","eslint":"^9.0.0","vitest":"^3.0.0","algosdk":"^2.7.0","typedoc":"^0.27.0","typescript":"^5.6.3","@types/node":"^25.2.3","@algorandfoundation/algokit-utils":"^6.0.2"},"peerDependencies":{"algosdk":"^2.7.0","@algorandfoundation/algokit-utils":"^6.0.2"},"_npmOperationalInternal":{"tmp":"tmp/sdk_0.2.2_1771140006635_0.9005997824508787","host":"s3://npm-registry-packages-npm-production"}},"0.2.3":{"name":"@alpha-arcade/sdk","version":"0.2.3","keywords":["algorand","prediction-market","trading","sdk","alpha-market","defi","orderbook"],"license":"MIT","_id":"@alpha-arcade/sdk@0.2.3","maintainers":[{"name":"alphagoat","email":"mark@lofty.ai"}],"homepage":"https://github.com/phara23/alpha-sdk#readme","bugs":{"url":"https://github.com/phara23/alpha-sdk/issues"},"dist":{"shasum":"2329f9790a7b7cc9788bd11b79598942eed63fe2","tarball":"https://registry.npmjs.org/@alpha-arcade/sdk/-/sdk-0.2.3.tgz","fileCount":9,"integrity":"sha512-NGBKe0lyzdhDaADpuNBc48K3qWonqwA3FDlpJVXF1nIWfoTPkvt94TX6cC4CmtKEY0BKq9zVY4NHttV/36SnbA==","signatures":[{"sig":"MEUCIQDRX8S8TI1KCg2efK9DXTlOo6QsfeJquNaLb3rvIKeubgIgDdOE8yUr2xAyq9WeHTurPl0tyRWq7sK1g5sMWcsnU3g=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":904354},"main":"./dist/index.cjs","type":"module","types":"./dist/index.d.ts","module":"./dist/index.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs"}},"gitHead":"36c862ef0269afdf0628f8081b9470b1ba6a1214","scripts":{"dev":"tsup --watch","docs":"typedoc --out docs src/index.ts","lint":"eslint src/","test":"vitest run","build":"tsup","test:unit":"vitest run tests/fees.test.ts","typecheck":"tsc --noEmit","test:watch":"vitest","prepublishOnly":"npm run build","test:integration":"vitest run tests/markets.test.ts tests/orderbook.test.ts tests/trading.test.ts tests/matching.test.ts tests/positions.test.ts tests/claim.test.ts"},"_npmUser":{"name":"alphagoat","email":"mark@lofty.ai"},"repository":{"url":"git+https://github.com/phara23/alpha-sdk.git","type":"git"},"_npmVersion":"9.6.7","description":"TypeScript SDK for trading on Alpha Market — Algorand prediction markets. Place orders, manage positions, read orderbooks, and build trading bots.","directories":{},"_nodeVersion":"18.17.1","dependencies":{"decimal.js":"^10.4.3"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.5.0","dotenv":"^16.4.7","eslint":"^9.0.0","vitest":"^3.0.0","algosdk":"^2.7.0","typedoc":"^0.27.0","typescript":"^5.6.3","@types/node":"^25.2.3","@algorandfoundation/algokit-utils":"^6.0.2"},"peerDependencies":{"algosdk":"^2.7.0","@algorandfoundation/algokit-utils":"^6.0.2"},"_npmOperationalInternal":{"tmp":"tmp/sdk_0.2.3_1771182321922_0.3466977404171254","host":"s3://npm-registry-packages-npm-production"}},"0.2.4":{"name":"@alpha-arcade/sdk","version":"0.2.4","keywords":["algorand","prediction-market","trading","sdk","alpha-market","defi","orderbook"],"license":"MIT","_id":"@alpha-arcade/sdk@0.2.4","maintainers":[{"name":"alphagoat","email":"mark@lofty.ai"}],"homepage":"https://github.com/phara23/alpha-sdk#readme","bugs":{"url":"https://github.com/phara23/alpha-sdk/issues"},"dist":{"shasum":"3c1db762ada01fe7f3e605f4738078352bcb4d39","tarball":"https://registry.npmjs.org/@alpha-arcade/sdk/-/sdk-0.2.4.tgz","fileCount":9,"integrity":"sha512-Mv2VI7TTUcuibrr9jvzVRfseigE7R5EwdPJcV2zVZ6VFmdkSOuqRjGkYoWBTmmAIe82QGu+NKda0LUtkPIW6bg==","signatures":[{"sig":"MEUCIDW/rEf4RmyKQJwKlw0CyvY7L+0iVRDuiIODCIHjdSirAiEAhXLpc9IqyG4+502q1iUi1JcLCp6SkSfUJLAmZYiAzfs=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":906098},"main":"./dist/index.cjs","type":"module","types":"./dist/index.d.ts","module":"./dist/index.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs"}},"gitHead":"397e5f6b67978699d0baee16a4fd74a9760c8b06","scripts":{"dev":"tsup --watch","docs":"typedoc --out docs src/index.ts","lint":"eslint src/","test":"vitest run","build":"tsup","test:unit":"vitest run tests/fees.test.ts","typecheck":"tsc --noEmit","test:watch":"vitest","prepublishOnly":"npm run build","test:integration":"vitest run tests/markets.test.ts tests/orderbook.test.ts tests/trading.test.ts tests/matching.test.ts tests/positions.test.ts tests/claim.test.ts"},"_npmUser":{"name":"alphagoat","email":"mark@lofty.ai"},"repository":{"url":"git+https://github.com/phara23/alpha-sdk.git","type":"git"},"_npmVersion":"9.6.7","description":"TypeScript SDK for trading on Alpha Market — Algorand prediction markets. Place orders, manage positions, read orderbooks, and build trading bots.","directories":{},"_nodeVersion":"18.17.1","dependencies":{"decimal.js":"^10.4.3"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.5.0","dotenv":"^16.4.7","eslint":"^9.0.0","vitest":"^3.0.0","algosdk":"^2.7.0","typedoc":"^0.27.0","typescript":"^5.6.3","@types/node":"^25.2.3","@algorandfoundation/algokit-utils":"^6.0.2"},"peerDependencies":{"algosdk":"^2.7.0","@algorandfoundation/algokit-utils":"^6.0.2"},"_npmOperationalInternal":{"tmp":"tmp/sdk_0.2.4_1771302921083_0.7566064228193443","host":"s3://npm-registry-packages-npm-production"}},"0.2.5":{"name":"@alpha-arcade/sdk","version":"0.2.5","keywords":["algorand","prediction-market","trading","sdk","alpha-market","defi","orderbook"],"license":"MIT","_id":"@alpha-arcade/sdk@0.2.5","maintainers":[{"name":"alphagoat","email":"mark@lofty.ai"}],"homepage":"https://github.com/phara23/alpha-sdk#readme","bugs":{"url":"https://github.com/phara23/alpha-sdk/issues"},"dist":{"shasum":"028ff5590365eb2a4d3b9715c23b372c1fc9d012","tarball":"https://registry.npmjs.org/@alpha-arcade/sdk/-/sdk-0.2.5.tgz","fileCount":9,"integrity":"sha512-nb0nHQxNTqNAgtHs0UK+oZrMlioatK7zqJWNUl73wfc/WKZUHpJvbxQCWxpOLgo7EnxraKSiiiJdte2TxGlKUQ==","signatures":[{"sig":"MEUCIFRNXwdzpnCZC2aDQAwDJys2R9pKFyclG2ndRRrIM+NJAiEA34xnFU9EJ7C3b7phZbjsubdpdrHpCFjyhU9yN/AJIFM=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":906354},"main":"./dist/index.cjs","type":"module","types":"./dist/index.d.ts","module":"./dist/index.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs"}},"gitHead":"9a0a95b100fbddc321073d03225d4f45338ed881","scripts":{"dev":"tsup --watch","docs":"typedoc --out docs src/index.ts","lint":"eslint src/","test":"vitest run","build":"tsup","test:unit":"vitest run tests/fees.test.ts","typecheck":"tsc --noEmit","test:watch":"vitest","prepublishOnly":"npm run build","test:integration":"vitest run tests/markets.test.ts tests/orderbook.test.ts tests/trading.test.ts tests/matching.test.ts tests/positions.test.ts tests/claim.test.ts"},"_npmUser":{"name":"alphagoat","email":"mark@lofty.ai"},"repository":{"url":"git+https://github.com/phara23/alpha-sdk.git","type":"git"},"_npmVersion":"9.6.7","description":"TypeScript SDK for trading on Alpha Market — Algorand prediction markets. Place orders, manage positions, read orderbooks, and build trading bots.","directories":{},"_nodeVersion":"18.17.1","dependencies":{"decimal.js":"^10.4.3"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.5.0","dotenv":"^16.4.7","eslint":"^9.0.0","vitest":"^3.0.0","algosdk":"^2.7.0","typedoc":"^0.27.0","typescript":"^5.6.3","@types/node":"^25.2.3","@algorandfoundation/algokit-utils":"^6.0.2"},"peerDependencies":{"algosdk":"^2.7.0","@algorandfoundation/algokit-utils":"^6.0.2"},"_npmOperationalInternal":{"tmp":"tmp/sdk_0.2.5_1771391212188_0.11354085711861295","host":"s3://npm-registry-packages-npm-production"}},"0.2.6":{"name":"@alpha-arcade/sdk","version":"0.2.6","keywords":["algorand","prediction-market","trading","sdk","alpha-market","defi","orderbook"],"license":"MIT","_id":"@alpha-arcade/sdk@0.2.6","maintainers":[{"name":"alphagoat","email":"mark@lofty.ai"}],"homepage":"https://github.com/phara23/alpha-sdk#readme","bugs":{"url":"https://github.com/phara23/alpha-sdk/issues"},"dist":{"shasum":"3debfd74f8a412f1d9a555b956682b6a3615f844","tarball":"https://registry.npmjs.org/@alpha-arcade/sdk/-/sdk-0.2.6.tgz","fileCount":9,"integrity":"sha512-2FsXrBJrcJ6CE5gbuzM4tOGACd7XuEOhlc8Ui7bB85WbPFHDHny4YCXbrl4dbZMjhaGRu6oKfrLHqULIUIraOw==","signatures":[{"sig":"MEUCIQCV46ad8Rg+I788TN0qXaWWOJCCBUMrvsmTuEpaJDxmnwIgUbgBbMjYsfl1NsvctMg/Ln2HtqP7ylcuJ56TOhWFe5c=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":909931},"main":"./dist/index.cjs","type":"module","types":"./dist/index.d.ts","module":"./dist/index.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs"}},"gitHead":"2d5f1dcc89f030279734833abd1507efcb29ca82","scripts":{"dev":"tsup --watch","docs":"typedoc --out docs src/index.ts","lint":"eslint src/","test":"vitest run","build":"tsup","test:unit":"vitest run tests/fees.test.ts","typecheck":"tsc --noEmit","test:watch":"vitest","prepublishOnly":"npm run build","test:integration":"vitest run tests/markets.test.ts tests/orderbook.test.ts tests/trading.test.ts tests/matching.test.ts tests/positions.test.ts tests/claim.test.ts"},"_npmUser":{"name":"alphagoat","email":"mark@lofty.ai"},"repository":{"url":"git+https://github.com/phara23/alpha-sdk.git","type":"git"},"_npmVersion":"9.6.7","description":"TypeScript SDK for trading on Alpha Market — Algorand prediction markets. Place orders, manage positions, read orderbooks, and build trading bots.","directories":{},"_nodeVersion":"18.17.1","dependencies":{"decimal.js":"^10.4.3"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.5.0","dotenv":"^16.4.7","eslint":"^9.0.0","vitest":"^3.0.0","algosdk":"^2.7.0","typedoc":"^0.27.0","typescript":"^5.6.3","@types/node":"^25.2.3","@algorandfoundation/algokit-utils":"^6.0.2"},"peerDependencies":{"algosdk":"^2.7.0","@algorandfoundation/algokit-utils":"^6.0.2"},"_npmOperationalInternal":{"tmp":"tmp/sdk_0.2.6_1771539627252_0.4639637535586705","host":"s3://npm-registry-packages-npm-production"}},"0.2.7":{"name":"@alpha-arcade/sdk","version":"0.2.7","keywords":["algorand","prediction-market","trading","sdk","alpha-market","defi","orderbook"],"license":"MIT","_id":"@alpha-arcade/sdk@0.2.7","maintainers":[{"name":"alphagoat","email":"mark@lofty.ai"}],"homepage":"https://github.com/phara23/alpha-sdk#readme","bugs":{"url":"https://github.com/phara23/alpha-sdk/issues"},"dist":{"shasum":"7b42ebd540c05875364b559d73ccb71cb7972e0c","tarball":"https://registry.npmjs.org/@alpha-arcade/sdk/-/sdk-0.2.7.tgz","fileCount":9,"integrity":"sha512-owuKeCcIRqtkCzDMrnYwfH5GrVboZdK6JtbvczZYPvRLyQT7dwhtnfLtXFyo75KDCE8nRXY7uSEWQF8JIAcWfw==","signatures":[{"sig":"MEUCIFTjx287yD8VqnLGK87+dd8F1lILt4zHaPhXhBwdx9+AAiEAyCVtpzfMFEDOVhy3rbkE7kyJYSG9m//QhsdhJx2bd1o=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":923508},"main":"./dist/index.cjs","type":"module","types":"./dist/index.d.ts","module":"./dist/index.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs"}},"gitHead":"da955b49af22a5ef4fd932a6e2bafc0d7e48f52d","scripts":{"dev":"tsup --watch","docs":"typedoc --out docs src/index.ts","lint":"eslint src/","test":"vitest run","build":"tsup","test:unit":"vitest run tests/fees.test.ts","typecheck":"tsc --noEmit","test:watch":"vitest","prepublishOnly":"npm run build","test:integration":"vitest run tests/markets.test.ts tests/orderbook.test.ts tests/trading.test.ts tests/matching.test.ts tests/positions.test.ts tests/claim.test.ts"},"_npmUser":{"name":"alphagoat","email":"mark@lofty.ai"},"repository":{"url":"git+https://github.com/phara23/alpha-sdk.git","type":"git"},"_npmVersion":"9.6.7","description":"TypeScript SDK for trading on Alpha Market — Algorand prediction markets. Place orders, manage positions, read orderbooks, and build trading bots.","directories":{},"_nodeVersion":"18.17.1","dependencies":{"decimal.js":"^10.4.3"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.5.0","dotenv":"^16.4.7","eslint":"^9.0.0","vitest":"^3.0.0","algosdk":"^2.7.0","typedoc":"^0.27.0","typescript":"^5.6.3","@types/node":"^25.2.3","@algorandfoundation/algokit-utils":"^6.0.2"},"peerDependencies":{"algosdk":"^2.7.0","@algorandfoundation/algokit-utils":"^6.0.2"},"_npmOperationalInternal":{"tmp":"tmp/sdk_0.2.7_1771542598266_0.6946218012020897","host":"s3://npm-registry-packages-npm-production"}},"0.2.8":{"name":"@alpha-arcade/sdk","version":"0.2.8","keywords":["algorand","prediction-market","trading","sdk","alpha-market","defi","orderbook"],"license":"MIT","_id":"@alpha-arcade/sdk@0.2.8","maintainers":[{"name":"alphagoat","email":"mark@lofty.ai"}],"homepage":"https://github.com/phara23/alpha-sdk#readme","bugs":{"url":"https://github.com/phara23/alpha-sdk/issues"},"dist":{"shasum":"aec2410f644a01ccef873d8713d1cf9e556e8cd1","tarball":"https://registry.npmjs.org/@alpha-arcade/sdk/-/sdk-0.2.8.tgz","fileCount":9,"integrity":"sha512-rdMZXeLBoArYrjCDDUGPs5wrrAM1mTWZdmYXC9ZrOx55XMRBhkRN1/G0y7eaVKvjreO1iFC2NwLlZ3sySEfJCQ==","signatures":[{"sig":"MEYCIQCjyQ2YdI6X4mmlnPr8RNdTbNdM/APahwTIq1KHokBuIgIhAPTbWbPVugGcmP9gRFuG/B70tSZUKduR3cfgp+21XE/d","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":931615},"main":"./dist/index.cjs","type":"module","types":"./dist/index.d.ts","module":"./dist/index.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs"}},"gitHead":"04f8e7ad67c58540b8bf7d24611d51a6536fdbba","scripts":{"dev":"tsup --watch","docs":"typedoc --out docs src/index.ts","lint":"eslint src/","test":"vitest run","build":"tsup","test:unit":"vitest run tests/fees.test.ts","typecheck":"tsc --noEmit","test:watch":"vitest","prepublishOnly":"npm run build","test:integration":"vitest run tests/markets.test.ts tests/orderbook.test.ts tests/trading.test.ts tests/matching.test.ts tests/positions.test.ts tests/claim.test.ts"},"_npmUser":{"name":"alphagoat","email":"mark@lofty.ai"},"repository":{"url":"git+https://github.com/phara23/alpha-sdk.git","type":"git"},"_npmVersion":"9.6.7","description":"TypeScript SDK for trading on Alpha Market — Algorand prediction markets. Place orders, manage positions, read orderbooks, and build trading bots.","directories":{},"_nodeVersion":"18.17.1","dependencies":{"decimal.js":"^10.4.3"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.5.0","dotenv":"^16.4.7","eslint":"^9.0.0","vitest":"^3.0.0","algosdk":"^2.7.0","typedoc":"^0.27.0","typescript":"^5.6.3","@types/node":"^25.2.3","@algorandfoundation/algokit-utils":"^6.0.2"},"peerDependencies":{"algosdk":"^2.7.0","@algorandfoundation/algokit-utils":"^6.0.2"},"_npmOperationalInternal":{"tmp":"tmp/sdk_0.2.8_1771621582154_0.9317041588201767","host":"s3://npm-registry-packages-npm-production"}},"0.2.9":{"name":"@alpha-arcade/sdk","version":"0.2.9","keywords":["algorand","prediction-market","trading","sdk","alpha-market","defi","orderbook"],"license":"MIT","_id":"@alpha-arcade/sdk@0.2.9","maintainers":[{"name":"alphagoat","email":"mark@lofty.ai"}],"homepage":"https://github.com/phara23/alpha-sdk#readme","bugs":{"url":"https://github.com/phara23/alpha-sdk/issues"},"dist":{"shasum":"ab8528498c13be70f688325ee0f60bc63f29bfea","tarball":"https://registry.npmjs.org/@alpha-arcade/sdk/-/sdk-0.2.9.tgz","fileCount":9,"integrity":"sha512-spoTXySBIappShTIs/ZGcBUBrQ61bjUtaUwoyOTNA4qLR4/tA7bSjASxbZa0YVKRP5PA9e316QNf7I+t9P8GRA==","signatures":[{"sig":"MEUCIQDL9YpYG3kDNTaecOBnip//1gwdQpxvym1qh2Bp9zwFlgIgfwSoZM34fcC33kVsdx1V3YtzmB2E50TtOFMTHbiiABg=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":931615},"main":"./dist/index.cjs","type":"module","types":"./dist/index.d.ts","module":"./dist/index.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs"}},"gitHead":"07823098ee46e27025e59008c5d0d59fd5c0cd9b","scripts":{"dev":"tsup --watch","docs":"typedoc --out docs src/index.ts","lint":"eslint src/","test":"vitest run","build":"tsup","test:unit":"vitest run tests/fees.test.ts","typecheck":"tsc --noEmit","test:watch":"vitest","prepublishOnly":"npm run build","test:integration":"vitest run tests/markets.test.ts tests/orderbook.test.ts tests/trading.test.ts tests/matching.test.ts tests/positions.test.ts tests/claim.test.ts"},"_npmUser":{"name":"alphagoat","email":"mark@lofty.ai"},"repository":{"url":"git+https://github.com/phara23/alpha-sdk.git","type":"git"},"_npmVersion":"9.6.7","description":"TypeScript SDK for trading on Alpha Market — Algorand prediction markets. Place orders, manage positions, read orderbooks, and build trading bots.","directories":{},"_nodeVersion":"18.17.1","dependencies":{"decimal.js":"^10.4.3"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.5.0","dotenv":"^16.4.7","eslint":"^9.0.0","vitest":"^3.0.0","algosdk":"^2.7.0","typedoc":"^0.27.0","typescript":"^5.6.3","@types/node":"^25.2.3","@algorandfoundation/algokit-utils":"^6.0.2"},"peerDependencies":{"algosdk":"^2.7.0","@algorandfoundation/algokit-utils":"^6.0.2"},"_npmOperationalInternal":{"tmp":"tmp/sdk_0.2.9_1771621762376_0.48684106415576367","host":"s3://npm-registry-packages-npm-production"}},"0.2.10":{"name":"@alpha-arcade/sdk","version":"0.2.10","keywords":["algorand","prediction-market","trading","sdk","alpha-market","defi","orderbook"],"license":"MIT","_id":"@alpha-arcade/sdk@0.2.10","maintainers":[{"name":"alphagoat","email":"mark@lofty.ai"}],"homepage":"https://github.com/phara23/alpha-sdk#readme","bugs":{"url":"https://github.com/phara23/alpha-sdk/issues"},"dist":{"shasum":"879b4c954e9322b049f330488669d1678f1aa59c","tarball":"https://registry.npmjs.org/@alpha-arcade/sdk/-/sdk-0.2.10.tgz","fileCount":9,"integrity":"sha512-7lxf0rOIuCM15nvILq0xymyWXw1BdbkT7P8L+1BWm2orlns6PyrcABZfgiWg29egdll6KSHJg9p2cy3UEFa0yQ==","signatures":[{"sig":"MEUCIDUOJCeCtrV7VjShdKZpW95+9zArGTry/kJC1vpshckZAiEAs5jmfoi0VlJ0KPd5gdDH/0mBcTfh36POLmcJZcs6s3I=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":1269770},"main":"./dist/index.cjs","type":"module","types":"./dist/index.d.ts","module":"./dist/index.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs"}},"gitHead":"04274743378523852666daea0bdf861c27c24efb","scripts":{"dev":"tsup --watch","docs":"typedoc --out docs src/index.ts","lint":"eslint src/","test":"vitest run","build":"tsup","test:unit":"vitest run tests/fees.test.ts","typecheck":"tsc --noEmit","test:watch":"vitest","prepublishOnly":"npm run build","test:integration":"vitest run tests/markets.test.ts tests/orderbook.test.ts tests/trading.test.ts tests/matching.test.ts tests/positions.test.ts tests/claim.test.ts"},"_npmUser":{"name":"alphagoat","email":"mark@lofty.ai"},"repository":{"url":"git+https://github.com/phara23/alpha-sdk.git","type":"git"},"_npmVersion":"9.6.7","description":"TypeScript SDK for trading on Alpha Market — Algorand prediction markets. Place orders, manage positions, read orderbooks, and build trading bots.","directories":{},"_nodeVersion":"18.17.1","dependencies":{"decimal.js":"^10.4.3"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.5.0","dotenv":"^16.4.7","eslint":"^9.0.0","vitest":"^3.0.0","algosdk":"^2.7.0","typedoc":"^0.27.0","typescript":"^5.6.3","@types/node":"^25.2.3","@algorandfoundation/algokit-utils":"^6.0.2"},"peerDependencies":{"algosdk":"^2.7.0","@algorandfoundation/algokit-utils":"^6.0.2"},"_npmOperationalInternal":{"tmp":"tmp/sdk_0.2.10_1772936473810_0.4354217875388664","host":"s3://npm-registry-packages-npm-production"}},"0.2.11":{"name":"@alpha-arcade/sdk","version":"0.2.11","keywords":["algorand","prediction-market","trading","sdk","alpha-market","defi","orderbook"],"license":"MIT","_id":"@alpha-arcade/sdk@0.2.11","maintainers":[{"name":"alphagoat","email":"mark@lofty.ai"}],"homepage":"https://github.com/phara23/alpha-sdk#readme","bugs":{"url":"https://github.com/phara23/alpha-sdk/issues"},"dist":{"shasum":"b1ebeea22e4cd76e521e894be32f2c9d5cde4baf","tarball":"https://registry.npmjs.org/@alpha-arcade/sdk/-/sdk-0.2.11.tgz","fileCount":9,"integrity":"sha512-8XSOOaZpB97t8YnEadoGLcVk1kifHV/74Lpd+ao6fJbgJr7KelpWWIzSM1d0KVVBMBonahk4JiSASJT3C0IMCQ==","signatures":[{"sig":"MEUCIQCwJ8QGnP1mZQapeLKoKLdx6BgAHWyX5gOxGdA3z+l1BgIgHTu/dC5Kk2NwzGk8VZW6PLGADUB65h7DzqxkKjn54w8=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":1269772},"main":"./dist/index.cjs","type":"module","types":"./dist/index.d.ts","module":"./dist/index.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs"}},"gitHead":"a8bd0eb7da08fd1853a365db9c109422cb3c2893","scripts":{"dev":"tsup --watch","docs":"typedoc --out docs src/index.ts","lint":"eslint src/","test":"vitest run","build":"tsup","test:unit":"vitest run tests/fees.test.ts","typecheck":"tsc --noEmit","test:watch":"vitest","prepublishOnly":"npm run build","test:integration":"vitest run tests/markets.test.ts tests/orderbook.test.ts tests/trading.test.ts tests/matching.test.ts tests/positions.test.ts tests/claim.test.ts"},"_npmUser":{"name":"alphagoat","email":"mark@lofty.ai"},"repository":{"url":"git+https://github.com/phara23/alpha-sdk.git","type":"git"},"_npmVersion":"9.6.7","description":"TypeScript SDK for trading on Alpha Market — Algorand prediction markets. Place orders, manage positions, read orderbooks, and build trading bots.","directories":{},"_nodeVersion":"18.17.1","dependencies":{"decimal.js":"^10.4.3"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.5.0","dotenv":"^16.4.7","eslint":"^9.0.0","vitest":"^3.0.0","algosdk":"^2.7.0","typedoc":"^0.27.0","typescript":"^5.6.3","@types/node":"^25.2.3","@algorandfoundation/algokit-utils":"^6.0.2"},"peerDependencies":{"algosdk":"^2.7.0","@algorandfoundation/algokit-utils":"^6.0.2"},"_npmOperationalInternal":{"tmp":"tmp/sdk_0.2.11_1773174128443_0.3616126234533401","host":"s3://npm-registry-packages-npm-production"}},"0.3.0":{"name":"@alpha-arcade/sdk","version":"0.3.0","keywords":["algorand","prediction-market","trading","sdk","alpha-market","defi","orderbook"],"license":"MIT","_id":"@alpha-arcade/sdk@0.3.0","maintainers":[{"name":"alphagoat","email":"mark@lofty.ai"}],"homepage":"https://github.com/phara23/alpha-sdk#readme","bugs":{"url":"https://github.com/phara23/alpha-sdk/issues"},"dist":{"shasum":"d06b9e19b1ba2befab0181795d076039e337b2a2","tarball":"https://registry.npmjs.org/@alpha-arcade/sdk/-/sdk-0.3.0.tgz","fileCount":9,"integrity":"sha512-cZKgsfOdlMQGLRrYfhLzjK8lS9qNGxK5WG4/EXBQzdUjJZxAd9IyuJZoato7mKdb208fn9qoVNvSZUM0qQQC/A==","signatures":[{"sig":"MEUCIQCNsd7R01nNo1Lceybp2aoC5HjjvjvtQlrBd8Rv65amFgIge7xdEkBwasgnuJsqgLGNRXktKAeSVEdjFUa8B6Th9Iw=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":1283485},"main":"./dist/index.cjs","type":"module","types":"./dist/index.d.ts","module":"./dist/index.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs"}},"gitHead":"b7d04cfab89e5958e3aeae493e000ac84ecad012","scripts":{"dev":"tsup --watch","docs":"typedoc --out docs src/index.ts","lint":"eslint src/","test":"vitest run","build":"tsup","test:unit":"vitest run tests/fees.test.ts","typecheck":"tsc --noEmit","test:watch":"vitest","prepublishOnly":"npm run build","test:integration":"vitest run tests/markets.test.ts tests/orderbook.test.ts tests/trading.test.ts tests/matching.test.ts tests/positions.test.ts tests/claim.test.ts"},"_npmUser":{"name":"alphagoat","email":"mark@lofty.ai"},"repository":{"url":"git+https://github.com/phara23/alpha-sdk.git","type":"git"},"_npmVersion":"9.6.7","description":"TypeScript SDK for trading on Alpha Market — Algorand prediction markets. Place orders, manage positions, read orderbooks, and build trading bots.","directories":{},"_nodeVersion":"18.17.1","dependencies":{"decimal.js":"^10.4.3"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.5.0","dotenv":"^16.4.7","eslint":"^9.0.0","vitest":"^3.0.0","algosdk":"^3.5.2","typedoc":"^0.27.0","typescript":"^5.6.3","@types/node":"^25.2.3","@algorandfoundation/algokit-utils":"^9.2.0"},"peerDependencies":{"algosdk":"^3.5.2","@algorandfoundation/algokit-utils":"^9.2.0"},"_npmOperationalInternal":{"tmp":"tmp/sdk_0.3.0_1773259002386_0.5225835509405625","host":"s3://npm-registry-packages-npm-production"}},"0.3.1":{"name":"@alpha-arcade/sdk","version":"0.3.1","keywords":["algorand","prediction-market","trading","sdk","alpha-market","defi","orderbook"],"license":"MIT","_id":"@alpha-arcade/sdk@0.3.1","maintainers":[{"name":"alphagoat","email":"mark@lofty.ai"}],"homepage":"https://github.com/phara23/alpha-sdk#readme","bugs":{"url":"https://github.com/phara23/alpha-sdk/issues"},"dist":{"shasum":"c4934281ee43b5b46b93e87ac1d47dc06ce91e8d","tarball":"https://registry.npmjs.org/@alpha-arcade/sdk/-/sdk-0.3.1.tgz","fileCount":9,"integrity":"sha512-IWAC8FhWHOdL+Hv1lQv4xyGv+UQVou7PMyH/AOm4SQbn7V7eFGg5WPyjYmE2N79y+utTsACvE5FVppgZTIz3GQ==","signatures":[{"sig":"MEQCIBd8VdCgajTspfLR9dxSlQIsipbzV0AtOvqYVQRNP9YWAiA6V19iQJ++EgxY4NfXDSYDnzBbAT185hv26aXIpPmlOA==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":1320388},"main":"./dist/index.cjs","type":"module","types":"./dist/index.d.ts","module":"./dist/index.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs"}},"gitHead":"a4fb9ed58eec30abf11b601bb3f3d841aac7ae50","scripts":{"dev":"tsup --watch","docs":"typedoc --out docs src/index.ts","lint":"eslint src/","test":"vitest run","build":"tsup","test:unit":"vitest run tests/fees.test.ts","typecheck":"tsc --noEmit","test:watch":"vitest","prepublishOnly":"npm run build","test:integration":"vitest run tests/markets.test.ts tests/orderbook.test.ts tests/trading.test.ts tests/matching.test.ts tests/positions.test.ts tests/claim.test.ts"},"_npmUser":{"name":"alphagoat","email":"mark@lofty.ai"},"repository":{"url":"git+https://github.com/phara23/alpha-sdk.git","type":"git"},"_npmVersion":"9.6.7","description":"TypeScript SDK for trading on Alpha Market — Algorand prediction markets. Place orders, manage positions, read orderbooks, and build trading bots.","directories":{},"_nodeVersion":"18.17.1","dependencies":{"decimal.js":"^10.4.3"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.5.0","dotenv":"^16.4.7","eslint":"^9.0.0","vitest":"^3.0.0","algosdk":"^3.5.2","typedoc":"^0.27.0","typescript":"^5.6.3","@types/node":"^25.2.3","@algorandfoundation/algokit-utils":"^9.2.0"},"peerDependencies":{"algosdk":"^3.5.2","@algorandfoundation/algokit-utils":"^9.2.0"},"_npmOperationalInternal":{"tmp":"tmp/sdk_0.3.1_1773693800891_0.5663643987037779","host":"s3://npm-registry-packages-npm-production"}},"0.4.0":{"name":"@alpha-arcade/sdk","version":"0.4.0","keywords":["algorand","prediction-market","trading","sdk","alpha-market","defi","orderbook"],"license":"MIT","_id":"@alpha-arcade/sdk@0.4.0","maintainers":[{"name":"alphagoat","email":"mark@lofty.ai"}],"homepage":"https://github.com/phara23/alpha-sdk#readme","bugs":{"url":"https://github.com/phara23/alpha-sdk/issues"},"dist":{"shasum":"582b96553874eeb7a877c3f530cba5f19c6bc573","tarball":"https://registry.npmjs.org/@alpha-arcade/sdk/-/sdk-0.4.0.tgz","fileCount":9,"integrity":"sha512-/FLt9t5Mq+0pam7vqeB6Zut7kQY7VS4LNOPLhZ6qCD3Sk8ZHNs3L41PnmP5xSmO5PCH4OC73gcPLqsmPjLui1A==","signatures":[{"sig":"MEYCIQDksGqE46ZY7oVYFkpdqYkTiBX6p4jHVYUUtkN6t/UQxAIhAKWLQRtUHpfxFI7TRi/6/iT7lMwC+cSyazThs6zxPZHl","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":1391040},"main":"./dist/index.cjs","type":"module","types":"./dist/index.d.ts","module":"./dist/index.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs"}},"gitHead":"91c7728d553f37a938aca1cb3c2648669301ec11","scripts":{"dev":"tsup --watch","docs":"typedoc --out docs src/index.ts","lint":"eslint src/","test":"vitest run","build":"tsup","test:unit":"vitest run tests/fees.test.ts","typecheck":"tsc --noEmit","test:watch":"vitest","prepublishOnly":"npm run build","test:integration":"vitest run tests/markets.test.ts tests/orderbook.test.ts tests/trading.test.ts tests/matching.test.ts tests/positions.test.ts tests/claim.test.ts"},"_npmUser":{"name":"alphagoat","email":"mark@lofty.ai"},"repository":{"url":"git+https://github.com/phara23/alpha-sdk.git","type":"git"},"_npmVersion":"9.6.7","description":"TypeScript SDK for trading on Alpha Market — Algorand prediction markets. Place orders, manage positions, read orderbooks, and build trading bots.","directories":{},"_nodeVersion":"18.17.1","dependencies":{"decimal.js":"^10.4.3"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.5.0","dotenv":"^16.4.7","eslint":"^9.0.0","vitest":"^3.0.0","algosdk":"^3.5.2","typedoc":"^0.27.0","typescript":"^5.6.3","@types/node":"^25.2.3","@algorandfoundation/algokit-utils":"^9.2.0"},"peerDependencies":{"algosdk":"^3.5.2","@algorandfoundation/algokit-utils":"^9.2.0"},"_npmOperationalInternal":{"tmp":"tmp/sdk_0.4.0_1773711814200_0.8274235238248291","host":"s3://npm-registry-packages-npm-production"}},"0.4.1":{"name":"@alpha-arcade/sdk","version":"0.4.1","keywords":["algorand","prediction-market","trading","sdk","alpha-market","defi","orderbook"],"license":"MIT","_id":"@alpha-arcade/sdk@0.4.1","maintainers":[{"name":"alphagoat","email":"mark@lofty.ai"}],"homepage":"https://github.com/phara23/alpha-sdk#readme","bugs":{"url":"https://github.com/phara23/alpha-sdk/issues"},"dist":{"shasum":"2c491a6d95802308363d5201a38e3a49d639877f","tarball":"https://registry.npmjs.org/@alpha-arcade/sdk/-/sdk-0.4.1.tgz","fileCount":9,"integrity":"sha512-7X9j16tDCay2TKmJ8Lz94YIzr8W73BTWJefRdnhYMDPTQwc+xLLiywbQodxDfLyqKbqP1D+o96yzsNBcDXmnkA==","signatures":[{"sig":"MEQCID4cYgEUa0t3QHKynDuorP9ThxurGP0LsgqcxHieye2WAiATQyoWTP22JiSYdtmogjblc3BiD1YHTG67o/S/n/PMsA==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":1392680},"main":"./dist/index.cjs","type":"module","types":"./dist/index.d.ts","module":"./dist/index.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs"}},"gitHead":"1f214cef18a35be344071fbe68de357c6708a195","scripts":{"dev":"tsup --watch","docs":"typedoc --out docs src/index.ts","lint":"eslint src/","test":"vitest run","build":"tsup","test:unit":"vitest run tests/fees.test.ts","typecheck":"tsc --noEmit","test:watch":"vitest","prepublishOnly":"npm run build","test:integration":"vitest run tests/markets.test.ts tests/orderbook.test.ts tests/trading.test.ts tests/matching.test.ts tests/positions.test.ts tests/claim.test.ts"},"_npmUser":{"name":"alphagoat","email":"mark@lofty.ai"},"repository":{"url":"git+https://github.com/phara23/alpha-sdk.git","type":"git"},"_npmVersion":"9.6.7","description":"TypeScript SDK for trading on Alpha Market — Algorand prediction markets. Place orders, manage positions, read orderbooks, and build trading bots.","directories":{},"_nodeVersion":"18.17.1","dependencies":{"decimal.js":"^10.4.3"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.5.0","dotenv":"^16.4.7","eslint":"^9.0.0","vitest":"^3.0.0","algosdk":"^3.5.2","typedoc":"^0.27.0","typescript":"^5.6.3","@types/node":"^25.2.3","@algorandfoundation/algokit-utils":"^9.2.0"},"peerDependencies":{"algosdk":"^3.5.2","@algorandfoundation/algokit-utils":"^9.2.0"},"_npmOperationalInternal":{"tmp":"tmp/sdk_0.4.1_1773772511242_0.8401308643184959","host":"s3://npm-registry-packages-npm-production"}},"0.4.2":{"name":"@alpha-arcade/sdk","version":"0.4.2","keywords":["algorand","prediction-market","trading","sdk","alpha-market","defi","orderbook"],"license":"MIT","_id":"@alpha-arcade/sdk@0.4.2","maintainers":[{"name":"alphagoat","email":"mark@lofty.ai"}],"homepage":"https://github.com/phara23/alpha-sdk#readme","bugs":{"url":"https://github.com/phara23/alpha-sdk/issues"},"dist":{"shasum":"4b3a0171a514e1ea42a422e9a0c133133f8d3ffd","tarball":"https://registry.npmjs.org/@alpha-arcade/sdk/-/sdk-0.4.2.tgz","fileCount":9,"integrity":"sha512-pU9oOkXvlT4AMaqTrJ6RPvbCtffzY5i2xO8XkMXwA4OrPKQhshBxd9LFsv3kPXgXkyNXKIYLiAbujTpXBiT0jw==","signatures":[{"sig":"MEYCIQD2khxRFrHLn0XnPixjxao8eWB2ZHoj6y9hE+PX7yM8iAIhAOXA2f3qT/M7RhMs4UFplyXp0AYFJ0+FsOj6uGtWB2eQ","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":1402745},"main":"./dist/index.cjs","type":"module","types":"./dist/index.d.ts","module":"./dist/index.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs"}},"gitHead":"8339939839fdb170e6bd3a8a6035cc4293be1b31","scripts":{"dev":"tsup --watch","docs":"typedoc --out docs src/index.ts","lint":"eslint src/","test":"vitest run","build":"tsup","test:unit":"vitest run tests/fees.test.ts","typecheck":"tsc --noEmit","test:watch":"vitest","prepublishOnly":"npm run build","test:integration":"vitest run tests/markets.test.ts tests/orderbook.test.ts tests/trading.test.ts tests/matching.test.ts tests/positions.test.ts tests/claim.test.ts"},"_npmUser":{"name":"alphagoat","email":"mark@lofty.ai"},"repository":{"url":"git+https://github.com/phara23/alpha-sdk.git","type":"git"},"_npmVersion":"9.6.7","description":"TypeScript SDK for trading on Alpha Market — Algorand prediction markets. Place orders, manage positions, read orderbooks from API or chain, and build trading bots.","directories":{},"_nodeVersion":"18.17.1","dependencies":{"decimal.js":"^10.4.3"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.5.0","dotenv":"^16.4.7","eslint":"^9.0.0","vitest":"^3.0.0","algosdk":"^3.5.2","typedoc":"^0.27.0","typescript":"^5.6.3","@types/node":"^25.2.3","@algorandfoundation/algokit-utils":"^9.2.0"},"peerDependencies":{"algosdk":"^3.5.2","@algorandfoundation/algokit-utils":"^9.2.0"},"_npmOperationalInternal":{"tmp":"tmp/sdk_0.4.2_1773873103846_0.6867260705453972","host":"s3://npm-registry-packages-npm-production"}},"0.3.5":{"name":"@alpha-arcade/sdk","version":"0.3.5","keywords":["algorand","prediction-market","trading","sdk","alpha-market","defi","orderbook"],"license":"MIT","_id":"@alpha-arcade/sdk@0.3.5","maintainers":[{"name":"alphagoat","email":"mark@lofty.ai"}],"homepage":"https://github.com/phara23/alpha-sdk#readme","bugs":{"url":"https://github.com/phara23/alpha-sdk/issues"},"dist":{"shasum":"a3fac15cd0798463f43300c5167d60b26dff8e7f","tarball":"https://registry.npmjs.org/@alpha-arcade/sdk/-/sdk-0.3.5.tgz","fileCount":9,"integrity":"sha512-Y+894J0nR5o9pJtSI6OC8tOtBpqoFytiKizeLemeO4E6cvuNfoUXYFFSOQBbTlhMMoE0YgFtXGVT6MZOv0YLyg==","signatures":[{"sig":"MEUCIEX0TY7jSHhT6+b6huLYWG/xpLfBo7CW2aAvvCebdJFKAiEAx852ENOlPU86Nq6UQBlyzsp5I7CwTmHKAG9ZFU5G+7A=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":1414003},"main":"./dist/index.cjs","type":"module","types":"./dist/index.d.ts","module":"./dist/index.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs"}},"gitHead":"a495d1fa780e2c6e656e71f4e8157827be64a60a","scripts":{"dev":"tsup --watch","docs":"typedoc --out docs src/index.ts","lint":"eslint src/","test":"vitest run","build":"tsup","test:unit":"vitest run tests/fees.test.ts","typecheck":"tsc --noEmit","test:watch":"vitest","prepublishOnly":"npm run build","test:integration":"vitest run tests/markets.test.ts tests/orderbook.test.ts tests/trading.test.ts tests/matching.test.ts tests/positions.test.ts tests/claim.test.ts"},"_npmUser":{"name":"alphagoat","email":"mark@lofty.ai"},"repository":{"url":"git+https://github.com/phara23/alpha-sdk.git","type":"git"},"_npmVersion":"9.6.7","description":"TypeScript SDK for trading on Alpha Market — Algorand prediction markets. Place orders, manage positions, read orderbooks from API or chain, and build trading bots.","directories":{},"_nodeVersion":"18.17.1","dependencies":{"decimal.js":"^10.4.3"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.5.0","dotenv":"^16.4.7","eslint":"^9.0.0","vitest":"^3.0.0","algosdk":"^3.5.2","typedoc":"^0.27.0","typescript":"^5.6.3","@types/node":"^25.2.3","@algorandfoundation/algokit-utils":"^9.2.0"},"peerDependencies":{"algosdk":"^3.5.2","@algorandfoundation/algokit-utils":"^9.2.0"},"_npmOperationalInternal":{"tmp":"tmp/sdk_0.3.5_1774305603224_0.3646878069529942","host":"s3://npm-registry-packages-npm-production"}},"0.3.6":{"name":"@alpha-arcade/sdk","version":"0.3.6","keywords":["algorand","prediction-market","trading","sdk","alpha-market","defi","orderbook"],"license":"MIT","_id":"@alpha-arcade/sdk@0.3.6","maintainers":[{"name":"alphagoat","email":"mark@lofty.ai"}],"homepage":"https://github.com/phara23/alpha-sdk#readme","bugs":{"url":"https://github.com/phara23/alpha-sdk/issues"},"dist":{"shasum":"38b5f1a76b6f8e046a48ea2ce1cf38a3c6bbaf8e","tarball":"https://registry.npmjs.org/@alpha-arcade/sdk/-/sdk-0.3.6.tgz","fileCount":9,"integrity":"sha512-4Ie8pY7Tx5JC8jhS0g07CmVKbapjGY+AJsXaCsKfKc3BKfGn9HoXnUy+Z2+dHe2tB5f9u72yz9Sp9jyaSpZgRQ==","signatures":[{"sig":"MEYCIQCvAtzkrufjhlG2RxR+pJuG2hEQKf2SnW8DaLkTN7e1JgIhAJKXGudC7trm5S1PVuQ2wMtgK/oO62fvEPCbu9W6jBwq","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":1416772},"main":"./dist/index.cjs","type":"module","types":"./dist/index.d.ts","module":"./dist/index.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs"}},"gitHead":"fab575f225ccaba6be36d8a7e2510be15db435d3","scripts":{"dev":"tsup --watch","docs":"typedoc --out docs src/index.ts","lint":"eslint src/","test":"vitest run","build":"tsup","test:unit":"vitest run tests/fees.test.ts","typecheck":"tsc --noEmit","test:watch":"vitest","prepublishOnly":"npm run build","test:integration":"vitest run tests/markets.test.ts tests/orderbook.test.ts tests/trading.test.ts tests/matching.test.ts tests/positions.test.ts tests/claim.test.ts"},"_npmUser":{"name":"alphagoat","email":"mark@lofty.ai"},"repository":{"url":"git+https://github.com/phara23/alpha-sdk.git","type":"git"},"_npmVersion":"9.6.7","description":"TypeScript SDK for trading on Alpha Market — Algorand prediction markets. Place orders, manage positions, read orderbooks from API or chain, and build trading bots.","directories":{},"_nodeVersion":"18.17.1","dependencies":{"decimal.js":"^10.4.3"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.5.0","dotenv":"^16.4.7","eslint":"^9.0.0","vitest":"^3.0.0","algosdk":"^3.5.2","typedoc":"^0.27.0","typescript":"^5.6.3","@types/node":"^25.2.3","@algorandfoundation/algokit-utils":"^9.2.0"},"peerDependencies":{"algosdk":"^3.5.2","@algorandfoundation/algokit-utils":"^9.2.0"},"_npmOperationalInternal":{"tmp":"tmp/sdk_0.3.6_1774309553416_0.29376056797885397","host":"s3://npm-registry-packages-npm-production"}},"0.3.7":{"name":"@alpha-arcade/sdk","version":"0.3.7","keywords":["algorand","prediction-market","trading","sdk","alpha-market","defi","orderbook"],"license":"MIT","_id":"@alpha-arcade/sdk@0.3.7","maintainers":[{"name":"alphagoat","email":"mark@lofty.ai"}],"homepage":"https://github.com/phara23/alpha-sdk#readme","bugs":{"url":"https://github.com/phara23/alpha-sdk/issues"},"dist":{"shasum":"b9e397648f7ea50f8ab05dda0c73a361e30bcaa4","tarball":"https://registry.npmjs.org/@alpha-arcade/sdk/-/sdk-0.3.7.tgz","fileCount":9,"integrity":"sha512-pUWABpfHG2wrrooVmvrfKy5hidfsAX/07ZJXw88Z2T3sPh1otooDSu5pjvjrPAPPkKuJO6fY1yFcd6Wl/tADhw==","signatures":[{"sig":"MEYCIQDA5PhuvwDp/ijhnG7aONKzTDshEPjw5uXQYvLl2rS0YQIhAI1DTEO8I7xcD6dfZb82pifk0GMDwmHNaZ1NXyauvTIn","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":1438444},"main":"./dist/index.cjs","type":"module","types":"./dist/index.d.ts","module":"./dist/index.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs"}},"gitHead":"4e1bc2418e793d8d49b1dada97d90336eade3e6d","scripts":{"dev":"tsup --watch","docs":"typedoc --out docs src/index.ts","lint":"eslint src/","test":"vitest run","build":"tsup","test:unit":"vitest run tests/fees.test.ts","typecheck":"tsc --noEmit","test:watch":"vitest","prepublishOnly":"npm run build","test:integration":"vitest run tests/markets.test.ts tests/orderbook.test.ts tests/trading.test.ts tests/matching.test.ts tests/positions.test.ts tests/claim.test.ts"},"_npmUser":{"name":"alphagoat","email":"mark@lofty.ai"},"repository":{"url":"git+https://github.com/phara23/alpha-sdk.git","type":"git"},"_npmVersion":"9.6.7","description":"TypeScript SDK for trading on Alpha Market — Algorand prediction markets. Place orders, manage positions, read orderbooks from API or chain, and build trading bots.","directories":{},"_nodeVersion":"18.17.1","dependencies":{"decimal.js":"^10.4.3"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.5.0","dotenv":"^16.4.7","eslint":"^9.0.0","vitest":"^3.0.0","algosdk":"^3.5.2","typedoc":"^0.27.0","typescript":"^5.6.3","@types/node":"^25.2.3","@algorandfoundation/algokit-utils":"^9.2.0"},"peerDependencies":{"algosdk":"^3.5.2","@algorandfoundation/algokit-utils":"^9.2.0"},"_npmOperationalInternal":{"tmp":"tmp/sdk_0.3.7_1776374477910_0.3730505042948937","host":"s3://npm-registry-packages-npm-production"}},"0.3.9":{"name":"@alpha-arcade/sdk","version":"0.3.9","keywords":["algorand","prediction-market","trading","sdk","alpha-market","defi","orderbook"],"license":"MIT","_id":"@alpha-arcade/sdk@0.3.9","maintainers":[{"name":"alphagoat","email":"mark@lofty.ai"}],"homepage":"https://github.com/phara23/alpha-sdk#readme","bugs":{"url":"https://github.com/phara23/alpha-sdk/issues"},"dist":{"shasum":"c0c4277332f27871de05be992ce81833bbbb8e8b","tarball":"https://registry.npmjs.org/@alpha-arcade/sdk/-/sdk-0.3.9.tgz","fileCount":9,"integrity":"sha512-7FhxktC9aaGDs9jg9DBH31AP1+m61zXeOuM70F48tZqmi7+EfuqQLPLnCSTwkFlzbQLcsy1VpvnZ7P5+n7X/zw==","signatures":[{"sig":"MEYCIQDC2YQGWXDYSybEsBBorA2NnDI0+3c/6G03mMRMFqzLlQIhANUI7361cTW/CJ+G9uTiN/RsPzic5kdDqx9za+qqmdc9","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":1443594},"main":"./dist/index.cjs","type":"module","types":"./dist/index.d.ts","module":"./dist/index.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs"}},"gitHead":"faf870baea89dedca761dfe7816d2b6e878bd5e4","scripts":{"dev":"tsup --watch","docs":"typedoc --out docs src/index.ts","lint":"eslint src/","test":"vitest run","build":"tsup","test:unit":"vitest run tests/fees.test.ts","typecheck":"tsc --noEmit","test:watch":"vitest","prepublishOnly":"npm run build","test:integration":"vitest run tests/markets.test.ts tests/orderbook.test.ts tests/trading.test.ts tests/matching.test.ts tests/positions.test.ts tests/claim.test.ts"},"_npmUser":{"name":"alphagoat","email":"mark@lofty.ai"},"repository":{"url":"git+https://github.com/phara23/alpha-sdk.git","type":"git"},"_npmVersion":"10.8.2","description":"TypeScript SDK for trading on Alpha Market — Algorand prediction markets. Place orders, manage positions, read orderbooks from API or chain, and build trading bots.","directories":{},"_nodeVersion":"20.20.0","dependencies":{"decimal.js":"^10.4.3"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.5.0","dotenv":"^16.4.7","eslint":"^9.0.0","vitest":"^3.0.0","algosdk":"^3.5.2","typedoc":"^0.27.0","typescript":"^5.6.3","@types/node":"^25.2.3","@algorandfoundation/algokit-utils":"^9.2.0"},"peerDependencies":{"algosdk":"^3.5.2","@algorandfoundation/algokit-utils":"^9.2.0"},"_npmOperationalInternal":{"tmp":"tmp/sdk_0.3.9_1777572439229_0.42370462180985724","host":"s3://npm-registry-packages-npm-production"}},"0.3.10":{"name":"@alpha-arcade/sdk","version":"0.3.10","keywords":["algorand","prediction-market","trading","sdk","alpha-market","defi","orderbook"],"license":"MIT","_id":"@alpha-arcade/sdk@0.3.10","maintainers":[{"name":"alphagoat","email":"mark@lofty.ai"}],"homepage":"https://github.com/phara23/alpha-sdk#readme","bugs":{"url":"https://github.com/phara23/alpha-sdk/issues"},"dist":{"shasum":"3e7776fde996574e887c31a4bdca82fbf5ccd92d","tarball":"https://registry.npmjs.org/@alpha-arcade/sdk/-/sdk-0.3.10.tgz","fileCount":9,"integrity":"sha512-s0BlFx4vaWBgbz1WDoBptH5i7PmYGIzmx590BxqtdsT1aV6gRZMpJo9ygrjZ/sGSbwjgj+gkiwNVixYWJ0NEXw==","signatures":[{"sig":"MEQCIBPOCbyjk9gAWmieF430MmQprwIoIA2tHLEm7U4RX2uIAiByL6oz8gCyf25fxEUvLUaVDivmRR2rM/OeJar+hJmtLg==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":1443595},"main":"./dist/index.cjs","type":"module","types":"./dist/index.d.ts","module":"./dist/index.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs"}},"gitHead":"33884480a677c111c166742d260085ce26d1d6ca","scripts":{"dev":"tsup --watch","docs":"typedoc --out docs src/index.ts","lint":"eslint src/","test":"vitest run","build":"tsup","test:unit":"vitest run tests/fees.test.ts","typecheck":"tsc --noEmit","test:watch":"vitest","prepublishOnly":"npm run build","test:integration":"vitest run tests/markets.test.ts tests/orderbook.test.ts tests/trading.test.ts tests/matching.test.ts tests/positions.test.ts tests/claim.test.ts"},"_npmUser":{"name":"alphagoat","email":"mark@lofty.ai"},"repository":{"url":"git+https://github.com/phara23/alpha-sdk.git","type":"git"},"_npmVersion":"9.6.7","description":"TypeScript SDK for trading on Alpha Market — Algorand prediction markets. Place orders, manage positions, read orderbooks from API or chain, and build trading bots.","directories":{},"_nodeVersion":"18.17.1","dependencies":{"decimal.js":"^10.4.3"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.5.0","dotenv":"^16.4.7","eslint":"^9.0.0","vitest":"^3.0.0","algosdk":"^3.5.2","typedoc":"^0.27.0","typescript":"^5.6.3","@types/node":"^25.2.3","@algorandfoundation/algokit-utils":"^9.2.0"},"peerDependencies":{"algosdk":"^3.5.2","@algorandfoundation/algokit-utils":"^9.2.0"},"_npmOperationalInternal":{"tmp":"tmp/sdk_0.3.10_1778118706582_0.018028297772768154","host":"s3://npm-registry-packages-npm-production"}},"0.4.3":{"name":"@alpha-arcade/sdk","version":"0.4.3","keywords":["algorand","prediction-market","trading","sdk","alpha-market","defi","orderbook"],"license":"MIT","_id":"@alpha-arcade/sdk@0.4.3","maintainers":[{"name":"alphagoat","email":"mark@lofty.ai"}],"homepage":"https://github.com/phara23/alpha-sdk#readme","bugs":{"url":"https://github.com/phara23/alpha-sdk/issues"},"dist":{"shasum":"402fef555e66545e8d20d5d4a2c3bde6582b0595","tarball":"https://registry.npmjs.org/@alpha-arcade/sdk/-/sdk-0.4.3.tgz","fileCount":9,"integrity":"sha512-wRBoWdkE2j16+7MjjyUYwEDIW22s3hYhI02I9Sl5QP4J1/LTUUHNMIhJ0iPyvGfve71NSTDL8iEhfHW8w7rJJQ==","signatures":[{"sig":"MEYCIQCPcjQP9PdtpM7bOkW82zgmnWdnNt+OlrNJKOhTsY/EqQIhAJqs6d845G1y5sqPzRfMXRqPc26zKueFpvotJD/rg/dc","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":1511249},"main":"./dist/index.cjs","type":"module","types":"./dist/index.d.ts","module":"./dist/index.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs"}},"gitHead":"67a63f112994df770b7e763efd5442d0ef713db6","scripts":{"dev":"tsup --watch","docs":"typedoc --out docs src/index.ts","lint":"eslint src/","test":"vitest run","build":"tsup","test:unit":"vitest run tests/fees.test.ts","typecheck":"tsc --noEmit","test:watch":"vitest","prepublishOnly":"npm run build","test:integration":"vitest run tests/markets.test.ts tests/orderbook.test.ts tests/trading.test.ts tests/matching.test.ts tests/positions.test.ts tests/claim.test.ts"},"_npmUser":{"name":"alphagoat","email":"mark@lofty.ai"},"repository":{"url":"git+https://github.com/phara23/alpha-sdk.git","type":"git"},"_npmVersion":"9.6.7","description":"TypeScript SDK for trading on Alpha Market — Algorand prediction markets. Place orders, manage positions, read orderbooks from API or chain, and build trading bots.","directories":{},"_nodeVersion":"18.17.1","dependencies":{"decimal.js":"^10.4.3"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.5.0","dotenv":"^16.4.7","eslint":"^9.0.0","vitest":"^3.0.0","algosdk":"^3.5.2","typedoc":"^0.27.0","typescript":"^5.6.3","@types/node":"^25.2.3","@algorandfoundation/algokit-utils":"^9.2.0"},"peerDependencies":{"algosdk":"^3.5.2","@algorandfoundation/algokit-utils":"^9.2.0"},"_npmOperationalInternal":{"tmp":"tmp/sdk_0.4.3_1783671963830_0.4851972850416404","host":"s3://npm-registry-packages-npm-production"}},"0.4.6":{"name":"@alpha-arcade/sdk","version":"0.4.6","keywords":["algorand","prediction-market","trading","sdk","alpha-market","defi","orderbook"],"license":"MIT","_id":"@alpha-arcade/sdk@0.4.6","maintainers":[{"name":"alphagoat","email":"mark@lofty.ai"}],"homepage":"https://github.com/phara23/alpha-sdk#readme","bugs":{"url":"https://github.com/phara23/alpha-sdk/issues"},"dist":{"shasum":"cc676d782e60e16446a4cbfbdbcb2a1e40a8b64f","tarball":"https://registry.npmjs.org/@alpha-arcade/sdk/-/sdk-0.4.6.tgz","fileCount":9,"integrity":"sha512-8DQml9esaCmhBKGXrcfvODkPlBchUrCrcd3JwxeUt8NfKKD/TsQ5llKGrly1qOw9jxeJiHgQU95Z7hAQvLEnfQ==","signatures":[{"sig":"MEUCIQDK+N79egmfpzjGyhu23d4SO7f8C/Cgqkt64F5K8Ok+sAIgGH/OETMTFNRK0YoZnZl8aCfDC8F+UN+op2tSN2+PPEw=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":1570028},"main":"./dist/index.cjs","type":"module","types":"./dist/index.d.ts","module":"./dist/index.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs"}},"gitHead":"21614bd12ead30e0d8a4841f7b89a8039eff968b","scripts":{"dev":"tsup --watch","docs":"typedoc --out docs src/index.ts","lint":"eslint src/","test":"vitest run","build":"tsup","test:unit":"vitest run tests/fees.test.ts","typecheck":"tsc --noEmit","test:watch":"vitest","prepublishOnly":"npm run build","test:integration":"vitest run tests/markets.test.ts tests/orderbook.test.ts tests/trading.test.ts tests/matching.test.ts tests/positions.test.ts tests/claim.test.ts"},"_npmUser":{"name":"alphagoat","email":"mark@lofty.ai"},"repository":{"url":"git+https://github.com/phara23/alpha-sdk.git","type":"git"},"_npmVersion":"9.6.7","description":"TypeScript SDK for trading on Alpha Market — Algorand prediction markets. Place orders, manage positions, read orderbooks from API or chain, and build trading bots.","directories":{},"_nodeVersion":"18.17.1","dependencies":{"decimal.js":"^10.4.3"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.5.0","dotenv":"^16.4.7","eslint":"^9.0.0","vitest":"^3.0.0","algosdk":"^3.5.2","typedoc":"^0.27.0","typescript":"^5.6.3","@types/node":"^25.2.3","@algorandfoundation/algokit-utils":"^9.2.0"},"peerDependencies":{"algosdk":"^3.5.2","@algorandfoundation/algokit-utils":"^9.2.0"},"_npmOperationalInternal":{"tmp":"tmp/sdk_0.4.6_1784547970228_0.9281434050486985","host":"s3://npm-registry-packages-npm-production"}},"0.4.7":{"name":"@alpha-arcade/sdk","version":"0.4.7","keywords":["algorand","prediction-market","trading","sdk","alpha-market","defi","orderbook"],"license":"MIT","_id":"@alpha-arcade/sdk@0.4.7","maintainers":[{"name":"alphagoat","email":"mark@lofty.ai"}],"homepage":"https://github.com/phara23/alpha-sdk#readme","bugs":{"url":"https://github.com/phara23/alpha-sdk/issues"},"dist":{"shasum":"0309e11d6a31e12088192039f2a88ef49a03dea4","tarball":"https://registry.npmjs.org/@alpha-arcade/sdk/-/sdk-0.4.7.tgz","fileCount":9,"integrity":"sha512-V2lfXFmrDRN2PrGQLhHZtBiIfzO5A2rlqmou/28TN/USAD3xWi1iKJUC2SNzvgYFigtfu5fLx/ZCj8LMOxIOxg==","signatures":[{"sig":"MEYCIQDD80eGXHtIXheviEm19JNQRSz5fWtsDOs9+lZnPkz4ZgIhAMI8O+IE69wsguciFWK9+pNK3xmN1rdu08zysh/fDUSo","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":1576162},"main":"./dist/index.cjs","type":"module","types":"./dist/index.d.ts","module":"./dist/index.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs"}},"gitHead":"14ca5339d053425a1c544ce71c892380a502a870","scripts":{"dev":"tsup --watch","docs":"typedoc --out docs src/index.ts","lint":"eslint src/","test":"vitest run","build":"tsup","test:unit":"vitest run tests/fees.test.ts","typecheck":"tsc --noEmit","test:watch":"vitest","prepublishOnly":"npm run build","test:integration":"vitest run tests/markets.test.ts tests/orderbook.test.ts tests/trading.test.ts tests/matching.test.ts tests/positions.test.ts tests/claim.test.ts"},"_npmUser":{"name":"alphagoat","email":"mark@lofty.ai"},"repository":{"url":"git+https://github.com/phara23/alpha-sdk.git","type":"git"},"_npmVersion":"9.6.7","description":"TypeScript SDK for trading on Alpha Market — Algorand prediction markets. Place orders, manage positions, read orderbooks from API or chain, and build trading bots.","directories":{},"_nodeVersion":"18.17.1","dependencies":{"decimal.js":"^10.4.3"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.5.0","dotenv":"^16.4.7","eslint":"^9.0.0","vitest":"^3.0.0","algosdk":"^3.5.2","typedoc":"^0.27.0","typescript":"^5.6.3","@types/node":"^25.2.3","@algorandfoundation/algokit-utils":"^9.2.0"},"peerDependencies":{"algosdk":"^3.5.2","@algorandfoundation/algokit-utils":"^9.2.0"},"_npmOperationalInternal":{"tmp":"tmp/sdk_0.4.7_1784599552008_0.4127034853055289","host":"s3://npm-registry-packages-npm-production"}},"0.4.8":{"name":"@alpha-arcade/sdk","version":"0.4.8","keywords":["algorand","prediction-market","trading","sdk","alpha-market","defi","orderbook"],"license":"MIT","_id":"@alpha-arcade/sdk@0.4.8","maintainers":[{"name":"alphagoat","email":"mark@lofty.ai"}],"homepage":"https://github.com/phara23/alpha-sdk#readme","bugs":{"url":"https://github.com/phara23/alpha-sdk/issues"},"dist":{"shasum":"a58f23deb0dbf0e463a600fb3a893b1e9a065883","tarball":"https://registry.npmjs.org/@alpha-arcade/sdk/-/sdk-0.4.8.tgz","fileCount":9,"integrity":"sha512-r4ofYzEyK8jVF9we305oVoIhSZ7RzeNNACJV+8xkOiwMCrz1KgD6JYeWULSNIoK/e7FNAXN6lR9tUQztOUKz3w==","signatures":[{"sig":"MEUCIARWOtkdZbZCrtXhELo+AubObjCiGh7C4ienRLpoEgJsAiEA6UVeeRQYaYGwgF/1OcfzAhzy3i0RxU37yzsGJwfbz7k=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":1579783},"main":"./dist/index.cjs","type":"module","types":"./dist/index.d.ts","module":"./dist/index.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs"}},"gitHead":"f6a05481a1de11a1537b030fdc5b8ec2d65da9e8","scripts":{"dev":"tsup --watch","docs":"typedoc --out docs src/index.ts","lint":"eslint src/","test":"vitest run","build":"tsup","test:unit":"vitest run tests/fees.test.ts","typecheck":"tsc --noEmit","test:watch":"vitest","prepublishOnly":"npm run build","test:integration":"vitest run tests/markets.test.ts tests/orderbook.test.ts tests/trading.test.ts tests/matching.test.ts tests/positions.test.ts tests/claim.test.ts"},"_npmUser":{"name":"alphagoat","email":"mark@lofty.ai"},"repository":{"url":"git+https://github.com/phara23/alpha-sdk.git","type":"git"},"_npmVersion":"9.6.7","description":"TypeScript SDK for trading on Alpha Market — Algorand prediction markets. Place orders, manage positions, read orderbooks from API or chain, and build trading bots.","directories":{},"_nodeVersion":"18.17.1","dependencies":{"decimal.js":"^10.4.3"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.5.0","dotenv":"^16.4.7","eslint":"^9.0.0","vitest":"^3.0.0","algosdk":"^3.5.2","typedoc":"^0.27.0","typescript":"^5.6.3","@types/node":"^25.2.3","@algorandfoundation/algokit-utils":"^9.2.0"},"peerDependencies":{"algosdk":"^3.5.2","@algorandfoundation/algokit-utils":"^9.2.0"},"_npmOperationalInternal":{"tmp":"tmp/sdk_0.4.8_1784625394141_0.10831228283228156","host":"s3://npm-registry-packages-npm-production"}},"0.4.9":{"name":"@alpha-arcade/sdk","version":"0.4.9","keywords":["algorand","prediction-market","trading","sdk","alpha-market","defi","orderbook"],"license":"MIT","_id":"@alpha-arcade/sdk@0.4.9","maintainers":[{"name":"alphagoat","email":"mark@lofty.ai"}],"homepage":"https://github.com/phara23/alpha-sdk#readme","bugs":{"url":"https://github.com/phara23/alpha-sdk/issues"},"dist":{"shasum":"305616836876ef9006f2a1eb6e5a7dfe4861baf8","tarball":"https://registry.npmjs.org/@alpha-arcade/sdk/-/sdk-0.4.9.tgz","fileCount":9,"integrity":"sha512-9YF4RVSq1zmDq0gai+M9wHLxs6kHOEPaLvRgA8xBKmTKsJgLsaeDqt2pWK9P+AFolaGEDMY7+fnGEfrhFyOhXg==","signatures":[{"sig":"MEQCIE7hdwbflEOQJ5Ii87BStl3wMypTQlGVtJzh+CQ/INORAiBQATFtRgryt/NY5xOur1kNUGfkmQcG8pWxf0OeZ5kndg==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":1580041},"main":"./dist/index.cjs","type":"module","types":"./dist/index.d.ts","module":"./dist/index.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs"}},"gitHead":"e954b4de44146bc31d30032bac607b5c70c52268","scripts":{"dev":"tsup --watch","docs":"typedoc --out docs src/index.ts","lint":"eslint src/","test":"vitest run","build":"tsup","test:unit":"vitest run tests/fees.test.ts","typecheck":"tsc --noEmit","test:watch":"vitest","prepublishOnly":"npm run build","test:integration":"vitest run tests/markets.test.ts tests/orderbook.test.ts tests/trading.test.ts tests/matching.test.ts tests/positions.test.ts tests/claim.test.ts"},"_npmUser":{"name":"alphagoat","email":"mark@lofty.ai"},"repository":{"url":"git+https://github.com/phara23/alpha-sdk.git","type":"git"},"_npmVersion":"9.6.7","description":"TypeScript SDK for trading on Alpha Market — Algorand prediction markets. Place orders, manage positions, read orderbooks from API or chain, and build trading bots.","directories":{},"_nodeVersion":"18.17.1","dependencies":{"decimal.js":"^10.4.3"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.5.0","dotenv":"^16.4.7","eslint":"^9.0.0","vitest":"^3.0.0","algosdk":"^3.5.2","typedoc":"^0.27.0","typescript":"^5.6.3","@types/node":"^25.2.3","@algorandfoundation/algokit-utils":"^9.2.0"},"peerDependencies":{"algosdk":"^3.5.2","@algorandfoundation/algokit-utils":"^9.2.0"},"_npmOperationalInternal":{"tmp":"tmp/sdk_0.4.9_1784812334372_0.0473080987132255","host":"s3://npm-registry-packages-npm-production"}},"0.4.11":{"name":"@alpha-arcade/sdk","version":"0.4.11","keywords":["algorand","prediction-market","trading","sdk","alpha-market","defi","orderbook"],"license":"MIT","_id":"@alpha-arcade/sdk@0.4.11","maintainers":[{"name":"alphagoat","email":"mark@lofty.ai"}],"homepage":"https://github.com/phara23/alpha-sdk#readme","bugs":{"url":"https://github.com/phara23/alpha-sdk/issues"},"dist":{"shasum":"00f0938fb6d5e90cd7006fed1b79ce9fa99e308d","tarball":"https://registry.npmjs.org/@alpha-arcade/sdk/-/sdk-0.4.11.tgz","fileCount":9,"integrity":"sha512-b0GMrBA57rC/xrpolYoPpbJ3H9oMJvGCo38huA32ubzu4df5Ca0BnVS/jwRbqX8PbOLXjiYUyAzT2b41fp6R4w==","signatures":[{"sig":"MEQCIC9dVgX01oTgx/irpxtIQjsmGKN9251bYmf/Z9pjqXOWAiBLqAut14krpj/RLEsEeqyn9+yF5+wbgkno2pmssYOGSA==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":1666978},"main":"./dist/index.cjs","type":"module","types":"./dist/index.d.ts","module":"./dist/index.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs"}},"gitHead":"e84f15744614e68cb1aaed6b10d63ef9f5ba00a4","scripts":{"dev":"tsup --watch","docs":"typedoc --out docs src/index.ts","lint":"eslint src/","test":"vitest run","build":"tsup","test:unit":"vitest run tests/fees.test.ts","typecheck":"tsc --noEmit","test:watch":"vitest","prepublishOnly":"npm run build","test:integration":"vitest run tests/markets.test.ts tests/orderbook.test.ts tests/trading.test.ts tests/matching.test.ts tests/positions.test.ts tests/claim.test.ts"},"_npmUser":{"name":"alphagoat","email":"mark@lofty.ai"},"repository":{"url":"git+https://github.com/phara23/alpha-sdk.git","type":"git"},"_npmVersion":"9.6.7","description":"TypeScript SDK for trading on Alpha Market — Algorand prediction markets. Place orders, manage positions, read orderbooks from API or chain, and build trading bots.","directories":{},"_nodeVersion":"18.17.1","dependencies":{"decimal.js":"^10.4.3"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.5.0","dotenv":"^16.4.7","eslint":"^9.0.0","vitest":"^3.0.0","algosdk":"^3.5.2","typedoc":"^0.27.0","typescript":"^5.6.3","@types/node":"^25.2.3","@algorandfoundation/algokit-utils":"^9.2.0"},"peerDependencies":{"algosdk":"^3.5.2","@algorandfoundation/algokit-utils":"^9.2.0"},"_npmOperationalInternal":{"tmp":"tmp/sdk_0.4.11_1784953255792_0.57811948007779","host":"s3://npm-registry-packages-npm-production"}},"0.4.12":{"name":"@alpha-arcade/sdk","version":"0.4.12","keywords":["algorand","prediction-market","trading","sdk","alpha-market","defi","orderbook"],"license":"MIT","_id":"@alpha-arcade/sdk@0.4.12","maintainers":[{"name":"alphagoat","email":"mark@lofty.ai"}],"homepage":"https://github.com/phara23/alpha-sdk#readme","bugs":{"url":"https://github.com/phara23/alpha-sdk/issues"},"dist":{"shasum":"6b4438b802f97e184edb2c3760a8e261854b8f7c","tarball":"https://registry.npmjs.org/@alpha-arcade/sdk/-/sdk-0.4.12.tgz","fileCount":9,"integrity":"sha512-wI/HxggmV7AG7FNDPAunwgSE1wAL9u8bPGXsZgz68ME30jDlHTQ9Q+Llo/2wPIKFO20TXKa1dCHojkgEISgshQ==","signatures":[{"sig":"MEUCIQDozNga8LZR+TE8/LtNgA8UGSm/JFDCeJn+S1kyFhn6GAIgOLBcANQu/k1l/H4H4PM/BxAVdk7eY21kT85BWiQysRM=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":1842839},"main":"./dist/index.cjs","type":"module","types":"./dist/index.d.ts","module":"./dist/index.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs"}},"gitHead":"0a896a64faa2a16320491cb865079d33ed3232ad","scripts":{"dev":"tsup --watch","docs":"typedoc --out docs src/index.ts","lint":"eslint src/","test":"vitest run","build":"tsup","test:unit":"vitest run tests/fees.test.ts","typecheck":"tsc --noEmit","test:watch":"vitest","prepublishOnly":"npm run build","test:integration":"vitest run tests/markets.test.ts tests/orderbook.test.ts tests/trading.test.ts tests/matching.test.ts tests/positions.test.ts tests/claim.test.ts"},"_npmUser":{"name":"alphagoat","email":"mark@lofty.ai"},"repository":{"url":"git+https://github.com/phara23/alpha-sdk.git","type":"git"},"_npmVersion":"9.6.7","description":"TypeScript SDK for trading on Alpha Market — Algorand prediction markets. Place orders, manage positions, read orderbooks from API or chain, and build trading bots.","directories":{},"_nodeVersion":"18.17.1","dependencies":{"decimal.js":"^10.4.3"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.5.0","dotenv":"^16.4.7","eslint":"^9.0.0","vitest":"^3.0.0","algosdk":"^3.5.2","typedoc":"^0.27.0","typescript":"^5.6.3","@types/node":"^25.2.3","@algorandfoundation/algokit-utils":"^9.2.0"},"peerDependencies":{"algosdk":"^3.5.2","@algorandfoundation/algokit-utils":"^9.2.0"},"_npmOperationalInternal":{"tmp":"tmp/sdk_0.4.12_1787567365591_0.49703455285559217","host":"s3://npm-registry-packages-npm-production"}},"0.4.13":{"name":"@alpha-arcade/sdk","version":"0.4.13","keywords":["algorand","prediction-market","trading","sdk","alpha-market","defi","orderbook"],"license":"MIT","_id":"@alpha-arcade/sdk@0.4.13","maintainers":[{"name":"alphagoat","email":"mark@lofty.ai"}],"homepage":"https://github.com/phara23/alpha-sdk#readme","bugs":{"url":"https://github.com/phara23/alpha-sdk/issues"},"dist":{"shasum":"9a4f48b4742c5478494116beb7f7fe8ad40d1630","tarball":"https://registry.npmjs.org/@alpha-arcade/sdk/-/sdk-0.4.13.tgz","fileCount":9,"integrity":"sha512-p8cqcQcx7HYazNvI0R4H4ofB3UgVRC7OiASS3w8yE5z54H9OmC60P7X4hEWJGboy4Lq5VwwCmf3sz7sT8jDyUw==","signatures":[{"sig":"MEYCIQCpcoX0MoVmW1Q2jfyaEWCcs3EodMW0vbTOmFAbv5s2BgIhAKmmAbxxVfEe32YwNhEp+MoLeALCBRTwMe7eh54FRDKa","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":1947318},"main":"./dist/index.cjs","type":"module","types":"./dist/index.d.ts","module":"./dist/index.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs"}},"gitHead":"8316174aaa6a4165e4395d7dc846675c3cdad215","scripts":{"dev":"tsup --watch","docs":"typedoc --out docs src/index.ts","lint":"eslint src/","test":"vitest run","build":"tsup","test:unit":"vitest run tests/fees.test.ts","typecheck":"tsc --noEmit","test:watch":"vitest","prepublishOnly":"npm run build","test:integration":"vitest run tests/markets.test.ts tests/orderbook.test.ts tests/trading.test.ts tests/matching.test.ts tests/positions.test.ts tests/claim.test.ts"},"_npmUser":{"name":"alphagoat","email":"mark@lofty.ai"},"repository":{"url":"git+https://github.com/phara23/alpha-sdk.git","type":"git"},"_npmVersion":"9.6.7","description":"TypeScript SDK for trading on Alpha Market — Algorand prediction markets. Place orders, manage positions, read orderbooks from API or chain, and build trading bots.","directories":{},"_nodeVersion":"18.17.1","dependencies":{"decimal.js":"^10.4.3"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.5.0","dotenv":"^16.4.7","eslint":"^9.0.0","vitest":"^3.0.0","algosdk":"^3.5.2","typedoc":"^0.27.0","typescript":"^5.6.3","@types/node":"^25.2.3","@algorandfoundation/algokit-utils":"^9.2.0"},"peerDependencies":{"algosdk":"^3.5.2","@algorandfoundation/algokit-utils":"^9.2.0"},"_npmOperationalInternal":{"tmp":"tmp/sdk_0.4.13_1787579093795_0.563714789706748","host":"s3://npm-registry-packages-npm-production"}},"0.5.0":{"name":"@alpha-arcade/sdk","version":"0.5.0","keywords":["algorand","prediction-market","trading","sdk","alpha-market","defi","orderbook"],"license":"MIT","_id":"@alpha-arcade/sdk@0.5.0","maintainers":[{"name":"alphagoat","email":"mark@lofty.ai"}],"homepage":"https://github.com/phara23/alpha-sdk#readme","bugs":{"url":"https://github.com/phara23/alpha-sdk/issues"},"dist":{"shasum":"05a9b1208a9b270ce3f543276225360eede5100b","tarball":"https://registry.npmjs.org/@alpha-arcade/sdk/-/sdk-0.5.0.tgz","fileCount":9,"integrity":"sha512-QVOoIPgws2z9aOHo3t2lzPEDB6vUtSMs72CAtCWIvIVDMno1tCijwfIG0FpTWiCBlldY9XwVLdg5gIj5tHU6/A==","signatures":[{"sig":"MEQCICshxyMRUaa+S65Decz/qblznpVydY+80Dl4AjoPwWK6AiBXYr2j5i/D2/MkcUFAGUiRo9do8KaQHOEtNk8+PvxqSw==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":1923151},"main":"./dist/index.cjs","type":"module","types":"./dist/index.d.ts","module":"./dist/index.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs"}},"gitHead":"2637882de3079742e0d1d8f96521dad83c383b2d","scripts":{"dev":"tsup --watch","docs":"typedoc --out docs src/index.ts","lint":"eslint src/","test":"vitest run","build":"tsup","test:unit":"vitest run tests/fees.test.ts","typecheck":"tsc --noEmit","test:watch":"vitest","prepublishOnly":"npm run build","test:integration":"vitest run tests/markets.test.ts tests/orderbook.test.ts tests/trading.test.ts tests/matching.test.ts tests/positions.test.ts tests/claim.test.ts"},"_npmUser":{"name":"alphagoat","email":"mark@lofty.ai"},"repository":{"url":"git+https://github.com/phara23/alpha-sdk.git","type":"git"},"_npmVersion":"9.6.7","description":"TypeScript SDK for trading on Alpha Market — Algorand prediction markets. Place orders, manage positions, read orderbooks from API or chain, and build trading bots.","directories":{},"_nodeVersion":"18.17.1","dependencies":{"decimal.js":"^10.4.3"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.5.0","dotenv":"^16.4.7","eslint":"^9.0.0","vitest":"^3.0.0","algosdk":"^3.5.2","typedoc":"^0.27.0","typescript":"^5.6.3","@types/node":"^25.2.3","@algorandfoundation/algokit-utils":"^9.2.0"},"peerDependencies":{"algosdk":"^3.5.2","@algorandfoundation/algokit-utils":"^9.2.0"},"_npmOperationalInternal":{"tmp":"tmp/sdk_0.5.0_1787647534607_0.8761322715673381","host":"s3://npm-registry-packages-npm-production"}},"0.5.1":{"name":"@alpha-arcade/sdk","version":"0.5.1","keywords":["algorand","prediction-market","trading","sdk","alpha-market","defi","orderbook"],"license":"MIT","_id":"@alpha-arcade/sdk@0.5.1","maintainers":[{"name":"alphagoat","email":"mark@lofty.ai"}],"homepage":"https://github.com/phara23/alpha-sdk#readme","bugs":{"url":"https://github.com/phara23/alpha-sdk/issues"},"dist":{"shasum":"52d67967355329343dbee20ff38adb8d947e9bfd","tarball":"https://registry.npmjs.org/@alpha-arcade/sdk/-/sdk-0.5.1.tgz","fileCount":9,"integrity":"sha512-um0dlP03e6WCvllECNAOg7hP7elrtsb3FuNnulejPVgmR9FZI2vaR/vXijJdMKHP/zHkM3/aHLHm7B+iUXtc7w==","signatures":[{"sig":"MEUCIBghdx9eqerVrrLUa1Ey0yyoVVKktCQoWRk/tUNqH37dAiEAsZMG5gqhHBHiqTdXmRgz3yodLE0hL6gqpYqEB0P/+ic=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":1964990},"main":"./dist/index.cjs","type":"module","types":"./dist/index.d.ts","module":"./dist/index.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs"}},"gitHead":"f02a1effc482c93bb5d3de27db8adb393b7d686c","scripts":{"dev":"tsup --watch","docs":"typedoc --out docs src/index.ts","lint":"eslint src/","test":"vitest run","build":"tsup","test:unit":"vitest run tests/fees.test.ts","typecheck":"tsc --noEmit","test:watch":"vitest","prepublishOnly":"npm run build","test:integration":"vitest run tests/markets.test.ts tests/orderbook.test.ts tests/trading.test.ts tests/matching.test.ts tests/positions.test.ts tests/claim.test.ts"},"_npmUser":{"name":"alphagoat","email":"mark@lofty.ai"},"repository":{"url":"git+https://github.com/phara23/alpha-sdk.git","type":"git"},"_npmVersion":"9.6.7","description":"TypeScript SDK for trading on Alpha Market — Algorand prediction markets. Place orders, manage positions, read orderbooks from API or chain, and build trading bots.","directories":{},"_nodeVersion":"18.17.1","dependencies":{"decimal.js":"^10.4.3"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.5.0","dotenv":"^16.4.7","eslint":"^9.0.0","vitest":"^3.0.0","algosdk":"^3.5.2","typedoc":"^0.27.0","typescript":"^5.6.3","@types/node":"^25.2.3","@algorandfoundation/algokit-utils":"^9.2.0"},"peerDependencies":{"algosdk":"^3.5.2","@algorandfoundation/algokit-utils":"^9.2.0"},"_npmOperationalInternal":{"tmp":"tmp/sdk_0.5.1_1789288781020_0.6617630200661142","host":"s3://npm-registry-packages-npm-production"}},"0.5.2":{"name":"@alpha-arcade/sdk","version":"0.5.2","description":"TypeScript SDK for trading on Alpha Market — Algorand prediction markets. Place orders, manage positions, read orderbooks from API or chain, and build trading bots.","type":"module","main":"./dist/index.cjs","module":"./dist/index.js","types":"./dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs"}},"scripts":{"build":"tsup","dev":"tsup --watch","typecheck":"tsc --noEmit","lint":"eslint src/","docs":"typedoc --out docs src/index.ts","test":"vitest run","test:unit":"vitest run tests/fees.test.ts tests/alpha-lp.test.ts","test:integration":"vitest run tests/markets.test.ts tests/orderbook.test.ts tests/trading.test.ts tests/matching.test.ts tests/positions.test.ts tests/claim.test.ts","test:watch":"vitest","prepublishOnly":"npm run build"},"peerDependencies":{"@algorandfoundation/algokit-utils":"^9.2.0","algosdk":"^3.5.2"},"dependencies":{"decimal.js":"^10.4.3"},"devDependencies":{"@algorandfoundation/algokit-utils":"^9.2.0","@types/node":"^25.2.3","algosdk":"^3.5.2","dotenv":"^16.4.7","eslint":"^9.0.0","tsup":"^8.5.0","typedoc":"^0.27.0","typescript":"^5.6.3","vitest":"^3.0.0"},"keywords":["algorand","prediction-market","trading","sdk","alpha-market","defi","orderbook"],"license":"MIT","repository":{"type":"git","url":"git+https://github.com/phara23/alpha-sdk.git"},"gitHead":"01e315af59b2c1118f44bbee3d9e4e16d67d45ca","bugs":{"url":"https://github.com/phara23/alpha-sdk/issues"},"homepage":"https://github.com/phara23/alpha-sdk#readme","_id":"@alpha-arcade/sdk@0.5.2","_nodeVersion":"18.17.1","_npmVersion":"9.6.7","dist":{"integrity":"sha512-u1R/Q57zyfKX6D0jkrrCl2MrIiJYX4uivUyXLRCZOXOCzH0nbFmlKcGXoAaivpAhgvBGbQga/Cfve+X9xDzT9w==","shasum":"dc280f18f844786642adc638b03a2997990e9da2","tarball":"https://registry.npmjs.org/@alpha-arcade/sdk/-/sdk-0.5.2.tgz","fileCount":9,"unpackedSize":1973716,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQCWejYeCGZMmx7UFQerqqVwm+0AbsDbdbMTy2V5ehBykwIhAO1U10ngbi3NyaovJUE4DuYO6nf01nr6kT9Rp/gZFeYB"}]},"_npmUser":{"name":"alphagoat","email":"mark@lofty.ai"},"directories":{},"maintainers":[{"name":"alphagoat","email":"mark@lofty.ai"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/sdk_0.5.2_1789307318442_0.6550175808400338"},"_hasShrinkwrap":false}},"time":{"created":"2026-02-13T22:57:36.189Z","modified":"2026-09-13T13:48:38.839Z","0.1.0":"2026-02-13T22:57:36.513Z","0.1.1":"2026-02-13T23:12:24.988Z","0.1.2":"2026-02-13T23:22:33.218Z","0.2.0":"2026-02-14T01:28:59.619Z","0.2.1":"2026-02-15T07:13:32.665Z","0.2.2":"2026-02-15T07:20:06.794Z","0.2.3":"2026-02-15T19:05:22.127Z","0.2.4":"2026-02-17T04:35:21.230Z","0.2.5":"2026-02-18T05:06:52.348Z","0.2.6":"2026-02-19T22:20:27.462Z","0.2.7":"2026-02-19T23:09:58.494Z","0.2.8":"2026-02-20T21:06:22.349Z","0.2.9":"2026-02-20T21:09:22.559Z","0.2.10":"2026-03-08T02:21:14.086Z","0.2.11":"2026-03-10T20:22:08.647Z","0.3.0":"2026-03-11T19:56:42.533Z","0.3.1":"2026-03-16T20:43:21.120Z","0.4.0":"2026-03-17T01:43:34.344Z","0.4.1":"2026-03-17T18:35:11.433Z","0.4.2":"2026-03-18T22:31:44.033Z","0.3.5":"2026-03-23T22:40:03.423Z","0.3.6":"2026-03-23T23:45:53.734Z","0.3.7":"2026-04-16T21:21:18.220Z","0.3.9":"2026-04-30T18:07:19.408Z","0.3.10":"2026-05-07T01:51:46.777Z","0.4.3":"2026-07-10T08:26:04.002Z","0.4.6":"2026-07-20T11:46:10.394Z","0.4.7":"2026-07-21T02:05:52.284Z","0.4.8":"2026-07-21T09:16:34.297Z","0.4.9":"2026-07-23T13:12:14.520Z","0.4.11":"2026-07-25T04:20:55.991Z","0.4.12":"2026-08-24T10:29:25.729Z","0.4.13":"2026-08-24T13:44:53.971Z","0.5.0":"2026-08-25T08:45:34.778Z","0.5.1":"2026-09-13T08:39:41.174Z","0.5.2":"2026-09-13T13:48:38.595Z"},"bugs":{"url":"https://github.com/phara23/alpha-sdk/issues"},"license":"MIT","homepage":"https://github.com/phara23/alpha-sdk#readme","keywords":["algorand","prediction-market","trading","sdk","alpha-market","defi","orderbook"],"repository":{"type":"git","url":"git+https://github.com/phara23/alpha-sdk.git"},"description":"TypeScript SDK for trading on Alpha Market — Algorand prediction markets. Place orders, manage positions, read orderbooks from API or chain, and build trading bots.","maintainers":[{"name":"alphagoat","email":"mark@lofty.ai"}],"readme":"# @alpha-arcade/sdk\n\nTypeScript SDK for trading on **Alpha Market** - Algorand prediction markets.\n\nPlace orders, manage positions, stake ALPHA for fee rewards, read orderbooks from the API or chain, and build automated trading bots.\n\n## Installation\n\n```bash\nnpm install @alpha-arcade/sdk algosdk @algorandfoundation/algokit-utils\n```\n\n`algosdk` and `@algorandfoundation/algokit-utils` are peer dependencies.\n\n## Getting an API key\n\nAn API key is **optional**. Without it, you can still fetch markets on-chain, place orders, and use most SDK features. With an API key, you get richer market data, liquidity rewards information, wallet order lookups, routed liquidity, and RFQ endpoints.\n\nTo get an API key:\n\n1. Go to [alphaarcade.com](https://alphaarcade.com) and **sign up** with your email or Google account.\n2. Open the **Account** page \n3. Open the **Partners** tab.\n4. Click **Create API key** and copy the key.\n5. Add it to your environment (e.g. a `.env` file in the project root):\n\n```bash\nALPHA_API_KEY=your_api_key_here\n```\n\nThen pass it when creating the client: `apiKey: process.env.ALPHA_API_KEY`.\n\n## Quick Start\n\n```typescript\nimport { AlphaClient } from '@alpha-arcade/sdk';\nimport algosdk from 'algosdk';\n\n// 1. Setup clients\nconst algodClient = new algosdk.Algodv2('', 'https://mainnet-api.algonode.cloud', 443);\nconst indexerClient = new algosdk.Indexer('', 'https://mainnet-idx.algonode.cloud', 443);\n\n// 2. Setup signer from mnemonic (or use any TransactionSigner)\nconst account = algosdk.mnemonicToSecretKey('your twenty five word mnemonic ...');\nconst signer = algosdk.makeBasicAccountTransactionSigner(account);\n\n// 3. Initialize the client (no API key needed!)\nconst client = new AlphaClient({\n  algodClient,\n  indexerClient,\n  signer,\n  activeAddress: account.addr.toString(),\n  matcherAppId: 3078581851,\n  usdcAssetId: 31566704,\n});\n\n// 4. Fetch live markets (reads directly from chain)\nconst markets = await client.getLiveMarkets();\nconsole.log(`Found ${markets.length} live markets`);\n\n// 5. Place a limit buy order on the first market\nconst market = markets[0];\nconst result = await client.createLimitOrder({\n  marketAppId: market.marketAppId,\n  position: 1,        // 1 = Yes\n  price: 500_000,     // $0.50\n  quantity: 1_000_000, // 1 share\n  isBuying: true,\n});\n\nconsole.log(`Order created! Escrow app ID: ${result.escrowAppId}`);\n```\n\n## Examples\n\nThe repo includes runnable examples (use `npx tsx examples/<script>.ts`). Scripts that call the API (e.g. `get-orders.ts`, `get-reward-markets.ts`) need `ALPHA_API_KEY` in your `.env` - see [Getting an API key](#getting-an-api-key). Trading examples also need `TEST_MNEMONIC`.\n\n| Script | Description |\n|--------|-------------|\n| `get-orders.ts` | Fetch all open orders for a wallet via the API (`getWalletOrdersFromApi`) |\n| `get-reward-markets.ts` | Fetch reward markets and show liquidity reward info (`getRewardMarkets`) |\n| `get-positions.ts` | List token positions across markets (`getPositions`) |\n| `stake-alpha.ts` | Stake ALPHA into the fee-sharing pool on-chain (`stakeAlpha`) |\n| `place-limit-order.ts` | Place a limit order |\n| `place-market-order.ts` | Place a market order |\n| `cancel-order.ts` | Cancel an open order |\n| `split-merge.ts` | Split USDC into YES/NO and merge back |\n| `simple-trading-bot.ts` | Example bot that scans markets and places market orders |\n| `place-rfq-trade.ts` | Test cross-venue RFQ quote logic for a market |\n| `combo-rfq-maker.ts` | Run a combo RFQ maker over the platform WebSocket |\n| `get-orderbook.ts` | Retrieves and logs combined routed orderbook |\n\n## API Reference\n\n### AlphaClient\n\n#### Constructor\n\n```typescript\nnew AlphaClient(config: AlphaClientConfig)\n```\n\n| Parameter | Type | Required | Description |\n|-----------|------|----------|-------------|\n| `algodClient` | `algosdk.Algodv2` | Yes | Algorand algod client |\n| `indexerClient` | `algosdk.Indexer` | Yes | Algorand indexer client |\n| `signer` | `TransactionSigner` | Yes | Transaction signer |\n| `activeAddress` | `string` | Yes | Your Algorand address |\n| `matcherAppId` | `number` | Yes | Matcher contract app ID (mainnet: `3078581851`) |\n| `usdcAssetId` | `number` | Yes | USDC ASA ID (mainnet: `31566704`) |\n| `apiKey` | `string` | No | Alpha API key. If provided, `getLiveMarkets()` and related API methods use the platform for richer data (images, categories, volume, reward markets, wallet orders). If omitted, markets are discovered on-chain. |\n| `apiBaseUrl` | `string` | No | API base URL (default: `https://platform.alphaarcade.com/api`) |\n| `marketCreatorAddress` | `string` | No | Market creator address for on-chain discovery (defaults to Alpha Arcade mainnet) |\n| `stakingAppId` | `number` | No | ALPHA staking pool app ID (mainnet default: `3626756314`) |\n| `alphaAssetId` | `number` | No | ALPHA ASA ID (mainnet default: `2726252423`) |\n\n---\n\n### Trading\n\n#### `createLimitOrder(params)`\n\nCreates a limit order that sits on the orderbook at your price.\n\n```typescript\nconst result = await client.createLimitOrder({\n  marketAppId: 123456789,\n  position: 1,          // 1 = Yes, 0 = No\n  price: 500_000,       // $0.50 in microunits\n  quantity: 2_000_000,  // 2 shares in microunits\n  isBuying: true,\n});\n// result: { escrowAppId, txIds, confirmedRound, matchedQuantity?, matchedPrice? }\n```\n\n#### `createMarketOrder(params)`\n\nCreates a market order that auto-matches against the orderbook.\n\n```typescript\nconst result = await client.createMarketOrder({\n  marketAppId: 123456789,\n  position: 1,\n  price: 550_000,       // willing to pay up to $0.55\n  quantity: 1_000_000,\n  isBuying: true,\n  slippage: 50_000,     // $0.05 slippage tolerance\n});\n// result: { escrowAppId, txIds, confirmedRound, matchedQuantity, matchedPrice }\n```\n\n#### `createFokOrder(params)` and `buildFokOrder(params)`\n\nFill-or-kill (FOK) uses the existing native escrow contracts: escrow creation and exact fills execute in one atomic group. A failed match rejects the whole group, including escrow creation. There is no resting unfilled remainder on success.\n\n```typescript\n// Buy exactly 100 YES shares at $0.60 or better, excluding trading fees.\nconst result = await client.createFokOrder({\n  marketAppId: 123456789,\n  position: 1,\n  isBuying: true,\n  quantity: 100_000_000,\n  price: 600_000,\n});\n// { escrowAppId, txIds, confirmedRound, matchedQuantity, estimatedMatchedPrice }\n```\n\n`price` is a maximum for buys and a minimum for sells. All prices and quantities use integer microunits. The method uses zero slippage, never widens the limit, and never automatically retries a rejected group. YES and NO orders support direct and complementary native matching. Automatic selection takes the best prices first and excludes the active wallet's own escrows.\n\nTo select counterparties yourself, supply `matchingOrders`. Their quantities must total exactly the order quantity. The SDK revalidates each escrow's owner, side, available quantity, and effective price against the native orderbook. Caller-supplied price metadata does not override current prices.\n\n```typescript\nconst built = await client.buildFokOrder({\n  marketAppId: 123456789,\n  position: 1,\n  isBuying: true,\n  quantity: 100_000_000,\n  price: 600_000,\n  matchingOrders: [\n    { escrowAppId: makerAId, owner: makerAAddress, quantity: 40_000_000 },\n    { escrowAppId: makerBId, owner: makerBAddress, quantity: 60_000_000 },\n  ],\n});\n// Omit matchingOrders to select counterparties automatically.\nconsole.log(Buffer.from(built.groupId).toString('base64'));\nconst unsignedBytes = built.transactions.map(txn => algosdk.encodeUnsignedTransaction(txn));\n// Pass the entire unsigned group to your wallet, then submit all signed transactions together.\n```\n\n`buildFokOrder()` does not sign or submit. It returns unsigned `transactions`, `groupId`, `createEscrowTxnIndex`, `matchingOrders`, `matchedQuantity`, and `estimatedMatchedPrice`. Here `matchedQuantity` is planned coverage, not a confirmed trade. Do not remove or modify transactions after building the group.\n\nLimits and execution details:\n\n- Native escrow liquidity only; routed/RFQ liquidity is not included.\n- At most six maker escrows fit with the current transaction layout, including one required asset opt-in. Orders exceeding this limit reject before signing. Best-price selection does not search for a worse-price combination with fewer makers.\n- Insufficient depth, invalid selected fills, and invalid parameters reject before signing.\n- Liquidity can change after the orderbook read. The on-chain exact-quantity and price checks then decide whether the entire group succeeds.\n- `estimatedMatchedPrice` is the quoted weighted average, not a receipt of the actual fill price. Maker amendments can change execution prices within the fixed limit.\n- The SDK funds escrow creation and trading fees using its existing native-order builder. Successful fills can leave a fully filled escrow and unused funding for later cleanup with `cancelOrder()`.\n- FOK does not require a contract upgrade, but it does require deployments compatible with the SDK's generated market and matcher clients.\n\n#### `cancelOrder(params)`\n\nCancels an open order and returns funds to the owner.\n\n```typescript\nconst result = await client.cancelOrder({\n  marketAppId: 123456789,\n  escrowAppId: 987654321,\n  orderOwner: 'ALGO_ADDRESS...',\n});\n// result: { success, txIds }\n```\n\n#### `amendOrder(params)`\n\nEdits an existing unfilled order in-place - cheaper and faster than cancel + recreate. The escrow contract adjusts collateral automatically: sends you a refund if the new value is lower, or requires extra funds (sent automatically) if higher.\n\nOnly works on orders with zero quantity filled.\n\n```typescript\n// Get your open orders to find the escrowAppId\nconst orders = await client.getOpenOrders(123456789);\nconst order = orders[0];\n\n// Amend the order to a new price and quantity\nconst result = await client.amendOrder({\n  marketAppId: 123456789,\n  escrowAppId: order.escrowAppId,\n  price: 600_000,       // new price: $0.60\n  quantity: 3_000_000,  // new quantity: 3 shares\n});\n// result: { success, txIds, confirmedRound }\n```\n\n#### `proposeMatch(params)`\n\nManually matches an existing maker order against a taker.\n\n```typescript\nconst result = await client.proposeMatch({\n  marketAppId: 123456789,\n  makerEscrowAppId: 987654321,\n  makerAddress: 'MAKER_ALGO_ADDRESS...',\n  quantityMatched: 500_000,\n});\n// result: { success, txIds }\n```\n\n---\n\n### Positions\n\n#### `splitShares(params)`\n\nSplits USDC into equal YES + NO tokens. 1 USDC = 1 YES + 1 NO.\n\n```typescript\nconst result = await client.splitShares({\n  marketAppId: 123456789,\n  amount: 5_000_000, // $5.00 USDC\n});\n// You now hold 5 YES + 5 NO tokens for this market\n```\n\n#### `mergeShares(params)`\n\nMerges equal YES + NO tokens back into USDC.\n\n```typescript\nconst result = await client.mergeShares({\n  marketAppId: 123456789,\n  amount: 3_000_000, // Merge 3 YES + 3 NO = $3.00 USDC\n});\n```\n\n#### `claim(params)`\n\nClaims USDC from a resolved market.\n\n```typescript\nconst result = await client.claim({\n  marketAppId: 123456789,\n  assetId: 111222333, // The YES or NO token ASA ID\n});\n```\n\n#### `getPositions(walletAddress?)`\n\nGets all token positions across all markets.\n\n```typescript\nconst positions = await client.getPositions();\nfor (const pos of positions) {\n  console.log(`Market ${pos.marketAppId}: ${pos.yesBalance / 1e6} YES, ${pos.noBalance / 1e6} NO`);\n}\n```\n\n---\n\n### Staking (ALPHA fee-sharing pool)\n\nStake ALPHA to earn a share of trading fees routed to the pool as USDC. These methods are **fully on-chain** (algod only) — no Alpha platform API key required.\n\nMainnet defaults (overridable via `stakingAppId` / `alphaAssetId` on the client):\n\n| Constant | Value |\n|----------|-------|\n| Staking app ID | `3626756314` |\n| ALPHA ASA | `2726252423` (6 decimals) |\n| Reward asset | USDC `31566704` |\n\n**Transaction group for `stakeAlpha`:** optional app `opt_in()` → ALPHA axfer into the pool → `stake()`. The ALPHA transfer must immediately precede the stake app call. First-time stakers need ~0.2385 ALGO free for app local-state MBR + fees.\n\n#### `stakeAlpha(params)`\n\n```typescript\n// Stake 10 ALPHA (amounts are microunits)\nconst result = await client.stakeAlpha({ amount: 10_000_000 });\nconsole.log(result.txIds, result.confirmedRound);\n```\n\n#### `unstakeAlpha(params)`\n\n```typescript\nconst result = await client.unstakeAlpha({ amount: 5_000_000 });\n```\n\n#### `claimStakingRewards()`\n\nClaims accrued USDC rewards. Adds a USDC ASA opt-in when needed.\n\n```typescript\nconst result = await client.claimStakingRewards();\n```\n\n#### `getStakingPosition(walletAddress?)`\n\nReads on-chain stake + claimable USDC for a wallet.\n\n```typescript\nconst pos = await client.getStakingPosition();\nconsole.log(`Staked: ${pos.staked / 1e6} ALPHA`);\nconsole.log(`Claimable: $${pos.claimable / 1e6} USDC`);\nconsole.log(`Pool share: ${pos.poolShareBps / 100}%`);\n```\n\nSee `examples/stake-alpha.ts` for a runnable script (`TEST_MNEMONIC` required).\n\n> **Disclaimer:** $ALPHA staking and fee distributions involve risks. Staking returns depend on trading activity on staking-enabled markets and are not guaranteed. This documentation does not constitute an offer or solicitation to purchase $ALPHA or any other digital asset. $ALPHA has not been registered under the U.S. Securities Act of 1933 or any state securities law.\n\n---\n\n### Community Resolution (Oracle-Lite)\n\nPropose, dispute, finalize, and claim on community-resolved markets (the markets shown on /governance — `oracleAppId` on the market row). Actions are **fully on-chain** (algod only); the two list reads use the REST API.\n\nProposing is bonded: you post the base bond (25 USDC on current markets) with your assertion. If nobody disputes within the window, finalization returns your bond **and pays you the proposer reward (50 ALPHA)** in the same transaction — the SDK handles the reward mechanics automatically, including an ALPHA opt-in at propose time if your wallet lacks one. A lost dispute forfeits the bond, so only propose outcomes you can defend.\n\n```typescript\nimport { RESOLUTION_OUTCOME } from '@alpha-arcade/sdk';\n\n// What can I resolve?\nconst markets = await client.getResolutionMarkets();\n\n// Full on-chain state of one market's oracle\nconst state = await client.getResolutionState(markets[0].oracleAppId);\n// state.status: 0 none, 1 proposed, 2 disputed, 3 resolved\n// state.rewardsAppId !== 0 -> proposer rewards are active on this market\n\n// Propose the outcome (posts the USDC bond)\nawait client.proposeResolution({\n  oracleAppId: markets[0].oracleAppId,\n  outcome: RESOLUTION_OUTCOME.YES, // 0 No, 1 Yes, 2 fifty/fifty\n});\n\n// Disagree with someone's live proposal? Challenge it under a 2x bond —\n// the market goes to the arbiter. KEEP_OPEN = \"not resolvable yet\".\nawait client.disputeResolution({ oracleAppId, outcome: RESOLUTION_OUTCOME.NO });\n\n// After the window lapses undisputed, anyone may finalize (the keeper cron\n// also does this) — the proposer gets bond + ALPHA reward:\nawait client.finalizeResolution({ oracleAppId });\n\n// Pull your settled bond (or any bonder's — payout always goes to the bonder)\nawait client.claimResolutionBond({ oracleAppId });\n\n// Your live + claimable bonds across all markets\nconst bonds = await client.getWalletResolutionBonds();\n```\n\n| Method | Description |\n|--------|-------------|\n| `getResolutionMarkets()` | Lite-resolved markets (REST) |\n| `getResolutionState(oracleAppId)` | Full on-chain oracle state |\n| `proposeResolution({ oracleAppId, outcome })` | Bonded outcome proposal (auto ALPHA opt-in on reward-armed markets) |\n| `disputeResolution({ oracleAppId, outcome })` | 2x-bond challenge; `KEEP_OPEN` (3) allowed |\n| `finalizeResolution({ oracleAppId })` | Permissionless settle; pays the proposer reward on armed markets |\n| `claimResolutionBond({ oracleAppId, bonder? })` | Pull a settled bond payout |\n| `getWalletResolutionBonds(wallet?)` | A wallet's bonds (REST) |\n\n---\n\n### Orderbook\n\n#### `getOrderbook(marketAppId)`\n\nFetches the full on-chain orderbook for a single market app.\n\n```typescript\nconst book = await client.getOrderbook(123456789);\n\nconsole.log('Yes bids:', book.yes.bids.length);\nconsole.log('Yes asks:', book.yes.asks.length);\nconsole.log('No bids:', book.no.bids.length);\nconsole.log('No asks:', book.no.asks.length);\n\n// Best yes bid\nif (book.yes.bids.length > 0) {\n  const best = book.yes.bids.sort((a, b) => b.price - a.price)[0];\n  console.log(`Best Yes bid: $${best.price / 1e6} for ${best.quantity / 1e6} shares`);\n}\n```\n\n#### `getFullOrderbookFromApi(marketId)`\n\nFetches the full processed orderbook snapshot for a market from the Alpha REST API. Requires `apiKey`.\n\nThis returns the same shape as websocket `orderbook_changed.orderbook`: a record keyed by `marketAppId`, where each value includes:\n- top-level aggregated `bids`, `asks`, and `spread`\n- detailed `yes` and `no` bid/ask orders with `escrowAppId` and `owner`\n\n```typescript\nconst snapshot = await client.getFullOrderbookFromApi('market-uuid-here');\n\nfor (const [appId, book] of Object.entries(snapshot)) {\n  console.log(`App ${appId}: spread=${book.spread}`);\n  console.log('Top-level bids:', book.bids);\n  console.log('Detailed YES bids:', book.yes.bids);\n}\n```\n\n#### `getRoutedOrderbook(marketId)`\n\nFetches the API-backed orderbook with native Alpha Arcade liquidity and routed Polymarket liquidity. Requires `apiKey`.\n\nUse this when you want to show liquidity that can be matched on demand through the cross-venue flow. The native book remains unchanged under `native`; routed entries are source-tagged so they cannot be confused with real escrow orders.\n\n```typescript\nconst routed = await client.getRoutedOrderbook('market-uuid-here');\n\nfor (const [appId, routedBook] of Object.entries(routed.orderbook)) {\n  console.log(`App ${appId}`);\n\n  for (const ask of routedBook.merged.asks) {\n    if (ask.source === 'alpha') {\n      console.log(`AA ask ${ask.escrowAppId}: $${ask.price / 1e6}`);\n    } else {\n      console.log(\n        `Routed ask via ${ask.polyTokenId}: display $${ask.displayPriceMicro / 1e6}, source $${ask.polySourcePriceMicro / 1e6}`,\n      );\n    }\n  }\n}\n```\n\nRouted entries have `source: 'polymarket'` and `execution: 'crossVenue'`. They intentionally do not have `escrowAppId`, because the escrow does not exist until the cross-venue transaction group is signed and submitted.\n\nDo not pass routed entries into `createMarketOrder()` or `calculateMatchingOrders()`. Those functions only match existing Alpha Arcade escrow orders. Use `requestRfqQuote()` for routed liquidity.\n\n#### Cross-venue config and RFQ quotes\n\nThese methods wrap the routed-liquidity API. They require `apiKey`.\n\n```typescript\nconst config = await client.getCrossVenueConfig();\nconsole.log(`Cross-venue matcher app: ${config.matcherAppId}`);\n\nconst quote = await client.requestRfqQuote({\n  marketId: 'market-uuid-here',\n  marketAppId: 123456789,      // recommended for multi-choice markets\n  userAddress: account.addr.toString(),\n  userPosition: 1,             // 1 = YES, 0 = NO\n  isBuying: true,\n  quantity: 2_000_000,         // 2 shares\n});\n\nif (!quote.ok) {\n  console.log(`No routed quote: ${quote.reason} ${quote.detail ?? ''}`);\n} else {\n  console.log(`Quote id: ${quote.quoteId}`);\n  console.log(`Display price: $${quote.displayPriceMicro! / 1e6}`);\n  console.log(`External source price: $${quote.polySourcePriceMicro! / 1e6}`);\n  console.log(`Expires at: ${new Date(quote.expiresAt!).toISOString()}`);\n  console.log(`User needs opt-in: ${quote.userNeedsOptIn}`);\n  console.log(`MM needs opt-in: ${quote.mmNeedsOptIn}`);\n}\n```\n\n`requestRfqQuote()` is a fresh quote for display and transaction construction. It is not final fill authorization. The backend re-fetches Polymarket liquidity and re-runs cross-venue validation when `submitRoutedOrder()` is called, then byte-compares the wallet-signed user legs before the market-maker signs.\n\n#### `submitRoutedOrder(params)`\n\nSubmits a wallet-signed cross-venue order to the backend for final validation, market-maker signing, and on-chain submission.\n\n```typescript\nconst result = await client.submitRoutedOrder({\n  userAddress: account.addr.toString(),\n  marketId: 'market-uuid-here',\n  marketAppId: 123456789,\n  userPosition: 1,\n  isBuying: true,\n  quantity: quote.quantity!,\n  polyQuotedPriceMicro: quote.displayPriceMicro!,\n  yesAssetId: quote.yesAssetId!,\n  noAssetId: quote.noAssetId!,\n  mmNeedsOptIn: quote.mmNeedsOptIn ?? false,\n  userNeedsOptIn: quote.userNeedsOptIn ?? false,\n  crossVenueTakerSlippageMicro: quote.takerSlippageMicro!,\n  suggestedParams: {\n    firstValid: 0,\n    lastValid: 0,\n    genesisHash: 'base64-genesis-hash',\n    genesisID: 'mainnet-v1.0',\n    fee: 0,\n    minFee: 1000,\n  },\n  nonce: 'base64-8-byte-nonce',\n  signedUserTxns: [\n    'base64-signed-user-opt-in-or-payment',\n    'base64-signed-user-funding',\n    'base64-signed-user-create-escrow',\n    'base64-signed-user-propose-match',\n  ],\n});\n```\n\nThe SDK currently provides the HTTP wrapper for submit. Your wallet integration must build the canonical cross-venue group and collect the user signatures that `submit-for-wallet` expects. If the backend sees a stale price, wrong asset id, unexpected opt-in state, or any byte mismatch in the user-signed transactions, it rejects before the market-maker signs.\n\n#### `getOpenOrders(marketAppId, walletAddress?)`\n\nGets open orders for a wallet on a specific market (from on-chain data).\n\n```typescript\nconst orders = await client.getOpenOrders(123456789);\nfor (const order of orders) {\n  const side = order.side === 1 ? 'BUY' : 'SELL';\n  const pos = order.position === 1 ? 'YES' : 'NO';\n  console.log(`${side} ${pos} @ $${order.price / 1e6} - ${order.quantity / 1e6} shares`);\n}\n```\n\n#### `getWalletOrdersFromApi(walletAddress)`\n\nGets all open orders for a wallet across every live market via the Alpha REST API. Requires `apiKey`. Paginates automatically.\n\n```typescript\nconst orders = await client.getWalletOrdersFromApi('ALGO_ADDRESS...');\nfor (const order of orders) {\n  console.log(`Market ${order.marketAppId} | Escrow ${order.escrowAppId} | ${order.quantityFilled / 1e6} filled`);\n}\n```\n\n---\n\n### Markets\n\nMarkets can be loaded **on-chain** (default, no API key) or via the **REST API** (richer data, requires API key).\n\n#### `getLiveMarkets()` / `getMarket(marketId)`\n\nSmart defaults - uses the API if `apiKey` is set, otherwise reads from chain.\n\n```typescript\nconst markets = await client.getLiveMarkets();\nfor (const m of markets) {\n  console.log(`${m.title} - App ID: ${m.marketAppId}, source: ${m.source}`);\n}\n\nconst market = await client.getMarket('12345'); // app ID string for on-chain, UUID for API\n```\n\n#### `getMarketsOnChain()` / `getMarketOnChain(marketAppId)`\n\nAlways reads from the blockchain. No API key needed. Returns core data: title, asset IDs, resolution time, fees.\n\n```typescript\nconst markets = await client.getMarketsOnChain();\nconst market = await client.getMarketOnChain(3012345678);\n```\n\n#### `getLiveMarketsFromApi()` / `getMarketFromApi(marketId)`\n\nAlways uses the REST API. Requires `apiKey`. Returns richer data: images, categories, volume, probabilities.\n\n```typescript\nconst markets = await client.getLiveMarketsFromApi();\nconst market = await client.getMarketFromApi('uuid-here');\n```\n\n#### `getRewardMarkets()`\n\nFetches all markets with USDC or ALPHA liquidity reward pools, including rewarded child outcomes. Requires `apiKey`. `client.getRewardMarkets()` returns `Market[]`. The standalone function supports the same read without a wallet or signer:\n\n```typescript\nimport { getRewardMarkets, type AlphaLpRewards } from '@alpha-arcade/sdk';\n\nconst markets = await getRewardMarkets({ apiKey: process.env.ALPHA_API_KEY });\nfor (const market of markets) {\n  // Each executable child has its own pool. Do not multiply the parent pool.\n  const outcomes = market.options?.length ? market.options : [market];\n  for (const outcome of outcomes) {\n    const alpha: AlphaLpRewards | undefined = outcome.alphaLpRewards;\n    console.log(`${market.title} / ${outcome.title}`);\n    console.log('USDC pool:', (outcome.totalRewards ?? 0) / 1e6);\n    console.log('USDC pregame/day:', (outcome.totalPregameRewards ?? 0) / 1e6);\n    console.log('ALPHA/day:', (alpha?.dailyMicro ?? 0) / 1e6);\n    console.log('ALPHA pregame/day:', (alpha?.pregameDailyMicro ?? 0) / 1e6);\n    console.log('ALPHA game pool:', (alpha?.inGameMicro ?? 0) / 1e6);\n    if (alpha?.startsAt) console.log('ALPHA starts:', new Date(alpha.startsAt).toISOString());\n  }\n}\n```\n\n**Token amounts and periods**\n\n- USDC keeps the existing fields: `totalRewards`, `totalPregameRewards`, `rewardsPaidOut`, `lastRewardAmount`, and `lastRewardTs`. USDC amounts use six decimal places. `totalRewards` is a daily budget for non-sports markets and a fixed game pool for sports. `totalPregameRewards` is a pregame daily budget.\n- Optional `alphaLpRewards` uses the exported `AlphaLpRewards` type. `dailyMicro` is a non-sports daily budget; `pregameDailyMicro` is a pregame daily budget; `inGameMicro` is a fixed game pool. All amounts are micro-ALPHA: divide by 1,000,000 to display ALPHA. Never label them as dollars or add them to USDC totals.\n- `startsAt` is Unix milliseconds. Operator changes take effect at the next hour. An existing hourly block keeps its frozen budget. An absent, empty, or all-zero ALPHA configuration means no ALPHA campaign; a future start is scheduled, not active.\n- `getLiveMarketsFromApi()` and `getMarketFromApi()` also preserve this configuration. On-chain market discovery cannot provide these operator-managed LP budgets.\n\n**Scoring and opt-in**\n\nBoth tokens use the existing order size, age, spread, and market liquidity rules. `rewardsSpreadDistance`, `pregameRewardsSpreadDistance`, and `rewardsMinContracts` still describe those rules. Both tokens pay hourly; transfers can arrive separately.\n\nALPHA adds an asset opt-in requirement. Each sample includes only opted-in, unfrozen ALPHA holdings in its ALPHA score denominator. Wallets without ALPHA opt-in still earn USDC. A later opt-in never earns ALPHA for earlier samples. Samples without ALPHA-eligible wallets leave that sample's allocation unspent. Failed holding checks also leave that sample's ALPHA allocation unspent. If a wallet opts out after earning, its ALPHA entitlement stays pending until it can receive ALPHA again.\n\nOpt in to the ALPHA asset on the same wallet that provides liquidity. Buying or staking ALPHA is not required. Mainnet ALPHA is ASA `2726252423`. For other deployments, read the asset ID from the backend's `/get-lp-reward-config` endpoint; do not assume the mainnet asset ID works on testnet. This read method does not sign an opt-in transaction.\n\nPool sizes are market budgets, not personal earnings estimates. A wallet's ALPHA share can differ from its USDC share because each token has a separate denominator. Do not estimate ALPHA earnings by multiplying the wallet's USDC share by the ALPHA pool.\n\nSee [`examples/get-reward-markets.ts`](examples/get-reward-markets.ts) for a runnable example that prints both tokens for each outcome.\n\n---\n\n### WebSocket Streams\n\nReal-time data streams via WebSocket. No API key or auth required. Replaces polling with push-based updates.\n\nThe SDK connects to the public platform websocket at `wss://platform-wss.alphaarcade.com`. The first\nsubscription is sent in the connection query string, and any later subscribe or unsubscribe calls use the\nserver's control-message envelope:\n\n```json\n{\n  \"id\": \"request-id\",\n  \"method\": \"SUBSCRIBE\",\n  \"params\": [\n    { \"stream\": \"get-orderbook\", \"slug\": \"will-btc-hit-100k\" }\n  ]\n}\n```\n\nSupported public streams:\n\n- `get-live-markets`\n- `get-market` with `slug`\n- `get-orderbook` with `slug`\n- `get-wallet-orders` with `wallet`\n\n```typescript\nimport { AlphaWebSocket } from '@alpha-arcade/sdk';\n\n// Node.js 22+ and browsers - native WebSocket, nothing extra needed\nconst ws = new AlphaWebSocket();\n\n// Node.js < 22 - install `ws` and pass it in:\n// npm install ws\nimport WebSocket from 'ws';\nconst ws = new AlphaWebSocket({ WebSocket });\n\n// Subscribe to orderbook updates (~5s snapshots)\nconst unsub = ws.subscribeOrderbook('will-btc-hit-100k', (event) => {\n  console.log('Orderbook:', event.orderbook);\n});\n\n// Unsubscribe when done\nunsub();\n\n// Close the connection\nws.close();\n```\n\n#### `subscribeLiveMarkets(callback)`\n\nReceive incremental diffs whenever market probabilities change.\n\n```typescript\nws.subscribeLiveMarkets((event) => {\n  console.log('Markets changed at', event.ts, event);\n});\n```\n\n#### `subscribeMarket(slug, callback)`\n\nReceive change events for a single market. Uses the market **slug** (not `marketAppId`) - see note on `subscribeOrderbook` below.\n\n```typescript\nws.subscribeMarket('will-btc-hit-100k', (event) => {\n  console.log('Market update:', event);\n});\n```\n\n#### `subscribeOrderbook(slug, callback)`\n\nReceive full orderbook snapshots on every change (~5s interval). The payload matches `getFullOrderbookFromApi(marketId)`.\n\n**Note:** The WebSocket API uses market **slugs** (URL-friendly names like `\"will-btc-hit-100k\"`), not `marketAppId` numbers. You can get a market's slug from the `slug` field on `Market` objects returned by `getLiveMarkets()` or `getMarket()`.\n\n```typescript\nws.subscribeOrderbook('will-btc-hit-100k', (event) => {\n  // Top-level bids/asks use decimal prices (cents)\n  // Nested yes/no use raw microunit prices with escrowAppId and owner\n  for (const [appId, book] of Object.entries(event.orderbook)) {\n    console.log(`App ${appId}: spread=${book.spread}`);\n    console.log('  Bids:', book.bids);\n    console.log('  Yes bids:', book.yes.bids);\n  }\n});\n```\n\n#### `subscribeWalletOrders(wallet, callback)`\n\nReceive updates when orders for a wallet are created or modified.\n\n```typescript\nws.subscribeWalletOrders('MMU6X...', (event) => {\n  console.log('Wallet orders changed:', event);\n});\n```\n\n#### Unsubscribing\n\nEach `subscribe*` method returns an unsubscribe function. Call it to stop receiving events for that stream:\n\n```typescript\nconst unsub = ws.subscribeOrderbook('my-market', (event) => { /* ... */ });\n\n// Later, stop listening\nunsub();\n```\n\n#### Control Methods\n\n```typescript\n// List active subscriptions on this connection\nconst subs = await ws.listSubscriptions();\n\n// Query server properties (`heartbeat` or `limits`)\nconst props = await ws.getProperty('heartbeat');\n```\n\n#### Configuration\n\n```typescript\nimport WebSocket from 'ws'; // Only needed on Node.js < 22\n\nconst ws = new AlphaWebSocket({\n  WebSocket,                                  // Pass `ws` on Node.js < 22 (not needed in browsers or Node 22+)\n  url: 'wss://custom-endpoint.example.com',   // Override default URL\n  reconnect: true,                            // Auto-reconnect (default: true)\n  maxReconnectAttempts: 10,                   // Give up after 10 retries (default: Infinity)\n  heartbeatIntervalMs: 60_000,                // Ping interval in ms (default: 60000)\n});\n```\n\n#### Connection Details\n\n| Setting | Value |\n|---------|-------|\n| Heartbeat | 60s (auto-handled) |\n| Idle timeout | 180s |\n| Rate limit | 5 messages/sec/connection |\n| Reconnect | Exponential backoff (1s → 30s max) |\n\nThe client automatically responds to server pings, sends keepalive pings, and reconnects with exponential backoff on unexpected disconnects. All active subscriptions are restored after reconnect.\n\n---\n\n### Combo RFQ\n\nCompetitive quotes for **AND/OR combo purchases and combo cash-outs**. Your API key is required. Alpha always quotes as the house; connected partner makers can compete over the same platform WebSocket used for public streams.\n\nThis is separate from single-market cross-venue RFQ (`requestRfqQuote` / `submitRoutedOrder`).\n\n#### Buy a combo (taker)\n\n1. Request a quote with your combo tree and stake.\n2. Sign the returned user legs.\n3. Submit. If an external maker won, they get a short final look before the group lands on chain.\n\n```typescript\nimport { signComboRfqTransactions, type ComboRfqTree } from '@alpha-arcade/sdk';\n\nconst tree: ComboRfqTree = {\n  groups: [\n    {\n      op: 'AND',\n      legs: [\n        // AA-native market legs (esports, tennis, MLB, futures, …).\n        { source: 'aa', marketId: 'market-uuid-1', selection: 'yes' },\n        { source: 'aa', marketId: 'market-uuid-2', selection: 'no' },\n        // Same-game (SGP) legs are also supported — identified by graderId +\n        // the BlazeBuilder sgp token (from the /parlay/sgp/markets feed):\n        // {\n        //   source: 'sgp',\n        //   graderId: 'DraftKings#<eventId>#Moneyline#<Team>',\n        //   sgp: '<blazebuilder-token>',\n        //   league: 'mlb',\n        //   eventId: '<eventId>',\n        // },\n      ],\n    },\n  ],\n  connectors: [], // op between consecutive groups; length = groups.length - 1\n};\n\nconst quote = await client.requestComboRfqQuote({\n  tree,\n  grossStakeMicro: 10_000_000, // $10\n  userAddress: account.addr.toString(),\n});\n\nconsole.log(quote.makerKind);      // \"alpha\" | \"external\"\nconsole.log(quote.pricedYesMicro); // YES price in microunits (500_000 = $0.50)\n\nif (!quote.unsignedUserTxns?.length) {\n  throw new Error('Quote missing user legs. Pass userAddress on the quote request.');\n}\n\nconst signedTakerTxns = await signComboRfqTransactions(\n  quote.unsignedUserTxns,\n  signer, // same TransactionSigner you passed to AlphaClient\n);\n\nconst result = await client.submitComboRfqWallet({\n  quoteId: quote.quoteId,\n  userAddress: account.addr.toString(),\n  signedTakerTxns,\n});\n\nconsole.log('Combo filled:', result.txId);\n```\n\nImportant taker notes:\n\n- Prices and stake use microunits (`1_000_000` = $1.00).\n- After you sign, the fill is bound to the chosen maker. Decline or timeout means re-quote; there is no silent rematch.\n- Common submit errors: `MAKER_DECLINED`, `MAKER_TIMEOUT`, `RFQ_EXPIRED`, `RFQ_DISABLED`, `NO_QUOTES`.\n\n#### Quote combos as a maker\n\nConnected partner makers compete on **both** taker directions:\n\n- **`buy` RFQ** — the taker is buying combo YES. This is a **reverse auction**:\n  the **lowest** YES price wins, and you only beat Alpha by quoting cheaper than\n  its hidden house quote.\n- **`sell` RFQ** — the taker is cashing out an existing combo YES position. This\n  is a **forward auction**: the **highest** YES buy price wins, and you only beat\n  Alpha by bidding above `alphaPriceMicro` (broadcast on sell requests).\n\nAlpha is always the backstop, so quoting is optional: you only win when you send\nthe most competitive price and then confirm the fill in time.\n\n**Prerequisites**\n\n- A **partner API key** (contact the Alpha Arcade team to be provisioned).\n- A **funded Algorand maker wallet** — `makerAddress`. It quotes and signs the\n  fills, and is checked for capacity on every win: fund it with **USDC** (to post\n  your side of fills) plus a little **ALGO** (fees + asset opt-ins). A maker that\n  can't cover a fill is briefly auto-paused, not errored.\n- The maker wallet is independent of the API key's account — pass it explicitly.\n\n**Minimal maker loop**\n\n```typescript\nimport algosdk from 'algosdk';\nimport { AlphaWebSocket } from '@alpha-arcade/sdk';\n\nconst maker = algosdk.mnemonicToSecretKey(process.env.TEST_MNEMONIC!);\nconst signer = algosdk.makeBasicAccountTransactionSigner(maker);\nconst MIN_EDGE_MICRO = 5_000;\n\nconst ws = new AlphaWebSocket({\n  apiKey: process.env.ALPHA_API_KEY!,     // your partner key\n  // On Node < 22: also pass WebSocket from the `ws` package.\n});\n\nconst session = await ws.openComboRfqMakerSession({\n  makerAddress: maker.addr.toString(),    // funded USDC + ALGO wallet\n  signer,                                 // used by confirm() to sign maker legs\n});\n\nfor await (const event of session) {\n  if (event.type === 'combo_rfq_request') {\n    // When fairPriceMicro is missing, Alpha could not live-price the combo —\n    // you must price `event.tree` yourself (AA books / SGP feed). This snippet\n    // has no local model, so it skips those RFQs.\n    if (event.fairPriceMicro == null) continue;\n\n    const side = event.side ?? 'buy';\n    if (side === 'sell') {\n      // SELL RFQ: taker cashes out YES, you BUY it. Higher bid wins. When Alpha\n      // has an offer (`alphaPriceMicro`), you must beat it upward.\n      const alpha = event.alphaPriceMicro;\n      const priceMicro = event.fairPriceMicro - MIN_EDGE_MICRO;\n      if (alpha != null && priceMicro <= alpha) continue;\n      await session.quote(event, { priceMicro });\n    } else {\n      // BUY RFQ: taker buys YES, you lay NO. Lower YES price wins.\n      const priceMicro = event.fairPriceMicro + MIN_EDGE_MICRO;\n      await session.quote(event, { priceMicro });\n    }\n    continue;\n  }\n\n  if (event.type === 'combo_rfq_fill_request') {\n    // You won the auction — sign your maker legs within confirmBy (~2s).\n    if (Date.now() > event.confirmBy) {\n      await session.decline(event, 'expired');\n      continue;\n    }\n    await session.confirm(event);         // BUY signs NO-lay legs; SELL signs YES-buy legs\n  }\n}\n```\n\n**Pricing the combo**\n\nMost `combo_rfq_request`s carry **`fairPriceMicro`** — the whole-combo FAIR\nprobability (pre-edge, in microunits). This is your anchor: it's computable by\nany maker with the underlying odds (so it leaks none of Alpha's margin) and lets\nyou quote **without a round trip** to price the tree.\n\n**When `fairPriceMicro` is missing, Alpha could not live-price the combo**\n(typically a SELL / cash-out whose legs have no Polymarket order book). You\n**must price `tree` yourself** from AA books / your SGP feed. `alphaPriceMicro`\nis omitted in the same case — there is no house reserve to beat, so any valid\nbid can win.\n\n- On **`buy`** requests, quote a little **above fair** (`fair + edge`) and\n  compete by going **lower** than other makers.\n- On **`sell`** requests, quote a little **below fair** (`fair - edge`) and\n  compete by going **higher** than other makers. When `alphaPriceMicro` is\n  present, you must also beat that reserve.\n\nTo price independently instead of anchoring, each leg tells you what it is:\n\n- **AA legs** — `{ source: 'aa', marketId, marketAppId, selection, description }`.\n  Read the on-chain order book directly by `marketAppId`, or call `/combo/price`.\n- **SGP legs** — `{ source: 'sgp', graderId, sgp, league, eventId, description }`.\n  Price from your own odds feed (OddsBlaze); same-game correlation uses the\n  BlazeBuilder `sgp` token. `graderId` is `Book#eventId#Market#Selection`.\n- **Tree shape** — each `tree.groups[]` combines its `legs` by `op` (`AND`/`OR`);\n  `tree.connectors[]` join consecutive groups (length = `groups.length - 1`).\n  **Every taker flow broadcasts RFQs** — AND/OR combos, classic flat parlays,\n  and same-game (SGP/mixed) tickets. Flat parlays arrive as a single\n  ALL-must-win group (`groups.length === 1`, `op: 'AND'`, no connectors), so\n  don't assume multiple groups.\n- **Sell-side extras** — `sell` requests also carry `quantityMicro`,\n  `marketId`, `marketAppId`, and `yesAssetId` so makers can size the cash-out\n  and hedge it. `alphaPriceMicro` is Alpha's cash-out reserve **when Alpha\n  could live-price**; it is omitted when you must price the tree yourself.\n- `description` on each leg is a plain-english label\n  (e.g. `\"NFL Champion 2027 — Baltimore Ravens\"`) for logging/UI.\n\n**Latency** — you have **~1s to quote** and **~2s to sign the fill**. WebSocket\ndelivery + your price + the round trip must fit the first window, so serious\nmakers price from a **local model/cache** (or the fair anchor) rather than a live\nAPI probe, and run **close to `us-east-1`**.\n\n**Settlement is non-custodial and tamper-proof.** You sign only your own maker\nlegs, from your own wallet. On submit the server rebuilds the transaction group\n**byte-for-byte** from the pinned quote and rejects any mismatch, then settles the\nwhole combo as one **atomic group in USDC on Algorand**.\n\n- On **`buy`** fills, you fund the NO-lay side of the trader's purchase —\n  roughly `(1e6 - priceMicro)` per contract.\n- On **`sell`** fills, you fund the YES buy side of the trader's cash-out —\n  roughly `floor(quantity * priceMicro / 1e6) + fee`.\n\nMaker helpers on the session:\n\n| Method | When |\n|--------|------|\n| `quote(event, { priceMicro })` | Respond during the ~1s auction |\n| `cancel(event)` | Withdraw a quote you already sent |\n| `confirm(event)` | Win final look: sign maker legs (~2s) |\n| `decline(event, reason?)` | Refuse the fill |\n\nRunnable example: `examples/combo-rfq-maker.ts`\n\n```bash\nALPHA_API_KEY=... TEST_MNEMONIC=... npx tsx examples/combo-rfq-maker.ts\n```\n\n---\n\n### Perps (ALGO/USD LP-vault perpetual DEX)\n\nLeveraged long/short ALGO/USD against an LP vault, priced by the Folks Feed Oracle. **Fully on-chain** (algod only). Prices are FFO raw units; sizes are µALGO base; collateral is µUSDC.\n\n> **Restricted jurisdictions.** Perps are **not available** in the US, Canada, UK, Australia, New Zealand, Singapore, Hong Kong, Japan, China, India, Southeast Asia, or sanctioned jurisdictions (Cuba, Iran, North Korea, Syria, Russia, Belarus). For that reason the SDK **deliberately does not offer opening positions or depositing LP liquidity** — those exist only in the geofenced app. The SDK covers exits and monitoring: closing positions, withdrawing liquidity, liquidations (keepers), and every market/position read — so no one's funds are ever trapped. Trading from a restricted jurisdiction violates the Alpha Arcade terms of service.\n\n```typescript\n// Market snapshot (OI, skew, funding, params) and mark price\nconst market = await client.getPerpsMarket();\nconst mark = await client.getPerpsMark();\n\n// Live position with PnL / liq price\nconst view = await client.getPerpPositionView();\n\n// Close in full at the skew-adjusted exec price\nawait client.closePerpPosition({ limitPrice: Number(mark) - 1_000 });\n\n// Withdraw LP liquidity from the vault\nconst shares = await client.getPerpsLpShares();\nawait client.perpsLpWithdraw({ shares: Number(shares), minAmountOutMicro: 0 });\n```\n\n| Method | Description |\n|--------|-------------|\n| `closePerpPosition({ limitPrice })` | Close your position in full |\n| `getPerpsMarket()` / `getPerpsMark()` | Market snapshot / mark price |\n| `getPerpPosition(wallet?)` / `getPerpPositionView(wallet?)` | Raw / enriched position |\n| `getAllPerpPositions()` | Every open position (keeper tooling) |\n| `liquidatePerp(trader)` | Permissionless liquidation of an underwater trader |\n| `perpsLpWithdraw({ shares, minAmountOutMicro })` / `getPerpsLpShares(wallet?)` | LP vault exits |\n| `perpsPoke()` / `perpsReportOracleDown()` | Keeper maintenance calls |\n\n---\n\n### Utility Functions\n\nThese are exported for advanced users:\n\n```typescript\nimport { calculateFee, calculateMatchingOrders, getMarketGlobalState } from '@alpha-arcade/sdk';\n\n// Fee calculation\nconst fee = calculateFee(1_000_000, 500_000, 70_000); // quantity, price, feeBase\n\n// Read market state directly\nconst state = await getMarketGlobalState(algodClient, marketAppId);\n```\n\n---\n\n## Units & Conventions\n\n| Concept | Unit | Example |\n|---------|------|---------|\n| Prices | Microunits (1M = $1.00) | `500_000` = $0.50 |\n| Quantities | Microunits (1M = 1 share) | `2_000_000` = 2 shares |\n| Position | `1` = Yes, `0` = No | `position: 1` |\n| Side | `1` = Buy, `0` = Sell | Order side |\n| Fee base | Microunits | `70_000` = 7% |\n\n---\n\n## Building a Trading Bot\n\n```typescript\nimport { AlphaClient } from '@alpha-arcade/sdk';\nimport algosdk from 'algosdk';\n\nconst setup = () => {\n  const algodClient = new algosdk.Algodv2('', 'https://mainnet-api.algonode.cloud', 443);\n  const indexerClient = new algosdk.Indexer('', 'https://mainnet-idx.algonode.cloud', 443);\n  const account = algosdk.mnemonicToSecretKey(process.env.MNEMONIC!);\n\n  return new AlphaClient({\n    algodClient,\n    indexerClient,\n    signer: algosdk.makeBasicAccountTransactionSigner(account),\n    activeAddress: account.addr.toString(),\n    matcherAppId: 3078581851,\n    usdcAssetId: 31566704,\n  });\n};\n\nconst run = async () => {\n  const client = setup();\n  const markets = await client.getLiveMarkets(); // Loads from chain, no API key needed\n\n  for (const market of markets) {\n    const book = await client.getOrderbook(market.marketAppId);\n\n    // Simple strategy: buy Yes if best ask < $0.30\n    const bestAsk = book.yes.asks.sort((a, b) => a.price - b.price)[0];\n    if (bestAsk && bestAsk.price < 300_000) {\n      console.log(`Buying Yes on \"${market.title}\" at $${bestAsk.price / 1e6}`);\n\n      await client.createMarketOrder({\n        marketAppId: market.marketAppId,\n        position: 1,\n        price: bestAsk.price,\n        quantity: 1_000_000,\n        isBuying: true,\n        slippage: 20_000, // $0.02 slippage\n      });\n    }\n  }\n};\n\nrun().catch(console.error);\n```\n\n## Network Configuration\n\n### Mainnet (default)\n\n```typescript\nconst algodClient = new algosdk.Algodv2('', 'https://mainnet-api.algonode.cloud', 443);\nconst indexerClient = new algosdk.Indexer('', 'https://mainnet-idx.algonode.cloud', 443);\n```\n\n### Testnet\n\n```typescript\nconst algodClient = new algosdk.Algodv2('', 'https://testnet-api.algonode.cloud', 443);\nconst indexerClient = new algosdk.Indexer('', 'https://testnet-idx.algonode.cloud', 443);\n```\n\n## Error Handling\n\nAll methods throw on failure. Wrap calls in try/catch:\n\n```typescript\ntry {\n  const result = await client.createLimitOrder({ ... });\n} catch (error) {\n  if (error.message.includes('balance')) {\n    console.error('Insufficient funds');\n  } else {\n    console.error('Order failed:', error.message);\n  }\n}\n```\n\n## Disclaimer\n\nThis SDK, the included examples, and any related scripts are provided as tools\nfor informational and development purposes only. Nothing in this repository\nconstitutes financial, investment, legal, or tax advice.\n\nYou are solely responsible for reviewing, testing, and understanding any code,\ntransactions, strategies, or automations you choose to run. Use of these tools\nis at your own risk. The authors and maintainers disclaim liability for any\nlosses, damages, or other consequences arising from the use or misuse of this\nsoftware.\n\nAlways do your own research before using these tools with real funds,\nproduction systems, or live markets.\n\n## License\n\nMIT\n","readmeFilename":"README.md"}