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

ts_client.stream_bars_start_date > BAD REQUEST - STATUS CODE: 401 #8

Open
dkhokhlov opened this issue Jun 15, 2021 · 0 comments
Open

Comments

@dkhokhlov
Copy link

I am trying to get 1min bars since 06-10-2021:

res = ts_client.stream_bars_start_date(
symbol='AMZN',
interval=1,
unit='Minute',
start_date='06-10-2021',
session='Default'
)

generates:

BAD REQUEST - STATUS CODE: 401
RESPONSE URL: https://sim-api.tradestation.com/v2/stream/barchart/AMZN/1/Minute/06-14-2021?sessionTemplate=Default
RESPONSE HEADERS: {'Date': 'Tue, 15 Jun 2021 07:29:32 GMT', 'Content-Type': 'application/json; charset=utf-8', 'Transfer-Encoding': 'chunked', 'Connection': 'keep-alive', 'Cache-Control': 'no-store, no-cache, max-age=0', 'Expires': 'Thu, 01 Jan 1970 00:00:00 UTC', 'Pragma': 'no-cache', 'Strict-Transport-Security': 'max-age=31536000; includeSubDomains', 'X-Accel-Expires': '0', 'X-Way-Backend': 'webapi_bars_new'}

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

1 participant