signalRをPythonで読み取りたいです。
私は現在、simplefxというfx取引所を利用しています。
ms単位のticker情報は、REST APIではなく、signalRを利用して読み取れと記載されています。
(以下、原文。https://github.com/simplefx-ltd/simplefx-api)
Quotes and prices cannot be obtained with an http API. Prices change within milliseconds, so you need to connect to a quotes stream. In SimpleFX we use signalr (see https://docs.microsoft.com/en-us/aspnet/signalr ), served from the address https://webquotes-v3.simplefx.com/signalr/ .
しかし、signalRの使い方がよくわかりません。
(https://github.com/simplefx-ltd/simplefx-api)で指定された
(https://github.com/TargetProcess/signalr-client-py)にとんでも、説明が全くなく使い方がわかりません。
簡単なこととは思うのですが、ご存知の方いらっしゃったら教えていただきたいです。
試したこと
以下のpythonページを実行して、
from requests import Session from signalr import Connection with Session() as session: connection = Connection("https://webquotes-v3.simplefx.com/signalr/", session) print(connection)
以下のように返ってくるのはわかりますが、どのようにしたら、データをjson形式で表示できるのかわかりません。
<signalr._connection.Connection object at 0x10feb7b38>
補足情報(FW/ツールのバージョンなど)
python3系統
あなたの回答
tips
プレビュー