Make order request methods be venue aware

basic_buy_bot
Tyler Goodlet 2023-06-17 03:37:49 -04:00
parent f36061a149
commit 98f6d85b65
1 changed files with 2 additions and 2 deletions

View File

@ -655,7 +655,7 @@ class Client:
'Submitting ReST order request:\n'
f'{pformat(params)}'
)
resp = await self._api(
resp = await self.mkt_mode_req[self.mkt_mode](
'order',
params=params,
signed=True,
@ -687,7 +687,7 @@ class Client:
'Submitting ReST order cancel: {oid}\n'
f'{pformat(params)}'
)
return await self._api(
await self.mkt_mode_req[self.mkt_mode](
'order',
params=params,
signed=True,