Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

trade_offers_sent list returning blank #133

Closed
Impulse-PW opened this issue Sep 19, 2018 · 0 comments
Closed

trade_offers_sent list returning blank #133

Impulse-PW opened this issue Sep 19, 2018 · 0 comments

Comments

@Impulse-PW
Copy link

Impulse-PW commented Sep 19, 2018

Hello, here's the code I'm using:

from steampy.client import SteamClient

steam_client = SteamClient('API KEY')
steam_client.login('my_username', 'my_password', 'guard_secret')

offers = steam_client.get_trade_offers()['response']['trade_offers_sent']

for offer in offers:
    offer_id = offer['tradeofferid']
    print(offer_id)

Json stored in my offers variable:

{'response': {'trade_offers_sent': [], 'descriptions': [{'appid': 730, 'classid': '2209581061', 'instanceid': '0', 'currency': False, 'background_color': '', 'icon_url': '-9a81dlWLwJ2UUGcVs_nsVtzdOEdtWwKGZZLQHTxDZ7I56KU0Zwwo4NUX4oFJZEHLbXU5A1PIYQNqhpOSV-fRPasw8rsUFJ5KBFZv668FFY2nfKadD4U7Y7lwYXexaGlYb3QzjlUvZ0k0ujHptug2VbirkRrNW2md4SLMlhph09hpX0', 'icon_url_large': '', 'descriptions': [{'type': 'html', 'value': ' '}, {'type': 'html', 'value': 'Container Series #207', 'color': '99ccff'}, {'type': 'html', 'value': ' '}, {'type': 'html', 'value': 'Contains one of the following:'}, {'type': 'html', 'value': 'PP-Bizon | Jungle Slipstream', 'color': '4b69ff'}, {'type': 'html', 'value': 'SCAR-20 | Blueprint', 'color': '4b69ff'}, {'type': 'html', 'value': 'Desert Eagle | Oxide Blaze', 'color': '4b69ff'}, {'type': 'html', 'value': 'Five-SeveN | Capillary', 'color': '4b69ff'}, {'type': 'html', 'value': 'MP7 | Akoben', 'color': '4b69ff'}, {'type': 'html', 'value': 'P250 | Ripple', 'color': '4b69ff'}, {'type': 'html', 'value': 'Sawed-Off | Zander', 'color': '4b69ff'}, {'type': 'html', 'value': 'Galil AR | Crimson Tsunami', 'color': '8847ff'}, {'type': 'html', 'value': 'M249 | Emerald Poison Dart', 'color': '8847ff'}, {'type': 'html', 'value': 'MAC-10 | Last Dive', 'color': '8847ff'}, {'type': 'html', 'value': 'UMP-45 | Scaffold', 'color': '8847ff'}, {'type': 'html', 'value': 'XM1014 | Seasons', 'color': '8847ff'}, {'type': 'html', 'value': 'AWP | Fever Dream', 'color': 'd32ce6'}, {'type': 'html', 'value': 'CZ75-Auto | Xiangliu', 'color': 'd32ce6'}, {'type': 'html', 'value': 'M4A1-S | Decimator', 'color': 'd32ce6'}, {'type': 'html', 'value': 'AK-47 | Bloodsport', 'color': 'eb4b4b'}, {'type': 'html', 'value': 'USP-S | Neo-Noir', 'color': 'eb4b4b'}, {'type': 'html', 'value': 'or an Exceedingly Rare Special Item!', 'color': 'ffd700'}, {'type': 'html', 'value': ' '}, {'type': 'html', 'value': '', 'color': '00a000'}], 'tradable': True, 'name': 'Spectrum Case', 'name_color': 'D2D2D2', 'type': 'Base Grade Container', 'market_name': 'Spectrum Case', 'market_hash_name': 'Spectrum Case', 'commodity': True, 'market_tradable_restriction': 7, 'marketable': True, 'tags': [{'category': 'Type', 'internal_name': 'CSGO_Type_WeaponCase', 'localized_category_name': 'Type', 'localized_tag_name': 'Container'}, {'category': 'ItemSet', 'internal_name': 'set_community_16', 'localized_category_name': 'Collection', 'localized_tag_name': 'The Spectrum Collection'}, {'category': 'Quality', 'internal_name': 'normal', 'localized_category_name': 'Category', 'localized_tag_name': 'Normal'}, {'category': 'Rarity', 'internal_name': 'Rarity_Common', 'localized_category_name': 'Quality', 'localized_tag_name': 'Base Grade', 'color': 'b0c3d9'}]}], 'trade_offers_received': []}}

I have sent an offer in my steam client, not using the code itself. It does show up here, but no information about the sent offers so I can get the trade id. I've also tested received, which it does get.

Thanks again for the help =]

@Impulse-PW Impulse-PW changed the title [Question] Unable to get trade offer id Unable to get trade offer id Sep 19, 2018
@Impulse-PW Impulse-PW changed the title Unable to get trade offer id trade_offers_sent list returning blank Sep 20, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant