{ "info": { "author": "tolgamorf", "author_email": "cryptolga@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Environment :: Console", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Natural Language :: English", "Operating System :: OS Independent", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.7", "Topic :: Software Development :: Libraries :: Python Modules" ], "description": "# python-coinzo\n\n[![PyPI version](https://img.shields.io/pypi/v/python-coinzo.svg)](https://pypi.python.org/pypi/python-coinzo)\n[![License](https://img.shields.io/pypi/l/python-coinzo.svg)](LICENSE)\n[![Travis CI](https://img.shields.io/travis/tolgamorf/python-coinzo.svg)](https://travis-ci.org/tolgamorf/python-coinzo)\n[![Wheel](https://img.shields.io/pypi/wheel/python-coinzo.svg)](https://pypi.python.org/pypi/python-coinzo)\n[![Python requirement](https://img.shields.io/pypi/pyversions/python-coinzo.svg)](https://pypi.python.org/pypi/python-coinzo)\n\npython-coinzo is a simple Python wrapper for [coinzo REST API](https://docs.coinzo.com). It requires Python 3.6+.\n\n---\n\n## Features\n* Implementation of REST endpoints\n* Simple handling of authentication\n* Response exception handling\n\n\n## Quick Start\n\n1. Register an account with [coinzo](https://www.coinzo.com/?ref=397461825936130049).\n2. [Generate an API key](https://www.coinzo.com/account/api) and assign relevant permissions.\n3. Install the python package using the following command.\n\n```bash\npip install python-coinzo\n```\n\n## To Do List\n* More helper functions\n* Websocket implementation\n* Tests\n\n## Examples\n\n### Initializing the API Client\n```python\nfrom coinzo.api import coinzo\ncoinzo = coinzo(\"\", \"\")\n```\n\n### Fetch ticker information for all trading pairs\n```python\ntickers = coinzo.all_tickers()\n```\n```json\n{\n \"BTC-TRY\": {\n \"low\": \"37972\",\n \"high\": \"41289\",\n \"last\": \"41019\",\n \"volume\": \"445.04\",\n \"daily_change\": \"2255\",\n \"daily_change_percentage\": \"5.81\"\n },\n \"CNZ-TRY\": {\n \"low\": \"0.078402\",\n \"high\": \"0.085452\",\n \"last\": \"0.084379\",\n \"volume\": \"14396298.29\",\n \"daily_change\": \"0.005059\",\n \"daily_change_percentage\": \"6.37\"\n }\n}\n```\n### Fetch ticker information for a pair\n```python\nticker = coinzo.ticker(\"BTC-TRY\")\n```\n```json\n{\n \"BTC-TRY\": {\n \"low\": \"37972\",\n \"high\": \"41289\",\n \"last\": \"41019\",\n \"volume\": \"445.04\",\n \"daily_change\": \"2255\",\n \"daily_change_percentage\": \"5.81\"\n }\n}\n```\n### Fetch market depth (order book info) for a pair\n```python\ndepth = coinzo.order_book(pair=\"HOT-TRY\")\n```\n```json\n{\n \"asks\": [{\n \"price\": 0.0076643,\n \"amount\": 67637,\n \"count\": 1\n }, {\n \"price\": 0.007704,\n \"amount\": 112916,\n \"count\": 1\n }],\n \"bids\": [{\n \"price\": 0.0076311,\n \"amount\": 129139,\n \"count\": 1\n }, {\n \"price\": 0.0076246,\n \"amount\": 78436,\n \"count\": 1\n }],\n \"total\": {\n \"bid\": 350621.63142392,\n \"ask\": 54458830.79696769\n }\n}\n```\n\n### Fetch latest trades for a pair\n```python\ntrades = coinzo.latest_trades(pair=\"HOT-TRY\")\n```\n```json\n[{\n \"price\": 0.0076221,\n \"amount\": 33597,\n \"side\": \"BUY\",\n \"created_at\": 1557603438\n}, {\n \"price\": 0.0076235,\n \"amount\": 27715,\n \"side\": \"SELL\",\n \"created_at\": 1557603378\n}]\n```\n\n### Place a market buy/sell order\n```python\nbuy_order = coinzo.place_market_buy_order(pair=\"NEO-TRY\", amount=\"1\")\nsell_order = coinzo.place_market_sell_order(pair=\"NEO-TRY\", amount=\"1\")\n```\n```json\n{\n \"id\": \"123456789012345678\"\n}\n```\n\n### Place a limit buy/sell order\n```python\nbuy_order = coinzo.place_limit_buy_order(\n pair=\"NEO-TRY\",\n amount=\"1\",\n limit_price=\"49.99\",\n)\nsell_order = coinzo.place_limit_sell_order(\n pair=\"NEO-TRY\",\n amount=\"1\",\n limit_price=\"60.01\",\n)\n```\n```json\n{\n \"id\": \"123456789012345678\"\n}\n```\n\n### Place a stop market buy/sell order\n```python\nbuy_order = coinzo.place_stop_market_buy_order(\n pair=\"NEO-TRY\",\n amount=\"1\",\n stop_price=\"55.01\",\n)\nsell_order = coinzo.place_stop_market_sell_order(\n pair=\"NEO-TRY\",\n amount=\"1\",\n stop_price=\"49.99\",\n)\n```\n```json\n{\n \"id\": \"123456789012345678\"\n}\n```\n\n### Place a stop limit buy/sell order\n```python\nbuy_order = coinzo.place_stop_limit_buy_order(\n pair=\"NEO-TRY\",\n amount=\"1\",\n limit_price=\"54.99\",\n stop_price=\"55.01\",\n)\nsell_order = coinzo.place_stop_limit_sell_order(\n pair=\"NEO-TRY\",\n amount=\"1\",\n limit_price=\"50.01\",\n stop_price=\"49.99\",\n)\n```\n```json\n{\n \"id\": \"123456789012345678\"\n}\n```\n\n### Fetch an order\n```python\norder = coinzo.order(order_id=\"123456789012345678\")\n```\n```json\n{\n \"id\": \"123456789012345678\",\n \"pair\": \"NEO-TRY\",\n \"side\": \"BUY\",\n \"type\": \"LIMIT\",\n \"limit_price\": 50.01,\n \"stop_price\": 0,\n \"original_amount\": 1,\n \"executed_amount\": 0,\n \"remaining_amount\": 1,\n \"active\": true,\n \"cancelled\": false,\n \"updated_at\": 1557604055\n}\n```\n\n### Fetch all open orders\nThe arguments `limit` and `page` are optional.\n* Defaults values: `limit=100`, `page=1`.\n\n```python\norders = coinzo.open_orders()\n```\n```json\n[{\n \"id\": \"123456789012345678\",\n \"pair\": \"NEO-TRY\",\n \"side\": \"BUY\",\n \"type\": \"LIMIT\",\n \"limit_price\": 50.01,\n \"stop_price\": 0,\n \"original_amount\": 1,\n \"executed_amount\": 0,\n \"remaining_amount\": 1,\n \"active\": true,\n \"cancelled\": false,\n \"updated_at\": 1557604055\n}, {\n \"id\": \"123456789012345678\",\n \"pair\": \"HOT-TRY\",\n \"side\": \"SELL\",\n \"type\": \"LIMIT\",\n \"limit_price\": 0.1,\n \"stop_price\": 0,\n \"original_amount\": 100000,\n \"executed_amount\": 0,\n \"remaining_amount\": 100000,\n \"active\": true,\n \"cancelled\": false,\n \"updated_at\": 1549109505\n}]\n```\n\n### Fetch the list of recent fills\nThe arguments `limit` and `page` are optional.\n* Defaults values: `limit=100`, `page=1`.\n\n```python\nfills = coinzo.fills(limit=2, page=1)\n```\n```json\n[{\n \"id\": \"123456789012345678\",\n \"order_id\": \"12345987630291234\",\n \"coin\": \"NEO\",\n \"fiat\": \"TRY\",\n \"side\": \"BUY\",\n \"price\": 53.383,\n \"amount\": 30,\n \"taker\": true,\n \"fee\": 20.29591797,\n \"used_cnz\": true,\n \"cnz_bonus\": 0,\n \"created_at\": 1557446830\n}, {\n \"id\": \"987654321098765432\",\n \"order_id\": \"12345987671349876\",\n \"coin\": \"CNZ\",\n \"fiat\": \"TRY\",\n \"side\": \"SELL\",\n \"price\": 0.078907,\n \"amount\": 20350,\n \"taker\": true,\n \"fee\": 3.2115149,\n \"used_cnz\": false,\n \"cnz_bonus\": 4.38821466,\n \"created_at\": 1557446668\n}]\n```\n\n### Cancel an order\n```python\ncoinzo.cancel_order(order_id=\"123456789012345678\")\n```\n```json\ntrue\n```\n\n### Cancel all open orders\n```python\ncoinzo.cancel_all_orders()\n```\n```json\ntrue\n```\n\n### Fetch the deposit address for a coin\n```python\naddress = coinzo.deposit_address(asset=\"BTC\")\n```\n```json\n{\n \"asset\": \"BTC\",\n \"address\": \"34cFKPBTaq12NKTNfs4HmhB9876SQDZfoE\"\n}\n```\n\n### Fetch the list of your deposits\nThe arguments `limit` and `page` are optional.\n* Defaults values: `limit=100`, `page=1`.\n\n```python\ndeposits = coinzo.deposit_history(limit=2, page=2)\n```\n```json\n[{\n \"id\": \"123456789012345678\",\n \"tx_id\": \"201901011234A567890\",\n \"asset\": \"TRY\",\n \"address\": \"CZ12345678\",\n \"amount\": 100,\n \"confirmations\": 1,\n \"completed\": true,\n \"created_at\": 1554702411\n}, {\n \"id\": \"987654321098765432\",\n \"tx_id\": \"abc01de2fabcdefabc345d6e060c15a15364eee8b449eb63e10c6f809d44d987\",\n \"asset\": \"EOS\",\n \"address\": \"EOS123456789\",\n \"amount\": 10,\n \"confirmations\": 3,\n \"completed\": true,\n \"created_at\": 1553425199\n}]\n```\n\n### Withdraw a coin\nThe arguments `tag` and `memo` are optional.\n* `tag`: Destination tag for XRP withdrawals.\n* `memo`: Memo for EOS withdrawals.\n\n```python\ncoinzo.withdraw(\n asset=\"EOS\",\n address=\"EOS123456789\",\n amount=\"10\",\n memo=\"EOS6Uabc1Ggua2stBtyqxiKxyzzVSdZSXYCFwZ9AB35cDefECxyzm\",\n)\n```\n```json\n{\n \"amount\": 10,\n \"asset\": \"EOS\",\n \"id\": \"450693154343354369\"\n}\n```\n\n### Fetch the list of your withdrawals\nThe arguments `limit` and `page` are optional.\n* Defaults values: `limit=100`, `page=1`.\n\n```python\nwithdrawals = coinzo.withdrawal_history(limit=1, page=3)\n```\n```json\n[\n {\n \"id\": \"321425023135652252\",\n \"tx_id\": \"95DD0893F9B2F0CBFEACDAF11672BAFC5BE1F097F450CD51F0420B44D81BF3C1\",\n \"asset\": \"XRP\",\n \"address\": \"rDQGVYCKC3StBmJV6my9uL1Dn9q7TzEGqS:964641378\",\n \"amount\": 19,\n \"status\": 1,\n \"created_at\": 1529758242\n }\n]\n```\n\n\n\n", "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/tolgamorf/python-coinzo", "keywords": "coinzo exchange rest api bitcoin ethereum btc eth neo eos xrp hot try", "license": "", "maintainer": "", "maintainer_email": "", "name": "python-coinzo", "package_url": "https://pypi.org/project/python-coinzo/", "platform": "", "project_url": "https://pypi.org/project/python-coinzo/", "project_urls": { "Homepage": "https://github.com/tolgamorf/python-coinzo" }, "release_url": "https://pypi.org/project/python-coinzo/0.1.5/", "requires_dist": [ "requests" ], "requires_python": ">=3.6", "summary": "coinzo REST API python implementation", "version": "0.1.5" }, "last_serial": 5979275, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "bf16798048117ebabd8f5ece74f8b07e", "sha256": "7de60c34e491ca2d75610aa2008026a423ae24cb3ae53f4a4401bfb72b794b34" }, "downloads": -1, "filename": "python_coinzo-0.1.0-py3-none-any.whl", "has_sig": false, "md5_digest": "bf16798048117ebabd8f5ece74f8b07e", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 8409, "upload_time": "2019-05-11T23:01:48", "url": "https://files.pythonhosted.org/packages/9a/8d/2765b9bf7a4a6d7ae194f5ec32586bccb242f6de581a1b3942a79aab253d/python_coinzo-0.1.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "3a2416f26d50f529cae8a0bedf6d3110", "sha256": "b2fd94128ae379430ce3eb4fe188e154f4279c4f17b41e50bbc4e0a04465476e" }, "downloads": -1, "filename": "python-coinzo-0.1.0.tar.gz", "has_sig": false, "md5_digest": "3a2416f26d50f529cae8a0bedf6d3110", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8552, "upload_time": "2019-05-11T23:01:51", "url": "https://files.pythonhosted.org/packages/6b/c3/a8f737826b8a796c9942a1c0ec7eea7d8b57c5f5ebbaa1bc57be7393f4da/python-coinzo-0.1.0.tar.gz" } ], "0.1.1": [ { "comment_text": "", "digests": { "md5": "3861557c04f5b06401d8e40e0314b3f2", "sha256": "12e9e5fe7d104786d1a4757222e4759442f1e00e0398bcb268995ccd17c8f129" }, "downloads": -1, "filename": "python_coinzo-0.1.1-py3-none-any.whl", "has_sig": false, "md5_digest": "3861557c04f5b06401d8e40e0314b3f2", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.6", "size": 8616, "upload_time": "2019-05-12T02:02:46", "url": "https://files.pythonhosted.org/packages/ee/b0/5b3a336fa2720a1bfb7409d5d5ec335f7b8d47cfd5c217b79d8464ac5e79/python_coinzo-0.1.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "7f64b521eea24f9c380a3d47111f8d50", "sha256": "5cd0d41f477c257992e9c20831c46dfac3206b469b154e890e663494c886cad4" }, "downloads": -1, "filename": "python-coinzo-0.1.1.tar.gz", "has_sig": false, "md5_digest": "7f64b521eea24f9c380a3d47111f8d50", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.6", "size": 8719, "upload_time": "2019-05-12T02:02:48", "url": "https://files.pythonhosted.org/packages/00/9f/c325de30af3de987607b05d53e18e546059a953b67a46a7fa90f1d829650/python-coinzo-0.1.1.tar.gz" } ], "0.1.2": [ { "comment_text": "", "digests": { "md5": "2ffbbfa9e7bd942005a6778f8ca17f13", "sha256": "0dbee9b18ccc4b4228ae1cc62adfb431343198e018700b8138afe8b5c01338d3" }, "downloads": -1, "filename": "python_coinzo-0.1.2-py3-none-any.whl", "has_sig": false, "md5_digest": "2ffbbfa9e7bd942005a6778f8ca17f13", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.6", "size": 8745, "upload_time": "2019-05-12T02:48:03", "url": "https://files.pythonhosted.org/packages/1e/d1/0e8feb00b104b2866b367585fbfe857e5317f519e017c4457a4c0f1d03b8/python_coinzo-0.1.2-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "704342bc48ca1c327133394389b8fee6", "sha256": "4a4d88ad5ff4e21ea5ce63ec1a3cce0fdf44b3945aa7bf5d694456fa36166a0c" }, "downloads": -1, "filename": "python-coinzo-0.1.2.tar.gz", "has_sig": false, "md5_digest": "704342bc48ca1c327133394389b8fee6", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.6", "size": 9050, "upload_time": "2019-05-12T02:48:05", "url": "https://files.pythonhosted.org/packages/93/88/d145c546509fba8fe89a3bff80782dd58eeb385550d250881529df005ab4/python-coinzo-0.1.2.tar.gz" } ], "0.1.3": [ { "comment_text": "", "digests": { "md5": "92c2990384637b0c1293cf9c40925432", "sha256": "150b583306531851c31d1d77d64495eac6063e4d33a470c413afade977d8eebd" }, "downloads": -1, "filename": "python_coinzo-0.1.3-py3-none-any.whl", "has_sig": false, "md5_digest": "92c2990384637b0c1293cf9c40925432", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.6", "size": 10399, "upload_time": "2019-05-14T21:37:18", "url": "https://files.pythonhosted.org/packages/22/c7/f28a2aa80e09af29652e7e7aac953c6f0df7f71d937fc9291225a488f03a/python_coinzo-0.1.3-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "ff3343137af1c8b3b1e81e7ea5887a07", "sha256": "e470c9198b45d476af04a64a20141f7f1e29034c81da56617ca3184ff3399534" }, "downloads": -1, "filename": "python-coinzo-0.1.3.tar.gz", "has_sig": false, "md5_digest": "ff3343137af1c8b3b1e81e7ea5887a07", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.6", "size": 11503, "upload_time": "2019-05-14T21:37:20", "url": "https://files.pythonhosted.org/packages/cc/bc/cb5e895ffe41425776ec2b426e78e02540e11b1858b21a15d52c77c0a0db/python-coinzo-0.1.3.tar.gz" } ], "0.1.4": [ { "comment_text": "", "digests": { "md5": "92fa38112d5577c94f6332cc0dfa2a7f", "sha256": "200c6f8ad9b92d0b091a3a469dec1f1b78ee7a0f25fa6c47eb5bf37be8c5e628" }, "downloads": -1, "filename": "python_coinzo-0.1.4-py3-none-any.whl", "has_sig": false, "md5_digest": "92fa38112d5577c94f6332cc0dfa2a7f", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.6", "size": 10961, "upload_time": "2019-06-15T21:35:08", "url": "https://files.pythonhosted.org/packages/01/12/f27f0ba150d8994aee0cf7451d302912ee6a5d8b32478b2ce830a55d3dbb/python_coinzo-0.1.4-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "2b76a3a442e123ed3f7ddd8618f74777", "sha256": "3ae43def09ae7b7bb6dfe4f68a913bede69a46bd23bcb4cb2027c8e03543d8fd" }, "downloads": -1, "filename": "python-coinzo-0.1.4.tar.gz", "has_sig": false, "md5_digest": "2b76a3a442e123ed3f7ddd8618f74777", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.6", "size": 10707, "upload_time": "2019-06-15T21:35:10", "url": "https://files.pythonhosted.org/packages/9b/ce/e91012dc085c739bc6af7aab0d204dba3f3ed683b1bcc84878b8f575ca99/python-coinzo-0.1.4.tar.gz" } ], "0.1.5": [ { "comment_text": "", "digests": { "md5": "92c53c27f223d69cf31539b5a22ce0dc", "sha256": "0f6b9004bea244254e1504e3c6f317e43f59933a6c6cde76b48b1f257051f52e" }, "downloads": -1, "filename": "python_coinzo-0.1.5-py3-none-any.whl", "has_sig": false, "md5_digest": "92c53c27f223d69cf31539b5a22ce0dc", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.6", "size": 10752, "upload_time": "2019-10-15T20:27:42", "url": "https://files.pythonhosted.org/packages/fc/1a/1daae10698139024a71db02bd4a9f76170e630b42410595073b8545289cb/python_coinzo-0.1.5-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "0fac024f346c02f7b6473b1c24de4f55", "sha256": "91cc9f05b375a96bff5caf3b98f3c3883f3b96bc4f26b5d9b7657a3e88b33d4d" }, "downloads": -1, "filename": "python-coinzo-0.1.5.tar.gz", "has_sig": false, "md5_digest": "0fac024f346c02f7b6473b1c24de4f55", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.6", "size": 10739, "upload_time": "2019-10-15T20:27:45", "url": "https://files.pythonhosted.org/packages/57/f0/b030174b40d947ba37e9ebc29701ae2a2114ff16df2283ffb1ac0b21c6ac/python-coinzo-0.1.5.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "92c53c27f223d69cf31539b5a22ce0dc", "sha256": "0f6b9004bea244254e1504e3c6f317e43f59933a6c6cde76b48b1f257051f52e" }, "downloads": -1, "filename": "python_coinzo-0.1.5-py3-none-any.whl", "has_sig": false, "md5_digest": "92c53c27f223d69cf31539b5a22ce0dc", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.6", "size": 10752, "upload_time": "2019-10-15T20:27:42", "url": "https://files.pythonhosted.org/packages/fc/1a/1daae10698139024a71db02bd4a9f76170e630b42410595073b8545289cb/python_coinzo-0.1.5-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "0fac024f346c02f7b6473b1c24de4f55", "sha256": "91cc9f05b375a96bff5caf3b98f3c3883f3b96bc4f26b5d9b7657a3e88b33d4d" }, "downloads": -1, "filename": "python-coinzo-0.1.5.tar.gz", "has_sig": false, "md5_digest": "0fac024f346c02f7b6473b1c24de4f55", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.6", "size": 10739, "upload_time": "2019-10-15T20:27:45", "url": "https://files.pythonhosted.org/packages/57/f0/b030174b40d947ba37e9ebc29701ae2a2114ff16df2283ffb1ac0b21c6ac/python-coinzo-0.1.5.tar.gz" } ] }