python-trading212-alinalihassan


Namepython-trading212-alinalihassan JSON
Version 2.0.5 PyPI version JSON
download
home_pagehttps://github.com/alinalihassan/python-trading212
SummaryAn unofficial client for the official Trading212 API
upload_time2024-05-15 07:53:59
maintainerNone
docs_urlNone
authorAlin Ali Hassan
requires_python<4.0,>=3.9
licenseMIT
keywords python trading212 api client unofficial finance stocks trading
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # python-trading212

![CICD Status](https://img.shields.io/github/actions/workflow/status/jcoelho93/python-trading212/ci.yml?label=cicd)
![PyPI - Downloads](https://img.shields.io/pypi/dm/python-trading212?logo=pypi&link=https%3A%2F%2Fpypi.org%2Fproject%2Fpython-trading212%2F)
![GitHub License](https://img.shields.io/github/license/jcoelho93/python-trading212)
![PyPI - Python Version](https://img.shields.io/pypi/pyversions/python-trading212)
![PyPI - Version](https://img.shields.io/pypi/v/python-trading212?logo=pypi&link=https%3A%2F%2Fpypi.org%2Fproject%2Fpython-trading212%2F)


A client for the [Trading212 API](https://t212public-api-docs.redoc.ly/)

## Installation

```bash
pip install python-trading212-alinalihassan
```

## Usage

```python
from trading212 import Trading212, Pie

trading212 = Trading212("<api_key>")
pie: Pie = trading212.fetch_pie(123)
positions: List[Position] = trading212.fetch_all_open_positions()

trading212.create_pie(
    Pie(
        name='My Pie',
        ...
    )
)

```

## Supported Endpoints

### Instruments Metadata

- [x] Exchange List
- [x] Instrument List

## Pies

- [x] Fetch all pies
- [x] Create Pie
- [x] Delete Pie
- [x] Fetch a Pie
- [x] Update pie

## Equity Orders

- [x] Fetch all
- [x] Place Limit order
- [x] Place Market order
- [x] Place Stop order
- [x] Place StopLimit order
- [x] Cancel by ID
- [x] Fetch by ID

## Account Data

- [x] Fetch account cash
- [x] Fetch account metadata

## Personal Portfolio

- [x] Fetch all open positions
- [x] Fetch a specific position

## Historical Items

- [x] Historical order data
- [x] Paid out dividens
- [x] Exports List
- [x] Export csv
- [x] Transaction list

## Disclaimer

THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/alinalihassan/python-trading212",
    "name": "python-trading212-alinalihassan",
    "maintainer": null,
    "docs_url": null,
    "requires_python": "<4.0,>=3.9",
    "maintainer_email": null,
    "keywords": "python, trading212, api, client, unofficial, finance, stocks, trading",
    "author": "Alin Ali Hassan",
    "author_email": "alinalihassan@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/93/0c/aaa44d4bde38284541c877f0df135211a5c07653a29caa9885c6a2850d73/python_trading212_alinalihassan-2.0.5.tar.gz",
    "platform": null,
    "description": "# python-trading212\n\n![CICD Status](https://img.shields.io/github/actions/workflow/status/jcoelho93/python-trading212/ci.yml?label=cicd)\n![PyPI - Downloads](https://img.shields.io/pypi/dm/python-trading212?logo=pypi&link=https%3A%2F%2Fpypi.org%2Fproject%2Fpython-trading212%2F)\n![GitHub License](https://img.shields.io/github/license/jcoelho93/python-trading212)\n![PyPI - Python Version](https://img.shields.io/pypi/pyversions/python-trading212)\n![PyPI - Version](https://img.shields.io/pypi/v/python-trading212?logo=pypi&link=https%3A%2F%2Fpypi.org%2Fproject%2Fpython-trading212%2F)\n\n\nA client for the [Trading212 API](https://t212public-api-docs.redoc.ly/)\n\n## Installation\n\n```bash\npip install python-trading212-alinalihassan\n```\n\n## Usage\n\n```python\nfrom trading212 import Trading212, Pie\n\ntrading212 = Trading212(\"<api_key>\")\npie: Pie = trading212.fetch_pie(123)\npositions: List[Position] = trading212.fetch_all_open_positions()\n\ntrading212.create_pie(\n    Pie(\n        name='My Pie',\n        ...\n    )\n)\n\n```\n\n## Supported Endpoints\n\n### Instruments Metadata\n\n- [x] Exchange List\n- [x] Instrument List\n\n## Pies\n\n- [x] Fetch all pies\n- [x] Create Pie\n- [x] Delete Pie\n- [x] Fetch a Pie\n- [x] Update pie\n\n## Equity Orders\n\n- [x] Fetch all\n- [x] Place Limit order\n- [x] Place Market order\n- [x] Place Stop order\n- [x] Place StopLimit order\n- [x] Cancel by ID\n- [x] Fetch by ID\n\n## Account Data\n\n- [x] Fetch account cash\n- [x] Fetch account metadata\n\n## Personal Portfolio\n\n- [x] Fetch all open positions\n- [x] Fetch a specific position\n\n## Historical Items\n\n- [x] Historical order data\n- [x] Paid out dividens\n- [x] Exports List\n- [x] Export csv\n- [x] Transaction list\n\n## Disclaimer\n\nTHE SOFTWARE IS PROVIDED \u201cAS IS\u201d, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "An unofficial client for the official Trading212 API",
    "version": "2.0.5",
    "project_urls": {
        "Bug Tracker": "https://github.com/alinalihassan/python-trading212/issues",
        "Documentation": "https://github.com/alinalihassan/python-trading212",
        "Homepage": "https://github.com/alinalihassan/python-trading212",
        "Repository": "https://github.com/alinalihassan/python-trading212"
    },
    "split_keywords": [
        "python",
        " trading212",
        " api",
        " client",
        " unofficial",
        " finance",
        " stocks",
        " trading"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "7725ca68a739cb44ac439e6e9936c67d554b25b31c5f428e95f6233fa6e7ea9d",
                "md5": "cc14fb62e655343c8f478252397e923d",
                "sha256": "b9eaf9483de26748cc632d5b0fb20eb603ad03181d0f254b43a049e42bc8a6cb"
            },
            "downloads": -1,
            "filename": "python_trading212_alinalihassan-2.0.5-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "cc14fb62e655343c8f478252397e923d",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": "<4.0,>=3.9",
            "size": 7578,
            "upload_time": "2024-05-15T07:53:57",
            "upload_time_iso_8601": "2024-05-15T07:53:57.715304Z",
            "url": "https://files.pythonhosted.org/packages/77/25/ca68a739cb44ac439e6e9936c67d554b25b31c5f428e95f6233fa6e7ea9d/python_trading212_alinalihassan-2.0.5-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "930caaa44d4bde38284541c877f0df135211a5c07653a29caa9885c6a2850d73",
                "md5": "2e20ac7ad98197c05d3bdcbbce55ba3c",
                "sha256": "0159fecf01371ebefd9de395874f09fd4397c29ae759c231b696c60f23cc5088"
            },
            "downloads": -1,
            "filename": "python_trading212_alinalihassan-2.0.5.tar.gz",
            "has_sig": false,
            "md5_digest": "2e20ac7ad98197c05d3bdcbbce55ba3c",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": "<4.0,>=3.9",
            "size": 6342,
            "upload_time": "2024-05-15T07:53:59",
            "upload_time_iso_8601": "2024-05-15T07:53:59.615610Z",
            "url": "https://files.pythonhosted.org/packages/93/0c/aaa44d4bde38284541c877f0df135211a5c07653a29caa9885c6a2850d73/python_trading212_alinalihassan-2.0.5.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-05-15 07:53:59",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "alinalihassan",
    "github_project": "python-trading212",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "lcname": "python-trading212-alinalihassan"
}
        
Elapsed time: 0.22257s