{"success":true,"data":{"service":"PolyGate","version":"0.1.0","generatedAt":"2026-06-05T19:06:23.154Z","endpoints":{"health":"/health","listCommands":"/api/v1/commands","commandDetails":"/api/v1/commands/:command","streamEvents":"/api/v1/events/stream","execute":"/api/v1/commands/execute"},"commands":[{"command":"status","description":"Aggregated health across Gamma, Data and CLOB","authRequired":false,"enabled":true,"paramsSchema":{"$schema":"http://json-schema.org/draft-07/schema#","type":"object","properties":{},"additionalProperties":false},"paramsExample":{},"curlExample":"curl -X POST \"https://polygate.w0x7ce.eu/api/v1/commands/execute\" \\\n  -H 'content-type: application/json' \\\n  -d '{\"command\":\"status\",\"params\":{}}'"},{"command":"markets.list","description":"List Gamma markets","authRequired":false,"enabled":true,"paramsSchema":{"$schema":"http://json-schema.org/draft-07/schema#","type":"object","properties":{"active":{"type":"boolean"},"closed":{"type":"boolean"},"limit":{"type":"integer","minimum":1,"maximum":500},"offset":{"type":"integer","minimum":0,"maximum":10000},"order":{"type":"string"},"ascending":{"type":"boolean"}},"additionalProperties":false},"paramsExample":{"active":false,"closed":false,"limit":1,"offset":1,"order":"string","ascending":false},"curlExample":"curl -X POST \"https://polygate.w0x7ce.eu/api/v1/commands/execute\" \\\n  -H 'content-type: application/json' \\\n  -d '{\"command\":\"markets.list\",\"params\":{\"active\":false,\"closed\":false,\"limit\":1,\"offset\":1,\"order\":\"string\",\"ascending\":false}}'"},{"command":"markets.get","description":"Get a Gamma market by numeric ID or slug","authRequired":false,"enabled":true,"paramsSchema":{"$schema":"http://json-schema.org/draft-07/schema#","type":"object","properties":{"id":{"type":"string","minLength":1}},"required":["id"],"additionalProperties":false},"paramsExample":{"id":"string"},"curlExample":"curl -X POST \"https://polygate.w0x7ce.eu/api/v1/commands/execute\" \\\n  -H 'content-type: application/json' \\\n  -d '{\"command\":\"markets.get\",\"params\":{\"id\":\"string\"}}'"},{"command":"markets.search","description":"Search Gamma markets/events/profiles","authRequired":false,"enabled":true,"paramsSchema":{"$schema":"http://json-schema.org/draft-07/schema#","type":"object","properties":{"query":{"type":"string","minLength":1},"limit":{"type":"integer","minimum":1,"maximum":100}},"required":["query"],"additionalProperties":false},"paramsExample":{"query":"string","limit":1},"curlExample":"curl -X POST \"https://polygate.w0x7ce.eu/api/v1/commands/execute\" \\\n  -H 'content-type: application/json' \\\n  -d '{\"command\":\"markets.search\",\"params\":{\"query\":\"string\",\"limit\":1}}'"},{"command":"markets.tags","description":"Get tags for a market","authRequired":false,"enabled":true,"paramsSchema":{"$schema":"http://json-schema.org/draft-07/schema#","type":"object","properties":{"id":{"type":"string","minLength":1}},"required":["id"],"additionalProperties":false},"paramsExample":{"id":"string"},"curlExample":"curl -X POST \"https://polygate.w0x7ce.eu/api/v1/commands/execute\" \\\n  -H 'content-type: application/json' \\\n  -d '{\"command\":\"markets.tags\",\"params\":{\"id\":\"string\"}}'"},{"command":"events.list","description":"List Gamma events","authRequired":false,"enabled":true,"paramsSchema":{"$schema":"http://json-schema.org/draft-07/schema#","type":"object","properties":{"active":{"type":"boolean"},"closed":{"type":"boolean"},"limit":{"type":"integer","minimum":1,"maximum":500},"offset":{"type":"integer","minimum":0,"maximum":10000},"order":{"type":"string"},"ascending":{"type":"boolean"},"tag":{"type":"string"}},"additionalProperties":false},"paramsExample":{"active":false,"closed":false,"limit":1,"offset":1,"order":"string","ascending":false,"tag":"string"},"curlExample":"curl -X POST \"https://polygate.w0x7ce.eu/api/v1/commands/execute\" \\\n  -H 'content-type: application/json' \\\n  -d '{\"command\":\"events.list\",\"params\":{\"active\":false,\"closed\":false,\"limit\":1,\"offset\":1,\"order\":\"string\",\"ascending\":false,\"tag\":\"string\"}}'"},{"command":"events.get","description":"Get a Gamma event by numeric ID or slug","authRequired":false,"enabled":true,"paramsSchema":{"$schema":"http://json-schema.org/draft-07/schema#","type":"object","properties":{"id":{"type":"string","minLength":1}},"required":["id"],"additionalProperties":false},"paramsExample":{"id":"string"},"curlExample":"curl -X POST \"https://polygate.w0x7ce.eu/api/v1/commands/execute\" \\\n  -H 'content-type: application/json' \\\n  -d '{\"command\":\"events.get\",\"params\":{\"id\":\"string\"}}'"},{"command":"events.tags","description":"Get tags for an event","authRequired":false,"enabled":true,"paramsSchema":{"$schema":"http://json-schema.org/draft-07/schema#","type":"object","properties":{"id":{"type":"string","minLength":1}},"required":["id"],"additionalProperties":false},"paramsExample":{"id":"string"},"curlExample":"curl -X POST \"https://polygate.w0x7ce.eu/api/v1/commands/execute\" \\\n  -H 'content-type: application/json' \\\n  -d '{\"command\":\"events.tags\",\"params\":{\"id\":\"string\"}}'"},{"command":"tags.list","description":"List Gamma tags","authRequired":false,"enabled":true,"paramsSchema":{"$schema":"http://json-schema.org/draft-07/schema#","type":"object","properties":{"limit":{"type":"integer","minimum":1,"maximum":500},"offset":{"type":"integer","minimum":0,"maximum":10000},"order":{"type":"string"},"ascending":{"type":"boolean"}},"additionalProperties":false},"paramsExample":{"limit":1,"offset":1,"order":"string","ascending":false},"curlExample":"curl -X POST \"https://polygate.w0x7ce.eu/api/v1/commands/execute\" \\\n  -H 'content-type: application/json' \\\n  -d '{\"command\":\"tags.list\",\"params\":{\"limit\":1,\"offset\":1,\"order\":\"string\",\"ascending\":false}}'"},{"command":"tags.get","description":"Get a tag by numeric ID or slug","authRequired":false,"enabled":true,"paramsSchema":{"$schema":"http://json-schema.org/draft-07/schema#","type":"object","properties":{"id":{"type":"string","minLength":1}},"required":["id"],"additionalProperties":false},"paramsExample":{"id":"string"},"curlExample":"curl -X POST \"https://polygate.w0x7ce.eu/api/v1/commands/execute\" \\\n  -H 'content-type: application/json' \\\n  -d '{\"command\":\"tags.get\",\"params\":{\"id\":\"string\"}}'"},{"command":"tags.related","description":"Get related tag relationships","authRequired":false,"enabled":true,"paramsSchema":{"$schema":"http://json-schema.org/draft-07/schema#","type":"object","properties":{"id":{"type":"string","minLength":1},"omitEmpty":{"type":"boolean"}},"required":["id"],"additionalProperties":false},"paramsExample":{"id":"string","omitEmpty":false},"curlExample":"curl -X POST \"https://polygate.w0x7ce.eu/api/v1/commands/execute\" \\\n  -H 'content-type: application/json' \\\n  -d '{\"command\":\"tags.related\",\"params\":{\"id\":\"string\",\"omitEmpty\":false}}'"},{"command":"tags.relatedTags","description":"Get related tag objects","authRequired":false,"enabled":true,"paramsSchema":{"$schema":"http://json-schema.org/draft-07/schema#","type":"object","properties":{"id":{"type":"string","minLength":1},"omitEmpty":{"type":"boolean"}},"required":["id"],"additionalProperties":false},"paramsExample":{"id":"string","omitEmpty":false},"curlExample":"curl -X POST \"https://polygate.w0x7ce.eu/api/v1/commands/execute\" \\\n  -H 'content-type: application/json' \\\n  -d '{\"command\":\"tags.relatedTags\",\"params\":{\"id\":\"string\",\"omitEmpty\":false}}'"},{"command":"series.list","description":"List Gamma series","authRequired":false,"enabled":true,"paramsSchema":{"$schema":"http://json-schema.org/draft-07/schema#","type":"object","properties":{"limit":{"type":"integer","minimum":1,"maximum":500},"offset":{"type":"integer","minimum":0,"maximum":10000},"order":{"type":"string"},"ascending":{"type":"boolean"},"closed":{"type":"boolean"}},"additionalProperties":false},"paramsExample":{"limit":1,"offset":1,"order":"string","ascending":false,"closed":false},"curlExample":"curl -X POST \"https://polygate.w0x7ce.eu/api/v1/commands/execute\" \\\n  -H 'content-type: application/json' \\\n  -d '{\"command\":\"series.list\",\"params\":{\"limit\":1,\"offset\":1,\"order\":\"string\",\"ascending\":false,\"closed\":false}}'"},{"command":"series.get","description":"Get a series by ID","authRequired":false,"enabled":true,"paramsSchema":{"$schema":"http://json-schema.org/draft-07/schema#","type":"object","properties":{"id":{"type":"string","minLength":1}},"required":["id"],"additionalProperties":false},"paramsExample":{"id":"string"},"curlExample":"curl -X POST \"https://polygate.w0x7ce.eu/api/v1/commands/execute\" \\\n  -H 'content-type: application/json' \\\n  -d '{\"command\":\"series.get\",\"params\":{\"id\":\"string\"}}'"},{"command":"comments.list","description":"List comments by entity","authRequired":false,"enabled":true,"paramsSchema":{"$schema":"http://json-schema.org/draft-07/schema#","type":"object","properties":{"entityType":{"type":"string","enum":["event","market","series"]},"entityId":{"type":"string","minLength":1},"limit":{"type":"integer","minimum":1,"maximum":500},"offset":{"type":"integer","minimum":0,"maximum":10000},"order":{"type":"string"},"ascending":{"type":"boolean"}},"required":["entityType","entityId"],"additionalProperties":false},"paramsExample":{"entityType":"event","entityId":"string","limit":1,"offset":1,"order":"string","ascending":false},"curlExample":"curl -X POST \"https://polygate.w0x7ce.eu/api/v1/commands/execute\" \\\n  -H 'content-type: application/json' \\\n  -d '{\"command\":\"comments.list\",\"params\":{\"entityType\":\"event\",\"entityId\":\"string\",\"limit\":1,\"offset\":1,\"order\":\"string\",\"ascending\":false}}'"},{"command":"comments.get","description":"Get a comment by ID","authRequired":false,"enabled":true,"paramsSchema":{"$schema":"http://json-schema.org/draft-07/schema#","type":"object","properties":{"id":{"type":"string","minLength":1}},"required":["id"],"additionalProperties":false},"paramsExample":{"id":"string"},"curlExample":"curl -X POST \"https://polygate.w0x7ce.eu/api/v1/commands/execute\" \\\n  -H 'content-type: application/json' \\\n  -d '{\"command\":\"comments.get\",\"params\":{\"id\":\"string\"}}'"},{"command":"comments.byUser","description":"List comments by wallet address","authRequired":false,"enabled":true,"paramsSchema":{"$schema":"http://json-schema.org/draft-07/schema#","type":"object","properties":{"address":{"type":"string"},"limit":{"type":"integer","minimum":1,"maximum":500},"offset":{"type":"integer","minimum":0,"maximum":10000},"order":{"type":"string"},"ascending":{"type":"boolean"}},"required":["address"],"additionalProperties":false},"paramsExample":{"address":"string","limit":1,"offset":1,"order":"string","ascending":false},"curlExample":"curl -X POST \"https://polygate.w0x7ce.eu/api/v1/commands/execute\" \\\n  -H 'content-type: application/json' \\\n  -d '{\"command\":\"comments.byUser\",\"params\":{\"address\":\"string\",\"limit\":1,\"offset\":1,\"order\":\"string\",\"ascending\":false}}'"},{"command":"profiles.get","description":"Get a public profile by wallet address","authRequired":false,"enabled":true,"paramsSchema":{"$schema":"http://json-schema.org/draft-07/schema#","type":"object","properties":{"address":{"type":"string"}},"required":["address"],"additionalProperties":false},"paramsExample":{"address":"string"},"curlExample":"curl -X POST \"https://polygate.w0x7ce.eu/api/v1/commands/execute\" \\\n  -H 'content-type: application/json' \\\n  -d '{\"command\":\"profiles.get\",\"params\":{\"address\":\"string\"}}'"},{"command":"sports.list","description":"List supported sports","authRequired":false,"enabled":true,"paramsSchema":{"$schema":"http://json-schema.org/draft-07/schema#","type":"object","properties":{},"additionalProperties":false},"paramsExample":{},"curlExample":"curl -X POST \"https://polygate.w0x7ce.eu/api/v1/commands/execute\" \\\n  -H 'content-type: application/json' \\\n  -d '{\"command\":\"sports.list\",\"params\":{}}'"},{"command":"sports.marketTypes","description":"List sports market types","authRequired":false,"enabled":true,"paramsSchema":{"$schema":"http://json-schema.org/draft-07/schema#","type":"object","properties":{},"additionalProperties":false},"paramsExample":{},"curlExample":"curl -X POST \"https://polygate.w0x7ce.eu/api/v1/commands/execute\" \\\n  -H 'content-type: application/json' \\\n  -d '{\"command\":\"sports.marketTypes\",\"params\":{}}'"},{"command":"sports.teams","description":"List sports teams","authRequired":false,"enabled":true,"paramsSchema":{"$schema":"http://json-schema.org/draft-07/schema#","type":"object","properties":{"limit":{"type":"integer","minimum":1,"maximum":500},"offset":{"type":"integer","minimum":0,"maximum":10000},"order":{"type":"string"},"ascending":{"type":"boolean"},"league":{"type":"string"}},"additionalProperties":false},"paramsExample":{"limit":1,"offset":1,"order":"string","ascending":false,"league":"string"},"curlExample":"curl -X POST \"https://polygate.w0x7ce.eu/api/v1/commands/execute\" \\\n  -H 'content-type: application/json' \\\n  -d '{\"command\":\"sports.teams\",\"params\":{\"limit\":1,\"offset\":1,\"order\":\"string\",\"ascending\":false,\"league\":\"string\"}}'"},{"command":"data.positions","description":"Get open positions for an address","authRequired":false,"enabled":true,"paramsSchema":{"$schema":"http://json-schema.org/draft-07/schema#","type":"object","properties":{"address":{"type":"string"},"limit":{"type":"integer","minimum":1,"maximum":500},"offset":{"type":"integer","minimum":0,"maximum":10000}},"required":["address"],"additionalProperties":false},"paramsExample":{"address":"string","limit":1,"offset":1},"curlExample":"curl -X POST \"https://polygate.w0x7ce.eu/api/v1/commands/execute\" \\\n  -H 'content-type: application/json' \\\n  -d '{\"command\":\"data.positions\",\"params\":{\"address\":\"string\",\"limit\":1,\"offset\":1}}'"},{"command":"data.value","description":"Get position value for an address","authRequired":false,"enabled":true,"paramsSchema":{"$schema":"http://json-schema.org/draft-07/schema#","type":"object","properties":{"address":{"type":"string"}},"required":["address"],"additionalProperties":false},"paramsExample":{"address":"string"},"curlExample":"curl -X POST \"https://polygate.w0x7ce.eu/api/v1/commands/execute\" \\\n  -H 'content-type: application/json' \\\n  -d '{\"command\":\"data.value\",\"params\":{\"address\":\"string\"}}'"},{"command":"data.trades","description":"Get trade history for an address","authRequired":false,"enabled":true,"paramsSchema":{"$schema":"http://json-schema.org/draft-07/schema#","type":"object","properties":{"address":{"type":"string"},"limit":{"type":"integer","minimum":1,"maximum":500},"offset":{"type":"integer","minimum":0,"maximum":10000}},"required":["address"],"additionalProperties":false},"paramsExample":{"address":"string","limit":1,"offset":1},"curlExample":"curl -X POST \"https://polygate.w0x7ce.eu/api/v1/commands/execute\" \\\n  -H 'content-type: application/json' \\\n  -d '{\"command\":\"data.trades\",\"params\":{\"address\":\"string\",\"limit\":1,\"offset\":1}}'"},{"command":"data.closedPositions","description":"Get closed positions for an address","authRequired":false,"enabled":true,"paramsSchema":{"$schema":"http://json-schema.org/draft-07/schema#","type":"object","properties":{"address":{"type":"string"},"limit":{"type":"integer","minimum":1,"maximum":500},"offset":{"type":"integer","minimum":0,"maximum":10000}},"required":["address"],"additionalProperties":false},"paramsExample":{"address":"string","limit":1,"offset":1},"curlExample":"curl -X POST \"https://polygate.w0x7ce.eu/api/v1/commands/execute\" \\\n  -H 'content-type: application/json' \\\n  -d '{\"command\":\"data.closedPositions\",\"params\":{\"address\":\"string\",\"limit\":1,\"offset\":1}}'"},{"command":"data.traded","description":"Get number of markets traded by an address","authRequired":false,"enabled":true,"paramsSchema":{"$schema":"http://json-schema.org/draft-07/schema#","type":"object","properties":{"address":{"type":"string"}},"required":["address"],"additionalProperties":false},"paramsExample":{"address":"string"},"curlExample":"curl -X POST \"https://polygate.w0x7ce.eu/api/v1/commands/execute\" \\\n  -H 'content-type: application/json' \\\n  -d '{\"command\":\"data.traded\",\"params\":{\"address\":\"string\"}}'"},{"command":"data.activity","description":"Get activity for an address","authRequired":false,"enabled":true,"paramsSchema":{"$schema":"http://json-schema.org/draft-07/schema#","type":"object","properties":{"address":{"type":"string"},"limit":{"type":"integer","minimum":1,"maximum":500},"offset":{"type":"integer","minimum":0,"maximum":10000}},"required":["address"],"additionalProperties":false},"paramsExample":{"address":"string","limit":1,"offset":1},"curlExample":"curl -X POST \"https://polygate.w0x7ce.eu/api/v1/commands/execute\" \\\n  -H 'content-type: application/json' \\\n  -d '{\"command\":\"data.activity\",\"params\":{\"address\":\"string\",\"limit\":1,\"offset\":1}}'"},{"command":"data.holders","description":"Get top holders for a market condition ID","authRequired":false,"enabled":true,"paramsSchema":{"$schema":"http://json-schema.org/draft-07/schema#","type":"object","properties":{"market":{"type":"string","minLength":1},"limit":{"type":"integer","minimum":1,"maximum":20}},"required":["market"],"additionalProperties":false},"paramsExample":{"market":"string","limit":1},"curlExample":"curl -X POST \"https://polygate.w0x7ce.eu/api/v1/commands/execute\" \\\n  -H 'content-type: application/json' \\\n  -d '{\"command\":\"data.holders\",\"params\":{\"market\":\"string\",\"limit\":1}}'"},{"command":"data.openInterest","description":"Get open interest for a market condition ID","authRequired":false,"enabled":true,"paramsSchema":{"$schema":"http://json-schema.org/draft-07/schema#","type":"object","properties":{"market":{"type":"string","minLength":1}},"required":["market"],"additionalProperties":false},"paramsExample":{"market":"string"},"curlExample":"curl -X POST \"https://polygate.w0x7ce.eu/api/v1/commands/execute\" \\\n  -H 'content-type: application/json' \\\n  -d '{\"command\":\"data.openInterest\",\"params\":{\"market\":\"string\"}}'"},{"command":"data.volume","description":"Get live volume for an event","authRequired":false,"enabled":true,"paramsSchema":{"$schema":"http://json-schema.org/draft-07/schema#","type":"object","properties":{"id":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}},"required":["id"],"additionalProperties":false},"paramsExample":{"id":1},"curlExample":"curl -X POST \"https://polygate.w0x7ce.eu/api/v1/commands/execute\" \\\n  -H 'content-type: application/json' \\\n  -d '{\"command\":\"data.volume\",\"params\":{\"id\":1}}'"},{"command":"data.leaderboard","description":"Get trader leaderboard","authRequired":false,"enabled":true,"paramsSchema":{"$schema":"http://json-schema.org/draft-07/schema#","type":"object","properties":{"period":{"type":"string","enum":["day","week","month","all"]},"orderBy":{"type":"string","enum":["pnl","vol"]},"limit":{"type":"integer","minimum":1,"maximum":500},"offset":{"type":"integer","minimum":0,"maximum":10000}},"additionalProperties":false},"paramsExample":{"period":"day","orderBy":"pnl","limit":1,"offset":1},"curlExample":"curl -X POST \"https://polygate.w0x7ce.eu/api/v1/commands/execute\" \\\n  -H 'content-type: application/json' \\\n  -d '{\"command\":\"data.leaderboard\",\"params\":{\"period\":\"day\",\"orderBy\":\"pnl\",\"limit\":1,\"offset\":1}}'"},{"command":"data.builderLeaderboard","description":"Get builder leaderboard","authRequired":false,"enabled":true,"paramsSchema":{"$schema":"http://json-schema.org/draft-07/schema#","type":"object","properties":{"period":{"type":"string","enum":["day","week","month","all"]},"limit":{"type":"integer","minimum":1,"maximum":500},"offset":{"type":"integer","minimum":0,"maximum":10000}},"additionalProperties":false},"paramsExample":{"period":"day","limit":1,"offset":1},"curlExample":"curl -X POST \"https://polygate.w0x7ce.eu/api/v1/commands/execute\" \\\n  -H 'content-type: application/json' \\\n  -d '{\"command\":\"data.builderLeaderboard\",\"params\":{\"period\":\"day\",\"limit\":1,\"offset\":1}}'"},{"command":"data.builderVolume","description":"Get builder volume time series","authRequired":false,"enabled":true,"paramsSchema":{"$schema":"http://json-schema.org/draft-07/schema#","type":"object","properties":{"period":{"type":"string","enum":["day","week","month","all"]}},"additionalProperties":false},"paramsExample":{"period":"day"},"curlExample":"curl -X POST \"https://polygate.w0x7ce.eu/api/v1/commands/execute\" \\\n  -H 'content-type: application/json' \\\n  -d '{\"command\":\"data.builderVolume\",\"params\":{\"period\":\"day\"}}'"},{"command":"bridge.deposit","description":"Get bridge deposit addresses for a wallet","authRequired":false,"enabled":true,"paramsSchema":{"$schema":"http://json-schema.org/draft-07/schema#","type":"object","properties":{"address":{"type":"string"}},"required":["address"],"additionalProperties":false},"paramsExample":{"address":"string"},"curlExample":"curl -X POST \"https://polygate.w0x7ce.eu/api/v1/commands/execute\" \\\n  -H 'content-type: application/json' \\\n  -d '{\"command\":\"bridge.deposit\",\"params\":{\"address\":\"string\"}}'"},{"command":"bridge.supportedAssets","description":"List supported bridge assets","authRequired":false,"enabled":true,"paramsSchema":{"$schema":"http://json-schema.org/draft-07/schema#","type":"object","properties":{},"additionalProperties":false},"paramsExample":{},"curlExample":"curl -X POST \"https://polygate.w0x7ce.eu/api/v1/commands/execute\" \\\n  -H 'content-type: application/json' \\\n  -d '{\"command\":\"bridge.supportedAssets\",\"params\":{}}'"},{"command":"bridge.status","description":"Get bridge deposit status by address","authRequired":false,"enabled":true,"paramsSchema":{"$schema":"http://json-schema.org/draft-07/schema#","type":"object","properties":{"address":{"type":"string","minLength":1}},"required":["address"],"additionalProperties":false},"paramsExample":{"address":"string"},"curlExample":"curl -X POST \"https://polygate.w0x7ce.eu/api/v1/commands/execute\" \\\n  -H 'content-type: application/json' \\\n  -d '{\"command\":\"bridge.status\",\"params\":{\"address\":\"string\"}}'"},{"command":"clob.ok","description":"Check CLOB health","authRequired":false,"enabled":true,"paramsSchema":{"$schema":"http://json-schema.org/draft-07/schema#","type":"object","properties":{},"additionalProperties":false},"paramsExample":{},"curlExample":"curl -X POST \"https://polygate.w0x7ce.eu/api/v1/commands/execute\" \\\n  -H 'content-type: application/json' \\\n  -d '{\"command\":\"clob.ok\",\"params\":{}}'"},{"command":"clob.price","description":"Get token price","authRequired":false,"enabled":true,"paramsSchema":{"$schema":"http://json-schema.org/draft-07/schema#","type":"object","properties":{"tokenId":{"type":"string","minLength":1},"side":{"type":"string","enum":["BUY","SELL"]}},"required":["tokenId","side"],"additionalProperties":false},"paramsExample":{"tokenId":"string","side":"BUY"},"curlExample":"curl -X POST \"https://polygate.w0x7ce.eu/api/v1/commands/execute\" \\\n  -H 'content-type: application/json' \\\n  -d '{\"command\":\"clob.price\",\"params\":{\"tokenId\":\"string\",\"side\":\"BUY\"}}'"},{"command":"clob.prices","description":"Get token prices in batch","authRequired":false,"enabled":true,"paramsSchema":{"$schema":"http://json-schema.org/draft-07/schema#","type":"object","properties":{"tokenIds":{"type":"string","minLength":1},"side":{"type":"string","enum":["BUY","SELL"]}},"required":["tokenIds","side"],"additionalProperties":false},"paramsExample":{"tokenIds":"string","side":"BUY"},"curlExample":"curl -X POST \"https://polygate.w0x7ce.eu/api/v1/commands/execute\" \\\n  -H 'content-type: application/json' \\\n  -d '{\"command\":\"clob.prices\",\"params\":{\"tokenIds\":\"string\",\"side\":\"BUY\"}}'"},{"command":"clob.midpoint","description":"Get token midpoint","authRequired":false,"enabled":true,"paramsSchema":{"$schema":"http://json-schema.org/draft-07/schema#","type":"object","properties":{"tokenId":{"type":"string","minLength":1}},"required":["tokenId"],"additionalProperties":false},"paramsExample":{"tokenId":"string"},"curlExample":"curl -X POST \"https://polygate.w0x7ce.eu/api/v1/commands/execute\" \\\n  -H 'content-type: application/json' \\\n  -d '{\"command\":\"clob.midpoint\",\"params\":{\"tokenId\":\"string\"}}'"},{"command":"clob.midpoints","description":"Get token midpoints in batch","authRequired":false,"enabled":true,"paramsSchema":{"$schema":"http://json-schema.org/draft-07/schema#","type":"object","properties":{"tokenIds":{"type":"string","minLength":1}},"required":["tokenIds"],"additionalProperties":false},"paramsExample":{"tokenIds":"string"},"curlExample":"curl -X POST \"https://polygate.w0x7ce.eu/api/v1/commands/execute\" \\\n  -H 'content-type: application/json' \\\n  -d '{\"command\":\"clob.midpoints\",\"params\":{\"tokenIds\":\"string\"}}'"},{"command":"clob.spread","description":"Get token spread","authRequired":false,"enabled":true,"paramsSchema":{"$schema":"http://json-schema.org/draft-07/schema#","type":"object","properties":{"tokenId":{"type":"string","minLength":1}},"required":["tokenId"],"additionalProperties":false},"paramsExample":{"tokenId":"string"},"curlExample":"curl -X POST \"https://polygate.w0x7ce.eu/api/v1/commands/execute\" \\\n  -H 'content-type: application/json' \\\n  -d '{\"command\":\"clob.spread\",\"params\":{\"tokenId\":\"string\"}}'"},{"command":"clob.spreads","description":"Get token spreads in batch","authRequired":false,"enabled":true,"paramsSchema":{"$schema":"http://json-schema.org/draft-07/schema#","type":"object","properties":{"tokenIds":{"type":"string","minLength":1}},"required":["tokenIds"],"additionalProperties":false},"paramsExample":{"tokenIds":"string"},"curlExample":"curl -X POST \"https://polygate.w0x7ce.eu/api/v1/commands/execute\" \\\n  -H 'content-type: application/json' \\\n  -d '{\"command\":\"clob.spreads\",\"params\":{\"tokenIds\":\"string\"}}'"},{"command":"clob.book","description":"Get order book summary","authRequired":false,"enabled":true,"paramsSchema":{"$schema":"http://json-schema.org/draft-07/schema#","type":"object","properties":{"tokenId":{"type":"string","minLength":1}},"required":["tokenId"],"additionalProperties":false},"paramsExample":{"tokenId":"string"},"curlExample":"curl -X POST \"https://polygate.w0x7ce.eu/api/v1/commands/execute\" \\\n  -H 'content-type: application/json' \\\n  -d '{\"command\":\"clob.book\",\"params\":{\"tokenId\":\"string\"}}'"},{"command":"clob.books","description":"Get order books in batch","authRequired":false,"enabled":true,"paramsSchema":{"$schema":"http://json-schema.org/draft-07/schema#","type":"object","properties":{"tokenIds":{"type":"string","minLength":1}},"required":["tokenIds"],"additionalProperties":false},"paramsExample":{"tokenIds":"string"},"curlExample":"curl -X POST \"https://polygate.w0x7ce.eu/api/v1/commands/execute\" \\\n  -H 'content-type: application/json' \\\n  -d '{\"command\":\"clob.books\",\"params\":{\"tokenIds\":\"string\"}}'"},{"command":"clob.lastTrade","description":"Get last trade price","authRequired":false,"enabled":true,"paramsSchema":{"$schema":"http://json-schema.org/draft-07/schema#","type":"object","properties":{"tokenId":{"type":"string","minLength":1}},"required":["tokenId"],"additionalProperties":false},"paramsExample":{"tokenId":"string"},"curlExample":"curl -X POST \"https://polygate.w0x7ce.eu/api/v1/commands/execute\" \\\n  -H 'content-type: application/json' \\\n  -d '{\"command\":\"clob.lastTrade\",\"params\":{\"tokenId\":\"string\"}}'"},{"command":"clob.lastTrades","description":"Get last trade prices in batch","authRequired":false,"enabled":true,"paramsSchema":{"$schema":"http://json-schema.org/draft-07/schema#","type":"object","properties":{"tokenIds":{"type":"string","minLength":1}},"required":["tokenIds"],"additionalProperties":false},"paramsExample":{"tokenIds":"string"},"curlExample":"curl -X POST \"https://polygate.w0x7ce.eu/api/v1/commands/execute\" \\\n  -H 'content-type: application/json' \\\n  -d '{\"command\":\"clob.lastTrades\",\"params\":{\"tokenIds\":\"string\"}}'"},{"command":"clob.market","description":"Get CLOB market by condition ID","authRequired":false,"enabled":true,"paramsSchema":{"$schema":"http://json-schema.org/draft-07/schema#","type":"object","properties":{"conditionId":{"type":"string","minLength":1}},"required":["conditionId"],"additionalProperties":false},"paramsExample":{"conditionId":"string"},"curlExample":"curl -X POST \"https://polygate.w0x7ce.eu/api/v1/commands/execute\" \\\n  -H 'content-type: application/json' \\\n  -d '{\"command\":\"clob.market\",\"params\":{\"conditionId\":\"string\"}}'"},{"command":"clob.marketTrades","description":"Get recent market trade events by condition ID","authRequired":false,"enabled":true,"paramsSchema":{"$schema":"http://json-schema.org/draft-07/schema#","type":"object","properties":{"conditionId":{"type":"string","minLength":1}},"required":["conditionId"],"additionalProperties":false},"paramsExample":{"conditionId":"string"},"curlExample":"curl -X POST \"https://polygate.w0x7ce.eu/api/v1/commands/execute\" \\\n  -H 'content-type: application/json' \\\n  -d '{\"command\":\"clob.marketTrades\",\"params\":{\"conditionId\":\"string\"}}'"},{"command":"clob.markets","description":"List CLOB markets","authRequired":false,"enabled":true,"paramsSchema":{"$schema":"http://json-schema.org/draft-07/schema#","type":"object","properties":{"cursor":{"type":"string"}},"additionalProperties":false},"paramsExample":{"cursor":"string"},"curlExample":"curl -X POST \"https://polygate.w0x7ce.eu/api/v1/commands/execute\" \\\n  -H 'content-type: application/json' \\\n  -d '{\"command\":\"clob.markets\",\"params\":{\"cursor\":\"string\"}}'"},{"command":"clob.samplingMarkets","description":"List CLOB sampling markets","authRequired":false,"enabled":true,"paramsSchema":{"$schema":"http://json-schema.org/draft-07/schema#","type":"object","properties":{"cursor":{"type":"string"}},"additionalProperties":false},"paramsExample":{"cursor":"string"},"curlExample":"curl -X POST \"https://polygate.w0x7ce.eu/api/v1/commands/execute\" \\\n  -H 'content-type: application/json' \\\n  -d '{\"command\":\"clob.samplingMarkets\",\"params\":{\"cursor\":\"string\"}}'"},{"command":"clob.simplifiedMarkets","description":"List simplified CLOB markets","authRequired":false,"enabled":true,"paramsSchema":{"$schema":"http://json-schema.org/draft-07/schema#","type":"object","properties":{"cursor":{"type":"string"}},"additionalProperties":false},"paramsExample":{"cursor":"string"},"curlExample":"curl -X POST \"https://polygate.w0x7ce.eu/api/v1/commands/execute\" \\\n  -H 'content-type: application/json' \\\n  -d '{\"command\":\"clob.simplifiedMarkets\",\"params\":{\"cursor\":\"string\"}}'"},{"command":"clob.samplingSimplifiedMarkets","description":"List simplified sampling CLOB markets","authRequired":false,"enabled":true,"paramsSchema":{"$schema":"http://json-schema.org/draft-07/schema#","type":"object","properties":{"cursor":{"type":"string"}},"additionalProperties":false},"paramsExample":{"cursor":"string"},"curlExample":"curl -X POST \"https://polygate.w0x7ce.eu/api/v1/commands/execute\" \\\n  -H 'content-type: application/json' \\\n  -d '{\"command\":\"clob.samplingSimplifiedMarkets\",\"params\":{\"cursor\":\"string\"}}'"},{"command":"clob.tickSize","description":"Get token tick size","authRequired":false,"enabled":true,"paramsSchema":{"$schema":"http://json-schema.org/draft-07/schema#","type":"object","properties":{"tokenId":{"type":"string","minLength":1}},"required":["tokenId"],"additionalProperties":false},"paramsExample":{"tokenId":"string"},"curlExample":"curl -X POST \"https://polygate.w0x7ce.eu/api/v1/commands/execute\" \\\n  -H 'content-type: application/json' \\\n  -d '{\"command\":\"clob.tickSize\",\"params\":{\"tokenId\":\"string\"}}'"},{"command":"clob.feeRate","description":"Get token fee rate in bps","authRequired":false,"enabled":true,"paramsSchema":{"$schema":"http://json-schema.org/draft-07/schema#","type":"object","properties":{"tokenId":{"type":"string","minLength":1}},"required":["tokenId"],"additionalProperties":false},"paramsExample":{"tokenId":"string"},"curlExample":"curl -X POST \"https://polygate.w0x7ce.eu/api/v1/commands/execute\" \\\n  -H 'content-type: application/json' \\\n  -d '{\"command\":\"clob.feeRate\",\"params\":{\"tokenId\":\"string\"}}'"},{"command":"clob.negRisk","description":"Get neg-risk flag for token","authRequired":false,"enabled":true,"paramsSchema":{"$schema":"http://json-schema.org/draft-07/schema#","type":"object","properties":{"tokenId":{"type":"string","minLength":1}},"required":["tokenId"],"additionalProperties":false},"paramsExample":{"tokenId":"string"},"curlExample":"curl -X POST \"https://polygate.w0x7ce.eu/api/v1/commands/execute\" \\\n  -H 'content-type: application/json' \\\n  -d '{\"command\":\"clob.negRisk\",\"params\":{\"tokenId\":\"string\"}}'"},{"command":"clob.priceHistory","description":"Get token price history","authRequired":false,"enabled":true,"paramsSchema":{"$schema":"http://json-schema.org/draft-07/schema#","type":"object","properties":{"tokenId":{"type":"string","minLength":1},"interval":{"type":"string","enum":["1h","6h","1d","1w","max"]},"fidelity":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}},"required":["tokenId"],"additionalProperties":false},"paramsExample":{"tokenId":"string","interval":"1h","fidelity":1},"curlExample":"curl -X POST \"https://polygate.w0x7ce.eu/api/v1/commands/execute\" \\\n  -H 'content-type: application/json' \\\n  -d '{\"command\":\"clob.priceHistory\",\"params\":{\"tokenId\":\"string\",\"interval\":\"1h\",\"fidelity\":1}}'"},{"command":"clob.time","description":"Get CLOB server time","authRequired":false,"enabled":true,"paramsSchema":{"$schema":"http://json-schema.org/draft-07/schema#","type":"object","properties":{},"additionalProperties":false},"paramsExample":{},"curlExample":"curl -X POST \"https://polygate.w0x7ce.eu/api/v1/commands/execute\" \\\n  -H 'content-type: application/json' \\\n  -d '{\"command\":\"clob.time\",\"params\":{}}'"},{"command":"wallet.info","description":"Show active wallet context","authRequired":false,"enabled":true,"paramsSchema":{"$schema":"http://json-schema.org/draft-07/schema#","type":"object","properties":{},"additionalProperties":false},"paramsExample":{},"curlExample":"curl -X POST \"https://polygate.w0x7ce.eu/api/v1/commands/execute\" \\\n  -H 'content-type: application/json' \\\n  -d '{\"command\":\"wallet.info\",\"params\":{}}'"},{"command":"approve.check","description":"Check current Polymarket trading approvals","authRequired":false,"enabled":true,"paramsSchema":{"$schema":"http://json-schema.org/draft-07/schema#","type":"object","properties":{"address":{"type":"string"}},"additionalProperties":false},"paramsExample":{"address":"string"},"curlExample":"curl -X POST \"https://polygate.w0x7ce.eu/api/v1/commands/execute\" \\\n  -H 'content-type: application/json' \\\n  -d '{\"command\":\"approve.check\",\"params\":{\"address\":\"string\"}}'"},{"command":"approve.set","description":"Approve all required Polymarket trading contracts","authRequired":true,"enabled":true,"paramsSchema":{"$schema":"http://json-schema.org/draft-07/schema#","type":"object","properties":{},"additionalProperties":false},"paramsExample":{},"curlExample":"curl -X POST \"https://polygate.w0x7ce.eu/api/v1/commands/execute\" \\\n  -H 'content-type: application/json' \\\n  -d '{\"command\":\"approve.set\",\"params\":{}}'"},{"command":"ctf.conditionId","description":"Compute a condition ID from oracle, question ID and outcome count","authRequired":false,"enabled":true,"paramsSchema":{"$schema":"http://json-schema.org/draft-07/schema#","type":"object","properties":{"oracle":{"type":"string"},"questionId":{"type":"string","pattern":"^0x[a-fA-F0-9]{64}$"},"outcomes":{"type":"integer","minimum":2,"maximum":256}},"required":["oracle","questionId","outcomes"],"additionalProperties":false},"paramsExample":{"oracle":"string","questionId":"0x0000000000000000000000000000000000000000000000000000000000000000","outcomes":2},"curlExample":"curl -X POST \"https://polygate.w0x7ce.eu/api/v1/commands/execute\" \\\n  -H 'content-type: application/json' \\\n  -d '{\"command\":\"ctf.conditionId\",\"params\":{\"oracle\":\"string\",\"questionId\":\"0x0000000000000000000000000000000000000000000000000000000000000000\",\"outcomes\":2}}'"},{"command":"ctf.collectionId","description":"Compute a collection ID from condition ID and index set","authRequired":false,"enabled":true,"paramsSchema":{"$schema":"http://json-schema.org/draft-07/schema#","type":"object","properties":{"conditionId":{"type":"string","pattern":"^0x[a-fA-F0-9]{64}$"},"indexSet":{"anyOf":[{"type":"string","minLength":1},{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}]},"parentCollectionId":{"type":"string","pattern":"^0x[a-fA-F0-9]{64}$"}},"required":["conditionId","indexSet"],"additionalProperties":false},"paramsExample":{"conditionId":"0x0000000000000000000000000000000000000000000000000000000000000000","indexSet":"string","parentCollectionId":"0x0000000000000000000000000000000000000000000000000000000000000000"},"curlExample":"curl -X POST \"https://polygate.w0x7ce.eu/api/v1/commands/execute\" \\\n  -H 'content-type: application/json' \\\n  -d '{\"command\":\"ctf.collectionId\",\"params\":{\"conditionId\":\"0x0000000000000000000000000000000000000000000000000000000000000000\",\"indexSet\":\"string\",\"parentCollectionId\":\"0x0000000000000000000000000000000000000000000000000000000000000000\"}}'"},{"command":"ctf.positionId","description":"Compute a position ID from collateral token and collection ID","authRequired":false,"enabled":true,"paramsSchema":{"$schema":"http://json-schema.org/draft-07/schema#","type":"object","properties":{"collateral":{"type":"string"},"collectionId":{"type":"string","pattern":"^0x[a-fA-F0-9]{64}$"}},"required":["collateral","collectionId"],"additionalProperties":false},"paramsExample":{"collateral":"string","collectionId":"0x0000000000000000000000000000000000000000000000000000000000000000"},"curlExample":"curl -X POST \"https://polygate.w0x7ce.eu/api/v1/commands/execute\" \\\n  -H 'content-type: application/json' \\\n  -d '{\"command\":\"ctf.positionId\",\"params\":{\"collateral\":\"string\",\"collectionId\":\"0x0000000000000000000000000000000000000000000000000000000000000000\"}}'"},{"command":"ctf.split","description":"Split collateral into outcome tokens","authRequired":true,"enabled":true,"paramsSchema":{"$schema":"http://json-schema.org/draft-07/schema#","type":"object","properties":{"conditionId":{"type":"string","pattern":"^0x[a-fA-F0-9]{64}$"},"amount":{"anyOf":[{"type":"string","minLength":1},{"type":"number","exclusiveMinimum":0}]},"collateral":{"type":"string"},"partition":{"type":"string","minLength":1},"parentCollectionId":{"type":"string","pattern":"^0x[a-fA-F0-9]{64}$"}},"required":["conditionId","amount"],"additionalProperties":false},"paramsExample":{"conditionId":"0x0000000000000000000000000000000000000000000000000000000000000000","amount":"string","collateral":"string","partition":"string","parentCollectionId":"0x0000000000000000000000000000000000000000000000000000000000000000"},"curlExample":"curl -X POST \"https://polygate.w0x7ce.eu/api/v1/commands/execute\" \\\n  -H 'content-type: application/json' \\\n  -d '{\"command\":\"ctf.split\",\"params\":{\"conditionId\":\"0x0000000000000000000000000000000000000000000000000000000000000000\",\"amount\":\"string\",\"collateral\":\"string\",\"partition\":\"string\",\"parentCollectionId\":\"0x0000000000000000000000000000000000000000000000000000000000000000\"}}'"},{"command":"ctf.merge","description":"Merge outcome tokens back into collateral","authRequired":true,"enabled":true,"paramsSchema":{"$schema":"http://json-schema.org/draft-07/schema#","type":"object","properties":{"conditionId":{"type":"string","pattern":"^0x[a-fA-F0-9]{64}$"},"amount":{"anyOf":[{"type":"string","minLength":1},{"type":"number","exclusiveMinimum":0}]},"collateral":{"type":"string"},"partition":{"type":"string","minLength":1},"parentCollectionId":{"type":"string","pattern":"^0x[a-fA-F0-9]{64}$"}},"required":["conditionId","amount"],"additionalProperties":false},"paramsExample":{"conditionId":"0x0000000000000000000000000000000000000000000000000000000000000000","amount":"string","collateral":"string","partition":"string","parentCollectionId":"0x0000000000000000000000000000000000000000000000000000000000000000"},"curlExample":"curl -X POST \"https://polygate.w0x7ce.eu/api/v1/commands/execute\" \\\n  -H 'content-type: application/json' \\\n  -d '{\"command\":\"ctf.merge\",\"params\":{\"conditionId\":\"0x0000000000000000000000000000000000000000000000000000000000000000\",\"amount\":\"string\",\"collateral\":\"string\",\"partition\":\"string\",\"parentCollectionId\":\"0x0000000000000000000000000000000000000000000000000000000000000000\"}}'"},{"command":"ctf.redeem","description":"Redeem winning tokens after market resolution","authRequired":true,"enabled":true,"paramsSchema":{"$schema":"http://json-schema.org/draft-07/schema#","type":"object","properties":{"conditionId":{"type":"string","pattern":"^0x[a-fA-F0-9]{64}$"},"collateral":{"type":"string"},"indexSets":{"type":"string","minLength":1},"parentCollectionId":{"type":"string","pattern":"^0x[a-fA-F0-9]{64}$"}},"required":["conditionId"],"additionalProperties":false},"paramsExample":{"conditionId":"0x0000000000000000000000000000000000000000000000000000000000000000","collateral":"string","indexSets":"string","parentCollectionId":"0x0000000000000000000000000000000000000000000000000000000000000000"},"curlExample":"curl -X POST \"https://polygate.w0x7ce.eu/api/v1/commands/execute\" \\\n  -H 'content-type: application/json' \\\n  -d '{\"command\":\"ctf.redeem\",\"params\":{\"conditionId\":\"0x0000000000000000000000000000000000000000000000000000000000000000\",\"collateral\":\"string\",\"indexSets\":\"string\",\"parentCollectionId\":\"0x0000000000000000000000000000000000000000000000000000000000000000\"}}'"},{"command":"ctf.redeemNegRisk","description":"Redeem neg-risk positions through the adapter","authRequired":true,"enabled":true,"paramsSchema":{"$schema":"http://json-schema.org/draft-07/schema#","type":"object","properties":{"conditionId":{"type":"string","pattern":"^0x[a-fA-F0-9]{64}$"},"amounts":{"type":"string","minLength":1}},"required":["conditionId","amounts"],"additionalProperties":false},"paramsExample":{"conditionId":"0x0000000000000000000000000000000000000000000000000000000000000000","amounts":"string"},"curlExample":"curl -X POST \"https://polygate.w0x7ce.eu/api/v1/commands/execute\" \\\n  -H 'content-type: application/json' \\\n  -d '{\"command\":\"ctf.redeemNegRisk\",\"params\":{\"conditionId\":\"0x0000000000000000000000000000000000000000000000000000000000000000\",\"amounts\":\"string\"}}'"},{"command":"clob.orders","description":"List authenticated open orders","authRequired":true,"enabled":true,"paramsSchema":{"$schema":"http://json-schema.org/draft-07/schema#","type":"object","properties":{"market":{"type":"string"},"asset_id":{"type":"string"},"id":{"type":"string"}},"additionalProperties":false},"paramsExample":{"market":"string","asset_id":"string","id":"string"},"curlExample":"curl -X POST \"https://polygate.w0x7ce.eu/api/v1/commands/execute\" \\\n  -H 'content-type: application/json' \\\n  -d '{\"command\":\"clob.orders\",\"params\":{\"market\":\"string\",\"asset_id\":\"string\",\"id\":\"string\"}}'"},{"command":"clob.order","description":"Get a single authenticated order","authRequired":true,"enabled":true,"paramsSchema":{"$schema":"http://json-schema.org/draft-07/schema#","type":"object","properties":{"orderId":{"type":"string","minLength":1}},"required":["orderId"],"additionalProperties":false},"paramsExample":{"orderId":"string"},"curlExample":"curl -X POST \"https://polygate.w0x7ce.eu/api/v1/commands/execute\" \\\n  -H 'content-type: application/json' \\\n  -d '{\"command\":\"clob.order\",\"params\":{\"orderId\":\"string\"}}'"},{"command":"clob.balance","description":"Get authenticated balance and allowance","authRequired":true,"enabled":true,"paramsSchema":{"$schema":"http://json-schema.org/draft-07/schema#","type":"object","properties":{"assetType":{"type":"string","enum":["collateral","conditional"]},"tokenId":{"type":"string"}},"required":["assetType"],"additionalProperties":false},"paramsExample":{"assetType":"collateral","tokenId":"string"},"curlExample":"curl -X POST \"https://polygate.w0x7ce.eu/api/v1/commands/execute\" \\\n  -H 'content-type: application/json' \\\n  -d '{\"command\":\"clob.balance\",\"params\":{\"assetType\":\"collateral\",\"tokenId\":\"string\"}}'"},{"command":"clob.updateBalance","description":"Refresh authenticated balance and allowance from chain","authRequired":true,"enabled":true,"paramsSchema":{"$schema":"http://json-schema.org/draft-07/schema#","type":"object","properties":{"assetType":{"type":"string","enum":["collateral","conditional"]},"tokenId":{"type":"string"}},"required":["assetType"],"additionalProperties":false},"paramsExample":{"assetType":"collateral","tokenId":"string"},"curlExample":"curl -X POST \"https://polygate.w0x7ce.eu/api/v1/commands/execute\" \\\n  -H 'content-type: application/json' \\\n  -d '{\"command\":\"clob.updateBalance\",\"params\":{\"assetType\":\"collateral\",\"tokenId\":\"string\"}}'"},{"command":"clob.trades","description":"Get authenticated trade history","authRequired":true,"enabled":true,"paramsSchema":{"$schema":"http://json-schema.org/draft-07/schema#","type":"object","properties":{"market":{"type":"string"},"asset_id":{"type":"string"},"maker_address":{"type":"string"},"limit":{"type":"integer","minimum":1,"maximum":10000}},"additionalProperties":false},"paramsExample":{"market":"string","asset_id":"string","maker_address":"string","limit":1},"curlExample":"curl -X POST \"https://polygate.w0x7ce.eu/api/v1/commands/execute\" \\\n  -H 'content-type: application/json' \\\n  -d '{\"command\":\"clob.trades\",\"params\":{\"market\":\"string\",\"asset_id\":\"string\",\"maker_address\":\"string\",\"limit\":1}}'"},{"command":"clob.createApiKey","description":"Create or derive authenticated API key","authRequired":true,"enabled":true,"paramsSchema":{"$schema":"http://json-schema.org/draft-07/schema#","type":"object","properties":{"nonce":{"type":"integer","minimum":0,"maximum":9007199254740991}},"additionalProperties":false},"paramsExample":{"nonce":1},"curlExample":"curl -X POST \"https://polygate.w0x7ce.eu/api/v1/commands/execute\" \\\n  -H 'content-type: application/json' \\\n  -d '{\"command\":\"clob.createApiKey\",\"params\":{\"nonce\":1}}'"},{"command":"clob.createOrder","description":"Create and post a limit order","authRequired":true,"enabled":true,"paramsSchema":{"$schema":"http://json-schema.org/draft-07/schema#","type":"object","properties":{"tokenID":{"type":"string","minLength":1},"price":{"type":"number","exclusiveMinimum":0,"maximum":1},"size":{"type":"number","exclusiveMinimum":0},"side":{"type":"string","enum":["BUY","SELL"]},"feeRateBps":{"type":"integer","minimum":0,"maximum":9007199254740991},"nonce":{"type":"integer","minimum":0,"maximum":9007199254740991},"expiration":{"type":"integer","minimum":0,"maximum":9007199254740991},"taker":{"type":"string"},"orderType":{"type":"string","enum":["GTC","GTD","FOK","FAK"]},"postOnly":{"type":"boolean"}},"required":["tokenID","price","size","side"],"additionalProperties":false},"paramsExample":{"tokenID":"string","price":1,"size":1,"side":"BUY","feeRateBps":1,"nonce":1,"expiration":1,"taker":"string","orderType":"GTC","postOnly":false},"curlExample":"curl -X POST \"https://polygate.w0x7ce.eu/api/v1/commands/execute\" \\\n  -H 'content-type: application/json' \\\n  -d '{\"command\":\"clob.createOrder\",\"params\":{\"tokenID\":\"string\",\"price\":1,\"size\":1,\"side\":\"BUY\",\"feeRateBps\":1,\"nonce\":1,\"expiration\":1,\"taker\":\"string\",\"orderType\":\"GTC\",\"postOnly\":false}}'"},{"command":"clob.postOrders","description":"Create and post multiple limit orders","authRequired":true,"enabled":true,"paramsSchema":{"$schema":"http://json-schema.org/draft-07/schema#","type":"object","properties":{"orders":{"minItems":1,"maxItems":50,"type":"array","items":{"type":"object","properties":{"tokenID":{"type":"string","minLength":1},"price":{"type":"number","exclusiveMinimum":0,"maximum":1},"size":{"type":"number","exclusiveMinimum":0},"side":{"type":"string","enum":["BUY","SELL"]},"feeRateBps":{"type":"integer","minimum":0,"maximum":9007199254740991},"nonce":{"type":"integer","minimum":0,"maximum":9007199254740991},"expiration":{"type":"integer","minimum":0,"maximum":9007199254740991},"taker":{"type":"string"},"orderType":{"type":"string","enum":["GTC","GTD","FOK","FAK"]},"postOnly":{"type":"boolean"}},"required":["tokenID","price","size","side"],"additionalProperties":false}},"defaultOrderType":{"type":"string","enum":["GTC","GTD","FOK","FAK"]},"deferExec":{"type":"boolean"},"defaultPostOnly":{"type":"boolean"}},"required":["orders"],"additionalProperties":false},"paramsExample":{"orders":[{"tokenID":"string","price":1,"size":1,"side":"BUY","feeRateBps":1,"nonce":1,"expiration":1,"taker":"string","orderType":"GTC","postOnly":false}],"defaultOrderType":"GTC","deferExec":false,"defaultPostOnly":false},"curlExample":"curl -X POST \"https://polygate.w0x7ce.eu/api/v1/commands/execute\" \\\n  -H 'content-type: application/json' \\\n  -d '{\"command\":\"clob.postOrders\",\"params\":{\"orders\":[{\"tokenID\":\"string\",\"price\":1,\"size\":1,\"side\":\"BUY\",\"feeRateBps\":1,\"nonce\":1,\"expiration\":1,\"taker\":\"string\",\"orderType\":\"GTC\",\"postOnly\":false}],\"defaultOrderType\":\"GTC\",\"deferExec\":false,\"defaultPostOnly\":false}}'"},{"command":"clob.createMarketOrder","description":"Create and post a market order","authRequired":true,"enabled":true,"paramsSchema":{"$schema":"http://json-schema.org/draft-07/schema#","type":"object","properties":{"tokenID":{"type":"string","minLength":1},"amount":{"type":"number","exclusiveMinimum":0},"side":{"type":"string","enum":["BUY","SELL"]},"price":{"type":"number","exclusiveMinimum":0,"maximum":1},"feeRateBps":{"type":"integer","minimum":0,"maximum":9007199254740991},"nonce":{"type":"integer","minimum":0,"maximum":9007199254740991},"taker":{"type":"string"},"orderType":{"type":"string","enum":["FOK","FAK"]}},"required":["tokenID","amount","side"],"additionalProperties":false},"paramsExample":{"tokenID":"string","amount":1,"side":"BUY","price":1,"feeRateBps":1,"nonce":1,"taker":"string","orderType":"FOK"},"curlExample":"curl -X POST \"https://polygate.w0x7ce.eu/api/v1/commands/execute\" \\\n  -H 'content-type: application/json' \\\n  -d '{\"command\":\"clob.createMarketOrder\",\"params\":{\"tokenID\":\"string\",\"amount\":1,\"side\":\"BUY\",\"price\":1,\"feeRateBps\":1,\"nonce\":1,\"taker\":\"string\",\"orderType\":\"FOK\"}}'"},{"command":"clob.cancelOrder","description":"Cancel a single order","authRequired":true,"enabled":true,"paramsSchema":{"$schema":"http://json-schema.org/draft-07/schema#","type":"object","properties":{"orderId":{"type":"string","minLength":1}},"required":["orderId"],"additionalProperties":false},"paramsExample":{"orderId":"string"},"curlExample":"curl -X POST \"https://polygate.w0x7ce.eu/api/v1/commands/execute\" \\\n  -H 'content-type: application/json' \\\n  -d '{\"command\":\"clob.cancelOrder\",\"params\":{\"orderId\":\"string\"}}'"},{"command":"clob.cancelOrders","description":"Cancel multiple orders","authRequired":true,"enabled":true,"paramsSchema":{"$schema":"http://json-schema.org/draft-07/schema#","type":"object","properties":{"orderIds":{"type":"string","minLength":1}},"required":["orderIds"],"additionalProperties":false},"paramsExample":{"orderIds":"string"},"curlExample":"curl -X POST \"https://polygate.w0x7ce.eu/api/v1/commands/execute\" \\\n  -H 'content-type: application/json' \\\n  -d '{\"command\":\"clob.cancelOrders\",\"params\":{\"orderIds\":\"string\"}}'"},{"command":"clob.cancelAll","description":"Cancel all open orders","authRequired":true,"enabled":true,"paramsSchema":{"$schema":"http://json-schema.org/draft-07/schema#","type":"object","properties":{},"additionalProperties":false},"paramsExample":{},"curlExample":"curl -X POST \"https://polygate.w0x7ce.eu/api/v1/commands/execute\" \\\n  -H 'content-type: application/json' \\\n  -d '{\"command\":\"clob.cancelAll\",\"params\":{}}'"},{"command":"clob.cancelMarket","description":"Cancel all orders for a market or asset","authRequired":true,"enabled":true,"paramsSchema":{"$schema":"http://json-schema.org/draft-07/schema#","type":"object","properties":{"market":{"type":"string"},"asset_id":{"type":"string"}},"additionalProperties":false},"paramsExample":{"market":"string","asset_id":"string"},"curlExample":"curl -X POST \"https://polygate.w0x7ce.eu/api/v1/commands/execute\" \\\n  -H 'content-type: application/json' \\\n  -d '{\"command\":\"clob.cancelMarket\",\"params\":{\"market\":\"string\",\"asset_id\":\"string\"}}'"},{"command":"clob.notifications","description":"List authenticated notifications","authRequired":true,"enabled":true,"paramsSchema":{"$schema":"http://json-schema.org/draft-07/schema#","type":"object","properties":{},"additionalProperties":false},"paramsExample":{},"curlExample":"curl -X POST \"https://polygate.w0x7ce.eu/api/v1/commands/execute\" \\\n  -H 'content-type: application/json' \\\n  -d '{\"command\":\"clob.notifications\",\"params\":{}}'"},{"command":"clob.deleteNotifications","description":"Delete authenticated notifications by IDs or all when omitted","authRequired":true,"enabled":true,"paramsSchema":{"$schema":"http://json-schema.org/draft-07/schema#","type":"object","properties":{"ids":{"type":"string","minLength":1}},"additionalProperties":false},"paramsExample":{"ids":"string"},"curlExample":"curl -X POST \"https://polygate.w0x7ce.eu/api/v1/commands/execute\" \\\n  -H 'content-type: application/json' \\\n  -d '{\"command\":\"clob.deleteNotifications\",\"params\":{\"ids\":\"string\"}}'"},{"command":"clob.rewards","description":"List authenticated daily reward earnings","authRequired":true,"enabled":true,"paramsSchema":{"$schema":"http://json-schema.org/draft-07/schema#","type":"object","properties":{"date":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"}},"required":["date"],"additionalProperties":false},"paramsExample":{"date":"string"},"curlExample":"curl -X POST \"https://polygate.w0x7ce.eu/api/v1/commands/execute\" \\\n  -H 'content-type: application/json' \\\n  -d '{\"command\":\"clob.rewards\",\"params\":{\"date\":\"string\"}}'"},{"command":"clob.earnings","description":"Get authenticated daily total earnings","authRequired":true,"enabled":true,"paramsSchema":{"$schema":"http://json-schema.org/draft-07/schema#","type":"object","properties":{"date":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"}},"required":["date"],"additionalProperties":false},"paramsExample":{"date":"string"},"curlExample":"curl -X POST \"https://polygate.w0x7ce.eu/api/v1/commands/execute\" \\\n  -H 'content-type: application/json' \\\n  -d '{\"command\":\"clob.earnings\",\"params\":{\"date\":\"string\"}}'"},{"command":"clob.earningsMarkets","description":"Get authenticated earnings with reward market config","authRequired":true,"enabled":true,"paramsSchema":{"$schema":"http://json-schema.org/draft-07/schema#","type":"object","properties":{"date":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"orderBy":{"type":"string"},"position":{"type":"string"},"noCompetition":{"type":"boolean"}},"required":["date"],"additionalProperties":false},"paramsExample":{"date":"string","orderBy":"string","position":"string","noCompetition":false},"curlExample":"curl -X POST \"https://polygate.w0x7ce.eu/api/v1/commands/execute\" \\\n  -H 'content-type: application/json' \\\n  -d '{\"command\":\"clob.earningsMarkets\",\"params\":{\"date\":\"string\",\"orderBy\":\"string\",\"position\":\"string\",\"noCompetition\":false}}'"},{"command":"clob.rewardPercentages","description":"Get authenticated reward percentages","authRequired":true,"enabled":true,"paramsSchema":{"$schema":"http://json-schema.org/draft-07/schema#","type":"object","properties":{},"additionalProperties":false},"paramsExample":{},"curlExample":"curl -X POST \"https://polygate.w0x7ce.eu/api/v1/commands/execute\" \\\n  -H 'content-type: application/json' \\\n  -d '{\"command\":\"clob.rewardPercentages\",\"params\":{}}'"},{"command":"clob.currentRewards","description":"List current reward programs","authRequired":false,"enabled":true,"paramsSchema":{"$schema":"http://json-schema.org/draft-07/schema#","type":"object","properties":{},"additionalProperties":false},"paramsExample":{},"curlExample":"curl -X POST \"https://polygate.w0x7ce.eu/api/v1/commands/execute\" \\\n  -H 'content-type: application/json' \\\n  -d '{\"command\":\"clob.currentRewards\",\"params\":{}}'"},{"command":"clob.marketReward","description":"Get reward program details for a market","authRequired":false,"enabled":true,"paramsSchema":{"$schema":"http://json-schema.org/draft-07/schema#","type":"object","properties":{"conditionId":{"type":"string","minLength":1}},"required":["conditionId"],"additionalProperties":false},"paramsExample":{"conditionId":"string"},"curlExample":"curl -X POST \"https://polygate.w0x7ce.eu/api/v1/commands/execute\" \\\n  -H 'content-type: application/json' \\\n  -d '{\"command\":\"clob.marketReward\",\"params\":{\"conditionId\":\"string\"}}'"},{"command":"clob.orderScoring","description":"Check whether an order is scoring rewards","authRequired":true,"enabled":true,"paramsSchema":{"$schema":"http://json-schema.org/draft-07/schema#","type":"object","properties":{"orderId":{"type":"string","minLength":1}},"required":["orderId"],"additionalProperties":false},"paramsExample":{"orderId":"string"},"curlExample":"curl -X POST \"https://polygate.w0x7ce.eu/api/v1/commands/execute\" \\\n  -H 'content-type: application/json' \\\n  -d '{\"command\":\"clob.orderScoring\",\"params\":{\"orderId\":\"string\"}}'"},{"command":"clob.ordersScoring","description":"Check whether multiple orders are scoring rewards","authRequired":true,"enabled":true,"paramsSchema":{"$schema":"http://json-schema.org/draft-07/schema#","type":"object","properties":{"orderIds":{"type":"string","minLength":1}},"required":["orderIds"],"additionalProperties":false},"paramsExample":{"orderIds":"string"},"curlExample":"curl -X POST \"https://polygate.w0x7ce.eu/api/v1/commands/execute\" \\\n  -H 'content-type: application/json' \\\n  -d '{\"command\":\"clob.ordersScoring\",\"params\":{\"orderIds\":\"string\"}}'"},{"command":"clob.apiKeys","description":"List authenticated API keys","authRequired":true,"enabled":true,"paramsSchema":{"$schema":"http://json-schema.org/draft-07/schema#","type":"object","properties":{},"additionalProperties":false},"paramsExample":{},"curlExample":"curl -X POST \"https://polygate.w0x7ce.eu/api/v1/commands/execute\" \\\n  -H 'content-type: application/json' \\\n  -d '{\"command\":\"clob.apiKeys\",\"params\":{}}'"},{"command":"clob.deleteApiKey","description":"Delete the current authenticated API key","authRequired":true,"enabled":true,"paramsSchema":{"$schema":"http://json-schema.org/draft-07/schema#","type":"object","properties":{},"additionalProperties":false},"paramsExample":{},"curlExample":"curl -X POST \"https://polygate.w0x7ce.eu/api/v1/commands/execute\" \\\n  -H 'content-type: application/json' \\\n  -d '{\"command\":\"clob.deleteApiKey\",\"params\":{}}'"},{"command":"clob.accountStatus","description":"Get authenticated account status","authRequired":true,"enabled":true,"paramsSchema":{"$schema":"http://json-schema.org/draft-07/schema#","type":"object","properties":{},"additionalProperties":false},"paramsExample":{},"curlExample":"curl -X POST \"https://polygate.w0x7ce.eu/api/v1/commands/execute\" \\\n  -H 'content-type: application/json' \\\n  -d '{\"command\":\"clob.accountStatus\",\"params\":{}}'"}]}}