previous_close
Pack: polygon-io · Endpoint: https://gateway.pipeworx.io/polygon-io/mcp
Fetch the previous trading session’s open, high, low, close, and volume for a US stock ticker from Polygon.io.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
ticker | string | yes | |
adjusted | boolean | no |
Example call
Arguments
{
"ticker": "GOOGL"
}
curl
curl -X POST https://gateway.pipeworx.io/polygon-io/mcp \
-H 'Content-Type: application/json' \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"previous_close","arguments":{"ticker":"GOOGL"}}}'
TypeScript (@pipeworx/sdk)
import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();
const result = await pipeworx.call('previous_close', {
"ticker": "GOOGL"
});
Response shape
| Field | Type | Description |
|---|---|---|
ticker | string | Ticker symbol |
status | string | API response status |
adjusted | boolean | Whether data is adjusted |
results | array | Previous close data |
count | number | Number of results |
Full JSON Schema
{
"type": "object",
"properties": {
"ticker": {
"type": "string",
"description": "Ticker symbol"
},
"status": {
"type": "string",
"description": "API response status"
},
"adjusted": {
"type": "boolean",
"description": "Whether data is adjusted"
},
"results": {
"type": "array",
"description": "Previous close data",
"items": {
"type": "object",
"properties": {
"c": {
"type": "number",
"description": "Close price"
},
"h": {
"type": "number",
"description": "High price"
},
"l": {
"type": "number",
"description": "Low price"
},
"o": {
"type": "number",
"description": "Open price"
},
"v": {
"type": "number",
"description": "Volume"
},
"vw": {
"type": "number",
"description": "Volume weighted average"
},
"t": {
"type": "number",
"description": "Timestamp"
},
"n": {
"type": "number",
"description": "Number of transactions"
}
}
}
},
"count": {
"type": "number",
"description": "Number of results"
}
}
}
Connect
Add this to your MCP client config, or use one-click install buttons:
{
"mcpServers": {
"polygon-io": {
"url": "https://gateway.pipeworx.io/polygon-io/mcp"
}
}
}
See Getting Started for client-specific install steps.