feat: Add open

This commit is contained in:
2023-12-29 12:50:15 +11:00
parent 9e02fd7774
commit fd2e18d655
2 changed files with 39 additions and 5 deletions

View File

@@ -249,4 +249,21 @@ def bid(account,domain,bid,blind):
return {
"error": str(e)
}
def openAuction(account,domain):
account_name = check_account(account)
password = ":".join(account.split(":")[1:])
if account_name == False:
return {
"error": "Invalid account"
}
try:
response = hsw.sendOPEN(account_name,password,domain)
return response
except Exception as e:
return {
"error": str(e)
}