|
@@ -192,9 +192,9 @@ def buy(amount=None, object_name=None, limit='', stop_loss='', time_until_expira
|
|
|
stop_loss = yn_dialog('Is this a stop-loss limit?')
|
|
|
|
|
|
if time_until_expiration is None:
|
|
|
- time_until_expiration = input('Time until order expires (minutes, default 60):')
|
|
|
+ time_until_expiration = input('Time until order expires (minutes, default 1440):')
|
|
|
if time_until_expiration == '':
|
|
|
- time_until_expiration = 60
|
|
|
+ time_until_expiration = 1440
|
|
|
response = client_request('order', {"buy": True,
|
|
|
"session_id": connection.session_id,
|
|
|
"amount": amount,
|
|
@@ -226,9 +226,9 @@ def sell(amount=None, object_name=None, limit=None, stop_loss='', time_until_exp
|
|
|
stop_loss = yn_dialog('Is this a stop-loss limit?')
|
|
|
|
|
|
if time_until_expiration is None:
|
|
|
- time_until_expiration = input('Time until order expires (minutes, default 60):')
|
|
|
+ time_until_expiration = input('Time until order expires (minutes, default 1440):')
|
|
|
if time_until_expiration == '':
|
|
|
- time_until_expiration = 60
|
|
|
+ time_until_expiration = 1440
|
|
|
response = client_request('order', {"buy": False,
|
|
|
"session_id": connection.session_id,
|
|
|
"amount": amount,
|