Git Product home page Git Product logo

zaifapi's Introduction

zaifapi

zaifが公開しているAPIを簡単に呼べる用にしました。 ご利用は自己責任でご自由にどうぞ

使い方

1.pipコマンドを実行し、モジュールをダウンロードしてください

pip install zaifapi

2.クラスをインポートし、下記例の用に使用してください

from zaifapi.impl import ZaifPublicApi, ZaifPrivateApi
zaif = ZaifPublicApi()
print(zaif.last_price('btc_jpy'))

zaif = ZaifPrivateApi(key, secret)
print(zaif.get_info())

機能紹介

ZaifPublicApi

Zaifが公開している認証情報が要らないAPIを実行するクラスです


last_price(currency_pair):終値を取得

ticker(currency_pair):ティッカー

trades(currency_pair):全ての取引履歴

depth(currency_pair):板情報

streaming(currency_pair):websocketを利用したリアルタイム板情報と終値

名前 必須 説明 デフォルト値
currency_pair 取得する通貨ペア -
戻り値:json

currency_pairはbtc_jpy、xem_jpy、mona_jpy、mona_btcが指定可能です

詳細は下記参考を御覧ください。

参考


ZaifPrivateApi

Zaifが公開している認証情報が必要なAPIを実行するクラスです


インスタンス生成時に、zaifで発行出来るkeyとsecretの文字列を指定してください。 その際、権限設定にご注意ください。

実行出来るメソッド名やパラメータは下記参考ページそのままなので、そこをご覧ください。

ただし、fromパラメータはfrom_numと指定してください。

戻り値はすべてjsonとなっています。

参考


関連情報

  1. ググレカス(ブログ)
  2. LinkedIn

ライセンス

Distributed under the [MIT License][mit]. [MIT]: http://www.opensource.org/licenses/mit-license.php

zaifapi's People

Contributors

akira-taniguchi avatar

Stargazers

 avatar  avatar  avatar yajamon avatar  avatar  avatar Masaru Matsunaga avatar Tongda Zhang avatar

Watchers

etsubo avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.