ts-api icon indicating copy to clipboard operation
ts-api copied to clipboard

An unofficial wrapper for the TradeStation API.

Results 8 ts-api issues
Sort by recently updated
recently updated
newest added

The method's comments reference a 'since' param but it's not included in the signature. Seems like a method this central to the point of interacting with brokerage api would be...

I've pinpointed an issue with the scope string included (the 'CRYPTO errored cuz my acct doesn't include it). And I think it'd be better to not hardcode the ts_state.json name....

The call signature for get_bars requires all parameters to be provided. However, "barsback" and "firstdate" are mutually exclusive and providing them both results in TradeStation rejecting the request. If a...

to whoever reads this: Fix this line: https://github.com/pattertj/ts-api/blob/4541c69feaf15527c9f2e110a395d46cca8a058b/ts/client/base.py#L251C1-L254C77 change it to: token_exp = time.time() >= self._access_token_expires_at token_time = int(self._access_token_expires_at - time.time()) # if the time to expiration is less than...

Hello You did really nice library! I'm trying to Auth with my key and secret through google colab notebook (similar to Jupiter) but don't know which URI redirect to put......

client = a.easy_client("secret-id", "secret-stuff", "http://localhost:3001/callback") placed_order = client.place_order( { "AccountID": "SIM232secret", "Symbol": "HMST", "Quantity": "1", "OrderType": "Market", "TradeAction": "Buy", "TimeInForce": { "Duration": "GTC" }, "Route": "Intelligent" } ) When making...

Hey, thanks for creating the wrapper. great stuff! I was trying it out and ran into 2 issues. 1️⃣ IIUC, it requires [python 3.10](https://github.com/pattertj/ts-api/blob/4541c69feaf15527c9f2e110a395d46cca8a058b/pyproject.toml#L21) and above. 3.8 and 3.9 won't...