bazaar.py
A Python Wrapper for the Hypixel Skyblock Bazaar
Installation
pip install bazaarpy
Usage
This code will import the library, setup the Bazaar class and refresh the data from the API.
from bazaarpy import bazaar as bz
baz = bz.Bazaar()
baz.updateValues()
When querying an item, you must use its Product ID or similar name, as defined in items.json
Available Functions:
- updateValues() Fetches new data from the Hypixel API. Do not spam this function or Hypixel may blacklist your IP address.
- buyOrders(item) Gets the current Buy Orders for an item
- sellOrders(item) Gets the current Sell Orders for an item
- price(item) Gets the Buy and Sell price for an item
- volume(item) Gets the Buy and Sell volume for an item
- orderCount(item) Gets the number of Buy and Sell orders currently open for an item
Examples
Fetch the Buy Price of a red gift and print it to the screen.
from bazaarpy import bazaar as bz
baz = bz.Bazaar()
baz.updateValues()
buyPrice = baz.price("red gift")['buyPrice']
print(str(buyPrice))
Metadata
Release files for bazaarpy 0.1.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| bazaarpy-0.1.4-py3-none-any.whl | Python 3 | none | any | Details |
Release files / bazaarpy-0.1.4-py3-none-any.whl
| Download URL | bazaarpy-0.1.4-py3-none-any.whl |
|---|---|
| Size | 25.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
9e91a09973784b41e47f47f8c704a157a844130c5c8a0c1113b5a7b3944c4ba2
|
|
BLAKE2b-256 checksum How to use checksums |
585de860d713b7a3c5e361aaccbbcbf27e9c30491d4562f537e9fd00a445ed55
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.10.7
|