We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6ec178f commit db46465Copy full SHA for db46465
octobot_script/ai/environments.py
@@ -41,14 +41,14 @@ async def basic_trade_function(ctx, action):
41
ctx,
42
"buy",
43
amount=f"{1 if action == 3 else 10 if action == 4 else 30}%",
44
- offset=f"-{1 if action == 3 else 10 if action == 4 else 30}%",
+ offset=f"-{1 if action == 3 else 2 if action == 4 else 3}%",
45
))
46
elif action in [6, 7, 8]:
47
created_orders.append(await obs.limit(
48
49
"sell",
50
amount=f"{1 if action == 6 else 10 if action == 7 else 30}%",
51
- offset=f"{1 if action == 6 else 10 if action == 7 else 30}%",
+ offset=f"{1 if action == 6 else 2 if action == 7 else 3}%",
52
53
else:
54
# Nothing for now
0 commit comments