【发布时间】:2020-10-24 16:33:15
【问题描述】:
我正在制作一个 python 应用程序,它将通过 API 向代理应用程序发送消息。 我在文档信息中有消息应该是 XML 格式:
<FIXML v="5.0" r="20080317" s="20080314">
<UserReq UserReqID="0" UserReqTyp="1" Username="1234" Password="1234"/>
</FIXML>
- 你能告诉我如何用python语言发送它吗?
- 如何连接到那个 API,我有信息说:
In order to connect to the API, use the following registers:
HKEY_CURRENT_USER/Software/COMARCH S.A./NOL3/7/Settings:
• nca_pasync – port value for an asynchronous channel (default value: 24445),
• nca_psync – port value for a synchronous channel (default value: 24444),
• ncaset_pasync – flag informing whether the value in nca_pasync is active (1 - active, 0 -
inactive),
• ncaset_psync - a flag indicating whether the value in nca_psync is active (1 - active, 0 - inactive).
【问题讨论】: