質問編集履歴

1

間違い

2018/03/15 08:59

投稿

uuuiii
uuuiii

スコア11

test CHANGED
File without changes
test CHANGED
@@ -1,10 +1,24 @@
1
- Traceback (most recent call last):
1
+ if sys.argv[1] == 'b':
2
2
 
3
- File "./uichi.py", line 25, in <module>
3
+ if last >= (entryPrice + CLOSE_RANGE):
4
4
 
5
- if sys.argv[1] == 'b':
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
- IndexError: list index out of range
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