Skip to main content

Client Initialization by Use Case

  • Get Market Data
  • Generate User API Credentials
  • Create and Post Order
  • Get Builders Orders
// No signer or credentials needed
const client = new ClobClient(
  "https://clob.polymarket.com", 
  137
);

// All public methods available
const markets = await client.getMarkets();
const book = await client.getOrderBook(tokenId);
const price = await client.getPrice(tokenId, "BUY");

Resources