# 【日更】当日货币汇率

## OpenAPI Specification

```yaml
openapi: 3.0.1
info:
  title: ''
  description: ''
  version: 1.0.0
paths:
  /v2/exchange-rate:
    get:
      summary: 【日更】当日货币汇率
      deprecated: false
      description: ''
      tags:
        - 🕘 周期资讯
      parameters:
        - name: currency
          in: query
          description: 货币代码，可以在 https://coinyep.com/zh/currencies 查询，默认为 CNY （人民币）
          required: false
          example: ''
          schema:
            type: string
            default: CNY
        - name: encoding
          in: query
          description: 编码方式，支持 text/json/markdown
          required: false
          schema:
            type: string
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties:
                  code:
                    type: integer
                  message:
                    type: string
                  data:
                    type: object
                    properties:
                      base_code:
                        type: string
                      updated:
                        type: string
                      updated_at:
                        type: integer
                      next_updated:
                        type: string
                      next_updated_at:
                        type: integer
                      rates:
                        type: array
                        items:
                          type: object
                          properties:
                            currency:
                              type: string
                            rate:
                              type: integer
                          required:
                            - currency
                            - rate
                    required:
                      - base_code
                      - updated
                      - updated_at
                      - next_updated
                      - next_updated_at
                      - rates
                required:
                  - code
                  - message
                  - data
          headers: {}
          x-apifox-name: 成功
      security: []
      x-apifox-folder: 🕘 周期资讯
      x-apifox-status: released
      x-run-in-apifox: https://app.apifox.com/web/project/5757303/apis/api-254044994-run
components:
  schemas: {}
  securitySchemes: {}
servers:
  - url: https://60s.viki.moe
    description: 正式环境
security: []

```
