Capital Companion
Capital Companion · Ações GPT
Capital Companion API
Capital Companion API
GET /history/{symbol}Get Stock HistoryGet Stock History by Symbol
GET /stats/{symbol}Get Stock StatsGet Stock Statistics by Symbol
GET /quote/{symbol}Get Stock QuoteGet Stock Quote by Symbol
Esquema API original
{
"openapi": "3.1.0",
"info": {
"title": "Capital Companion API",
"description": "Capital Companion API",
"version": "2.0.3"
},
"servers": [
{
"url": "https://capitalcompanion.io",
"description": "Capital Companion API"
}
],
"paths": {
"/history/{symbol}": {
"get": {
"summary": "Get Stock History",
"description": "Get Stock History by Symbol",
"operationId": "get_stock_history_history__symbol__get",
"security": [
{
"APIKeyHeader": []
}
],
"parameters": [
{
"name": "symbol",
"in": "path",
"required": true,
"schema": {
"type": "string",
"title": "Symbol"
}
}
],
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
}
},
"/stats/{symbol}": {
"get": {
"summary": "Get Stock Stats",
"description": "Get Stock Statistics by Symbol",
"operationId": "get_stock_stats_stats__symbol__get",
"security": [
{
"APIKeyHeader": []
}
],
"parameters": [
{
"name": "symbol",
"in": "path",
"required": true,
"schema": {
"type": "string",
"title": "Symbol"
}
}
],
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
}
},
"/quote/{symbol}": {
"get": {
"summary": "Get Stock Quote",
"description": "Get Stock Quote by Symbol",
"operationId": "get_stock_quote_quote__symbol__get",
"security": [
{
"APIKeyHeader": []
}
],
"parameters": [
{
"name": "symbol",
"in": "path",
"required": true,
"schema": {
"type": "string",
"title": "Symbol"
}
}
],
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
}
}
},
"components": {
"schemas": {
"HTTPValidationError": {
"properties": {
"detail": {
"items": {
"$ref": "#/components/schemas/ValidationError"
},
"type": "array",
"title": "Detail"
}
},
"type": "object",
"title": "HTTPValidationError"
},
"ValidationError": {
"properties": {
"loc": {
"items": {
"anyOf": [
{
"type": "string"
},
{
"type": "integer"
}
]
},
"type": "array",
"title": "Location"
},
"msg": {
"type": "string",
"title": "Message"
},
"type": {
"type": "string",
"title": "Error Type"
}
},
"type": "object",
"required": [
"loc",
"msg",
"type"
],
"title": "ValidationError"
}
},
"securitySchemes": {
"APIKeyHeader": {
"type": "apiKey",
"in": "header",
"name": "X-API-KEY"
}
}
}
}