Skymith Open API 1.0.0¶
Skymith Open API allows for effortless research on any topic.
Research¶
The research features are divided into two modes: speed and quality.
Speed vs Quality¶
Mode | Time | Output | Use Case |
---|---|---|---|
Speed | Around 12 seconds | Final response + References + Keywords | Day-to- |
day questions and real-time applications. | |||
Quality | Around 1.5 minutes | Final response + References + Keywords + Up to | |
5 Complete Sub-Queries Answered | Complex questions, in-depth research, and non- | ||
real-time applications (e.g., news). |
Finance-Specific Endpoints¶
Skymith Open API was born from GPTStonks, so we include the most relevant finance-related endpoints used in GPTStonks. They take only a few seconds to respond, as the answers are cached.
agents¶
GET /service/agents/research¶
Get Research
Asynchronous endpoint for fast intelligent web surfing.
Args:
-
query (
str
): user query to research and answer. -
timelimit (
str
): how old are the posts retrieved from the Internet. One of d, w, m, y. Defaults to one week old.
Input parameters
Parameter | In | Type | Nullable | Description |
---|---|---|---|---|
OAuth2PasswordBearer | header | string | No | |
query | query | string | No | |
timelimit | query | string | No |
Responses
200 Successful Response
{
"type": "string",
"body": "string",
"follow_up_questions": null,
"references": null,
"intermediate_steps": null,
"keywords": null
}
Schema of the response body
{
"properties": {
"type": {
"type": "string",
"title": "Type"
},
"body": {
"type": "string",
"title": "Body"
},
"follow_up_questions": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"title": "Follow Up Questions"
},
"references": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"title": "References"
},
"intermediate_steps": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Intermediate Steps"
},
"keywords": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"title": "Keywords"
}
},
"type": "object",
"required": [
"type",
"body"
],
"title": "BaseAgentResponse",
"description": "Model to define the base response parameters."
}
422 Validation Error
finance_recommender¶
GET /recommend/me/concept¶
Recommend Me Financial Concept
Explain financial concepts to users.
The concept is updated every day. The concept is retrieved in the language of your account, but it is faster in English (i.e., without any token).
Input parameters
Parameter | In | Type | Nullable | Description |
---|---|---|---|---|
token | query | None | No |
Responses
200 Successful Response
{
"content_presented": "string",
"follow_up_questions": null,
"references": null,
"intermediate_steps": null,
"keywords": [
"string"
],
"title": "string",
"timestamp": "2022-04-13T15:42:05.901Z",
"unique_id": null
}
Schema of the response body
{
"properties": {
"content_presented": {
"type": "string",
"title": "Content Presented",
"description": "content sent to the final user"
},
"follow_up_questions": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"title": "Follow Up Questions"
},
"references": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"title": "References"
},
"intermediate_steps": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Intermediate Steps"
},
"keywords": {
"items": {
"type": "string"
},
"type": "array",
"title": "Keywords",
"description": "securities mentioned in the response",
"default": []
},
"title": {
"type": "string",
"title": "Title",
"description": "title of the content"
},
"timestamp": {
"type": "string",
"format": "date-time",
"title": "Timestamp",
"description": "when the content presented was ingested into Mongo"
},
"unique_id": {
"anyOf": [
{
"type": "string",
"format": "uuid"
},
{
"type": "null"
}
],
"title": "Unique Id",
"description": "unique identifier for the conversation, if any"
}
},
"type": "object",
"required": [
"content_presented",
"title",
"timestamp"
],
"title": "ContentPresentedOut",
"description": "Model to send an educational concept."
}
422 Validation Error
GET /recommend/open/news¶
Recommend Open News Article
Provide a detailed explanation of the most relevant news of the day.
Updated twice per day. The concept is retrieved in the language of your account, but it is faster in English (i.e., without any token).
Input parameters
Parameter | In | Type | Nullable | Description |
---|---|---|---|---|
token | query | None | No | |
unique_id | query | None | No |
Responses
200 Successful Response
{
"content_presented": "string",
"follow_up_questions": null,
"references": null,
"intermediate_steps": null,
"keywords": [
"string"
],
"title": "string",
"timestamp": "2022-04-13T15:42:05.901Z",
"unique_id": null
}
Schema of the response body
{
"properties": {
"content_presented": {
"type": "string",
"title": "Content Presented",
"description": "content sent to the final user"
},
"follow_up_questions": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"title": "Follow Up Questions"
},
"references": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"title": "References"
},
"intermediate_steps": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Intermediate Steps"
},
"keywords": {
"items": {
"type": "string"
},
"type": "array",
"title": "Keywords",
"description": "securities mentioned in the response",
"default": []
},
"title": {
"type": "string",
"title": "Title",
"description": "title of the content"
},
"timestamp": {
"type": "string",
"format": "date-time",
"title": "Timestamp",
"description": "when the content presented was ingested into Mongo"
},
"unique_id": {
"anyOf": [
{
"type": "string",
"format": "uuid"
},
{
"type": "null"
}
],
"title": "Unique Id",
"description": "unique identifier for the conversation, if any"
}
},
"type": "object",
"required": [
"content_presented",
"title",
"timestamp"
],
"title": "ContentPresentedOut",
"description": "Model to send an educational concept."
}
422 Validation Error
GET /recommend/open/titles/all¶
Recover Open News Ids
Return all the titles of the news of the past 7 days, with their UUIDs.
Max. 100 news.
Input parameters
Parameter | In | Type | Nullable | Description |
---|---|---|---|---|
timedelta_days | query | integer | No | |
token | query | None | No |
Responses
200 Successful Response
422 Validation Error
POST /recommend/query/widgets¶
Recommend Query Widgets
Recommend TradingView widgets based on the given query.
Args:
- query_in (
str
): text to retrieve the widgets with. E.g., news about Google will retrieve news widgets and possibly some related to Google stock price.
Input parameters
Parameter | In | Type | Nullable | Description |
---|---|---|---|---|
OAuth2PasswordBearer | header | string | No |
Request body
Responses
200 Successful Response
Schema of the response body
{
"items": {
"$ref": "#/components/schemas/RootModel_Union_TechnicalAnalysisTVWidget__TopStoriesTVWidget__FundamentalAnalysisTVWidget__ScreenerTVWidget__StockMarketTVWidget__BaseTVWidget__"
},
"type": "array",
"title": "RootModel[list[RootModel[Union[TechnicalAnalysisTVWidget, TopStoriesTVWidget, FundamentalAnalysisTVWidget, ScreenerTVWidget, StockMarketTVWidget, BaseTVWidget]]]]"
}
422 Validation Error
Schemas¶
BaseAgentResponse¶
Name | Type |
---|---|
body | string |
follow_up_questions | |
intermediate_steps | |
keywords | |
references | |
type | string |
BaseTVWidget¶
Name | Type |
---|---|
name | string |
ContentPresentedOut¶
Name | Type |
---|---|
content_presented | string |
follow_up_questions | |
intermediate_steps | |
keywords | Array<string> |
references | |
timestamp | string(date-time) |
title | string |
unique_id |
EnumerationContentPresentedOut¶
Name | Type |
---|---|
title | string |
unique_id | string(uuid) |
FundamentalAnalysisTVWidget¶
Name | Type |
---|---|
name | string |
symbol | string |
HTTPValidationError¶
Name | Type |
---|---|
detail | Array<Schema(ValidationError)> |
QueryIn¶
Name | Type |
---|---|
query | string |
RootModel_list_RootModel_Union_TechnicalAnalysisTVWidget__TopStoriesTVWidget__FundamentalAnalysisTVWidget__ScreenerTVWidget__StockMarketTVWidget__BaseTVWidget____¶
Type: Array<Schema(RootModel_Union_TechnicalAnalysisTVWidget__TopStoriesTVWidget__FundamentalAnalysisTVWidget__ScreenerTVWidget__StockMarketTVWidget__BaseTVWidget__)>
RootModel_Union_TechnicalAnalysisTVWidget__TopStoriesTVWidget__FundamentalAnalysisTVWidget__ScreenerTVWidget__StockMarketTVWidget__BaseTVWidget__¶
Type:
ScreenerTVWidget¶
Name | Type |
---|---|
market | string |
name | string |
StockMarketTVWidget¶
Name | Type |
---|---|
exchange | string |
name | string |
TechnicalAnalysisTVWidget¶
Name | Type |
---|---|
interval | string |
name | string |
symbol | string |
TopStoriesTVWidget¶
Name | Type |
---|---|
feedMode | string |
market | |
name | string |
symbol |
ValidationError¶
Name | Type |
---|---|
loc | Array<> |
msg | string |
type | string |
Security schemes¶
Name | Type | Scheme | Description |
---|---|---|---|
OAuth2PasswordBearer | oauth2 |