Help us understand the problem. What is going on with this article?

[Zaif]Pythonで簡単に仮想通貨の取引が出来るようにしてみた

More than 1 year has passed since last update.

最初に

  • 使う際には自己責任でお願いします。
  • 問題あれば、プルリクください。

なぜ作ったのか

  • いろいろな情報が公開されていたので、試したかった。
  • 通貨取引の業務を把握したかった。

使い方

githubのページgithubのページ(2017/04からこちらに引っ越しました)にも書いてありますが、こちらにも

  1. 適当なvirtualenv環境を作成
  2. pip install zaifapi
  3. あとはこんな感じ
from zaifapi.impl import ZaifPublicApi, ZaifPrivateApi

#ビットコインと日本円の終値を取得
zaif = ZaifPublicApi()
print(zaif.last_price('btc_jpy'))

#残高などのアカウント情報を取得
zaif = ZaifTradeApi(key, secret)
print(zaif.get_info())

公開されているAPIはすべて呼べるようにしてあります。

作ってみた感想

  • やっぱりrequestsは便利
  • cerberusがいい感じだった
  • 私のソースはJavaっぽい
Why do not you register as a user and use Qiita more conveniently?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
Comments
Sign up for free and join this conversation.
If you already have a Qiita account
Why do not you register as a user and use Qiita more conveniently?
You need to log in to use this function. Qiita can be used more conveniently after logging in.
You seem to be reading articles frequently this month. Qiita can be used more conveniently after logging in.
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away