bukson / steampy

A Steam trading library for python 3
MIT License
561 stars 153 forks source link

How i can recive market_id, for buy_id #222

Closed KokouH closed 2 years ago

KokouH commented 2 years ago

in buy_id i need market_id, but I couldn't find func for this

ldapuser commented 2 years ago

Hi, can you add an example, or provide some details?

KokouH commented 2 years ago

buy_item(market_name: str, market_id: str, price: int, fee: int, game: GameOptions, currency: Currency = Currency.USD) steam_client.market.buy_item('AK-47 | Redline (Field-Tested)', '1942659007774983251', 81, 10, GameOptions.CS, Currency.RUB) this function requires market_id, how can I get it using hashname?

KokouH commented 2 years ago

Hi, can you add an example, or provide some details?

buy_item(market_name: str, market_id: str, price: int, fee: int, game: GameOptions, currency: Currency = Currency.USD) steam_client.market.buy_item('AK-47 | Redline (Field-Tested)', '1942659007774983251', 81, 10, GameOptions.CS, Currency.RUB) this function requires market_id, how can I get it using hashname?

ldapuser commented 2 years ago

you can get it in two ways i know: 1. using your own scraper of listings of any csgo item, 2. manually on the csgo item page, using browser dev tool.