-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathmain.py
More file actions
38 lines (36 loc) · 864 Bytes
/
Copy pathmain.py
File metadata and controls
38 lines (36 loc) · 864 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
import bot
from pprint import pprint
import time
import utils
if __name__ == '__main__':
bot = bot.Bot()
bot.run()
# symbol = "ATAUSDT"
# old_price = 0.4136
# price = 0.4117
# percentage = -1
# quantity = float(utils.truncate((10 / price), 0))
#
# result_order = bot.add_order(
# symbol="ATAUSDT",
# price=price,
# percentage=percentage,
# quantity=quantity
# )
# result_sl = bot.add_sl(
# symbol=symbol,
# price=price,
# old_price=old_price,
# percentage=percentage,
# quantity=quantity
# )
# result_tp = bot.add_tp(
# symbol=symbol,
# price=price,
# old_price=old_price,
# percentage=percentage,
# quantity=quantity
# )
# print(result_order)
# print(result_sl)
# print(result_tp)