tastyware / tastytrade

An unofficial, sync/async Python SDK for Tastytrade!
https://tastyworks-api.rtfd.io
MIT License
126 stars 43 forks source link

TypeError when plotting account performance using start-time parameter #172

Open agu2a opened 1 month ago

agu2a commented 1 month ago

When I plot the performance of my account using time_back as parameter I can see the chart successfully.

HOWEVER, when I use a specific date instead is gives me this type error... TypeError: string indices must be integers

I use the following code: from_date = datetime(2024, 8, 28, 0, 0, 0) nl = account.get_net_liquidating_value_history(session, start_time=from_date )

Graeme22 commented 1 month ago

Hey, thanks for opening this!

I did some digging and it looks like there's something wrong on with the Tastytrade API, so there's nothing the SDK can do to resolve this at this time, unfortunately! Maybe you could reach out to the support team and tell them that the endpoint is not working as expected.