-
Notifications
You must be signed in to change notification settings - Fork 164
Open
Description
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
Labels
No labels