Skip to main content

market.csgo.com api v2 wrapper

Project description

market-api

PyPI PyPI - Python Version GitHub Downloads

Получение токена

market.csgo.com

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

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)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

market_api-1.0.0.tar.gz (18.3 kB view hashes)

Uploaded Source

Built Distribution

market_api-1.0.0-py3-none-any.whl (25.4 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page