steamcom


Namesteamcom JSON
Version 1.2.15 PyPI version JSON
download
home_pageNone
SummaryPython implementation of the Steam Community API
upload_time2024-11-23 14:41:17
maintainerNone
docs_urlNone
authorLinar Sharifullin
requires_python>=3.9
licenseNone
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # Table of Content
* [Credits](https://github.com/LinarSharifullin/steamcom#credits)

* [Installation](https://github.com/LinarSharifullin/steamcom#installation)

* [SteamClient Methods](https://github.com/LinarSharifullin/steamcom#steamclient-methods)

* [ConfirmationExecutor Methods](https://github.com/LinarSharifullin/steamcom#confirmationexecutor-methods)

* [guard module functions](https://github.com/LinarSharifullin/steamcom#guard-module-functions)

* [market module functions](https://github.com/LinarSharifullin/steamcom#market-module-functions)

* [fee_counter module functions](https://github.com/LinarSharifullin/steamcom#fee_counter-module-functions)

Also you can see see some basic examples in folder [examples](https://github.com/LinarSharifullin/steamcom/tree/main/examples)

# Credits
* [bukson](https://github.com/bukson) for the [steampy](https://github.com/bukson/steampy) library, in fact, I took more than 50% of the code from him
* [rossengeorgiev](https://github.com/rossengeorgiev) for the [steam](https://github.com/ValvePython/steam) library, in it I looked at how to implement a mobile web session
* [melvyn2](https://github.com/melvyn2) for the [PySteamAuth](https://github.com/melvyn2/PySteamAuth) program, his code helped me implement multiple confirmations
* [DoctorMcKay](https://github.com/DoctorMcKay) for his libraries, which I also turned to during development

# Installation
<sup><b>This program not associated with Valve Corp</b></sup>
```console
pip install steamcom
```

# SteamClient Methods
## login() -> None
```python
from steamcom.client import SteamClient


username = 'GabeNewell'
password = '124567'
shared_secret = 'zu+yLsdfjJRbg2FP+vsW+oNE='
identity_secret = 'U+Rs50612sdflkHlZ86ffPzgs='

steam_client = SteamClient(username, password, shared_secret, identity_secret)
steam_client.login()
print(steam_client.was_login_executed) # True
print(steam_client) # SteamClient: GabeNewell
```

## extract_session() -> dict[str, str]
Needed to save the session, you can save it from json or txt and use it in the future
```python
extracted_session = steam_client.extract_session()
print(extracted_session) # {'steam_id': '76...82', 'sessionid': '4f...90', 'steamLogin': '76...85', 'steamLoginSecure': '76...52'}
```

## load_session(extracted_session: Mapping[str, str]) -> None
```python
from steamcom.client import SteamClient


steam_client = SteamClient(username, passowrd, shared_secret, identity_secret)
steam_client.load_session(extracted_session)
```

## is_session_alive() -> bool

## get_partner_inventory(partner_steam_id: str, app_id: str, context_id: str, delay: int = 3) -> dict:
Return parsed inventory:
```python
{'assets': {
    '12176056772': {
        'actions': ...,
        'amount': '1',
        'appid': 440,
        'background_color': '3C352E',
        'classid': '2569645959',
        'commodity': 0,
        'contextid': '2',
        'currency': 0,
        'descriptions': ...,
        'icon_url': ...,
        'icon_url_large': ...,
        'id': '12176056772',
        'instanceid': '5020381097',
        'market_actions': ...,
        'market_hash_name': 'Civic Duty Mk.II War Paint '
                            '(Field-Tested)',
        'market_marketable_restriction': 0,
        'market_name': 'Civic Duty Mk.II War Paint '
                       '(Field-Tested)',
        'market_tradable_restriction': 7,
        'marketable': 1,
        'name': 'Civic Duty Mk.II War Paint',
        'name_color': 'FAFAFA',
        'tags': ...
        'tradable': 0,
        'type': ''}},
 'total_inventory_count': 1}
```

## get_my_inventory(app_id: str, context_id: str, delay: int = 3) -> dict:
The response is the same as get_partner_inventory

## get_wallet_balance() -> float

## send_offer_with_url(my_assets: dict, them_assets: dict, trade_offer_url: str, message: str = '') -> dict
my_assets and them_assets need send in format returned in functions what get inventories:
```python
[
    '12176056772': {
        'amount': '1',
        'appid': 440,
        'contextid': '2',
        ...
    }
]
```

response example:
```python
{'tradeofferid': '5583701352', 'needs_mobile_confirmation': True, 'needs_email_confirmation': False, 'email_domain': 'google.com'}
```

# ConfirmationExecutor Methods
## get_confirmations() -> list[Confirmation]
```python
confirmations = steam_client.confirmations.get_confirmations()
print(confirmations) # [Confirmation: Sell - IDF, Confirmation: Sell - SWAT]
```

From Confirmation class you can get various details:
```python
first_confirmation = confirmations[0]
print(first_confirmation.conf_id) # 11360346824
print(first_confirmation.conf_type) # 3
print(first_confirmation.data_accept) # Create Listing
print(first_confirmation.creator) # 3792607079523295593
print(first_confirmation.key) # 9359661368473990051
print(first_confirmation.title) # Sell - IDF
print(first_confirmation.receiving) # 200 pуб. (173,92 pуб.)
print(first_confirmation.time) # Just now
print(first_confirmation.icon) # https://community.akamai.steamstatic.com/economy/image/Iz...fKf/32fx32f
```

## respond_to_confirmations(confirmations: Iterable[Confirmation], cancel: bool = False) -> bool
```python
status = steam_client.confirmations.respond_to_confirmations(confirmations)
print(status) # True
```

## respond_to_confirmation(confirmation: Confirmation, cancel: bool = False) -> bool
```python
first_confirmation = confirmations[0]
status = steam_client.confirmations.respond_to_confirmation(first_confirmation)
print(status) # True
```

## allow_all_confirmations(types: Iterable[ConfirmationType], delay: int = 3) -> None

# guard module functions
## generate_one_time_code(shared_secret: str) -> str
```python
from steamcom.guard import generate_one_time_code


secret_code = generate_one_time_code(shared_secret)
print(secret_code) # KPI21
```

## generate_confirmation_key(identity_secret: str, tag: str) -> bytes

## generate_device_id(steam_id: str) -> str


# market module functions
## get_price_history(app_id: str, market_hash_name: str) -> dict
Return parsed graph dots:
```python
{
    'Oct 05 2022': {
        '21': {'price': 99.435, 'sales': 43},
        '22': {'price': 139.317, 'sales': 270},
        '23': {'price': 162.369, 'sales': 480}
    },
    'Oct 06 2022': {
        '00': {'price': 136.98, 'sales': 1591},
        '01': {'price': 95.765, 'sales': 2486},
        '02': {'price': 128.912, 'sales': 1166},
        '03': {'price': 79.4, 'sales': 3488},
        '04': {'price': 64.853, 'sales': 3509},
        '05': {'price': 48.488, 'sales': 3615},
        '06': {'price': 38.628, 'sales': 4189},
        '07': {'price': 19.867, 'sales': 5858},
        '08': {'price': 14.915, 'sales': 4695},
        '09': {'price': 17.805, 'sales': 3632},
        '10': {'price': 36.602, 'sales': 2347},
        '11': {'price': 39.764, 'sales': 2222},
        '12': {'price': 38.924, 'sales': 2625},
        '13': {'price': 29.821, 'sales': 2613},
        '14': {'price': 29.942, 'sales': 1829},
        '15': {'price': 41.774, 'sales': 1553},
        '16': {'price': 54.72, 'sales': 1312},
        '17': {'price': 77.849, 'sales': 725},
        '18': {'price': 93.34, 'sales': 584},
        '19': {'price': 85.461, 'sales': 668},
        '20': {'price': 87.43, 'sales': 747},
        '21': {'price': 89.098, 'sales': 744},
        '22': {'price': 98.189, 'sales': 1210},
        '23': {'price': 58.792, 'sales': 2255}
    },
    'Oct 07 2022': {
        '00': {'price': 53.943, 'sales': 3456},
        '01': {'price': 48.988, 'sales': 3294},
        '02': {'price': 44.246, 'sales': 3292},
        '03': {'price': 44.246, 'sales': 3058},
        '04': {'price': 47.308, 'sales': 2573},
        '05': {'price': 30.305, 'sales': 3619},
        '06': {'price': 18.789, 'sales': 5698}
    }
}
```

## get_orders_histogram(item_name_id: str, app_id: str, market_hash_name: str, currency_id: int = None) -> dict
Return parsed histogram dots:
```python
{'buy_order_graph': [
    {'price': 2.67, 'quantity': 1},
    {'price': 2.66, 'quantity': 1},
    {'price': 2.6, 'quantity': 4},
    {'price': 2.57, 'quantity': 23},
    {'price': 2.54, 'quantity': 20},
    {'price': 2.5, 'quantity': 1},
    {'price': 2.49, 'quantity': 1},
    {'price': 2.02, 'quantity': 3},
    {'price': 1.92, 'quantity': 9},
    {'price': 1.74, 'quantity': 15},
    {'price': 1.65, 'quantity': 1},
    {'price': 1.53, 'quantity': 2},
    {'price': 1.4, 'quantity': 1},
    {'price': 1.3, 'quantity': 9},
    {'price': 1.24, 'quantity': 1},
    {'price': 1, 'quantity': 15},
    {'price': 0.87, 'quantity': 97}],
 'sell_order_graph': [
    {'price': 3.24, 'quantity': 1},
    {'price': 3.25, 'quantity': 1},
    {'price': 3.27, 'quantity': 1},
    {'price': 3.28, 'quantity': 4},
    {'price': 3.29, 'quantity': 2},
    {'price': 3.3, 'quantity': 15},
    {'price': 3.33, 'quantity': 1},
    {'price': 3.34, 'quantity': 3},
    {'price': 3.35, 'quantity': 1},
    {'price': 3.36, 'quantity': 2},
    {'price': 3.38, 'quantity': 1},
    {'price': 3.41, 'quantity': 4},
    {'price': 3.42, 'quantity': 1},
    {'price': 3.45, 'quantity': 36},
    {'price': 3.49, 'quantity': 2},
    {'price': 3.5, 'quantity': 1},
    {'price': 3.52, 'quantity': 1},
    {'price': 3.56, 'quantity': 2}]}
```

## get_my_market_listings(self, delay: int = 3) -> dict
Return listings
```python
{'buy_orders': {
    '5470862660': {
        'item_link': 'https://steamcommunity.com/market/listings/570/Seething%20Orbit',
        'item_name': 'Seething Orbit',
        'market_hash_name': 'Seething Orbit',
        'order_id': '5470862660',
        'price': 6.65,
        'quantity': 5}
    },
 'sell_listings': {
    '3868053667603823025': {
        'buyer_pay': 2.70,
        'created_on': '3 Oct',
        'created_timestamp': 1664733600,
        'description': {
            'amount': '1',
            'app_icon': ...,
            'appid': 570,
            'background_color': '',
            'classid': '521521104',
            'commodity': 0,
            'contextid': '2',
            'currency': 0,
            'descriptions': ...
            'icon_url': ...
            'id': '24699743025',
            'instanceid': '5017446107',
            'market_hash_name': 'Lesser Twin',
            'market_marketable_restriction': 0,
            'market_name': 'Lesser Twin Blade',
            'market_tradable_restriction': 7,
            'marketable': 1,
            'name': 'Lesser Twin Blade',
            'name_color': 'D2D2D2',
            'original_amount': '1',
            'owner': 0,
            'owner_descriptions': ...,
            'status': 2,
            'tradable': 0,
            'type': 'Rare Offhand',
            'unowned_contextid': '2',
            'unowned_id': ...},
        'listing_id': '3868053667603823025',
        'need_confirmation': False,
        'you_receive': '2.36'
    }
}
```

## create_buy_order(app_id: str, market_hash_name: str, price_single_item: str, quantity: int) -> dict:
Reponse
```python
{'success': 1, 'buy_orderid': '5465633972'}
```

## create_sell_order(asset_id: str, app_id: str, context_id: str, money_to_receive: str, amount: int = 1) -> dict:
Response
```python
{
    'email_domain': 'gmail.com',
    'needs_email_confirmation': False,
    'needs_mobile_confirmation': True,
    'requires_confirmation': 1,
    'success': True
}
```

## cancel_sell_order(sell_listing_id: str) -> None:

## cancel_buy_order(buy_order_id) -> dict:
Response
```python
{'success': 1}
```

## check_placed_buy_order(app_id: str, market_hash_name: str) -> None | dict:
Response
```python
{
    'item_link': 'https://steamcommunity.com/market/listings/570/Seething%20Orbit',
    'item_name': 'Seething Orbit',
    'market_hash_name': 'Seething Orbit',
    'order_id': '5470862660',
    'price': 6.65,
    'quantity': 5
}
```

## get_my_history(events_value: int = 5000, delay: int = 3) -> dict:
Response
```python
[
    {
        'asset': {
            'actions': ...,
            'amount': '0',
            'app_icon': ...
            'appid': 730,
            'background_color': '',
            'classid': '4839651026',
            'commodity': 1,
            'contextid': '2',
            'currency': 0,
            'descriptions': [...],
            'icon_url': ...,
            'icon_url_large': ...,
            'id': '25979127616',
            'instanceid': '188530139',
            'market_actions': [...],
            'market_hash_name': 'Sticker | jabbi (Glitter) | Antwerp 2022',
            'market_name': 'Sticker | jabbi (Glitter) | Antwerp 2022',
            'market_tradable_restriction': 7,
            'marketable': 1,
            'name': 'Sticker | jabbi (Glitter) | Antwerp 2022',
            'name_color': 'D2D2D2',
            'original_amount': '1',
            'owner': 0,
            'status': 4,
            'tradable': 1,
            'type': 'Remarkable Sticker',
            'unowned_contextid': '2',
            'unowned_id': '25979127616'},
        'currency_id': '2005',
        'date_event': '13 Oct',
        'event_type': 4,
        'listingid': '5152706284695898110',
        'new_asset_id': '27404075264',   # from sold and purchased
        'partner_currency_id': '2005',  # from sold and purchased
        'price': 1.5,
        'purchaseid': '5152706284695898111',
        'steamid_actor': '76561199216758062',
        'time_event': 1665657537,
        'time_event_fraction': 310000000
    }
]
```

## get_my_history_up_to_date(self, date: datetime, delay: int = 3, attempts: int = 3) -> dict
The response is the same as get_my_history

# fee_counter module functions
## count(price: float) -> dict
Reponse
```python
{'steam_fee': 30, 'publisher_fee': 58, 'fees': 87, 'buyer_pay': 676, 'amount': 677, 'seller_receive': 589}
```

            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "steamcom",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.9",
    "maintainer_email": null,
    "keywords": null,
    "author": "Linar Sharifullin",
    "author_email": null,
    "download_url": "https://files.pythonhosted.org/packages/46/d9/903f8a36160eed599ba59bcc12cc67bb01c8c4643ef393a175f6d469869d/steamcom-1.2.15.tar.gz",
    "platform": null,
    "description": "# Table of Content\n* [Credits](https://github.com/LinarSharifullin/steamcom#credits)\n\n* [Installation](https://github.com/LinarSharifullin/steamcom#installation)\n\n* [SteamClient Methods](https://github.com/LinarSharifullin/steamcom#steamclient-methods)\n\n* [ConfirmationExecutor Methods](https://github.com/LinarSharifullin/steamcom#confirmationexecutor-methods)\n\n* [guard module functions](https://github.com/LinarSharifullin/steamcom#guard-module-functions)\n\n* [market module functions](https://github.com/LinarSharifullin/steamcom#market-module-functions)\n\n* [fee_counter module functions](https://github.com/LinarSharifullin/steamcom#fee_counter-module-functions)\n\nAlso you can see see some basic examples in folder [examples](https://github.com/LinarSharifullin/steamcom/tree/main/examples)\n\n# Credits\n* [bukson](https://github.com/bukson) for the [steampy](https://github.com/bukson/steampy) library, in fact, I took more than 50% of the code from him\n* [rossengeorgiev](https://github.com/rossengeorgiev) for the [steam](https://github.com/ValvePython/steam) library, in it I looked at how to implement a mobile web session\n* [melvyn2](https://github.com/melvyn2) for the [PySteamAuth](https://github.com/melvyn2/PySteamAuth) program, his code helped me implement multiple confirmations\n* [DoctorMcKay](https://github.com/DoctorMcKay) for his libraries, which I also turned to during development\n\n# Installation\n<sup><b>This program not associated with Valve Corp</b></sup>\n```console\npip install steamcom\n```\n\n# SteamClient Methods\n## login() -> None\n```python\nfrom steamcom.client import SteamClient\n\n\nusername = 'GabeNewell'\npassword = '124567'\nshared_secret = 'zu+yLsdfjJRbg2FP+vsW+oNE='\nidentity_secret = 'U+Rs50612sdflkHlZ86ffPzgs='\n\nsteam_client = SteamClient(username, password, shared_secret, identity_secret)\nsteam_client.login()\nprint(steam_client.was_login_executed) # True\nprint(steam_client) # SteamClient: GabeNewell\n```\n\n## extract_session() -> dict[str, str]\nNeeded to save the session, you can save it from json or txt and use it in the future\n```python\nextracted_session = steam_client.extract_session()\nprint(extracted_session) # {'steam_id': '76...82', 'sessionid': '4f...90', 'steamLogin': '76...85', 'steamLoginSecure': '76...52'}\n```\n\n## load_session(extracted_session: Mapping[str, str]) -> None\n```python\nfrom steamcom.client import SteamClient\n\n\nsteam_client = SteamClient(username, passowrd, shared_secret, identity_secret)\nsteam_client.load_session(extracted_session)\n```\n\n## is_session_alive() -> bool\n\n## get_partner_inventory(partner_steam_id: str, app_id: str, context_id: str, delay: int = 3) -> dict:\nReturn parsed inventory:\n```python\n{'assets': {\n    '12176056772': {\n        'actions': ...,\n        'amount': '1',\n        'appid': 440,\n        'background_color': '3C352E',\n        'classid': '2569645959',\n        'commodity': 0,\n        'contextid': '2',\n        'currency': 0,\n        'descriptions': ...,\n        'icon_url': ...,\n        'icon_url_large': ...,\n        'id': '12176056772',\n        'instanceid': '5020381097',\n        'market_actions': ...,\n        'market_hash_name': 'Civic Duty Mk.II War Paint '\n                            '(Field-Tested)',\n        'market_marketable_restriction': 0,\n        'market_name': 'Civic Duty Mk.II War Paint '\n                       '(Field-Tested)',\n        'market_tradable_restriction': 7,\n        'marketable': 1,\n        'name': 'Civic Duty Mk.II War Paint',\n        'name_color': 'FAFAFA',\n        'tags': ...\n        'tradable': 0,\n        'type': ''}},\n 'total_inventory_count': 1}\n```\n\n## get_my_inventory(app_id: str, context_id: str, delay: int = 3) -> dict:\nThe response is the same as get_partner_inventory\n\n## get_wallet_balance() -> float\n\n## send_offer_with_url(my_assets: dict, them_assets: dict, trade_offer_url: str, message: str = '') -> dict\nmy_assets and them_assets need send in format returned in functions what get inventories:\n```python\n[\n    '12176056772': {\n        'amount': '1',\n        'appid': 440,\n        'contextid': '2',\n        ...\n    }\n]\n```\n\nresponse example:\n```python\n{'tradeofferid': '5583701352', 'needs_mobile_confirmation': True, 'needs_email_confirmation': False, 'email_domain': 'google.com'}\n```\n\n# ConfirmationExecutor Methods\n## get_confirmations() -> list[Confirmation]\n```python\nconfirmations = steam_client.confirmations.get_confirmations()\nprint(confirmations) # [Confirmation: Sell - IDF, Confirmation: Sell - SWAT]\n```\n\nFrom Confirmation class you can get various details:\n```python\nfirst_confirmation = confirmations[0]\nprint(first_confirmation.conf_id) # 11360346824\nprint(first_confirmation.conf_type) # 3\nprint(first_confirmation.data_accept) # Create Listing\nprint(first_confirmation.creator) # 3792607079523295593\nprint(first_confirmation.key) # 9359661368473990051\nprint(first_confirmation.title) # Sell - IDF\nprint(first_confirmation.receiving) # 200 p\u0443\u0431. (173,92 p\u0443\u0431.)\nprint(first_confirmation.time) # Just now\nprint(first_confirmation.icon) # https://community.akamai.steamstatic.com/economy/image/Iz...fKf/32fx32f\n```\n\n## respond_to_confirmations(confirmations: Iterable[Confirmation], cancel: bool = False) -> bool\n```python\nstatus = steam_client.confirmations.respond_to_confirmations(confirmations)\nprint(status) # True\n```\n\n## respond_to_confirmation(confirmation: Confirmation, cancel: bool = False) -> bool\n```python\nfirst_confirmation = confirmations[0]\nstatus = steam_client.confirmations.respond_to_confirmation(first_confirmation)\nprint(status) # True\n```\n\n## allow_all_confirmations(types: Iterable[ConfirmationType], delay: int = 3) -> None\n\n# guard module functions\n## generate_one_time_code(shared_secret: str) -> str\n```python\nfrom steamcom.guard import generate_one_time_code\n\n\nsecret_code = generate_one_time_code(shared_secret)\nprint(secret_code) # KPI21\n```\n\n## generate_confirmation_key(identity_secret: str, tag: str) -> bytes\n\n## generate_device_id(steam_id: str) -> str\n\n\n# market module functions\n## get_price_history(app_id: str, market_hash_name: str) -> dict\nReturn parsed graph dots:\n```python\n{\n    'Oct 05 2022': {\n        '21': {'price': 99.435, 'sales': 43},\n        '22': {'price': 139.317, 'sales': 270},\n        '23': {'price': 162.369, 'sales': 480}\n    },\n    'Oct 06 2022': {\n        '00': {'price': 136.98, 'sales': 1591},\n        '01': {'price': 95.765, 'sales': 2486},\n        '02': {'price': 128.912, 'sales': 1166},\n        '03': {'price': 79.4, 'sales': 3488},\n        '04': {'price': 64.853, 'sales': 3509},\n        '05': {'price': 48.488, 'sales': 3615},\n        '06': {'price': 38.628, 'sales': 4189},\n        '07': {'price': 19.867, 'sales': 5858},\n        '08': {'price': 14.915, 'sales': 4695},\n        '09': {'price': 17.805, 'sales': 3632},\n        '10': {'price': 36.602, 'sales': 2347},\n        '11': {'price': 39.764, 'sales': 2222},\n        '12': {'price': 38.924, 'sales': 2625},\n        '13': {'price': 29.821, 'sales': 2613},\n        '14': {'price': 29.942, 'sales': 1829},\n        '15': {'price': 41.774, 'sales': 1553},\n        '16': {'price': 54.72, 'sales': 1312},\n        '17': {'price': 77.849, 'sales': 725},\n        '18': {'price': 93.34, 'sales': 584},\n        '19': {'price': 85.461, 'sales': 668},\n        '20': {'price': 87.43, 'sales': 747},\n        '21': {'price': 89.098, 'sales': 744},\n        '22': {'price': 98.189, 'sales': 1210},\n        '23': {'price': 58.792, 'sales': 2255}\n    },\n    'Oct 07 2022': {\n        '00': {'price': 53.943, 'sales': 3456},\n        '01': {'price': 48.988, 'sales': 3294},\n        '02': {'price': 44.246, 'sales': 3292},\n        '03': {'price': 44.246, 'sales': 3058},\n        '04': {'price': 47.308, 'sales': 2573},\n        '05': {'price': 30.305, 'sales': 3619},\n        '06': {'price': 18.789, 'sales': 5698}\n    }\n}\n```\n\n## get_orders_histogram(item_name_id: str, app_id: str, market_hash_name: str, currency_id: int = None) -> dict\nReturn parsed histogram dots:\n```python\n{'buy_order_graph': [\n    {'price': 2.67, 'quantity': 1},\n    {'price': 2.66, 'quantity': 1},\n    {'price': 2.6, 'quantity': 4},\n    {'price': 2.57, 'quantity': 23},\n    {'price': 2.54, 'quantity': 20},\n    {'price': 2.5, 'quantity': 1},\n    {'price': 2.49, 'quantity': 1},\n    {'price': 2.02, 'quantity': 3},\n    {'price': 1.92, 'quantity': 9},\n    {'price': 1.74, 'quantity': 15},\n    {'price': 1.65, 'quantity': 1},\n    {'price': 1.53, 'quantity': 2},\n    {'price': 1.4, 'quantity': 1},\n    {'price': 1.3, 'quantity': 9},\n    {'price': 1.24, 'quantity': 1},\n    {'price': 1, 'quantity': 15},\n    {'price': 0.87, 'quantity': 97}],\n 'sell_order_graph': [\n    {'price': 3.24, 'quantity': 1},\n    {'price': 3.25, 'quantity': 1},\n    {'price': 3.27, 'quantity': 1},\n    {'price': 3.28, 'quantity': 4},\n    {'price': 3.29, 'quantity': 2},\n    {'price': 3.3, 'quantity': 15},\n    {'price': 3.33, 'quantity': 1},\n    {'price': 3.34, 'quantity': 3},\n    {'price': 3.35, 'quantity': 1},\n    {'price': 3.36, 'quantity': 2},\n    {'price': 3.38, 'quantity': 1},\n    {'price': 3.41, 'quantity': 4},\n    {'price': 3.42, 'quantity': 1},\n    {'price': 3.45, 'quantity': 36},\n    {'price': 3.49, 'quantity': 2},\n    {'price': 3.5, 'quantity': 1},\n    {'price': 3.52, 'quantity': 1},\n    {'price': 3.56, 'quantity': 2}]}\n```\n\n## get_my_market_listings(self, delay: int = 3) -> dict\nReturn listings\n```python\n{'buy_orders': {\n    '5470862660': {\n        'item_link': 'https://steamcommunity.com/market/listings/570/Seething%20Orbit',\n        'item_name': 'Seething Orbit',\n        'market_hash_name': 'Seething Orbit',\n        'order_id': '5470862660',\n        'price': 6.65,\n        'quantity': 5}\n    },\n 'sell_listings': {\n    '3868053667603823025': {\n        'buyer_pay': 2.70,\n        'created_on': '3 Oct',\n        'created_timestamp': 1664733600,\n        'description': {\n            'amount': '1',\n            'app_icon': ...,\n            'appid': 570,\n            'background_color': '',\n            'classid': '521521104',\n            'commodity': 0,\n            'contextid': '2',\n            'currency': 0,\n            'descriptions': ...\n            'icon_url': ...\n            'id': '24699743025',\n            'instanceid': '5017446107',\n            'market_hash_name': 'Lesser Twin',\n            'market_marketable_restriction': 0,\n            'market_name': 'Lesser Twin Blade',\n            'market_tradable_restriction': 7,\n            'marketable': 1,\n            'name': 'Lesser Twin Blade',\n            'name_color': 'D2D2D2',\n            'original_amount': '1',\n            'owner': 0,\n            'owner_descriptions': ...,\n            'status': 2,\n            'tradable': 0,\n            'type': 'Rare Offhand',\n            'unowned_contextid': '2',\n            'unowned_id': ...},\n        'listing_id': '3868053667603823025',\n        'need_confirmation': False,\n        'you_receive': '2.36'\n    }\n}\n```\n\n## create_buy_order(app_id: str, market_hash_name: str, price_single_item: str, quantity: int) -> dict:\nReponse\n```python\n{'success': 1, 'buy_orderid': '5465633972'}\n```\n\n## create_sell_order(asset_id: str, app_id: str, context_id: str, money_to_receive: str, amount: int = 1) -> dict:\nResponse\n```python\n{\n    'email_domain': 'gmail.com',\n    'needs_email_confirmation': False,\n    'needs_mobile_confirmation': True,\n    'requires_confirmation': 1,\n    'success': True\n}\n```\n\n## cancel_sell_order(sell_listing_id: str) -> None:\n\n## cancel_buy_order(buy_order_id) -> dict:\nResponse\n```python\n{'success': 1}\n```\n\n## check_placed_buy_order(app_id: str, market_hash_name: str) -> None | dict:\nResponse\n```python\n{\n    'item_link': 'https://steamcommunity.com/market/listings/570/Seething%20Orbit',\n    'item_name': 'Seething Orbit',\n    'market_hash_name': 'Seething Orbit',\n    'order_id': '5470862660',\n    'price': 6.65,\n    'quantity': 5\n}\n```\n\n## get_my_history(events_value: int = 5000, delay: int = 3) -> dict:\nResponse\n```python\n[\n    {\n        'asset': {\n            'actions': ...,\n            'amount': '0',\n            'app_icon': ...\n            'appid': 730,\n            'background_color': '',\n            'classid': '4839651026',\n            'commodity': 1,\n            'contextid': '2',\n            'currency': 0,\n            'descriptions': [...],\n            'icon_url': ...,\n            'icon_url_large': ...,\n            'id': '25979127616',\n            'instanceid': '188530139',\n            'market_actions': [...],\n            'market_hash_name': 'Sticker | jabbi (Glitter) | Antwerp 2022',\n            'market_name': 'Sticker | jabbi (Glitter) | Antwerp 2022',\n            'market_tradable_restriction': 7,\n            'marketable': 1,\n            'name': 'Sticker | jabbi (Glitter) | Antwerp 2022',\n            'name_color': 'D2D2D2',\n            'original_amount': '1',\n            'owner': 0,\n            'status': 4,\n            'tradable': 1,\n            'type': 'Remarkable Sticker',\n            'unowned_contextid': '2',\n            'unowned_id': '25979127616'},\n        'currency_id': '2005',\n        'date_event': '13 Oct',\n        'event_type': 4,\n        'listingid': '5152706284695898110',\n        'new_asset_id': '27404075264',   # from sold and purchased\n        'partner_currency_id': '2005',  # from sold and purchased\n        'price': 1.5,\n        'purchaseid': '5152706284695898111',\n        'steamid_actor': '76561199216758062',\n        'time_event': 1665657537,\n        'time_event_fraction': 310000000\n    }\n]\n```\n\n## get_my_history_up_to_date(self, date: datetime, delay: int = 3, attempts: int = 3) -> dict\nThe response is the same as get_my_history\n\n# fee_counter module functions\n## count(price: float) -> dict\nReponse\n```python\n{'steam_fee': 30, 'publisher_fee': 58, 'fees': 87, 'buyer_pay': 676, 'amount': 677, 'seller_receive': 589}\n```\n",
    "bugtrack_url": null,
    "license": null,
    "summary": "Python implementation of the Steam Community API",
    "version": "1.2.15",
    "project_urls": {
        "Homepage": "https://github.com/LinarSharifullin/steamcom"
    },
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "a357dbf400cc885b989e21044c3d1b62918828b1d9e5c778448d022c955210ad",
                "md5": "e05cd6ac98eca21ed43cf8ebf50cfe73",
                "sha256": "f1d139763fabc347f648d8346784e951313d12c4b85c8d8c36213ff0f03d01c0"
            },
            "downloads": -1,
            "filename": "steamcom-1.2.15-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "e05cd6ac98eca21ed43cf8ebf50cfe73",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.9",
            "size": 21018,
            "upload_time": "2024-11-23T14:41:15",
            "upload_time_iso_8601": "2024-11-23T14:41:15.126836Z",
            "url": "https://files.pythonhosted.org/packages/a3/57/dbf400cc885b989e21044c3d1b62918828b1d9e5c778448d022c955210ad/steamcom-1.2.15-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "46d9903f8a36160eed599ba59bcc12cc67bb01c8c4643ef393a175f6d469869d",
                "md5": "7a700f7b347a1a4f4ca8373738ffd9cc",
                "sha256": "2057c9f9c3f707258dbca4e3bfe3fbe96c2a4a425e681d757c33c06f660a3266"
            },
            "downloads": -1,
            "filename": "steamcom-1.2.15.tar.gz",
            "has_sig": false,
            "md5_digest": "7a700f7b347a1a4f4ca8373738ffd9cc",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.9",
            "size": 18805,
            "upload_time": "2024-11-23T14:41:17",
            "upload_time_iso_8601": "2024-11-23T14:41:17.280966Z",
            "url": "https://files.pythonhosted.org/packages/46/d9/903f8a36160eed599ba59bcc12cc67bb01c8c4643ef393a175f6d469869d/steamcom-1.2.15.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-11-23 14:41:17",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "LinarSharifullin",
    "github_project": "steamcom",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "requirements": [],
    "lcname": "steamcom"
}
        
Elapsed time: 0.35573s