Kalshi / kalshi-python

The official API client library for kalshi.com.
Apache License 2.0
46 stars 6 forks source link

Some API methods incorrectly omit auth token #1

Closed DecibillyJoel closed 1 year ago

DecibillyJoel commented 1 year ago

For example, get_markets() always returns a 401 error because the code generated by swagger passes empty auth settings into api_call() https://github.com/Kalshi/kalshi-python/blob/main/kalshi_python/api/market_api.py#L536

This is the only one I've encountered so far but will update if I run into any more

DecibillyJoel commented 1 year ago

get_market_orderbook() suffers the same issue

hsousak commented 1 year ago

Thats solved as well in the latest release, thanks again.

Just do:

pip install kalshi-python==2.0.0

And you should be fine, it had to be a major release because we discontinued some of the enums we were using for the statuses.

I've added all the end-points that you had trouble with to the main example, so I know for a fact they are running now.

Please do open an issue again if u still have trouble.