{ "info": { "author": "Shohei Kamon", "author_email": "kamonshohei@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Natural Language :: English", "Programming Language :: Python", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.3" ], "description": "# Coincheck: Coincheck Api Library\n\ncoincheck \u306f [coincheck](https://coincheck.com) \u306e python \u88fd api \u30e9\u30a4\u30d6\u30e9\u30ea\u3067\u3059.\n\n```\n> from coincheck import market\n> m1 = market.Market()\n> m1.ticker()\n'{\"last\":30930,\"bid\":30810,\"ask\":30930,\"high\":31500,\"low\":30220,\"volume\":\"560.51814602\",\"timestamp\":1428338044}'\n```\n\n## Documentation\n\nDocumentation for Coincheck API is available at https://coincheck.com/documents/exchange/api\n\n### Order\n\n \u6ce8\u6587\u304c\u6c7a\u6e08\u3055\u308c\u305f\u3089\u3001\u30ad\u30e3\u30f3\u30bb\u30eb\u3067\u304d\u306a\u3044\u306e\u3067\u6ce8\u610f\u3057\u3066\u304f\u3060\u3055\u3044.\n\n```\n # 20000 jpy \u3067 0.1 \u306e bitcoin \u3092\u8cfc\u5165\u3059\u308b\u6ce8\u6587\u3092\u3059\u308b.\n > from coincheck import order, market, account\n > o1 = order.Order(secret_key=settings.secret_key, access_key=settings.access_key)\n > print(o1.buy_btc_jpy(rate=20000, amount=0.1))\n {\"success\":true,\"id\":1355414,\"amount\":\"0.1\",\"rate\":\"20000.0\",\"order_type\":\"buy\",\"pair\":\"btc_jpy\",\"created_at\":\"2015-04-06T16:56:19.821Z\"}\n \n # 40000 jpy \u3067 0.1 \u306e bitcoin \u3092\u58f2\u5374\u3059\u308b\u6ce8\u6587\u3092\u3059\u308b.\n > from coincheck import order, market, account\n > o1 = order.Order(secret_key=settings.secret_key, access_key=settings.access_key)\n > print(o1.sell_btc_jpy(rate=40000,amount=0.1))\n {\"success\":true,\"id\":1355421,\"amount\":\"0.1\",\"rate\":\"40000.0\",\"order_type\":\"sell\",\"pair\":\"btc_jpy\",\"created_at\":\"2015-04-06T16:57:26.487Z\"}\n \n # \u81ea\u5206\u306e\u6ce8\u6587\u306e\u4e00\u89a7\u3092\u8868\u793a\u3059\u308b.\n > from coincheck import order, market, account\n > o1 = order.Order(secret_key=settings.secret_key, access_key=settings.access_key)\n > print(o1.list())\n {\"success\":true,\"orders\":[{\"id\":676197,\"order_type\":\"buy\",\"rate\":20000,\"pair\":\"btc_jpy\",\"pending_amount\":\"0.1\",\"created_at\":\"2015-04-06T16:56:19.000Z\"},{\"id\":676201,\"order_type\":\"sell\",\"rate\":40000,\"pair\":\"btc_jpy\",\"pending_amount\":\"0.1\",\"created_at\":\"2015-04-06T16:57:26.000Z\"}]}\n \n # \u6ce8\u6587\u756a\u53f7 676197 \u306e\u6ce8\u6587\u3092\u30ad\u30e3\u30f3\u30bb\u30eb\u3059\u308b. (\u6ce8\u6587\u756a\u53f7\u306f coincheck.order.list() \u306eid)\n > from coincheck import order, market, account\n > o1 = order.Order(secret_key=settings.secret_key, access_key=settings.access_key)\n > print(o1.cancel('676197'))\n {\"success\":true,\"id\":676197}\n \n # \u81ea\u5206\u306e\u53d6\u5f15\u5c65\u6b74\u3092\u8868\u793a\u3059\u308b.\n > from coincheck import order, market, account\n > o1 = order.Order(secret_key=settings.secret_key, access_key=settings.access_key)\n > print(o1.history())\n {\"success\":true,\"transactions\":[{\"id\":21118,\"created_at\":\"2015-04-06T16:39:10.000Z\",\"funds\":{\"btc\":\"-0.02\",\"jpy\":\"624.6\"}}]}\n```\n \n### Market\n \ncoincheck \u306e\u5e02\u5834\u60c5\u5831\u3092\u53d6\u5f97\u3057\u307e\u3059.\n \n```\n # coincheck \u306e\u6700\u65b0\u5e02\u5834\u60c5\u5831\u3092\u53d6\u5f97\u3059\u308b.\n > from coincheck import order, market, account\n > m1 = market.Market()\n > print(m1.ticker())\n {\"last\":30820,\"bid\":30810,\"ask\":30820,\"high\":31500,\"low\":30220,\"volume\":\"559.78124602\",\"timestamp\":1428340013}\n \n # coincheck \u306e\u6700\u65b0\u53d6\u5f15\u5c65\u6b74\u3092\u53d6\u5f97\u3059\u308b.\n > from coincheck import order, market, account\n > m1 = market.Market()\n > print(m1.trades())\n [{\"id\":16143,\"amount\":\"0.25\",\"rate\":30820,\"order_type\":\"sell\",\"created_at\":\"2015-04-06T17:02:04.000Z\"},{\"id\":16142,\"amount\":\"0.249\",\"rate\":30930,\"order_type\":\"buy\",\"created_\nat\":\"2015-04-06T16:33:12.000Z\"},{\"id\":16141,\"amount\":\"0.4174\",\"rate\":30810,\"order_type\": ...\n\n # coincheck \u306e\u6700\u65b0\u677f\u60c5\u5831\u3092\u53d6\u5f97\u3059\u308b.\n > from coincheck import order, market, account\n > m1 = market.Market()\n > print(m1.orderbooks())\n {\"asks\":[[31740,\"2.25731223\"],[31750,\"0.35\"],...],\"bids\":[[30810,\"0.16228497\"],[30700,\"3.404\"],...]}\n```\n\n### Account\n\n\u30e6\u30fc\u30b6\u306e\u30a2\u30ab\u30a6\u30f3\u30c8\u60c5\u5831\u3092\u53d6\u5f97\u3057\u307e\u3059.\n\n```\n # \u30a2\u30ab\u30a6\u30f3\u30c8\u306e\u60c5\u5831\u3092\u8868\u793a\u3057\u307e\u3059.\n > from coincheck import order, market, account\n > a1 = account.Account(secret_key=settings.secret_key, access_key=settings.access_key)\n > print(a1.get_info())\n {\"success\":true,\"id\":0000,\"email\":\"kamonshohei@gmail.com\",\"identity_status\":\"identity_verified\",\"bitcoin_address\":\"...\"}\n \n # \u30a2\u30ab\u30a6\u30f3\u30c8\u306e\u6b8b\u9ad8\u3092\u78ba\u8a8d\u3067\u304d\u307e\u3059.\n > from coincheck import order, market, account\n > a1 = account.Account(secret_key=settings.secret_key, access_key=settings.access_key)\n > print(a1.get_balance())\n {\"success\":true,\"jpy\":\"...\",\"btc\":\"...\",\"jpy_reserved\":\"...\",\"btc_reserved\":\"...\",\"jpy_lend_in_use\":\"...\",\"btc_lend_in_use\":\"...\",\"jpy_lent\":\"...\",\"btc_lent\":\"...\",\"jpy_debt\":\"...\",\"btc_debt\":\"...\"}\n```\n\n\n## Environment\n\n- support Python 3.x,2.7)\n\n## Installation\n\n\n### git\n\n```\ngit clone git@github.com:kmn/coincheck.git\n```\n\n### pip \n\n```\npip install coincheck\n```\n## Initialization\n\n set your api access-key and secret-key to \"coincheck/settings.py\"\n to get your api keys , see [API key](https://coincheck.com/api_settings).\n\n## TODO\n\n- add test case\n- add offset to market.trade()\n\n\n## 0.1.11 (2018-11-2)\n\n- Security Update related to `CVE-2018-18074`\n\n## 0.1.10 (2016-11-11)\n\n- Fix some bugs\n\n## 0.1.9 (2016-11-11)\n\n- Change domain (from coincheck.jp to coincheck.com).\n\n## 0.1.8 (2015-12-18)\n\n- Add test code for order\n- Change return type of order instance.\n\n## 0.1.7 (2015-12-03)\n\n- Add test codes\n- Modify Nounce value from UNIX time (sec) to UNIX time (micro sec) * 1000000000\n- Fix some bugs\n\n## 0.0.1 (2015-04-06)\n\n- Birth!", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/kmn/coincheck", "keywords": "", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "coincheck", "package_url": "https://pypi.org/project/coincheck/", "platform": "", "project_url": "https://pypi.org/project/coincheck/", "project_urls": { "Homepage": "https://github.com/kmn/coincheck" }, "release_url": "https://pypi.org/project/coincheck/0.1.11/", "requires_dist": null, "requires_python": "", "summary": "Coincheck API Library for Python", "version": "0.1.11" }, "last_serial": 4446882, "releases": { "0.1.10": [ { "comment_text": "", "digests": { "md5": "8643ee86116624961c635633185d7d33", "sha256": "ff089a93af005daf6abb9b72e93ee36dff268aa695876213d835ab8733c4f195" }, "downloads": -1, "filename": "coincheck-0.1.10.tar.gz", "has_sig": false, "md5_digest": "8643ee86116624961c635633185d7d33", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6276, "upload_time": "2016-11-11T06:46:14", "url": "https://files.pythonhosted.org/packages/94/b4/09c45564a14893d1d242446bdb0328a23492576b8323daefbe5715efd06c/coincheck-0.1.10.tar.gz" } ], "0.1.11": [ { "comment_text": "", "digests": { "md5": "3be4feaf58c20d516cef052fa54c1123", "sha256": "eb5068f4a9a68ab0cf04d8542b1857bcc8f8a63a512b8ef00a0526d84724a5ad" }, "downloads": -1, "filename": "coincheck-0.1.11.tar.gz", "has_sig": false, "md5_digest": "3be4feaf58c20d516cef052fa54c1123", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6347, "upload_time": "2018-11-03T06:02:55", "url": "https://files.pythonhosted.org/packages/76/0f/151322a12e67a844e83ca65217febe67405372fd2970e3dd10ac500893a7/coincheck-0.1.11.tar.gz" } ], "0.1.3": [ { "comment_text": "built for Darwin-12.5.0", "digests": { "md5": "efac47142207c3db7bb523087e5b38f9", "sha256": "ad292a05b6c42b7bdf26612ed2f4e0152981eebea81b03fcf3d0915166afd9f8" }, "downloads": -1, "filename": "coincheck-0.1.3.macosx-10.8-intel.tar.gz", "has_sig": false, "md5_digest": "efac47142207c3db7bb523087e5b38f9", "packagetype": "bdist_dumb", "python_version": "any", "requires_python": null, "size": 6500, "upload_time": "2015-04-29T10:11:12", "url": "https://files.pythonhosted.org/packages/d8/88/958702992f416429ca1568b5b8a18e0d1253d6c9857244006546fd68e315/coincheck-0.1.3.macosx-10.8-intel.tar.gz" }, { "comment_text": "", "digests": { "md5": "447e2edee11af8fda67e7e7f674b2a50", "sha256": "e6b4888a530e0459b1f83fffc2ab5a966a094285ba7cfe519fd10d12eaa0126f" }, "downloads": -1, "filename": "coincheck-0.1.3-py2.7.egg", "has_sig": false, "md5_digest": "447e2edee11af8fda67e7e7f674b2a50", "packagetype": "bdist_egg", "python_version": "2.7", "requires_python": null, "size": 9928, "upload_time": "2015-04-29T10:11:15", "url": "https://files.pythonhosted.org/packages/72/31/7899989fb31a4071ff158381606d173a2f2bd567550fe3f790e4bf73ab63/coincheck-0.1.3-py2.7.egg" }, { "comment_text": "", "digests": { "md5": "90cc677f36ba5bdc66fd62117803ea50", "sha256": "15c27511f293ea539e6459d473a6ab2f391f6f4a4d9719b2a90de6a9213e56a1" }, "downloads": -1, "filename": "coincheck-0.1.3.tar.gz", "has_sig": false, "md5_digest": "90cc677f36ba5bdc66fd62117803ea50", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5931, "upload_time": "2015-04-29T10:11:10", "url": "https://files.pythonhosted.org/packages/26/c8/02fada400a0f25d95e04dea673fd7d6ba84f6474534518b5d09a39d45b58/coincheck-0.1.3.tar.gz" } ], "0.1.4": [ { "comment_text": "built for Darwin-12.5.0", "digests": { "md5": "b3e4aabfd1392b1cf1c5c22191f66448", "sha256": "d4227015f0ea6c4419ca452f32e9cdb0ff4dcbd89e392ea2181d4b3d07a47ea3" }, "downloads": -1, "filename": "coincheck-0.1.4.macosx-10.8-intel.tar.gz", "has_sig": false, "md5_digest": "b3e4aabfd1392b1cf1c5c22191f66448", "packagetype": "bdist_dumb", "python_version": "any", "requires_python": null, "size": 6503, "upload_time": "2015-04-29T10:12:48", "url": "https://files.pythonhosted.org/packages/43/7a/cc7ab2fef0c71e3a64ff6db9cad5d6961d9c8b7accabe9a70c1eb00eac59/coincheck-0.1.4.macosx-10.8-intel.tar.gz" }, { "comment_text": "", "digests": { "md5": "2a22f359ca2272f82ff59a973d414ba6", "sha256": "69d9fd90983ea1301df8b0a84b4545423dced12bef7b8eed580bfa6fbbdab379" }, "downloads": -1, "filename": "coincheck-0.1.4-py2.7.egg", "has_sig": false, "md5_digest": "2a22f359ca2272f82ff59a973d414ba6", "packagetype": "bdist_egg", "python_version": "2.7", "requires_python": null, "size": 9930, "upload_time": "2015-04-29T10:12:51", "url": "https://files.pythonhosted.org/packages/00/ec/fc405fd8ea01d7ca239f1346c514c145c2fe41b327421df689557ff62cee/coincheck-0.1.4-py2.7.egg" }, { "comment_text": "", "digests": { "md5": "d9caaeb244846d5fbc6fefe86a19ce31", "sha256": "d6a347c9cc6e7a5665563c45708b897516f665793fdb6d675f5b9da8001ba560" }, "downloads": -1, "filename": "coincheck-0.1.4.tar.gz", "has_sig": false, "md5_digest": "d9caaeb244846d5fbc6fefe86a19ce31", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5938, "upload_time": "2015-04-29T10:12:45", "url": "https://files.pythonhosted.org/packages/91/d0/57582a1c21dac827a25ac8c554c9aaec94da71f700fc498b2455bbeb79d0/coincheck-0.1.4.tar.gz" } ], "0.1.5": [ { "comment_text": "built for Darwin-12.5.0", "digests": { "md5": "e1568dd384a8f1422f4e1684d51012a5", "sha256": "dea41ea0919e8bcce5cb13c5faed660cf4e671ef3a06f8e8374c3e4daf63268e" }, "downloads": -1, "filename": "coincheck-0.1.5.macosx-10.8-intel.tar.gz", "has_sig": false, "md5_digest": "e1568dd384a8f1422f4e1684d51012a5", "packagetype": "bdist_dumb", "python_version": "any", "requires_python": null, "size": 6497, "upload_time": "2015-04-29T11:22:38", "url": "https://files.pythonhosted.org/packages/82/23/7548047e27e7233c51d804fff77ed77914ba423272093be1674f1ab47c15/coincheck-0.1.5.macosx-10.8-intel.tar.gz" }, { "comment_text": "", "digests": { "md5": "10d698e0d7736db76804d7853e7ee026", "sha256": "6d0bc1633e6fd75754a15b080e58a1c1fb3ccf8502a39ce36f07bef6ecf90396" }, "downloads": -1, "filename": "coincheck-0.1.5.tar.gz", "has_sig": false, "md5_digest": "10d698e0d7736db76804d7853e7ee026", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5929, "upload_time": "2015-04-29T12:07:01", "url": "https://files.pythonhosted.org/packages/78/a3/f1afb01002ae9829ee7beeba92e08f7bfa5449e10fc6d9d9166477cc6047/coincheck-0.1.5.tar.gz" } ], "0.1.6": [ { "comment_text": "", "digests": { "md5": "80e1a45034d2385b4eb6041b76ee8a8a", "sha256": "07c0153d8b41cff67f4b127618e07b2e26115c0e0cdfdf2aa32220eef4f48099" }, "downloads": -1, "filename": "coincheck-0.1.6.tar.gz", "has_sig": false, "md5_digest": "80e1a45034d2385b4eb6041b76ee8a8a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5925, "upload_time": "2015-04-29T12:10:17", "url": "https://files.pythonhosted.org/packages/cf/cc/ded30de86d26151ef384e7cc944662c897334791e5e97e5d2a1768fc9e6b/coincheck-0.1.6.tar.gz" } ], "0.1.7": [ { "comment_text": "", "digests": { "md5": "11f49a388a4bef74bde24016fb087dd0", "sha256": "50c16558831ff95ee9d1367464b87b8cf4c2470f25cd5f5be21d4bb7f2464a2b" }, "downloads": -1, "filename": "coincheck-0.1.7.tar.gz", "has_sig": false, "md5_digest": "11f49a388a4bef74bde24016fb087dd0", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5968, "upload_time": "2015-12-04T13:49:18", "url": "https://files.pythonhosted.org/packages/1c/08/c3f2f7a58b772275e70fcdcfbf9eb7d001bcc29497b1b80ea614a6ceb27d/coincheck-0.1.7.tar.gz" } ], "0.1.8": [ { "comment_text": "", "digests": { "md5": "585a3d7d90100da66d1e484e0ce7dbe9", "sha256": "21899383caa156ca8f68fb2c37aa2be254b462247aac51e7dda4a03cb394dec6" }, "downloads": -1, "filename": "coincheck-0.1.8.tar.gz", "has_sig": false, "md5_digest": "585a3d7d90100da66d1e484e0ce7dbe9", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5965, "upload_time": "2015-12-18T03:59:08", "url": "https://files.pythonhosted.org/packages/de/c9/552fe75a9d7d362ed054a492193b326c3864c15c94dc46520565e347e405/coincheck-0.1.8.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "3be4feaf58c20d516cef052fa54c1123", "sha256": "eb5068f4a9a68ab0cf04d8542b1857bcc8f8a63a512b8ef00a0526d84724a5ad" }, "downloads": -1, "filename": "coincheck-0.1.11.tar.gz", "has_sig": false, "md5_digest": "3be4feaf58c20d516cef052fa54c1123", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6347, "upload_time": "2018-11-03T06:02:55", "url": "https://files.pythonhosted.org/packages/76/0f/151322a12e67a844e83ca65217febe67405372fd2970e3dd10ac500893a7/coincheck-0.1.11.tar.gz" } ] }