使用python访问javaapi?

2024-06-16 10:56:34 发布

您现在位置:Python中文网/ 问答频道 /正文

我已经编写了一个python脚本,可以从各种来源(Quandl、webscraping等)获取数据。我想切换到一个更稳定的信息源,订单投放系统。代理提供了一个API:

https://www.sharekhan.com/active-trader/oalert/new-to-oalert

在浏览了文档和有限的可用信息之后,我似乎只能将其与java一起使用。我是python新手,从未尝试过java。有人能告诉我从哪里开始学习如何在python程序/脚本中使用API吗?你知道吗

来自FAQ

TradeTiger API has a Transmission Control Protocol (TCP)-based architecture. So, it can work in any programming language that can communicate using the TCP protocol. Some programming languages that are compatible with the API are C#.net, VB.Net, Java, Python, C++ and VB.

谢谢


Tags: the脚本apithat来源javacanare
1条回答
网友
1楼 · 发布于 2024-06-16 10:56:34

根据您在文档中的引用,API使用TCP。您可以使用任何语言的任何网络库访问它,包括Python。你知道吗

首先,您需要学习TCP的基础知识。谷歌搜索将引导您找到技术文档。RFC给出了官方规范。然后需要一个Python库来打开网络连接并发送二进制数据。最后,您需要阅读the documentation for the API。你知道吗

相关问题 更多 >