Skip to main content

A Python wrapper for the Hypixel Skyblock Bazaar API

Project description

bazaar.py

A Python Wrapper for the Hypixel Skyblock Bazaar

Version License

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))

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

bazaarpy-0.1.4-py3-none-any.whl (25.6 kB view details)

Uploaded Python 3

File details

Details for the file bazaarpy-0.1.4-py3-none-any.whl.

File metadata

  • Download URL: bazaarpy-0.1.4-py3-none-any.whl
  • Upload date:
  • Size: 25.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.7

File hashes

Hashes for bazaarpy-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 9e91a09973784b41e47f47f8c704a157a844130c5c8a0c1113b5a7b3944c4ba2
MD5 4c1676fd92fd8a8fe80640a541ebeca0
BLAKE2b-256 585de860d713b7a3c5e361aaccbbcbf27e9c30491d4562f537e9fd00a445ed55

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page