Future API profit calculation

Have a way to directly get profit from Binance future api using Order ID,
I’m doing this way

  • buy symbol and then close it when camed to high value. then i need to get profit