Begin implementing MEXC

This commit is contained in:
2024-12-03 14:12:42 +00:00
parent 761b084704
commit 4079207a05
6 changed files with 34 additions and 15 deletions

View File

@@ -176,11 +176,13 @@ class Account(models.Model):
if client:
response = client.get_instruments()
supported_symbols = client.get_supported_assets(response)
currency = client.get_account()["currency"]
acct_info = client.get_account()
log.debug(f"Supported symbols for {self.name}: {supported_symbols}")
self.supported_symbols = supported_symbols
self.instruments = response
self.currency = currency
if "currency" in acct_info.keys():
currency = acct_info["currency"]
self.currency = currency
if save:
self.save()