|
@@ -392,8 +392,8 @@ def trades_on(obj_name=None, limit=5):
|
|
obj_name = input('Name of object to check: ')
|
|
obj_name = input('Name of object to check: ')
|
|
fake_loading_bar('Loading Data', duration=1.3)
|
|
fake_loading_bar('Loading Data', duration=1.3)
|
|
response = client_request('trades_on', {"session_id": connection.session_id,
|
|
response = client_request('trades_on', {"session_id": connection.session_id,
|
|
- "ownable": obj_name,
|
|
|
|
- "limit": limit})
|
|
|
|
|
|
+ "ownable": obj_name,
|
|
|
|
+ "limit": limit})
|
|
success = 'data' in response
|
|
success = 'data' in response
|
|
if success:
|
|
if success:
|
|
print(my_tabulate(response['data'],
|
|
print(my_tabulate(response['data'],
|
|
@@ -410,7 +410,7 @@ def trades(limit=10):
|
|
limit = float(limit)
|
|
limit = float(limit)
|
|
fake_loading_bar('Loading Data', duration=2.7)
|
|
fake_loading_bar('Loading Data', duration=2.7)
|
|
response = client_request('trades', {"session_id": connection.session_id,
|
|
response = client_request('trades', {"session_id": connection.session_id,
|
|
- "limit": limit})
|
|
|
|
|
|
+ "limit": limit})
|
|
success = 'data' in response
|
|
success = 'data' in response
|
|
if success:
|
|
if success:
|
|
print(my_tabulate(response['data'],
|
|
print(my_tabulate(response['data'],
|