Hobby coder here working on a weekend project.
I wish to access a publicly available API as present here: https://api.coinsecure.in/ It provides us with BitCoin trade data - the API is via websockets which i am not familiar with.
The Websocket URI is wss://coinsecure.in/websocket And the method i wished to test is : {"method": "recentbuytrades"}
I am able to access the WebScocket API using the "websocket-client" in Python as listed here: https://pypi.python.org/pypi/websocket-client/
But unfortunately I am unable to figure out how to retrieve the data for the particular method - {"method": "recentbuytrades"}
Would be very grateful for any guidance that you could provide on extracting the data for this particular method.
Best, Ryan
[EDIT] Current code I am using is this:
from websocket import create_connection
ws = create_connection("wss://coinsecure.in/websocket")
result = ws.recv()
print ("Received '%s'" % result)
ws.close()