Skip to main content

get_bond_single_asset

Function get_bond_single_asset 

Source
pub async fn get_bond_single_asset(
    __arg0: State<RestState>,
    rec: Option<Extension<Arc<KeyRecord>>>,
    __arg2: Json<Value>,
) -> Result<Json<Value>, (StatusCode, Json<Value>)>
Expand description

POST /api/bond-single-asset — 单只债券持仓 (mobile cmd 9374)

参数:

  • acc_id (u64, 必填)
  • trd_env (i32, 0=sim 1=real, default 1)
  • market (string, 必填): “HK” / “US” / “SG”
  • symbol (string, 必填): 债券代码

响应字段 (s2c.inner): market_value / today_incomes / position_incomes / quantity / cost / expired_time / next_dividend_time / dividend_type / accrued_interest / dividend_option / notice_list / ccy / coupon_cash / position_cost / price.