{ "info": { "author": "Russell Gray", "author_email": "russgray@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Environment :: Other Environment", "Intended Audience :: Developers", "License :: OSI Approved :: BSD License", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 2.7", "Topic :: Software Development :: Libraries :: Python Modules" ], "description": "betfairng: A client library for Betfair API-NG\n==============================================\n\n.. image:: https://travis-ci.org/russgray/betfairng.svg?branch=master\n :target: https://travis-ci.org/russgray/betfairng\n\nBetfair API-NG is the next-gen version of the longstanding SOAP-based Betfair API v6. As of November 2014, API-NG will be the only way to programmatically access the Betfair exchange.\n\nAPI-NG is a REST-based design rather than SOAP, and has improved consistency and convention that make it easier to work with. betfairng makes it easier still, with pythonic naming and sensible defaults.\n\n.. code-block:: pycon\n\n >>> market_filter = {\n 'eventTypeIds': [7],\n 'marketCountries': ['GB'],\n 'marketTypeCodes': ['WIN'],\n 'sort': 'FIRST_TO_START',\n 'from': datetime.now().isoformat()\n }\n >>> next_race = api.list_market_catalogue(filter=market_filter, marketProjection=['RUNNER_METADATA'], maxResults=1)[0]\n >>> book = api.list_market_book(marketIds=['1.114185343'], priceProjection=dict(priceData=['EX_BEST_OFFERS']))\n\nbetfairng also provides a backwards-compatibility layer so you can continue to use the SOAP naming conventions (e.g. placeBets instead of place_orders, getMarketPrices instead of list_market_book, etc).\n\n\nInstallation\n------------\n\nFrom pypi::\n\n pip install betfairng\n\n\nAuthentication\n--------------\n\nBetfair API-NG requires 2-way SSL for non-interactive logins (i.e. for bots or automated tools). Instructions for creating your certificate and registering it with Betfair `can be found on Betfair's website `_.\n\nOnce done, simply pass the paths to the .crt and .key files to the authenticate function along with your username and password.\n\n.. code-block:: pycon\n >>> from betfairng import authenticate\n >>> cert = ('path/to/file.crt', 'path/to/file.key')\n >>> resp = authenticate(cert, username, password)\n >>> resp['loginStatus']\n u'SUCCESS'\n >>> resp['sessionToken']\n u''", "description_content_type": null, "docs_url": null, "download_url": "http://www.tagwager.com/", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "http://www.tagwager.com/", "keywords": "betfair,aping,tagwager", "license": "BSD 2-Clause", "maintainer": null, "maintainer_email": null, "name": "betfairng", "package_url": "https://pypi.org/project/betfairng/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/betfairng/", "project_urls": { "Download": "http://www.tagwager.com/", "Homepage": "http://www.tagwager.com/" }, "release_url": "https://pypi.org/project/betfairng/0.1.6/", "requires_dist": null, "requires_python": null, "summary": "Client library for Betfair API Next-Generation", "version": "0.1.6" }, "last_serial": 1369598, "releases": { "0.1.4": [], "0.1.5": [ { "comment_text": "", "digests": { "md5": "75e45dd1685852767fc2f47614556398", "sha256": "7f5fe5d9f814fda17eb7ca4534e3eb0f0a56a8df9b7cc55aed256d306c65d68a" }, "downloads": -1, "filename": "betfairng-0.1.5.tar.gz", "has_sig": false, "md5_digest": "75e45dd1685852767fc2f47614556398", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6708, "upload_time": "2014-11-11T16:00:38", "url": "https://files.pythonhosted.org/packages/fe/35/b3809644d72f051b4a1780d6fbf805de5b83a48c00d64b4caffa0b8ca504/betfairng-0.1.5.tar.gz" } ], "0.1.6": [ { "comment_text": "", "digests": { "md5": "13cd79c0c5362a474ca7b59a32c8da37", "sha256": "7be3f0a5562aea0232508e255fddd41e15cc058b7809d4534191dfb4f2670b9b" }, "downloads": -1, "filename": "betfairng-0.1.6.tar.gz", "has_sig": false, "md5_digest": "13cd79c0c5362a474ca7b59a32c8da37", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6726, "upload_time": "2015-01-03T23:53:56", "url": "https://files.pythonhosted.org/packages/97/f0/619df21e99e8e200d2b27b0f39c17fa18f787f4929845038aaef60d37f4a/betfairng-0.1.6.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "13cd79c0c5362a474ca7b59a32c8da37", "sha256": "7be3f0a5562aea0232508e255fddd41e15cc058b7809d4534191dfb4f2670b9b" }, "downloads": -1, "filename": "betfairng-0.1.6.tar.gz", "has_sig": false, "md5_digest": "13cd79c0c5362a474ca7b59a32c8da37", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6726, "upload_time": "2015-01-03T23:53:56", "url": "https://files.pythonhosted.org/packages/97/f0/619df21e99e8e200d2b27b0f39c17fa18f787f4929845038aaef60d37f4a/betfairng-0.1.6.tar.gz" } ] }