npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

n8n-nodes-polymarket-gemma-api

v0.0.3

Published

n8n community node for Polymarket Gamma API

Readme

n8n-nodes-polymarket-gemma-api

Community node cho n8n để làm việc với Polymarket Gamma API (các endpoint public).

Tính năng (Gamma API)

  • Sports: sports metadata, market types, teams
  • Tags: list, get by ID/slug, related relationships/tags
  • Events: list, get by ID/slug, tags
  • Markets: list, get by ID/slug, tags
  • Series: list, get by ID
  • Comments: list, get by ID, theo user address
  • Profiles: public profile theo wallet address
  • Search: public search

Tính năng (CLOB API - Trading)

  • Market Data: price, midpoint, orderbook depth
  • Orders: create order (signed payload), create batch, cancel (single/batch/all/market), get order, get active orders
  • Websocket: market feed config (real-time price feed)

Cài đặt

Cách 1: Cài như community node (n8n local)

Trong thư mục n8n (~/.n8n), chạy:

npm install n8n-nodes-polymarket-gemma-api

Sau đó restart n8n.

Cách 2: Dùng custom extensions (local dev)

export N8N_CUSTOM_EXTENSIONS=/path/to/n8n-nodes-polymarket-gemma-api/dist
n8n start

Cách 3: Docker (theo cách bạn đang dùng)

docker run -it --rm \
 --name n8n \
 -p 5678:5678 \
 -e GENERIC_TIMEZONE="Asia/Ho_Chi_Minh" \
 -e TZ="Asia/Ho_Chi_Minh" \
 -e N8N_ENFORCE_SETTINGS_FILE_PERMISSIONS=true \
 -e N8N_RUNNERS_ENABLED=true \
 -e N8N_SECURE_COOKIE=false \
 -e N8N_CUSTOM_EXTENSIONS=/home/node/custom \
 -v n8n_data:/home/node/.n8n \
 -v /path/to/n8n-nodes-polymarket-gemma-api/dist:/home/node/custom:ro \
 docker.n8n.io/n8nio/n8n

Credentials

Node có credential Polymarket Gamma API.

  • Header: X-API-KEY
  • Trường này optional (Gamma API phần lớn là public), có thể để trống nếu không cần key.

Node có credential Polymarket CLOB API (L2 auth headers):

  • POLY_API_KEY
  • POLY_PASSPHRASE
  • POLY_ADDRESS
  • POLY_SIGNATURE + POLY_TIMESTAMP (được set tự động hoặc nhập thủ công theo chế độ Signature Mode)

Lưu ý: Tạo order yêu cầu payload đã ký (signed order). Bạn có thể tạo payload này bằng các client chính thức của Polymarket.

Phát triển

npm install
npm run dev
npm run lint
npm run build

Tài liệu API

  • https://docs.polymarket.com/api-reference
  • https://docs.polymarket.com/developers/CLOB/introduction

License

MIT