market-api


Namemarket-api JSON
Version 1.0.0 PyPI version JSON
download
home_pagehttps://github.com/lordralinc/market_api
Summarymarket.csgo.com api v2 wrapper
upload_time2022-12-28 10:23:36
maintainer
docs_urlNone
authorlordralinc
requires_python>=3.8,<4.0
licenseMIT
keywords csgo_market market api
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # market-api

![PyPI](https://img.shields.io/pypi/v/market-api)
![PyPI - Python Version](https://img.shields.io/pypi/pyversions/market-api)
![GitHub](https://img.shields.io/github/license/lordralinc/market_api)
[![Downloads](https://pepy.tech/badge/market-api)](https://pepy.tech/project/market-api)


## Получение токена
[market.csgo.com](https://market.csgo.com/docs-v2)


## Использование

```python
import datetime
import pprint
from market_api import MarketConfig, MarketClient, MarketException, models

config = MarketConfig(api_key="...")
client = MarketClient(config)

pprint.pprint(await client.account.get_my_steam_id())
pprint.pprint(await client.account.change_currency(models.Currency.EUR))
pprint.pprint(
    await client.trades.history(
        datetime.datetime.now() - datetime.timedelta(days=1),
        datetime.datetime.now()
    )
)
async for message in client.wss.listen_raw(
    [models.WSSChannel.HISTORY_GO],
    need_auth=True
):
    pprint.pprint(message)
```

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/lordralinc/market_api",
    "name": "market-api",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.8,<4.0",
    "maintainer_email": "",
    "keywords": "csgo_market,market,api",
    "author": "lordralinc",
    "author_email": "lordralinc@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/66/d3/bb56908fc587db715a1355ae74fb976132d4119d35e3d34df2d370bb9767/market_api-1.0.0.tar.gz",
    "platform": null,
    "description": "# market-api\n\n![PyPI](https://img.shields.io/pypi/v/market-api)\n![PyPI - Python Version](https://img.shields.io/pypi/pyversions/market-api)\n![GitHub](https://img.shields.io/github/license/lordralinc/market_api)\n[![Downloads](https://pepy.tech/badge/market-api)](https://pepy.tech/project/market-api)\n\n\n## \u041f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u0435 \u0442\u043e\u043a\u0435\u043d\u0430\n[market.csgo.com](https://market.csgo.com/docs-v2)\n\n\n## \u0418\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435\n\n```python\nimport datetime\nimport pprint\nfrom market_api import MarketConfig, MarketClient, MarketException, models\n\nconfig = MarketConfig(api_key=\"...\")\nclient = MarketClient(config)\n\npprint.pprint(await client.account.get_my_steam_id())\npprint.pprint(await client.account.change_currency(models.Currency.EUR))\npprint.pprint(\n    await client.trades.history(\n        datetime.datetime.now() - datetime.timedelta(days=1),\n        datetime.datetime.now()\n    )\n)\nasync for message in client.wss.listen_raw(\n    [models.WSSChannel.HISTORY_GO],\n    need_auth=True\n):\n    pprint.pprint(message)\n```\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "market.csgo.com api v2 wrapper",
    "version": "1.0.0",
    "split_keywords": [
        "csgo_market",
        "market",
        "api"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "md5": "bfa9765135ac4b0de4c7f06908598833",
                "sha256": "1b5593001d346ab172defd79e6bbf0193e5fbe62b4133a4837d665eb70f1e848"
            },
            "downloads": -1,
            "filename": "market_api-1.0.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "bfa9765135ac4b0de4c7f06908598833",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.8,<4.0",
            "size": 25438,
            "upload_time": "2022-12-28T10:23:34",
            "upload_time_iso_8601": "2022-12-28T10:23:34.199473Z",
            "url": "https://files.pythonhosted.org/packages/8d/cf/9d8a1a1a616ca32b21bf427f44f42de4bb8194370e6dbec4f8273aadc667/market_api-1.0.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "md5": "8c5c6f29e9c5bd07376614ebf099560f",
                "sha256": "795d141397d6804ddb390575e6d577b869528f80bdcc49ebf898072fe878617b"
            },
            "downloads": -1,
            "filename": "market_api-1.0.0.tar.gz",
            "has_sig": false,
            "md5_digest": "8c5c6f29e9c5bd07376614ebf099560f",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.8,<4.0",
            "size": 18288,
            "upload_time": "2022-12-28T10:23:36",
            "upload_time_iso_8601": "2022-12-28T10:23:36.259467Z",
            "url": "https://files.pythonhosted.org/packages/66/d3/bb56908fc587db715a1355ae74fb976132d4119d35e3d34df2d370bb9767/market_api-1.0.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2022-12-28 10:23:36",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "github_user": "lordralinc",
    "github_project": "market_api",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "lcname": "market-api"
}
        
Elapsed time: 0.02573s