Skip to content

Commit

Permalink
✅ Unit Test
Browse files Browse the repository at this point in the history
  • Loading branch information
mraniki committed Sep 27, 2023
1 parent f023a00 commit 278d121
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cefi/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ async def execute_order(self, order_params):
order_type = item["exchange_ordertype"]
trading_asset = item["trading_asset"]
logger.debug("trading_asset {}", trading_asset)
instrument = instrument + item["separator"] + item["trading_asset"]
#instrument = instrument + item["separator"] + item["trading_asset"]
try:
if await self.get_account_balance(cex) == "No Balance":
logger.warning("⚠️ Check Balance")
Expand Down
2 changes: 1 addition & 1 deletion tests/test_unit.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ def result_order():
return {
"action": "BUY",
"instrument": "BTC/USDT",
"stop_loss": 200,
"stop_loss": 2000,
"take_profit": 400,
"quantity": 100,
"order_type": None,
Expand Down

0 comments on commit 278d121

Please sign in to comment.