Skip to content

Commit 020d2a4

Browse files
committed
Fixed adding new strategies
1 parent 49c5b9a commit 020d2a4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

API/Endpoints/TradeEndpoint.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ def post(self, id=None):
5656

5757
strategies = self.get_strategies(id)
5858

59-
if not strategies:
59+
if not strategies and id != '0':
6060
return APIResult.ErrorResult(101, msg='No strategies were found'), 404
6161

6262
action = action.lower()

0 commit comments

Comments
 (0)