I have been working with the Automated Trading Beta for awhile now and it works quite well, the execution speed and available functions are terrific. I have built an entire platform trading multiple currencies to Interactive Brokers and it all works great. I have only one query and it could be that I am misreading the documentation.
I am attempting to determine the realized profit/loss, per my broker's records, from a particular trade, once the trade has been closed out. Documentation states that "Position.realizedPL(PositionID)" should return the realized P&L for that specified position ID. Instead I am getting the total P&L for the currency pair in question, with that trade included, as of the close of that trade.
My question is, is there a method in place by which I can retrieve the realized P&L for a particular trade?
Thanks in advance,
Tom
I am attempting to determine the realized profit/loss, per my broker's records, from a particular trade, once the trade has been closed out. Documentation states that "Position.realizedPL(PositionID)" should return the realized P&L for that specified position ID. Instead I am getting the total P&L for the currency pair in question, with that trade included, as of the close of that trade.
My question is, is there a method in place by which I can retrieve the realized P&L for a particular trade?
Thanks in advance,
Tom
Comment