gpt4 book ai didi

.net - 在 .Net 中使用 NDDE 连接到 ThinkOrSwim

转载 作者:行者123 更新时间:2023-12-04 15:25:02 26 4
gpt4 key购买 nike

我使用这个单元格公式成功地将来自 ThinkOrSwim 交易平台的 DDE 数据接收到 excel 中:

=TOS|Last!AAPL

但是,当我尝试使用 NDDE library 连接到 ThinkOrSwim DDE 时在 .Net C# 应用程序中,我收到以下错误消息,这与我在 ThinkOrSwim 平台根本没有运行时得到的消息相同:

客户端无法连接到“TOS|LAST”。确保服务器应用程序正在运行并且它支持指定的服务名称和主题名称对。

与 NDDE 连接的完全相同的方法在 2009 年有效,但当我在 2012 年重新使用它时失败了。也许 ThinkOrSwim 对其应用程序进行了一些更改以阻止它?我想知道接下来要做什么……要么找到一种方法让 NDDE 工作(更好),要么在我的 .Net 应用程序中运行一个 excel 电子表格(困惑)。

希望这里有人知道我可以继续使用 NDDE 并解决连接问题的方式。

Click to download small code library I created to demonstrate this problem (Visual Studio 2010) .页面加载后,您必须单击"file"->“下载”。

赏金仅用于显示使用纯 .Net/windows api 解决方案的解决方案的答案。赏金不接受在 .Net 中自动化 excel。

从以下位置下载 ThinkOrSwim: https://mediaserver.thinkorswim.com/installer/InstFiles/thinkorswim_jse6_installer.exe
如果您需要登录详细信息,请私下联系我。

最佳答案

右键单击 thinkorswim.exe ,转到兼容性选项卡

check the "Run as Administrator" box at the bottom.

Click Apply.

关于.net - 在 .Net 中使用 NDDE 连接到 ThinkOrSwim,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11893606/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com