public class HoldingsModel
HoldingsModel
定义
描述
持仓数据
转Symbol对象请查看转Symbol
转Symbol对象请查看转Symbol
参数
参数名 | 类型 | 描述 |
---|---|---|
RequestId | string | 平台唯一标识 |
Symbol | Symbol | 股票代码 |
LastDate | DateTime | 购买日期 |
LastTime | DateTime | 购买时间 |
TotalPrice | decimal | 总价 |
AvgPrice | decimal | 均价 |
Quantity | decimal | 持仓数量 |
UseQuantity | decimal | 可使用数量 |
LockQuantity | decimal | 锁定数量 |
返回值
返回值 | 类型 | 描述 |
---|---|---|
无返回值 |
示例
/// <summary>
/// 持仓数据
/// </summary>
public class HoldingsModel
{
/// <summary>
/// 平台唯一标识
/// </summary>
public string RequestId { get; set; }
/// <summary>
/// 股票代码
/// </summary>
public required Symbol Symbol { get; set; }
/// <summary>
/// 购买日期
/// </summary>
public DateTime LastDate { get; set; }
/// <summary>
/// 购买时间
/// </summary>
public DateTime LastTime { get; set; }
/// <summary>
/// 总价
/// </summary>
public decimal TotalPrice { get; set; }
/// <summary>
/// 均价
/// </summary>
public decimal AvgPrice { get; set; }
/// <summary>
/// 持仓数量
/// </summary>
public decimal Quantity { get; set; } = 0;
/// <summary>
/// 可使用数量
/// </summary>
public decimal UseQuantity { get; set; }
/// <summary>
/// 锁定数量
/// </summary>
public decimal LockQuantity { get; set; }
}