Jump to content

FOREXnoob

Members
  • Content count

    4
  • Joined

  • Last visited

  1. Orders Not Processing

    Of course I understand that it is being sent to the simulate trade endpoint. However, it does not actually simulate a trade. Is there a simulated openpositions / activeorders / balance endpoint? So is the simulation not a full functioning sandbox to test executions?
  2. List of Currency IDs

    Does anyone have a list of MarketIds?
  3. AuditId?

    What exactly is the AuditId and how do I obtain it?
  4. When I place an order, it doesn't seem to process. No open order exists, no positions are held: ====================== Place Order ========================== 2020-08-23 18:58:49 ET https://ciapi.cityindex.com/TradingAPI/order/simulate/newtradeorder?UserName=XX&Session=cc Parameters: Array ( [OcoOrder] => [Type] => [LastChangedDateTimeUTCDate] => [ExpiryDateTimeUTC] => [Applicability] => [Direction] => buy [ExpiryDateTimeUTCDate] => [TriggerPrice] => [BidPrice] => 1.17997 [OfferPrice] => 1.18011 [PriceTolerance] => 900 [AuditId] => 8049808-0-0-0-R [MarketId] => 401484347 [isTrade] => 1 [OrderId] => 0 [LastChangedDateTimeUTC] => [Currency] => [Quantity] => 100 [QuoteId] => [TradingAccountId] => 403013620 [MarketName] => EUR/USD [PositionMethodId] => 1 [Status] => [IfDone] => Array ( ) ) Result: Array ( [Status] => 1 [StatusReason] => 1 [SimulatedCash] => 50000 [ActualCash] => 50000 [SimulatedTotalMarginRequirement] => 2.36 [ActualTotalMarginRequirement] => 0 [CurrencyId] => 11 [Orders] => Array ( [0] => Array ( [StatusReason] => 1 [Status] => 3 ) ) ) ====================== Get Open Orders ========================== https://ciapi.cityindex.com/TradingAPI/order/activeorders?UserName=XX&Session=cc Parameters: Array ( [TradingAccountId] => [MaxResults] => ) Result: Array ( [ActiveOrders] => Array ( ) ) ====================== Get Positions ========================== https://ciapi.cityindex.com/TradingAPI/order/openpositions?TradingAccountId=403013620&UserName=XX&Session=cc Result: Array ( [OpenPositions] => Array ( ) )
×