market.csgo.com api v2 wrapper
Project description
market-api
Получение токена
Использование
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
Release history Release notifications | RSS feed
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)
Built Distribution
market_api-1.0.0-py3-none-any.whl
(25.4 kB
view hashes)
Close
Hashes for market_api-1.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1b5593001d346ab172defd79e6bbf0193e5fbe62b4133a4837d665eb70f1e848 |
|
MD5 | bfa9765135ac4b0de4c7f06908598833 |
|
BLAKE2b-256 | 8dcf9d8a1a1a616ca32b21bf427f44f42de4bb8194370e6dbec4f8273aadc667 |