plugins – Get a value from a shortcode for another function

I use a shortcode to get the value and try to use it to calculate the percentage

$target_price = get_post_meta( get_the_ID(), 'target_price', true );
$now_price = do_shortcode ( '(stock_market_widget type="inline" template="generic" assets="'. $stock = get_post_meta( get_the_ID(), 'stock', true ) .'" markup="{price}" api="yf")' );
$procent = ((int)$target_price - (int)$now_price) * 100 / (int)$now_price ;

echo $now_price;
echo $target_price;
echo $procent;

But the shortcode doesn’t return a value, it returns this code
enter image description here

How do I get the value from the shortcode that is in “smw-field-value”?
Thanks