質問編集履歴
1
間違い
test
CHANGED
File without changes
|
test
CHANGED
@@ -1,10 +1,24 @@
|
|
1
|
-
|
1
|
+
if sys.argv[1] == 'b':
|
2
2
|
|
3
|
-
|
3
|
+
if last >= (entryPrice + CLOSE_RANGE):
|
4
4
|
|
5
|
-
|
5
|
+
print('Close!')
|
6
6
|
|
7
|
+
sys.exit()
|
8
|
+
|
9
|
+
elif last <= (entryPrice - STOP_RANGE):
|
10
|
+
|
11
|
+
market('sell', LOT)
|
12
|
+
|
13
|
+
print('Loss Cut!')
|
14
|
+
|
7
|
-
|
15
|
+
order = bitmex.cancel_order(closeId)
|
16
|
+
|
17
|
+
print('Cancel: ' + order['info']['ordType'] + ' ' + order['info']['side'] + ': ' +
|
18
|
+
|
19
|
+
str(order['info']['orderQty']) + ' @ ' + str(order['info']['price']) + ' / ' + order['id'])
|
20
|
+
|
21
|
+
sys.exit()
|
8
22
|
|
9
23
|
|
10
24
|
|