Login Page - Create Account

Support Board


Date/Time: Fri, 03 May 2024 12:05:17 +0000



DTC SC Client - How to verify existence of symbol?

View Count: 584

[2018-10-24 18:33:57]
AndrewAMD1 - Posts: 31
Hello,

My trading client to Sierra Chart's DTC server needs a way to confirm or deny the existence of a trading symbol. Is there a correct procedure for this?

Here is what I have attempted:

1) Send a Symbol Search Request - it is not currently supported according to response. So that's a dead end.

2) Send a Security Definition for Symbol Request, with symbol set to "BADSYMBOL".
* Expected response is either a reject or a security definition with the symbol field blank.
* Actual response is a security definition with the field filled with "BADSYMBOL". Depending on the bad symbol, some of the fields might actually have some values!

3) Request a market data snapshot, with symbol set to "BADSYMBOL".
* Expected response is a reject.
* Actual response is a snapshot with all fields blank except for the matching SymbolID.

Thanks,
Andrew
[2018-10-24 19:02:58]
Sierra Chart Engineering - Posts: 104368
You need to understand that Sierra Chart works with numerous external services and it cannot possibly know definitively one way or another whether a symbol exists or not unless the market data request were made for the symbol and there is some rejection from the external service. But even then that could be just some kind of an authorization issue. In any case this information is not passed back when responding to a security definition request through the DTC server.

The best thing we can recommend is check the Description field. If it is not set then Sierra Chart does not have symbol settings for the symbol most likely.

You really need to change your logic and not put any kind of reliance on this. That is going to be the proper solution. There simply is no definitive way to know whether a symbol is valid or not. We cannot know this ourselves.
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, *change* to the Teton service:
Sierra Chart Teton Futures Order Routing
Date Time Of Last Edit: 2018-10-24 19:03:31
[2018-10-24 19:26:15]
AndrewAMD1 - Posts: 31
You really need to change your logic and not put any kind of reliance on this.
Unfortunately, I'm writing a DLL plugin for a binary blob, so much of my logic involves workarounds.

The best thing we can recommend is check the Description field. If it is not set then Sierra Chart does not have symbol settings for the symbol most likely.
I'll just do this and call it a day. Thanks.

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

Login

Login Page - Create Account