Skip to content

There is no amount field in the create_sell_order market method. #BUG #427

@KokouH

Description

@KokouH

In the rust game, items can be stackable, which means that you need to specify the quantity for sale
amount is not always equal to 1
`
def create_sell_order(self, assetid: str, game: GameOptions, money_to_receive: str, amount: int = 1) -> dict:
data = {
'assetid': assetid,
'sessionid': self._session_id,
'contextid': game.context_id,
'appid': game.app_id,
'amount': amount,
'price': money_to_receive,
}
headers = {'Referer': f'{SteamUrl.COMMUNITY_URL}/profiles/{self._steam_guard["steamid"]}/inventory'}

    response = self._session.post(f'{SteamUrl.COMMUNITY_URL}/market/sellitem/', data, headers=headers).json()
    has_pending_confirmation = 'pending confirmation' in response.get('message', '')
    if response.get('needs_mobile_confirmation') or (not response.get('success') and has_pending_confirmation):
        return self._confirm_sell_listing(assetid)

    return response

`
my fix

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions