Acylcarnitine ratio C4/C18:2, apolipoprotein (apo) B, history of heart failure (HF), age > 65 years and presence of acute coronary syndrome were independent predictors of the primary outcome in diabetic patients with CAD (aHR = 1.89 [1.09, 3.29]; 1.02 [1.01, 1.04]; 1.28 [1.01, 1.41]; 1.04 [1.01, 1.05]; and 1.12 [1.05–1.21], respectively). Here, APOB is linked to heart failure.