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

先物公開 API がエラーになることがある #13

Closed
nohtaray opened this issue Oct 6, 2017 · 2 comments
Closed

先物公開 API がエラーになることがある #13

nohtaray opened this issue Oct 6, 2017 · 2 comments

Comments

@nohtaray
Copy link

nohtaray commented Oct 6, 2017

先物公開 API に複数のパラメータを渡した場合にエラーになることがあります。
パラメータがパスに挿入される順番が不定になってしまうようです。
https://api.zaif.jp/fapi/1/last_price/1/btc_jpy
https://api.zaif.jp/fapi/1/last_price/btc_jpy/1
後者に当たった場合502が返ってきます。

from zaifapi import ZaifFuturesPublicApi

futures_api = ZaifFuturesPublicApi()
futures_api.last_price(group_id=1, currency_pair='btc_jpy')
Traceback (most recent call last):
...
  File ".../lib/python3.5/site-packages/zaifapi/exchange_api/public.py", line 81, in last_price
    currency_pair=currency_pair)
  File ".../lib/python3.5/site-packages/zaifapi/exchange_api/public.py", line 21, in _execute_api
    raise ZaifApiError('return status code is {}'.format(response.status_code))
zaifapi.api_error.ZaifApiError: return status code is 502
@RossyWhite
Copy link
Collaborator

報告ありがとうございます。
こちら確認して修正させていただきますね。

@RossyWhite RossyWhite mentioned this issue Oct 7, 2017
@RossyWhite
Copy link
Collaborator

@nohtaray

アップデートしましたので、ご確認ください。
https://pypi.python.org/pypi/zaifapi/1.6.2

何か問題ありましたらまたお気軽にお願いいたします:D

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

2 participants