Login Page - Create Account

Support Board


Date/Time: Tue, 26 Nov 2024 04:41:15 +0000



Example JSON Single Order Submit

View Count: 244

[2024-01-10 20:25:30]
User862761 - Posts: 19
I am trying to submit a simple single order into a simulated account with the DTCf protocol. I followed the directions on the simulated account and created a trade account under the name spencertest1. The following is my JSON message, but it isn't going through. I have succesfully got a logon response, and immediately after, I send the following:
{'Type': 208, 'Symbol': 'ESH24', 'ClientOrderID': 'try1','OrderType': 1, 'BuySell': 1, 'Quantity': 3, 'TradeAccount': 'spencertest1', 'IsAutomatedOrder': 1, 'OpenOrClose': 1,}

The only thing I think may be wrong is the ClientOrderId, which I am not sure what it is, I just named the trade.
[2024-01-10 21:16:36]
Sierra_Chart Engineering - Posts: 17179
Are you sending this to the DTC Protocol Server in Sierra Chart? Is that JSON message followed by a null terminator character?

Is the DTC Protocol Server set to use JSON encoding, or did you send an Encoding request message?
Sierra Chart Support - Engineering Level

Your definitive source for support. Other responses are from users. Try to keep your questions brief and to the point. Be aware of support policy:
https://www.sierrachart.com/index.php?l=PostingInformation.php#GeneralInformation

For the most reliable, advanced, and zero cost futures order routing, use the Teton service:
Sierra Chart Teton Futures Order Routing
Date Time Of Last Edit: 2024-01-10 21:16:43
[2024-01-10 21:23:11]
User862761 - Posts: 19
1. Yes, to the local host (127.0.0.1) port 11099
2. No, is that the issue?
3. The DTC protocol is set it to JSON encoding in global settings>>Sierra Chart Server Settings.
[2024-01-10 21:31:07]
User862761 - Posts: 19
That was the issue I was having, thank you. If I want to close my position, do I have to put in the client order id, or if I just put in an order in the opposite direction with the sufficient size, will it close on without it?
[2024-01-11 00:43:13]
Sierra_Chart Engineering - Posts: 17179
A new order definitely does not have to make reference to a prior order. Just an order in the opposite direction with the correct size.
Sierra Chart Support - Engineering Level

Your definitive source for support. Other responses are from users. Try to keep your questions brief and to the point. Be aware of support policy:
https://www.sierrachart.com/index.php?l=PostingInformation.php#GeneralInformation

For the most reliable, advanced, and zero cost futures order routing, use the Teton service:
Sierra Chart Teton Futures Order Routing

To post a message in this thread, you need to log in with your Sierra Chart account:

Login

Login Page - Create Account