Skip to content

Overview

Order attribution is a feature of the Polymarket Builder Program that allows developers to earn rebates on trading volume generated through their applications. When users place orders through your application, those orders can be attributed to your builder account, earning you a percentage of the trading fees.

The signing server acts as a secure intermediary that:

  1. Receives order requests from your application
  2. Signs the orders with your builder credentials using HMAC-SHA256
  3. Returns the signature to your application
  4. Attributes orders to your builder account when submitted to Polymarket
graph LR
    A[Your App] -->|Order Request| B[Signing Server]
    B -->|HMAC Signature| A
    A -->|Signed Order| C[Polymarket]
    C -->|Rebates| D[Your Builder Account]

Your builder API credentials (key, secret, passphrase) remain on your server and are never exposed in client-side code. This is critical for:

  • Preventing credential theft: Credentials can’t be extracted from your frontend
  • Maintaining control: You control who can submit attributed orders

The Builder Program offers:

  • Volume-based rebates: Earn a percentage of trading fees on orders attributed to you
  • Passive income: Earn from users trading on your platform
  • Scalable revenue: More trading volume = more rebates

The signing server is built with Bun for:

  • High throughput: Handle thousands of signing requests per second
  • Low latency: milliseconds response times
  • Efficient resource usage: Minimal CPU and memory footprint

The Polys signing server is a modern alternative to Polymarket’s official builder-signing-server:

FeaturePolys ServerOfficial Server
RuntimeBunNode.js
Type SafetyBuilt-in (Valibot)Manual validation
Hot ReloadYesNo
Single-file BuildYesNo
PerformanceHigherStandard
  • Order Attribution: Sign orders for Polymarket Builder Program rebates
  • High Performance: Built with Bun’s native HTTP server
  • Secure: Bearer token authentication keeps builder credentials server-side
  • Type-Safe: Configuration validation with Valibot
  • Lightweight: Only 3 dependencies
  • Developer-Friendly: Hot module reloading in development
  • Single-file Executable: Compile to a portable binary with zero dependencies

Ready to set up order attribution? Follow these guides:

  1. Setup - Install and configure the signing server
  2. Deployment - Deploy to production
  3. Client Usage - Integrate with your application
  4. Troubleshooting - Solve common issues