> ## Documentation Index
> Fetch the complete documentation index at: https://hoalulab.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Gói lãi suất margin

> Lấy các gói lãi suất margin khả dụng của tài khoản.



## OpenAPI

````yaml /vi/openapi/tcbs.v1.openapi.yaml get /hydros/v1/account/{accountNo}/pricing-policy
openapi: 3.0.3
info:
  title: TCBS iFlash Open API
  description: REST APIs for trading stocks and derivatives on TCBS.
  version: 1.0.0
  contact:
    email: openapi@tcbs.com.vn
servers:
  - url: https://openapi.tcbs.com.vn
    description: Production
security:
  - bearerAuth: []
tags:
  - name: authentication
    description: Xác thực và cấp token truy cập.
    x-group: Xác thực
  - name: account
    description: Thông tin tài khoản, tài sản và hạn mức.
    x-group: Tài khoản
  - name: market-data
    description: Dữ liệu chứng khoán và phái sinh.
    x-group: Dữ liệu thị trường
  - name: cash
    description: Giao dịch và thông tin tiền.
    x-group: Tiền
  - name: stock-orders
    description: Đặt, sửa, hủy và tra cứu lệnh cổ phiếu.
    x-group: Lệnh cổ phiếu
  - name: derivative-orders
    description: Đặt, sửa, hủy và tra cứu lệnh phái sinh.
    x-group: Lệnh phái sinh
paths:
  /hydros/v1/account/{accountNo}/pricing-policy:
    get:
      tags:
        - account
      summary: Gói lãi suất margin
      description: Lấy các gói lãi suất margin khả dụng của tài khoản.
      operationId: getHydrosAccountAccountNoPricingPolicy
      parameters:
        - name: accountNo
          in: path
          required: true
          description: Số tiểu khoản margin.
          schema:
            type: string
        - name: productId
          in: query
          required: false
          description: Product ID. Nếu bỏ qua, hệ thống tự xác định từ tài khoản.
          schema:
            type: integer
            format: int64
      responses:
        '200':
          description: Phản hồi thành công
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PricingPolicyResponse'
              example:
                data:
                  - id: 1
                    name: Standard Policy
                    status: ACTIVE
                    pricingPolicyType: DEFAULT
                    undueInterestType: FIXED
                    undueFixedValue: 12.5
                    leastMassRate: 10
                    greatestMassRate: 15
                    overdueInterest: 18
                    extensionInterest: 14
                    interestCalculationBasis: 365
                    description: Gói lãi suất tiêu chuẩn
                    labels:
                      - standard
                      - default
                    validFrom: '2024-01-01'
                    validTo: '2025-12-31'
                    discountable: true
                    states:
                      - stateId: 10
                        name: State Jan 2025
                        status: WAIT_FOR_APPLY
                        isAppliedForExisting: true
                        undueInterestType: LADDER
                        undueLadderValue:
                          - id: 5
                            rate: 11
                            startDate: 1
                            dueDate: 15
                        overdueInterest: 17
                        extensionInterest: 13.5
                        validFrom: '2025-02-01'
                        validTo: '2025-12-31'
        '401':
          $ref: '#/components/responses/Unauthorized'
components:
  schemas:
    PricingPolicyResponse:
      type: object
      description: Danh sách các gói lãi suất margin.
      properties:
        data:
          type: array
          description: Các gói lãi suất margin khả dụng.
          items:
            $ref: '#/components/schemas/PricingPolicy'
    PricingPolicy:
      type: object
      description: Thông tin gói lãi suất margin.
      properties:
        id:
          type: integer
          format: int64
          description: Mã gói lãi suất.
        name:
          type: string
          description: Tên gói lãi suất.
        status:
          type: string
          description: Trạng thái gói lãi suất.
          example: ACTIVE
        pricingPolicyType:
          type: string
          description: Loại chính sách lãi suất.
          example: DEFAULT
        undueInterestType:
          type: string
          description: Loại lãi suất trong hạn.
          example: FIXED
        undueFixedValue:
          type: number
          format: double
          description: Mức lãi suất trong hạn cố định.
        leastMassRate:
          type: number
          format: double
          description: Tỷ lệ margin thấp nhất.
        greatestMassRate:
          type: number
          format: double
          description: Tỷ lệ margin cao nhất.
        overdueInterest:
          type: number
          format: double
          description: Lãi suất quá hạn.
        extensionInterest:
          type: number
          format: double
          description: Lãi suất gia hạn.
        interestCalculationBasis:
          type: integer
          format: int64
          description: Số ngày dùng làm cơ sở tính lãi.
        description:
          type: string
          description: Mô tả gói lãi suất.
        labels:
          type: array
          description: Các nhãn của gói lãi suất.
          items:
            type: string
        validFrom:
          type: string
          format: date
          description: Ngày bắt đầu hiệu lực.
        validTo:
          type: string
          format: date
          description: Ngày kết thúc hiệu lực.
        discountable:
          type: boolean
          description: Có được áp dụng chiết khấu hay không.
        states:
          type: array
          description: Danh sách trạng thái áp dụng của gói lãi suất.
          items:
            $ref: '#/components/schemas/PricingPolicyState'
    PricingPolicyState:
      type: object
      description: Trạng thái áp dụng của gói lãi suất.
      properties:
        stateId:
          type: integer
          format: int64
          description: Mã trạng thái.
        name:
          type: string
          description: Tên trạng thái.
        status:
          type: string
          description: Trạng thái áp dụng.
          example: WAIT_FOR_APPLY
        isAppliedForExisting:
          type: boolean
          description: Có áp dụng cho tài khoản hiện hữu hay không.
        undueInterestType:
          type: string
          description: Loại lãi suất trong hạn.
          example: LADDER
        undueLadderValue:
          type: array
          description: Các mức lãi suất theo bậc trong hạn.
          items:
            $ref: '#/components/schemas/PricingPolicyLadderValue'
        overdueInterest:
          type: number
          format: double
          description: Lãi suất quá hạn.
        extensionInterest:
          type: number
          format: double
          description: Lãi suất gia hạn.
        validFrom:
          type: string
          format: date
          description: Ngày bắt đầu hiệu lực.
        validTo:
          type: string
          format: date
          description: Ngày kết thúc hiệu lực.
    PricingPolicyLadderValue:
      type: object
      description: Mức lãi suất trong một bậc của gói lãi suất.
      properties:
        id:
          type: integer
          format: int64
          description: Mã mức lãi suất.
        rate:
          type: number
          format: double
          description: Mức lãi suất.
        startDate:
          type: integer
          format: int64
          description: Ngày bắt đầu của khoảng áp dụng.
        dueDate:
          type: integer
          format: int64
          description: Ngày kết thúc của khoảng áp dụng.
  responses:
    Unauthorized:
      description: Không xác thực — thiếu, sai hoặc không hợp lệ Bearer token.
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.