sge_list_contracts

Pack: sge-quotes · Connect: https://pipeworx.io/mcp (see Connect below for a single-pack URL)

No MCP client? Call it directly: GET https://gateway.pipeworx.io/v1/tools/sge_list_contracts for the schema, then POST the same URL with its arguments for the data.

Contracts the Shanghai Gold Exchange quoted on a trading day (default latest), with the price unit of each and whether it traded that day. Use it to find the exact contract code for sge_daily_quote.

Parameters

NameTypeRequiredDescription
datestringnoTrading date YYYY-MM-DD. Defaults to the latest trading day.

Example call

Arguments

{}

curl

curl -X POST https://gateway.pipeworx.io/sge-quotes/mcp \
  -H 'Content-Type: application/json' \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"sge_list_contracts","arguments":{}}}'

TypeScript (@pipeworx/sdk)

import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();

const result = await pipeworx.call('sge_list_contracts', {});

More examples

{
  "date": "2026-11-27"
}

Response shape

FieldTypeDescription
sourcestring
requested_datestring
publishedboolean
trading_datestring
messagestring
countnumber
contractsarray
Full JSON Schema
{
  "type": "object",
  "properties": {
    "source": {
      "type": "string"
    },
    "requested_date": {
      "type": "string"
    },
    "published": {
      "type": "boolean"
    },
    "trading_date": {
      "type": "string"
    },
    "message": {
      "type": "string"
    },
    "count": {
      "type": "number"
    },
    "contracts": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "contract": {
            "type": "string"
          },
          "price_unit": {
            "type": "string"
          },
          "status": {
            "type": "string"
          }
        },
        "additionalProperties": true
      }
    }
  },
  "additionalProperties": true
}

Connect

Add this to your MCP client config — every tool in the catalog, including this one — or use one-click install buttons:

{
  "mcpServers": {
    "pipeworx": {
      "url": "https://pipeworx.io/mcp"
    }
  }
}
Connect to just the sge-quotes pack
{
  "mcpServers": {
    "sge-quotes": {
      "url": "https://gateway.pipeworx.io/sge-quotes/mcp"
    }
  }
}

See Getting Started for client-specific install steps.

Regenerated from source · build November 28, 2026