# Generated by ShowAPI OpenAPI generator
# source: market/1108
# generated-at: 2026-06-26T06:25:52.172Z
openapi: 3.0.3
info:
  title: 国际原油价格查询
  description: 国际原油价格查询API为您提供关于WTI和布伦特两种原油品种的昨日价格数据。包括昨日结算价、开盘价、最高价、最低价以及价格变化幅度等数据。通过我们的API，您可以轻松获取到这些重要指标，帮助您了解原油市场的走势和趋势。无论是进行市场分析，还是做出相关的商业决策，都能为您提供参考数据支持。
  termsOfService: https://www.showapi.com/helpcenter/view#/4019/2
  version: 1.0.0
servers:
  - url: https://route.showapi.com
paths:
  /1108-2:
    x-pointCode: 2
    x-mode: mapping
    x-read-timeout: 5
    x-connect-timeout: 5
    post:
      summary: 原油历史日报查询
      description: 原油历史日报查询api接入点可根据时间范围查询日报历史数据。
      responses:
        "200":
          description: 成功响应
          content:
            application/json:
              schema:
                allOf:
                  - $ref: "#/components/schemas/ShowapiResEnvelope"
                  - type: object
                    properties:
                      showapi_res_body:
                        type: object
                        properties:
                          list:
                            type: array
                            items:
                              type: object
                              properties:
                                close_price:
                                  type: string
                                  description: 当日收盘价
                                open_price:
                                  type: string
                                  description: 当日开盘价
                                max:
                                  type: string
                                  description: 最高值
                                min:
                                  type: string
                                  description: 最小值
                                trade_num:
                                  type: string
                                  description: 交易数量
                                diff:
                                  type: string
                                  description: 涨跌幅
                                code:
                                  type: string
                                  description: 油编码，有blt和wti
                                day:
                                  type: string
                                  description: 日期
                            description: 日报历史对象
                          ret_code:
                            type: string
                            description: 接口调用量扣减标识,0标识扣费,其他值不扣费
                        description: 业务返回体
      operationId: 1108_2_POST
      parameters: []
      requestBody:
        content:
          application/x-www-form-urlencoded:
            schema:
              type: object
              properties:
                code:
                  type: string
                  description: wti： WTI原油（NYMEX原油）<br>blt：布伦特原油
                begin:
                  type: string
                  description: 开始时间，格式yyyyMMdd
                end:
                  type: string
                  description: 结束时间，格式yyyyMMdd
              required:
                - code
                - begin
                - end
  /1108-1:
    x-pointCode: 1
    x-mode: mapping
    x-read-timeout: 11
    x-connect-timeout: 11
    post:
      summary: 国际原油价格查询
      description: 国际原油价格查询API接入点允许用户查询全球原油市场的价格变动情况。可以帮助用户更好地了解全球原油市场的动态，为相关的决策提供数据参考。
      responses:
        "200":
          description: 成功响应
          content:
            application/json:
              schema:
                allOf:
                  - $ref: "#/components/schemas/ShowapiResEnvelope"
                  - type: object
                    properties:
                      showapi_res_body:
                        type: object
                        properties:
                          nowPrice:
                            type: number
                            description: 当前价格，单位 美元/桶
                          yestoday_closePrice:
                            type: string
                            description: 昨日结算价
                          today_openPrice:
                            type: string
                            description: 今日开盘价
                          todayMax:
                            type: string
                            description: 今日最高价
                          todayMin:
                            type: string
                            description: 今日最低价
                          diff_num:
                            type: string
                            description: 涨跌金额
                          diff_rate:
                            type: string
                            description: 涨跌幅度
                          time:
                            type: string
                            description: 发布时间
                          stockNum:
                            type: string
                            description: 持仓量 单位千桶
                          name:
                            type: string
                            description: 原油名称
                          ret_code:
                            type: number
                            description: 0为成功，其他失败
                        description: 业务返回体
      operationId: 1108_1_POST
      parameters: []
      requestBody:
        content:
          application/x-www-form-urlencoded:
            schema:
              type: object
              properties:
                code:
                  type: string
                  description: wti： WTI原油（NYMEX原油）<br>blt：布伦特原油
components:
  securitySchemes:
    AppKeyAuth:
      type: apiKey
      in: query
      name: appKey
      description: 从 ShowAPI 控制台获取的 appKey，管理地址：https://www.showapi.com/console#/myApp
  schemas:
    ShowapiResEnvelope:
      type: object
      description: ShowAPI 统一返回包裹（业务数据位于 showapi_res_body）
      properties:
        showapi_res_code:
          type: integer
          description: API 返回的状态码
        showapi_res_error:
          type: string
          description: API 返回的错误信息
        showapi_res_id:
          type: string
          description: API 请求的唯一标识
        showapi_fee_num:
          type: integer
          description: API 调用计费次数
security:
  - AppKeyAuth: []
externalDocs:
  url: https://www.showapi.com/apiGateway/view/1108?tab=book
x-apiCode: "1108"
x-is-own: false
x-is-op: true
