資券餘額
範例¶
In
var contracts = new List<Stock>();
contracts.Add(_api.Contracts.Stocks["TSE"]["2330"]);
contracts.Add(_api.Contracts.Stocks["TSE"]["2890"]);
List<dynamic> creditEnquire = _api.CreditEnquire(contracts);
Console.WriteLine(creditEnquire);
Out
[
{update_time=2021-01-05 10:43:36, system=HE, stock_id=2330, margin_unit=1290, short_unit=24,},
{update_time=2021-01-05 11:13:40, system=HC, stock_id=2330, margin_unit=1252, short_unit=25,},
{update_time=2021-01-05 10:56:10, system=HN, stock_id=2330, margin_unit=1315, short_unit=24,},
{update_time=2021-01-05 10:56:11, system=HF, stock_id=2330, margin_unit=1315, short_unit=24,},
{update_time=2021-01-05 10:11:56, system=HE, stock_id=2890, margin_unit=0, short_unit=0,},
{update_time=2020-12-30 12:53:36, system=HN, stock_id=2890, margin_unit=0, short_unit=0,},
{update_time=2021-01-04 10:45:06, system=HF, stock_id=2890, margin_unit=0, short_unit=0,},
{update_time=2020-12-30 10:04:14, system=HC, stock_id=2890, margin_unit=0, short_unit=0,}
]
屬性¶
CreditEnquire
update_time (string): 更新時間
system (string): 類別
stock_id (string): 商品代碼
margin_unit (int): 資餘額
short_unit (int): 券餘額