Login Page - Create Account

Support Board


Date/Time: Wed, 27 Nov 2024 14:34:58 +0000



Post From: DTC Submit Market Order

[2023-05-16 23:55:13]
fcpauldiaz - Posts: 18
I'm trying to send a market order via DTC server

1. enabled authentication
2. enabled allow trading
3. connection is successful
{
"BracketOrdersSupported": 1,
"HistoricalPriceDataSupported": 0,
"Integer_1": 0,
"MarketDataSupported": 1,
"MarketDepthIsSupported": 1,
"MarketDepthUpdatesBestBidAndAsk": 0,
"OCOOrdersSupported": 1,
"OneHistoricalPriceDataRequestPerConnection": 0,
"OrderCancelReplaceSupported": 1,
"ProtocolVersion": 8,
"ReconnectAddress": "",
"ResubscribeWhenMarketDataFeedAvailable": 0,
"Result": 1,
"ResultText": "Connected to SC DTC Protocol server. Service=sc_futures_direct.dtc.trading|SymbolSettings=sc_futures_direct.dtc.trading",
"SecurityDefinitionsSupported": 1,
"ServerName": "SC DTC Server. Build=45800",
"SymbolExchangeDelimiter": "",
"TradingIsSupported": 1,
"Type": 2,
"UsesMultiplePositionsPerSymbolAndTradeAccount": 0
}

4. SubmitNewSingleOrder body

{
"BuySell": 1,
"ClientOrderID": 1,
"Exchange": "CME",
"IsAutomatedOrder": 1,
"IsParentOrder": 0,
"MaxShowQuantity": 1,
"OpenOrClose": 1,
"OrderType": 1,
"Quantity": 1,
"Symbol": "MESM23_FUT_CME",
"TimeInForce": 1,
"TradeAccount": "Sim1",
"Type": 208
}

Am I missing something ? I tried using Live trading and Simulated trading. I don't get any errors on the window log.