feat: Add open
This commit is contained in:
19
account.py
19
account.py
@@ -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)
|
||||
}
|
||||
Reference in New Issue
Block a user