Metadata-Version: 2.1
Name: steammarket
Version: 1.0.0b0
Summary: A Python API for getting prices from the Steam market.
Author-email: Matyi <mmatyi@caesar.elte.hu>
Project-URL: Homepage, https://github.com/matyifkbt/PySteamMarket
Project-URL: Issues, https://github.com/matyifkbt/pysteammarket/issues
Project-URL: Changelog, https://github.com/matyifkbt/pysteammarket/blob/master/CHANGELOG.md
Requires-Python: >=3.10
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: requests>=2.32.3

# steammarket

Python module to quickly get item prices from Steam Marketplace.

## Installation

`pip install steammarket`

OR

```bash
git clone https://github.com/MatyiFKBT/pysteammarket
cd pysteammarket
python setup.py install
```

## Usage

### Example in TF2

```python
import steammarket as sm

item = sm.get_tf2_item('Strange Professional Killstreak Scattergun')
for listing in item.listings:
    print(listing.price)
```

### get_item

```python
get_item(appid, name, currency='EUR')
```

Gets item listings from the `Steam Marketplace`.

@appid ID of game item belongs to.

@name: Name of item to lookup. Use the exact name from the community market.

@currency: Abbreviation of currency to return listing prices in.
Accepted currencies:`USD,GBP,EUR,CHF,RUB,KRW,CAD`

Defaults to `EUR`.
Please lookup the proper abbreviation for your currency of choice.

Returns a json object
Example:

```json
{
    "success": true,
    "lowest_price": "0,92Ç",
    "volume": "15",
    "median_price": "0,80Ç"
}
```

### get_multiple

```python
get_multiple(items, appid=440, currency='EUR')
```

Fetch multiple items using get_item().

### get_tf2_item

```python
get_tf2_item(item, currency='EUR')
```

Fetches an item from TF2. (Defaults the `appid` to 440)

### get_csgo_item

```python
get_csgo_item(item, currency='EUR')
```

Fetches an item from CSGO. (Defaults the `appid` to 730)
