17 lines
641 B
C#
17 lines
641 B
C#
namespace YLErp.Web.Controllers
|
|
{
|
|
public class exchange_list_optionController : BaseController
|
|
{
|
|
/// <summary>
|
|
/// 获取场内期权标的
|
|
/// </summary>
|
|
public JsonResult GetOptionByCode(string UnderlyingCode)
|
|
{
|
|
var exchangelist = string.IsNullOrWhiteSpace(UnderlyingCode)
|
|
? Array.Empty<ExchangeListOption>()
|
|
: DataCacheProvider.GetExchangeListOptionDataSource().AsQueryable().Where(n => n.UnderlyingCode.Equals(UnderlyingCode, StringComparison.OrdinalIgnoreCase)).ToArray();
|
|
return JsonSuccessData(exchangelist);
|
|
}
|
|
}
|
|
}
|