Cart change API

what is the correct API call to get this cart change? (example from demo site)

i try (from php API)

$matomoTracker->addEcommerceItem($product->get_sku(),$product->get_title());
$matomoTracker->doTrackEcommerceCartUpdate(0.00);