Xtb经纪商套接字连接

huangapple go评论50阅读模式
英文:

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

我无法连接:
Xtb经纪商套接字连接

问题出在哪里?

英文:

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

I'm not able to connect:
Xtb经纪商套接字连接

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 websockets:

wss://ws.xtb.com/demo

wss://ws.xtb.com/demoStream

wss://ws.xtb.com/real

wss://ws.xtb.com/realStream

huangapple
  • 本文由 发表于 2023年5月25日 03:41:23
  • 转载请务必保留本文链接:https://go.coder-hub.com/76326909.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定