The opinions expressed in these forums do not represent those of C2, and any discussion of profit/loss is not indicative of future performance or success. There is a substantial risk of loss in trading. You should therefore carefully consider whether such trading is suitable for you in light of your financial condition. You should read, understand, and consider the Risk Disclosure Statement that is provided by your broker before you consider trading. Most people who trade lose money.

Which endpoint can I use to obtain the Profit/Loss of any given trade

I’m currently using https://collective2.com/world/apiv3/requestTradesOpen and this returns the below which includes a ‘PL’ value. This I assume is profit / loss against that trade. However, when I view the ‘Unrealised P/L’ against my strategy on the dashboard the two values don’t match up.

This obviously puts a crimp in my system correctly evaluating when to exit the trade.

Is this the correct value from which to get the trades profit/loss or do I need to look elsewhere?

{
   "ok" : "1",
   "response" : [
      {
         "closeVWAP_timestamp" : "1587106890",
         "strike" : null,
         "fullSymbol" : "LSE.SHRE",
         "open_or_closed" : "open",
         "expir" : null,
         "openVWAP_timestamp" : "1587106920",
         "currency" : "GBP",
         "underlying" : null,
         "closing_price_VWAP" : "0.31300",
         "putcall" : null,
         "openedWhenUnixTimeStamp" : "1587106884",
         "quant_closed" : "0",
         "markToMarket_time" : "2020-04-17 03:01:30",
         "opening_price_VWAP" : "0.31300",
         "trade_id" : "128616482",
         "symbol" : "LSE.SHRE",
         "quant_opened" : "16665",
         "closedWhen" : "",
         "instrument" : "stock",
         "ptValue" : "1",
         "PL" : "-145",
         "closedWhenUnixTimeStamp" : "",
         "currencyMultiplierUSD" : "1.24584",
         "openedWhen" : "2020-04-17 03:01:24",
         "long_or_short" : "short",
         "symbol_description" : "SHARE PLC",
         "exchange" : "LSE"
      },
      {
         "closeVWAP_timestamp" : "1587107306",
         "strike" : null,
         "fullSymbol" : "LSE.AAOG",
         "open_or_closed" : "open",
         "expir" : null,
         "openVWAP_timestamp" : "1587107306",
         "currency" : "GBP",
         "underlying" : null,
         "closing_price_VWAP" : "0.00240",
         "putcall" : null,
         "openedWhenUnixTimeStamp" : "1587107294",
         "quant_closed" : "0",
         "markToMarket_time" : "2020-04-17 03:08:26",
         "opening_price_VWAP" : "0.00240",
         "trade_id" : "128616554",
         "symbol" : "LSE.AAOG",
         "quant_opened" : "392156",
         "closedWhen" : "",
         "instrument" : "stock",
         "ptValue" : "1",
         "PL" : "-98",
         "closedWhenUnixTimeStamp" : "",
         "currencyMultiplierUSD" : "1.24584",
         "openedWhen" : "2020-04-17 03:08:14",
         "long_or_short" : "long",
         "symbol_description" : "ANGLO AFRICAN OIL & GAS PLC",
         "exchange" : "LSE"
      }
   ]
}
Back to C2 Platform