英文:
Xtb broker socket connection
问题
你好,我正在尝试连接由xtb证券经纪商共享的WebSocket连接。
文档在这里:http://developers.xstore.pro/documentation/2.5.0
其中提到:http://developers.xstore.pro/documentation/2.5.0#communication-with-the-xstation-api 我应该使用端口5113,并使用xapi.xtb.com作为实际账户和实时数据的主机。
这就是为什么我创建了以下的URI(wss表示SSL连接):
wss://xapi.xtb.com:5113
问题出在哪里?
英文:
Hello I'm trying to connect to websocket connection shared by xtb stock broker.
The documentation is here: http://developers.xstore.pro/documentation/2.5.0
There is mentioned: http://developers.xstore.pro/documentation/2.5.0#communication-with-the-xstation-api that I should use port 5113 and use host xapi.xtb.com for real account and streaming data.
That's why I create URI like below (wss is because SSL connection):
wss://xapi.xtb.com:5113
What's wrong?
答案1
得分: 0
xapi.xtb.com
不用于websocket
通信。他们在他们的文档中有另外的链接用于websocket
通信:
wss://ws.xtb.com/demo
wss://ws.xtb.com/demoStream
wss://ws.xtb.com/real
wss://ws.xtb.com/realStream
英文:
xapi.xtb.com
is not for websocket
communication. They have another links in their documentation for websocket
s:
wss://ws.xtb.com/demo
wss://ws.xtb.com/demoStream
wss://ws.xtb.com/real
wss://ws.xtb.com/realStream
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论