Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

timesale_futures_subs and add_timesale_futures_handler returning data #276

Open
seth-noaa opened this issue Nov 4, 2021 · 3 comments
Open

Comments

@seth-noaa
Copy link

After reading in the docs (here in the tda-api readthedocs) that these streams open but provide no data I was disappointed. But I tried them anyway. I am getting good solid futures time and sale data back from the API currently.

The data looks like it should from TDA:

{
    "service": "TIMESALE_FUTURES",
    "timestamp": 1636033782612,
    "command": "SUBS",
    "content": [
        {
            "seq": 0,
            "key": "/ES",
            "TRADE_TIME": 1636033782514,
            "LAST_PRICE": 4663.25,
            "LAST_SIZE": 1.0,
            "LAST_SEQUENCE": 16489017
        }
    ]
}

Just thought I would report back that it was functional. Please don't remove this from future versions on the thought that it isn't working.

Thank you for your awesomeness.

@alexgolec
Copy link
Owner

Wow! This is huge! Thanks for letting me know. Can you share the code that you used to produce this stream?

@jamesgol
Copy link

jamesgol commented Nov 4, 2021

I just verified it. Too cool.

stream_client.add_timesale_futures_handler(lambda msg: print(json.dumps(msg, indent=4)))
await stream_client.timesale_futures_subs(['/ES'])

@uricod
Copy link

uricod commented Dec 29, 2021

I have been trying this with multiple symbols in a list but only one comes back. What am I missing?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants