Improve posting trades to OANDA and make everything more robust

This commit is contained in:
2022-11-10 19:27:46 +00:00
parent bf863f43b2
commit af9f874209
11 changed files with 267 additions and 30 deletions

View File

@@ -164,6 +164,18 @@ class BaseExchange(object):
def get_account(self):
raise NotImplementedError
def extract_instrument(self, instruments, instrument):
for x in instruments["itemlist"]:
if x["name"] == instrument:
return x
return None
def get_currencies(self, symbols):
raise NotImplementedError
def get_instruments(self):
raise NotImplementedError
def get_supported_assets(self):
raise NotImplementedError