{ "info": { "author": "Yusuke Oya", "author_email": "curio@antique-cafe.net", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.7" ], "description": "zaifer\n=============\n![](https://img.shields.io/apm/l/vim-mode.svg)\n![](https://img.shields.io/badge/Python-after%20v3-red.svg)\n[![](https://img.shields.io/pypi/v/zaifer.svg)](https://pypi.org/project/zaifer/)\n\nzaifer\u3068\u306f\u3001ZaifAPI\u3092Python\u304b\u3089\u547c\u3073\u51fa\u3059\u305f\u3081\u306e\u30e9\u30a4\u30d6\u30e9\u30ea\u3067\u3059\u3002\nwebapi\u3092\u5229\u7528\u3059\u308b\u305f\u3081\u306e\u7169\u96d1\u306a\u624b\u7d9a\u304d\u3092\u96a0\u853d\u3057\u3001\nmethod\u30d9\u30fc\u30b9\u3067ZaifAPI\u3092\u7c21\u5358\u306b\u5229\u7528\u3067\u304d\u307e\u3059\u3002\n\n\u4f7f\u3044\u65b9\n-------------\n\uff11\uff0eZaif\u306e\u30a2\u30ab\u30a6\u30f3\u30c8\u30da\u30fc\u30b8\u3067APIKey\u3092\u767a\u884c\u3057\u307e\u3059\u3002\n\n```\nAPIKey\u306f\u7b2c\uff13\u8005\u306b\u660e\u304b\u3055\u306a\u3044\u3088\u3046\u5927\u5207\u306b\u6271\u3063\u3066\u304f\u3060\u3055\u3044\u3002\n```\n\n\uff12\uff0epip\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u3001\u30e2\u30b8\u30e5\u30fc\u30eb\u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u3066\u304f\u3060\u3055\u3044\u3002\n\n```\npip install zaifer\n```\n\n\uff13\uff0e\u30af\u30e9\u30b9\u3092\u30a4\u30f3\u30dd\u30fc\u30c8\u3057\u3001\u4e0b\u8a18\u306e\u901a\u308a\u4f7f\u7528\u3057\u3066\u304f\u3060\u3055\u3044\u3002\n\n```python\nfrom datetime import datetime\nfrom decimal import Decimal\n\nfrom zaifer import *\n\n\n# Zaif\u306e\u30a2\u30ab\u30a6\u30f3\u30c8\u753b\u9762\u3067\u53d6\u5f97\u3057\u305fAPI\u30ad\u30fc\u3092\u8a2d\u5b9a\u3057\u307e\u3059\u3002\nkey = 'aa75ffcc-6c72-4b54-a936-xxxxxxxxxxxx'\nsecret = '0fbe7367-0821-4417-9c65-xxxxxxxxxxxx'\n\n# \u30a2\u30ab\u30a6\u30f3\u30c8\u60c5\u5831\u3092\u53d6\u5f97\u3057\u307e\u3059\u3002\naccount = Account(key, secret)\nprint(account.get_info())\nprint(account.get_info2())\nprint(account.get_personal_info())\nprint(account.get_id_info())\nprint(account.withdraw('btc', '17A16QmavnUfCW11DAApiJxp7ARxxxxxxxx', Decimal('10.0'), None, Decimal('0.0005')))\nprint(account.get_deposit_history('jpy'))\nprint(account.get_withdraw_history('btc'))\n\n# \u30c1\u30e3\u30fc\u30c8\u60c5\u5831\u3092\u53d6\u5f97\u3057\u307e\u3059\u3002\nchart = Chart()\nprint(chart.get_ohlc('btc_jpy', '60', datetime(\n 2018, 11, 4, 0), datetime(2018, 11, 5, 0)))\n\n# \u73fe\u7269\u53d6\u5f15\u306e\u30de\u30fc\u30b1\u30c3\u30c8\u60c5\u5831\u3092\u53d6\u5f97\u3057\u307e\u3059\u3002\nmarket = Market()\nprint(market.get_currencies('all'))\nprint(market.get_currency_pairs('btc_jpy'))\nprint(market.get_last_price('btc_jpy'))\nprint(market.get_ticker('btc_jpy'))\nprint(market.get_trade_history('btc_jpy'))\nprint(market.get_depth('btc_jpy'))\n\n# \u73fe\u7269\u53d6\u5f15\u306e\u6ce8\u6587\u60c5\u5831\u3092\u53d6\u5f97\u30fb\u9001\u4fe1\u3057\u307e\u3059\u3002\ntrade = Trade(key, secret)\nprint(trade.get_trade_history('btc_jpy', datetime(2018, 11, 5)))\nprint(trade.get_active_orders())\nprint(trade.open_order('btc_jpy', 'bid', Decimal('780000'), Decimal('1')))\nprint(trade.cancel_order(92537563))\n\n# AirFX\u306e\u30de\u30fc\u30b1\u30c3\u30c8\u60c5\u5831\u3092\u53d6\u5f97\u3057\u307e\u3059\u3002\nairfx_market = AirFXMarket()\nprint(airfx_market.get_last_price())\nprint(airfx_market.get_ticker())\nprint(airfx_market.get_trade_history())\nprint(airfx_market.get_depth())\nprint(airfx_market.get_swap_history())\n\n# AirFX\u306e\u6ce8\u6587\u60c5\u5831\u3092\u53d6\u5f97\u30fb\u9001\u4fe1\u3057\u307e\u3059\u3002\nairfx_trade = AirFXTrade(key, secret)\nprint(airfx_trade.get_positions())\nprint(airfx_trade.get_position_history(2864))\nprint(airfx_trade.get_active_positions())\nprint(airfx_trade.create_position('bid', 420100, 1, 4))\nprint(airfx_trade.update_position(22904, 720000))\nprint(airfx_trade.cancel_position(22905))\n```\n\n\u95a2\u9023\u60c5\u5831\n-------------\n* [ZaifAPI\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8](https://zaif-api-document.readthedocs.io/ja/latest/)", "description_content_type": "text/markdown", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/curio184/zaifer", "keywords": "zaif zaifapi zaif-exchange trade bot", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "zaifer", "package_url": "https://pypi.org/project/zaifer/", "platform": "", "project_url": "https://pypi.org/project/zaifer/", "project_urls": { "Homepage": "https://github.com/curio184/zaifer" }, "release_url": "https://pypi.org/project/zaifer/1.2.0/", "requires_dist": null, "requires_python": "", "summary": "zaifer is a zaifapi wrapper library. this library make easily to use zaifapi on python.", "version": "1.2.0" }, "last_serial": 5954300, "releases": { "1.0.7": [ { "comment_text": "", "digests": { "md5": "e3fc39f861f3f86036e1fd6e881d4b06", "sha256": "d886cc2d762ffd2cd61148d9108648cad6dfa6ebca446e479ad185d7ac68aeba" }, "downloads": -1, "filename": "zaifer-1.0.7.tar.gz", "has_sig": false, "md5_digest": "e3fc39f861f3f86036e1fd6e881d4b06", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8300, "upload_time": "2018-11-23T05:08:11", "url": "https://files.pythonhosted.org/packages/4e/23/d4ec8700c1528b5facef217540c8ae12afc9d1f42057ee0c467ef15497f5/zaifer-1.0.7.tar.gz" } ], "1.0.8": [ { "comment_text": "", "digests": { "md5": "8c3ed373baa665c7b862abceea14bac5", "sha256": "6324b327f180a9cfa4ce7a8cfdf307d7b08a711bc7c33cf6ecd92d762f525809" }, "downloads": -1, "filename": "zaifer-1.0.8.tar.gz", "has_sig": false, "md5_digest": "8c3ed373baa665c7b862abceea14bac5", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8417, "upload_time": "2019-05-27T08:38:47", "url": "https://files.pythonhosted.org/packages/81/7a/d2edc9d6b1ca70894e76ee04d6d986a49fa16b8a74bd6cf6663a3a113331/zaifer-1.0.8.tar.gz" } ], "1.0.9": [ { "comment_text": "", "digests": { "md5": "f5660edaf5b1af5fce7067c7ddf94d51", "sha256": "78a8c76c4d136b6b416a278f7520e5a4dae08f4de93cb842374fa5da807fc03b" }, "downloads": -1, "filename": "zaifer-1.0.9.tar.gz", "has_sig": false, "md5_digest": "f5660edaf5b1af5fce7067c7ddf94d51", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8436, "upload_time": "2019-06-19T06:40:18", "url": "https://files.pythonhosted.org/packages/a8/34/4c56c7f39327e6a50374092398eda71c632d95b543d3d214dcd120799aac/zaifer-1.0.9.tar.gz" } ], "1.1.0": [ { "comment_text": "", "digests": { "md5": "71ace9363a5ce13df52445ea25780e0e", "sha256": "46de57aafcfaed46c66068c011914f1ceb1bfae4fa6015a393ab95fdf52b35ae" }, "downloads": -1, "filename": "zaifer-1.1.0.tar.gz", "has_sig": false, "md5_digest": "71ace9363a5ce13df52445ea25780e0e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8573, "upload_time": "2019-06-26T16:45:50", "url": "https://files.pythonhosted.org/packages/28/73/a1a47bd306c3fc220b0909f71182ea6c1fc52fa63cdf20ed90cb37286ff9/zaifer-1.1.0.tar.gz" } ], "1.1.1": [ { "comment_text": "", "digests": { "md5": "2e6cbf426548f3da4bc013f22b8a2137", "sha256": "9731a2c8d80f2c57775e25dbb485051abba7eefa632d21dee6ecfbfe35036ccd" }, "downloads": -1, "filename": "zaifer-1.1.1.tar.gz", "has_sig": false, "md5_digest": "2e6cbf426548f3da4bc013f22b8a2137", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8586, "upload_time": "2019-07-03T15:20:36", "url": "https://files.pythonhosted.org/packages/36/ca/0548ce2dc3ddf30ff040a6dd7600acc5c557425ae4d8bbac2e6abb7475a2/zaifer-1.1.1.tar.gz" } ], "1.1.2": [ { "comment_text": "", "digests": { "md5": "d860839f27ed0583355ef9b4ab20b1fa", "sha256": "787bc0cfdc36861b086caf2472fe492f8335f782742c287306d4a2c936510245" }, "downloads": -1, "filename": "zaifer-1.1.2.tar.gz", "has_sig": false, "md5_digest": "d860839f27ed0583355ef9b4ab20b1fa", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8634, "upload_time": "2019-07-03T15:52:02", "url": "https://files.pythonhosted.org/packages/81/c6/dca0ba48cdfdee06d778f5ddbb83fed26c3afbd0ddbd356ec3e4e595968a/zaifer-1.1.2.tar.gz" } ], "1.1.3": [ { "comment_text": "", "digests": { "md5": "93f7fcc6ef7c21bd3894615a04ed32aa", "sha256": "e9189a20f12a49ed49f0f7313c14487d58d7ca4614a09a6dda732f0a2039ee7a" }, "downloads": -1, "filename": "zaifer-1.1.3.tar.gz", "has_sig": false, "md5_digest": "93f7fcc6ef7c21bd3894615a04ed32aa", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8671, "upload_time": "2019-07-03T16:54:10", "url": "https://files.pythonhosted.org/packages/50/2a/1ebdfd8e7a6b747994fccbf2ac6e9e2db3ed8ddabb1702ccff655e38f7aa/zaifer-1.1.3.tar.gz" } ], "1.1.4": [ { "comment_text": "", "digests": { "md5": "f8ca31c20415c0f9e600498925c20b26", "sha256": "ab323aa5340711df98fc281cb5a24b7787eada3cedcaee4012f70707ea558fe6" }, "downloads": -1, "filename": "zaifer-1.1.4.tar.gz", "has_sig": false, "md5_digest": "f8ca31c20415c0f9e600498925c20b26", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8620, "upload_time": "2019-07-09T07:57:20", "url": "https://files.pythonhosted.org/packages/d3/b5/2c8973db70482b199dc9c79b2c4a27401f4c956d38ce578a72e20bed59d2/zaifer-1.1.4.tar.gz" } ], "1.1.5": [ { "comment_text": "", "digests": { "md5": "9ca045a8442eb098f25a999a2c05370d", "sha256": "5414ade4d24c16307438f56815e09227eb12fcf801d97a09c5f2713a2b37101c" }, "downloads": -1, "filename": "zaifer-1.1.5.tar.gz", "has_sig": false, "md5_digest": "9ca045a8442eb098f25a999a2c05370d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8748, "upload_time": "2019-07-09T10:25:14", "url": "https://files.pythonhosted.org/packages/7d/64/49f65891d0d4f2a69a2b25ddd21330cd5f9aae6c29fa950068b05b0157d8/zaifer-1.1.5.tar.gz" } ], "1.1.6": [ { "comment_text": "", "digests": { "md5": "2e13c60290bce318dabec65544d1841b", "sha256": "b9e6cbd9b708900a285de4a0c0cbdc98dea1e1a189141364bf88dbefe2776ee3" }, "downloads": -1, "filename": "zaifer-1.1.6.tar.gz", "has_sig": false, "md5_digest": "2e13c60290bce318dabec65544d1841b", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8784, "upload_time": "2019-07-09T10:37:11", "url": "https://files.pythonhosted.org/packages/a2/03/80a72347650e1d6d0e407d7b93dadd08f0e8247771fe4c8eb16cd3d05c78/zaifer-1.1.6.tar.gz" } ], "1.1.7": [ { "comment_text": "", "digests": { "md5": "c53c41946c56f0f38a74bbd0c34c744e", "sha256": "d0b02399a96697a619074fd526ea3b55814722b3a0863f3d8dfd4a6ae5231cba" }, "downloads": -1, "filename": "zaifer-1.1.7.tar.gz", "has_sig": false, "md5_digest": "c53c41946c56f0f38a74bbd0c34c744e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8816, "upload_time": "2019-07-09T12:48:46", "url": "https://files.pythonhosted.org/packages/30/6a/60370b7343b57f0d4ea92378b30685c0ba9bbcd731dbead42f665d81c7bb/zaifer-1.1.7.tar.gz" } ], "1.1.8": [ { "comment_text": "", "digests": { "md5": "0c623203907e778a3c3251f2dfd47aa2", "sha256": "ee186db38c16996e226e924889129c0ee816dc3c534801b68d4b297689b7b3be" }, "downloads": -1, "filename": "zaifer-1.1.8.tar.gz", "has_sig": false, "md5_digest": "0c623203907e778a3c3251f2dfd47aa2", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8860, "upload_time": "2019-07-11T02:13:18", "url": "https://files.pythonhosted.org/packages/95/63/536f348ef05096223c6311cfcadb60ee96f3e4997b3fa77dcdfb60c4f139/zaifer-1.1.8.tar.gz" } ], "1.2.0": [ { "comment_text": "", "digests": { "md5": "094bad8df6b0d37530569cfe7989bfd8", "sha256": "8f72f0620c4ac2cb63619b089149d30844f47281d6331d3aa81d7acb75b4a170" }, "downloads": -1, "filename": "zaifer-1.2.0.tar.gz", "has_sig": false, "md5_digest": "094bad8df6b0d37530569cfe7989bfd8", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 9725, "upload_time": "2019-10-10T11:18:02", "url": "https://files.pythonhosted.org/packages/6a/e6/6e1f063e5d64ca23fdcf5144ecbe70d0c19a878a3b262eab05971540ae69/zaifer-1.2.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "094bad8df6b0d37530569cfe7989bfd8", "sha256": "8f72f0620c4ac2cb63619b089149d30844f47281d6331d3aa81d7acb75b4a170" }, "downloads": -1, "filename": "zaifer-1.2.0.tar.gz", "has_sig": false, "md5_digest": "094bad8df6b0d37530569cfe7989bfd8", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 9725, "upload_time": "2019-10-10T11:18:02", "url": "https://files.pythonhosted.org/packages/6a/e6/6e1f063e5d64ca23fdcf5144ecbe70d0c19a878a3b262eab05971540ae69/zaifer-1.2.0.tar.gz" } ] }