|
@@ -228,7 +228,7 @@ def buy(obj_name=None, amount=None, limit='', stop_loss='', expiry=None):
|
|
print('Invalid expiration time.')
|
|
print('Invalid expiration time.')
|
|
return
|
|
return
|
|
|
|
|
|
- fake_loading_bar('Loading Data', duration=1.3)
|
|
|
|
|
|
+ fake_loading_bar('Sending 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,
|
|
"amount": amount,
|
|
"amount": amount,
|
|
@@ -275,7 +275,7 @@ def sell(obj_name=None, amount=None, limit='', stop_loss='', expiry=None):
|
|
print('Invalid expiration time.')
|
|
print('Invalid expiration time.')
|
|
return
|
|
return
|
|
|
|
|
|
- fake_loading_bar('Loading Data', duration=1.3)
|
|
|
|
|
|
+ fake_loading_bar('Sending 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,
|
|
"amount": amount,
|
|
"amount": amount,
|