Real-Time Crypto Analytics

Real-Time Crypto Analytics · GPT Actions

Oraclus AI API

Oraclus AI Assistant API provides access to AI endpoints.

  • POST /v1/aiPost AI Question
原始 API 定义
{
  "openapi": "3.1.0",
  "info": {
    "title": "Oraclus AI API",
    "description": "Oraclus AI Assistant API provides access to AI endpoints.",
    "version": "0.0.1"
  },
  "servers": [
    {
      "url": "https://ai.oraclus.com"
    }
  ],
  "paths": {
    "/v1/ai": {
      "post": {
        "tags": [
          "ai"
        ],
        "summary": "Post AI Question",
        "operationId": "post_ai_question_v1_ai_post",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "question": {
                    "type": "string",
                    "example": "What is the Bitcoin price?"
                  }
                },
                "required": [
                  "question"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "session_id": {
                      "type": "string",
                      "example": "33e28d7e-0ef3-4e0e-bc43-c71efc08a42a"
                    },
                    "response": {
                      "type": "string",
                      "example": "The current price of Bitcoin (BTC) is approximately $65,859.02 USD."
                    }
                  }
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "detail": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "loc": {
                            "type": "array",
                            "items": {
                              "type": "string"
                            }
                          },
                          "msg": {
                            "type": "string"
                          },
                          "type": {
                            "type": "string"
                          }
                        },
                        "required": [
                          "loc",
                          "msg",
                          "type"
                        ]
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}

Oraclus API integrations

Your OpenAPI specification

  • GET /api/netflow/report/{blockchain}/netflow_report_retrieve
原始 API 定义
{
  "openapi": "3.1.0",
  "info": {
    "title": "Oraclus API integrations",
    "description": "Your OpenAPI specification",
    "version": "v1.0.0"
  },
  "servers": [
    {
      "url": "https://api-netflow.oraclus.com"
    }
  ],
  "paths": {
    "/api/netflow/report/{blockchain}/": {
      "get": {
        "operationId": "netflow_report_retrieve",
        "parameters": [
          {
            "in": "path",
            "name": "blockchain",
            "schema": {
              "type": "string",
              "enum": [
                "bitcoin",
                "ethereum"
              ]
            },
            "required": true,
            "description": "The blockchain system to retrieve the netflow report for."
          }
        ],
        "tags": [
          "netflow"
        ],
        "security": [
          {
            "basicAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Successful operation",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NetFlowReport"
                }
              }
            }
          },
          "400": {
            "description": "Invalid request"
          },
          "404": {
            "description": "Blockchain not supported"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "NetFlowReport": {
        "type": "object",
        "properties": {
          "transactions": {
            "type": "integer",
            "description": "Total number of transactions"
          },
          "volume": {
            "type": "number",
            "format": "float",
            "description": "Total transaction volume"
          }
        },
        "description": "A report containing details about netflow on a specific blockchain"
      }
    },
    "securitySchemes": {
      "basicAuth": {
        "type": "http",
        "scheme": "basic"
      }
    }
  }
}