Chuyển tới nội dung chính

Lịch sử lãi margin tích lũy

API này trả về lịch sử dư nợ và lãi margin theo ngày kèm giá trị lãi tích lũy, hỗ trợ phân trang.

HTTP request

  • URL: /api/personalize/v1/partner/nebula-ultra/profiles/margin/history
  • Method: GET
  • Content Type: None
  • Response Type: application/json

Tham số header

HeaderMô tảKiểu dữ liệuBắt buộc
X-Api-KeyKhóa duy nhất.string

Tham Số Truy Vấn (Query Parameters)

Tên Tham SốKiểu Dữ LiệuBắt buộcMô Tả
externalUserIdstringUserId của đối tác.
typestringkhôngLoại portfolio:
- backtest: Hiệu suất quá khứ (default)
- paper: Giao dịch giả lập
- live: Dành cho bạn
pagestringkhôngTrang dữ liệu cần lấy, default: 0.
sizestringkhôngSố bản ghi của một trang, default: 10.
recvWindowstringkhôngThời gian chấp nhận (ms), default: 5000.
timestampstringUnix timestamp (milliseconds).
signaturestringHMAC-SHA256 signature.

Phản Hồi (Response)

Response Mẫu

{
"status": 200,
"message": "Success",
"total": 120,
"data": [
{
"date": "2026-04-01T00:00:00.000Z",
"debt": 850000000,
"interest": 186301,
"cumInterest": 186301
},
{
"date": "2026-04-02T00:00:00.000Z",
"debt": 820000000,
"interest": 179726,
"cumInterest": 366027
},
{
"date": "2026-04-03T00:00:00.000Z",
"debt": 795000000,
"interest": 174246,
"cumInterest": 540273
}
]
}

Chi Tiết Tham Số Response

Tên Thuộc TínhKiểu Dữ LiệuMô Tả
statusnumberMã trạng thái HTTP.
messagestringThông báo kết quả xử lý.
totalnumberTổng số bản ghi.
dataarray (Xem chi tiết)Danh sách lịch sử lãi margin.

Cấu trúc thuộc tính data

Quay lại
Tên Thuộc TínhKiểu Dữ LiệuMô Tả
datestringNgày (Định dạng: yyyy-MM-dd'T'HH:mm:ss.SSS'Z').
debtnumberDư nợ margin tại ngày đó (VND).
interestnumberLãi margin phát sinh trong ngày đó (VND).
cumInterestnumberLãi margin tích lũy đến hết ngày đó (VND).

CREDENTIALS

* Timestamp và Signature sẽ được tự động tạo khi gọi API

RESPONSE200

{
"status": 200,
"message": "Success",
"total": 120,
"data": [
{
"date": "2026-04-01T00:00:00.000Z",
"debt": 850000000,
"interest": 186301,
"cumInterest": 186301
},
{
"date": "2026-04-02T00:00:00.000Z",
"debt": 820000000,
"interest": 179726,
"cumInterest": 366027
},
{
"date": "2026-04-03T00:00:00.000Z",
"debt": 795000000,
"interest": 174246,
"cumInterest": 540273
}
]
}