File tree Expand file tree Collapse file tree 2 files changed +9
-4
lines changed Expand file tree Collapse file tree 2 files changed +9
-4
lines changed Original file line number Diff line number Diff line change 1
1
2
- cron.log
2
+ cron *
3
3
4
4
settings.conf
5
5
Original file line number Diff line number Diff line change @@ -213,7 +213,12 @@ def get_timestamp():
213
213
214
214
print (json .dumps (result , sort_keys = True , indent = 4 ))
215
215
216
- if "message" in result :
216
+ if "message" in result and "Post only mode" in result .get ("message" ):
217
+ # Price moved away from valid order
218
+ print ("Post only mode at $%0.2f" % (offer_price ))
219
+ continue
220
+
221
+ elif "message" in result :
217
222
# Something went wrong if there's a 'message' field in response
218
223
sns .publish (
219
224
TopicArn = sns_topic ,
@@ -261,8 +266,8 @@ def get_timestamp():
261
266
'''
262
267
wait_time = 60
263
268
total_wait_time = 0
264
- while ( "status" in order
265
- and (order ["status" ] == "pending" or order ["status" ] == "open" )):
269
+ while "status" in order and \
270
+ (order ["status" ] == "pending" or order ["status" ] == "open" )):
266
271
if total_wait_time > warn_after :
267
272
sns .publish (
268
273
TopicArn = sns_topic ,
You can’t perform that action at this time.
0 commit comments