foxrelax


Namefoxrelax JSON
Version 0.1.7 PyPI version JSON
download
home_pagehttps://github.com/foxrelax/foxrelax
Summaryfoxrelax
upload_time2021-07-27 01:13:44
maintainer
docs_urlNone
authorliqiang
requires_python
licenseBSD License
keywords foxrelax
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # foxrelax

## Project description

* it’s easy to use because most of the data returned are pandas DataFrame objects
* we have our own data server, efficient and stable operation
* free stock market data
* friendly to machine learning and data mining

## Target Users

* learners of financial data analysis with pandas/NumPy
* financial market analyst
* financial data analysis enthusiasts
* quanters who are interested in stock market

## Installation

```bash
pip install foxrelax
```

## Upgrade

```bash
pip install foxrelax –upgrade
```

## Quick Start

```python
import foxrelax as relax

resp = relax.stock_daily(symbol='000049.SZ',
                         start_date='2018-01-01',
                         end_date='2019-11-28')


print('code={0} message={1}'.format(resp.code, resp.message))
print(resp.result)
```

return:

```text
code=0 message=success

        symbol  trade_date   open   high    low  close  pre_close  \
0    000049.SZ  2018-01-02  39.91  40.18  39.22  39.78      39.59
1    000049.SZ  2018-01-03  39.90  40.59  39.71  40.56      39.78
2    000049.SZ  2018-01-04  41.61  43.18  41.61  42.65      40.56
3    000049.SZ  2018-01-05  42.00  42.45  41.51  42.07      42.65
4    000049.SZ  2018-01-08  42.08  42.38  41.32  41.49      42.07
5    000049.SZ  2018-01-09  41.50  41.60  40.60  40.80      41.49
...
458  000049.SZ  2019-11-21  36.53  36.77  36.00  36.50      36.81
459  000049.SZ  2019-11-22  36.44  37.80  36.30  36.68      36.50
460  000049.SZ  2019-11-25  36.30  36.48  34.93  35.16      36.68
461  000049.SZ  2019-11-26  35.28  35.89  35.00  35.76      35.16
462  000049.SZ  2019-11-27  35.69  37.27  35.40  36.72      35.76
463  000049.SZ  2019-11-28  36.72  38.48  36.50  37.49      36.72

     price_change  pct_change    volume      money  
0            0.19      0.4800   3197416  126769960  
1            0.78      1.9600   3913276  157416236  
2            2.09      5.1500   8300770  352188889  
3           -0.58     -1.3600   4260338  178822929  
4           -0.58     -1.3800   3569519  148331795  
5           -0.69     -1.6600   3138719  128433609  
...
458         -0.31     -0.8422   4079903  148147523  
459          0.18      0.4932   8250452  306343236  
460         -1.52     -4.1439   6989292  247534854  
461          0.60      1.7065   4304988  153468524  
462          0.96      2.6846   7701535  281834519  
463          0.77      2.0969  10463935  394639040  
```



            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/foxrelax/foxrelax",
    "name": "foxrelax",
    "maintainer": "",
    "docs_url": null,
    "requires_python": "",
    "maintainer_email": "",
    "keywords": "foxrelax",
    "author": "liqiang",
    "author_email": "liqiang@g.im",
    "download_url": "https://files.pythonhosted.org/packages/5b/7f/ee9d741e98a36548bea0eb6fdd5bfec69f8f1fe73c084744d42239dec29c/foxrelax-0.1.7.tar.gz",
    "platform": "all",
    "description": "# foxrelax\n\n## Project description\n\n* it\u2019s easy to use because most of the data returned are pandas DataFrame objects\n* we have our own data server, efficient and stable operation\n* free stock market data\n* friendly to machine learning and data mining\n\n## Target Users\n\n* learners of financial data analysis with pandas/NumPy\n* financial market analyst\n* financial data analysis enthusiasts\n* quanters who are interested in stock market\n\n## Installation\n\n```bash\npip install foxrelax\n```\n\n## Upgrade\n\n```bash\npip install foxrelax \u2013upgrade\n```\n\n## Quick Start\n\n```python\nimport foxrelax as relax\n\nresp = relax.stock_daily(symbol='000049.SZ',\n                         start_date='2018-01-01',\n                         end_date='2019-11-28')\n\n\nprint('code={0} message={1}'.format(resp.code, resp.message))\nprint(resp.result)\n```\n\nreturn:\n\n```text\ncode=0 message=success\n\n        symbol  trade_date   open   high    low  close  pre_close  \\\n0    000049.SZ  2018-01-02  39.91  40.18  39.22  39.78      39.59\n1    000049.SZ  2018-01-03  39.90  40.59  39.71  40.56      39.78\n2    000049.SZ  2018-01-04  41.61  43.18  41.61  42.65      40.56\n3    000049.SZ  2018-01-05  42.00  42.45  41.51  42.07      42.65\n4    000049.SZ  2018-01-08  42.08  42.38  41.32  41.49      42.07\n5    000049.SZ  2018-01-09  41.50  41.60  40.60  40.80      41.49\n...\n458  000049.SZ  2019-11-21  36.53  36.77  36.00  36.50      36.81\n459  000049.SZ  2019-11-22  36.44  37.80  36.30  36.68      36.50\n460  000049.SZ  2019-11-25  36.30  36.48  34.93  35.16      36.68\n461  000049.SZ  2019-11-26  35.28  35.89  35.00  35.76      35.16\n462  000049.SZ  2019-11-27  35.69  37.27  35.40  36.72      35.76\n463  000049.SZ  2019-11-28  36.72  38.48  36.50  37.49      36.72\n\n     price_change  pct_change    volume      money  \n0            0.19      0.4800   3197416  126769960  \n1            0.78      1.9600   3913276  157416236  \n2            2.09      5.1500   8300770  352188889  \n3           -0.58     -1.3600   4260338  178822929  \n4           -0.58     -1.3800   3569519  148331795  \n5           -0.69     -1.6600   3138719  128433609  \n...\n458         -0.31     -0.8422   4079903  148147523  \n459          0.18      0.4932   8250452  306343236  \n460         -1.52     -4.1439   6989292  247534854  \n461          0.60      1.7065   4304988  153468524  \n462          0.96      2.6846   7701535  281834519  \n463          0.77      2.0969  10463935  394639040  \n```\n\n\n",
    "bugtrack_url": null,
    "license": "BSD License",
    "summary": "foxrelax",
    "version": "0.1.7",
    "split_keywords": [
        "foxrelax"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "md5": "8b8da8cab62ba86a3f9373170b7f1cc6",
                "sha256": "5d0c6a6165b4acf002fc456d181e0826a1d84cd2408f1cdb1be8d7dfa7b77a8b"
            },
            "downloads": -1,
            "filename": "foxrelax-0.1.7-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "8b8da8cab62ba86a3f9373170b7f1cc6",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": null,
            "size": 11130,
            "upload_time": "2021-07-27T01:13:42",
            "upload_time_iso_8601": "2021-07-27T01:13:42.739627Z",
            "url": "https://files.pythonhosted.org/packages/c2/a8/e2032214ec508283ee7a53e7a00167e1fb9e178147db494762088f4c31db/foxrelax-0.1.7-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "md5": "10aff3d240f699d466fceb62465e45cc",
                "sha256": "902acb9540283ed3ce8ce4a493b17b010033b4fe443e594e0ba0b48da8258c0b"
            },
            "downloads": -1,
            "filename": "foxrelax-0.1.7.tar.gz",
            "has_sig": false,
            "md5_digest": "10aff3d240f699d466fceb62465e45cc",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 10103,
            "upload_time": "2021-07-27T01:13:44",
            "upload_time_iso_8601": "2021-07-27T01:13:44.733275Z",
            "url": "https://files.pythonhosted.org/packages/5b/7f/ee9d741e98a36548bea0eb6fdd5bfec69f8f1fe73c084744d42239dec29c/foxrelax-0.1.7.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2021-07-27 01:13:44",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "github_user": "foxrelax",
    "github_project": "foxrelax",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "requirements": [],
    "lcname": "foxrelax"
}
        
Elapsed time: 0.26904s