https://api.lbkrs.com/v4/portfolio/stock/get_trading_stock_avgcostParameters
counter_idstringqueryRequiredSecurity ID (counter_id), for example ST/US/AAPL or ST/HK/700
holding_quantitystringqueryRequiredCurrent position quantity. Use quantity from Get Position and Cash for Order Entry.
sidestringqueryRequiredOrder direction
BUYSELL
avg_coststringqueryRequiredCurrent average purchase cost. Use average_cost; pass 0 when there is no position.
diluted_avg_coststringqueryRequiredCurrent diluted cost. Use diluted_avg_cost; pass 0 when there is no position.
pricestringqueryRequiredOrder unit price, the same as price passed to Estimate Trading Fees
quantitystringqueryRequiredOrder quantity in shares
fee_amountstringqueryTrading fees to include in the cost: the sum of commission, third, and platform from Estimate Trading Fees. When omitted, the cost excludes fees.
Responses
HTTP 200The request succeeded. The response body contains the result of the “Estimate Post-Trade Average Cost” operation.codemessagedatadataobjectdata structureAverage purchase cost after the trade
Diluted cost after the trade