Suchin 0 Report post Posted October 29, 2020 How to get PIP value for every market as per market rate change using GAIN API. Share this post Link to post
Physicsman 25 Report post Posted October 29, 2020 Hi, I assume you mean the PIP value that is shown on the trade ticket on our trading platforms? It is calculated using various fields pulled from the API using a MarketInformation call. PIP Value = (Quantity * (TrailingStopConversionFactor || 1) * fxConversion) / QuantityConversionFactor Kind Regards, PM Share this post Link to post
Suchin 0 Report post Posted October 30, 2020 Hello Physicsman, Thank you for fast replay. I need more information about terms used in calculation that from which API I can get 1) fxConversion Thank You. Share this post Link to post
Physicsman 25 Report post Posted October 30, 2020 Hi Suchin, fxConversion is the FX rate to convert from the market currency to your account currency. As an example, if your account is in US dollars, and you are trading EUR/GBP, then the market currency is GBP. You will need to use the current fx rate for GBP/USD to convert from GBP to your base account currency of USD. The PIP value you see will then be in USD. Kind Regards, PM Share this post Link to post