我如何使用 binance api 查看交易品种的即时交易

How can i see instant trades from symbol with binance api

我研究了很多关于在 binance 中看到即时交易的东西 api。但我找不到任何端点。我只能找到 recentTrades 端点,这显示了我 6 小时前认为的一些交易。我需要查看即时交易。有没有我找不到的其他文件或有这样的端点?

您可以使用最近的交易 REST 端点 (https://binance-docs.github.io/apidocs/spot/en/#recent-trades-list) 并限制为较少数量的结果。

每个交易品种还有一个交易 websocket 流 (https://binance-docs.github.io/apidocs/spot/en/#trade-streams)。

这将 return 实时交易。