Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions api.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,14 @@ def get_player_auctions(self, player_name: str) -> dict:
player_auctions = json.loads(api_request)
return player_auctions

def get_recently_ended_auctions(self) -> dict:
"""
Returns a `dict` of all the auctions that have recently ended within 60 seconds.
"""
api_request = requests.get("https://api.hypixel.net/skyblock/auctions_ended").content
recently_ended_auctions = json.loads(api_request)
return recently_ended_auctions

def get_news(self) -> dict:
"""
Returns a `dict` of the latest Skyblock news from Hypixel.
Expand Down