Open Cally99 opened 4 years ago
6 days and no comment I guess not.
Hi Cally99. This package is not being maintained, and I will now archive it. The streaming API upon which it is build is being phased out, to be replaced. Additionally, such connectivity is not for general public consumption, but is instead contingent on a market making business relationship existing with Smarkets. For more info, please see: https://help.smarkets.com/hc/en-gb/articles/212727225-API
I'm following documentation and I'm getting an error trying to log in.
Is this package still being maintained? Is there a plan to maintain it?
Error
smarkets.streaming_api.exceptions.ConnectionError: Error -2 connecting stream.smarkets.com:3801. Name or service not known.
import logging logging.basicConfig(level=logging.DEBUG)
from smarkets.streaming_api.api import SessionSettings, Session, StreamingAPIClient
username = 'foo@gmail.com' password = 'barpassword'
settings = SessionSettings(username, password) settings.host = 'stream.smarkets.com' session = Session(settings)
client = StreamingAPIClient(session) client.login()
Thanks