How can I calculate the value of the greeks in real time using the option price?

Fetch option price using API and then compute using the below formulas