|
@@ -226,7 +226,7 @@ def buy(amount=None, object_name=None, limit='', stop_loss='', time_until_expira
|
|
if time_until_expiration is None:
|
|
if time_until_expiration is None:
|
|
time_until_expiration = input('Time until order expires (minutes, default 43200):')
|
|
time_until_expiration = input('Time until order expires (minutes, default 43200):')
|
|
if time_until_expiration == '':
|
|
if time_until_expiration == '':
|
|
- time_until_expiration = 10080
|
|
|
|
|
|
+ time_until_expiration = 43200
|
|
fake_loading_bar('Loading Data', duration=1.3)
|
|
fake_loading_bar('Loading Data', duration=1.3)
|
|
response = client_request('order', {"buy": True,
|
|
response = client_request('order', {"buy": True,
|
|
"session_id": connection.session_id,
|
|
"session_id": connection.session_id,
|
|
@@ -259,9 +259,9 @@ def sell(amount=None, object_name=None, limit='', stop_loss='', time_until_expir
|
|
stop_loss = yn_dialog('Is this a stop-loss limit?')
|
|
stop_loss = yn_dialog('Is this a stop-loss limit?')
|
|
|
|
|
|
if time_until_expiration is None:
|
|
if time_until_expiration is None:
|
|
- time_until_expiration = input('Time until order expires (minutes, default 1440):')
|
|
|
|
|
|
+ time_until_expiration = input('Time until order expires (minutes, default 43200):')
|
|
if time_until_expiration == '':
|
|
if time_until_expiration == '':
|
|
- time_until_expiration = 1440
|
|
|
|
|
|
+ time_until_expiration = 43200
|
|
fake_loading_bar('Loading Data', duration=1.3)
|
|
fake_loading_bar('Loading Data', duration=1.3)
|
|
response = client_request('order', {"buy": False,
|
|
response = client_request('order', {"buy": False,
|
|
"session_id": connection.session_id,
|
|
"session_id": connection.session_id,
|