Jump to content

bluehorseshoe

Members
  • Content count

    4
  • Joined

  • Last visited

  1. UNREALIZED P/L

    Thank you
  2. UNREALIZED P/L

    How can I get the Unrealized P/L number for a current trade? Lightstreamer has a 25 second delay... even on the Forex app masthead. I need the number that changes as the prices changes. If it is a calculation, what is it? (see img below) Thanks.
  3. Streaming API Authentication

    additional coding to calculate the P&L based on each incoming price tick is required. Is the formula for the above calculation available in some example?
  4. When placing new trades, I keep getting the 401 Unauthorized error. I can authenticate and I have confirmed marketId and marketName. What is wrong with this body that I am passing? { IfDone = [], Type = null, Applicability = null, ExpiryDateTimeUTC = null, OcoOrder = null, Direction = BUY, isTrade = True, TriggerPrice = null, AuditId = null, Currency = null, MarketName = EUR/USD, BidPrice = 1.09417, ExpiryDateTimeUTCDate = null, PositionMethodId = 1, LastChangedDateTimeUTCDate = null, AutoRollover = False, Status = , MarketId = 401484347, OfferPrice = 1.09431, LastChangedDateTimeUTC = null, OrderId = 0, Quantity = 1000, QuoteId = null, TradingAccountId = xxxxxxx}
×