AssetManager.API/AssetManager.Data/TiingoTicker.cs
OpenClaw Agent 1977dd609d fix: 请求收益曲线时自动回填历史数据
- GetNavHistoryAsync现在会自动检查是否有历史数据
- 无历史数据时自动调用BackfillNavHistoryInternalAsync
- 拆分内部回填方法,避免重复验证权限
2026-03-13 16:21:31 +00:00

49 lines
1.2 KiB
C#
Executable File
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

using SqlSugar;
namespace AssetManager.Data;
/// <summary>
/// Tiingo 股票代码字典表
/// </summary>
[SugarTable("tiingo_tickers")]
public class TiingoTicker
{
/// <summary>
/// 主键 ID
/// </summary>
[SugarColumn(IsPrimaryKey = true, IsIdentity = true)]
public int Id { get; set; }
/// <summary>
/// 标的代码ticker
/// </summary>
[SugarColumn(ColumnDataType = "varchar(50)")]
public string? Ticker { get; set; }
/// <summary>
/// 标的名称(中文名/英文名,预留字段)
/// </summary>
[SugarColumn(ColumnDataType = "varchar(200)", IsNullable = true)]
public string? Name { get; set; }
/// <summary>
/// 交易所exchange
/// </summary>
[SugarColumn(ColumnDataType = "varchar(50)")]
public string? Exchange { get; set; }
/// <summary>
/// 资产类型assetType
/// </summary>
[SugarColumn(ColumnDataType = "varchar(50)")]
public string? AssetType { get; set; }
/// <summary>
/// 计价货币priceCurrency
/// </summary>
[SugarColumn(ColumnDataType = "varchar(10)")]
public string? PriceCurrency { get; set; }
}