{ "info": { "author": "Freeman", "author_email": "fr3eman@protonmail.com", "bugtrack_url": null, "classifiers": [], "description": "STRAKS Block Explorer Python Module\n===================================\n\n.. image:: straks_icon.png\n\nThis library serves as a python interface to access relevant information about the STRAKS crypto currency.\n\n* `STRAKS Website `_\n\n* `STRAKS Github `_\n\n* `STRAKS Block Explorer `_\n\n\nInstallation\n~~~~~~~~~~~~\n\n* pystraksexplorer is avaiable via pip and is supported for both python 2 and 3:\n\n::\n\n pip3 install pystraksexplorer\n\n\n* Or you can download the source code from the github `here `_, and then install the package using\n\n::\n\n python3 setup.py install\n\nUseage\n~~~~~~~~~~~~\n\nThe library is seperated into two classes, with more to be added in the future.\n\nStraksExplorer - This class exposes functions to interact with the STRAKS blockchain explorer API and the Coin Market Cap API.\n\n* With this class uses can access blockchain information and core STRAKS network stastics. See straks.info/api for the official API documentation.\n\n* This class also exposes an endpoint to access the current STRAKS information from Coin Market Cap.\n\nStocksExchange - This class exposes functions to interact with the Socks Exchange API\n\n* With this class users can access Stocks Exchange information about the current markets, prices, orders etc.\n\n* Be default every function is configured to only access STRAKS data, however parameters can be passed to each function to retrieve information from any coin pair.\n\n\nStraksExplorer\n~~~~~~~~~~~~~~\n.. code:: python\n\n >>> from pystraksexplorer import StraksExplorer\n >>>\n >>> s = StraksExplorer()\n >>>\n >>> s.get_latest_block()\n {'last_block': 1519821473, 'block_height': 139893, 'difficulty': 1326.42908167, 'hashrate': 112648332742.3684, 'total_coins': 42548130, 'circulating_coins': 2047421.0002712, 'total_txs': 195600, 'total_size': 108500529}\n >>>\n >>> s.get_difficulty()\n 1301.18019592\n >>>\n >>> s.get_total_supply()\n 42548150.0\n >>>\n >>> s.get_blocks(1,1)\n {'blocks': [{'height': 139896, 'time': 1519821570, 'hash': '000000000024e75415eb76329b745095c54ec3cf4bbf50a146bf3c1cda983b0a', 'size': 707, 'difficulty': 1323.18032665, 'txlength': 3, 'value': 16.59875252}], 'length': 1, 'pagination': {'totalBlocks': 139897, 'totalPages': 139897, 'currentPage': 1, 'limit': 1}}\n >>>\n >>> s.get_block_from_block_hash('000000000024e75415eb76329b745095c54ec3cf4bbf50a146bf3c1cda983b0a')\n {'hash': '000000000024e75415eb76329b745095c54ec3cf4bbf50a146bf3c1cda983b0a', 'size': 707, 'height': 139896, 'version': 536870912, 'merkleroot': 'a2244e8afd226517830d2a13b49581eb5c970d46af30daf5d614238bf594ad5e', 'tx': ['b1fdcbae4ec2817dae32db1ea4b69cc324f885768a932fea9f8dafb655e9481c']\n >>>\n >>> s.get_address_balance('33Ssxmn3ehVMgyxgegXhpLGSBpubPjLZQ6')\n 1623050000000\n >>>\n >>> s.get_address_total_sent('33Ssxmn3ehVMgyxgegXhpLGSBpubPjLZQ6')\n 0\n >>>\n >>> s.get_masternodes('enabled',1,1)\n {'masternodes': [{'address': 'SWWuKDKaJBfWisJ1ebJmNfUDddh1bS6ske', 'status': 'enabled', 'protocol': 70102, 'active': 268501, 'txIn': '5c59eac2e18fb87e1df56afbc73667c3fc70922283e53c1f3071b87629f0e018', 'lastSeen': 1519823363, 'lastUpdate': 1519823400}], 'pagination': {'totalMasternodes': 91, 'totalPages': 91, 'currentPage': 1, 'limit': 1}}\n\nCoinmarketcap Ticker\n~~~~~~~~~~~~~~~~~~~~\n.. code:: python\n\n >>> s.cmc_ticker()\n {'id': 'straks', 'name': 'STRAKS', 'symbol': 'STAK', 'rank': '751', 'price_usd': '0.556911', 'price_btc': '0.00006754', '24h_volume_usd': '8804.2', 'market_cap_usd': '1899674.0', 'available_supply': '3411091.0', 'total_supply': '43187820.0', 'max_supply': '150000000.0', 'percent_change_1h': '-5.86', 'percent_change_24h': '26.99', 'percent_change_7d': '105.91', 'last_updated': '1524165861'}\n\nStocksExchange\n~~~~~~~~~~~~~~\n.. code:: python\n\n >>> from pystraksexplorer import StocksExchange\n >>> se = StocksExchange()\n >>>\n >>> se.get_orderbook()\n {'buy': [{'Quantity': '0.00028761', 'Rate': '6.11301372'}, {'Quantity': '0.00120270', 'Rate': '25.56781462'}, {'Quantity': '0.00078476', 'Rate': '16.69365523'}, {'Quantity': '0.09004684', 'Rate': '1915.89029283'}, {'Quantity': '0.00573982', 'Rate': '140.40680039'},\n >>> se.get_market_summary()\n {'currency': 'STAK', 'partner': 'BTC', 'currency_long': 'Straks', 'partner_long': 'Bitcoin', 'min_order_amount': '0.00000010', 'min_buy_price': '0.00000001', 'min_sell_price': '0.00000001', 'buy_fee_percent': '0.2', 'sell_fee_percent': '0.2', 'active': True, 'currency_precision': 8, 'partner_precision': 8, 'market_name': 'STAK_BTC'}\n >>>\n >>>\n >>> se.get_ticker()\n {'min_order_amount': '0.00000010', 'ask': '0.00006', 'bid': '0.000047', 'last': '0.00005898', 'lastDayAgo': '0.00005899', 'vol': '6355.29200243', 'spread': '0', 'buy_fee_percent': '0', 'sell_fee_percent': '0', 'market_name': 'STAK_BTC', 'updated_time': 1524166204, 'server_time': 1524166204}\n >>>\n >>>\n >>> se.get_price()\n {'buy': '0.00004705', 'sell': '0.00005886', 'market_name': 'STAK_BTC', 'updated_time': 1524166201, 'server_time': 1524166201}\n >>>\n >>>\n >>> se.get_trade_history()\n [{'timestamp': 1524158309, 'quantity': '20.00000000', 'price': '0.00005898', 'type': 'BUY'}, {'timestamp': 1524158245, 'quantity': '77.00000000', 'price': '0.00004705', 'type': 'SELL'}, {'timestamp': 1524158151, 'quantity': '20.00000000', 'price': '0.00005898', 'type': 'BUY'},\n >>>\n >>>\n >>> se.get_grafic()\n {'pair': 'STAK_BTC', 'interval': '1D', 'order': 'ASC', 'since': '2018-04-18 19:30:00', 'end': '2018-04-19 19:31:03', 'count_pages': 1, 'count': '100', 'current_page': 1, 'graf': [{'open': '0.00005102', 'close': '0.00005102', 'low': '0.00005102', 'high': '0.00005102', 'date': '2018-04-18 22:00:00'}\n\nAs mentioned this API can be extended beyond just STAK by supplying arguments to each function\n\n.. code:: python\n\n >>> se.get_price(currency1='ETH', currency2='BTC')\n {'buy': '0.06510204', 'sell': '0.06699999', 'market_name': 'ETH_BTC', 'updated_time': 1524166381, 'server_time': 1524166381}\n >>>\n >>> se.get_ticker(currency1='ETH', currency2='BTC')\n {'min_order_amount': '0.00001000', 'ask': '0.06699999', 'bid': '0.06261', 'last': '0.06699999', 'lastDayAgo': '0.06275', 'vol': '60.80603293', 'spread': '0', 'buy_fee_percent': '0', 'sell_fee_percent': '0', 'market_name': 'ETH_BTC', 'updated_time': 1524166381, 'server_time': 1524166381}\n >>>\n\n\nFull documentation for the module can be found at the link below, and can also be built using \"make html\" from the docs folder.\n\n- `Full Documentation `_", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "", "keywords": "straks blockexplorer crypto api", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "pystraksexplorer", "package_url": "https://pypi.org/project/pystraksexplorer/", "platform": "", "project_url": "https://pypi.org/project/pystraksexplorer/", "project_urls": null, "release_url": "https://pypi.org/project/pystraksexplorer/1.1.0/", "requires_dist": null, "requires_python": "", "summary": "Python wrapper for STRAKS block explorer api", "version": "1.1.0" }, "last_serial": 3915482, "releases": { "0.98.9": [ { "comment_text": "", "digests": { "md5": "0c3c7161bdcedcf8758c5e9e57e0966e", "sha256": "2d944b5c6352ade5a1a7c4d69f53d2331b4cdc8b088c09fd35e56105d340af0c" }, "downloads": -1, "filename": "pystraksexplorer-0.98.9-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "0c3c7161bdcedcf8758c5e9e57e0966e", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 7148, "upload_time": "2018-03-01T06:22:46", "url": "https://files.pythonhosted.org/packages/91/66/48ca2c281a97a12295b056f1e96361547969a815a088edea0ef6668e92cb/pystraksexplorer-0.98.9-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "53b62ab651acdcfd4affcd71ca63d3ba", "sha256": "8561c41ddbd6889094cc5c51c18be491f43a9e6dcf13832154e6900d7a2cd186" }, "downloads": -1, "filename": "pystraksexplorer-0.98.9-py3.6.egg", "has_sig": false, "md5_digest": "53b62ab651acdcfd4affcd71ca63d3ba", "packagetype": "bdist_egg", "python_version": "3.6", "requires_python": null, "size": 8557, "upload_time": "2018-04-19T22:12:15", "url": "https://files.pythonhosted.org/packages/80/42/6a2aff5474e4bafa69d6cfd9c2ce0e692fe5a1e096a84dfcd4ca61996298/pystraksexplorer-0.98.9-py3.6.egg" } ], "1.1.0": [ { "comment_text": "", "digests": { "md5": "902ed541261def32b927381062fadb4e", "sha256": "b0d6080fcf8c46e7ac7e8b4da8b388d0b01b3c9c0f8461d69d089d3c3826548b" }, "downloads": -1, "filename": "pystraksexplorer-1.1.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "902ed541261def32b927381062fadb4e", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 10385, "upload_time": "2018-05-09T08:42:54", "url": "https://files.pythonhosted.org/packages/00/87/875da8bcc23c04d95469e16062bf1a7101d27b97dd02131129b46c2915be/pystraksexplorer-1.1.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "23d15fbddccb950da6b532a264f1fe3b", "sha256": "092bd487898acb99b11ca7eae3661f915ce3eaa8d9269a1b2da4e1909516d77b" }, "downloads": -1, "filename": "pystraksexplorer-1.1.0-py3.6.egg", "has_sig": false, "md5_digest": "23d15fbddccb950da6b532a264f1fe3b", "packagetype": "bdist_egg", "python_version": "3.6", "requires_python": null, "size": 11973, "upload_time": "2018-04-19T22:13:14", "url": "https://files.pythonhosted.org/packages/67/3f/26a97eff37b38201226b3330107cff7f5053cc17b39b329b0255372d0ac8/pystraksexplorer-1.1.0-py3.6.egg" }, { "comment_text": "", "digests": { "md5": "ff04b201e42bd7687f0de882cf251fbd", "sha256": "6538276e8e462f973951e5b0861368b008ba2d0b06738c3904c6d98357831ba7" }, "downloads": -1, "filename": "pystraksexplorer-1.1.0.tar.gz", "has_sig": false, "md5_digest": "ff04b201e42bd7687f0de882cf251fbd", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6876, "upload_time": "2018-05-09T08:37:02", "url": "https://files.pythonhosted.org/packages/8a/60/412acc30436e890b82da032846f1d1d468ce03de9f5bbb4d343bfe29f22b/pystraksexplorer-1.1.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "902ed541261def32b927381062fadb4e", "sha256": "b0d6080fcf8c46e7ac7e8b4da8b388d0b01b3c9c0f8461d69d089d3c3826548b" }, "downloads": -1, "filename": "pystraksexplorer-1.1.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "902ed541261def32b927381062fadb4e", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 10385, "upload_time": "2018-05-09T08:42:54", "url": "https://files.pythonhosted.org/packages/00/87/875da8bcc23c04d95469e16062bf1a7101d27b97dd02131129b46c2915be/pystraksexplorer-1.1.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "23d15fbddccb950da6b532a264f1fe3b", "sha256": "092bd487898acb99b11ca7eae3661f915ce3eaa8d9269a1b2da4e1909516d77b" }, "downloads": -1, "filename": "pystraksexplorer-1.1.0-py3.6.egg", "has_sig": false, "md5_digest": "23d15fbddccb950da6b532a264f1fe3b", "packagetype": "bdist_egg", "python_version": "3.6", "requires_python": null, "size": 11973, "upload_time": "2018-04-19T22:13:14", "url": "https://files.pythonhosted.org/packages/67/3f/26a97eff37b38201226b3330107cff7f5053cc17b39b329b0255372d0ac8/pystraksexplorer-1.1.0-py3.6.egg" }, { "comment_text": "", "digests": { "md5": "ff04b201e42bd7687f0de882cf251fbd", "sha256": "6538276e8e462f973951e5b0861368b008ba2d0b06738c3904c6d98357831ba7" }, "downloads": -1, "filename": "pystraksexplorer-1.1.0.tar.gz", "has_sig": false, "md5_digest": "ff04b201e42bd7687f0de882cf251fbd", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6876, "upload_time": "2018-05-09T08:37:02", "url": "https://files.pythonhosted.org/packages/8a/60/412acc30436e890b82da032846f1d1d468ce03de9f5bbb4d343bfe29f22b/pystraksexplorer-1.1.0.tar.gz" } ] }