|
@@ -373,11 +373,14 @@ def news():
|
|
print('Order access failed.')
|
|
print('Order access failed.')
|
|
|
|
|
|
|
|
|
|
-def transactions(obj_name=None):
|
|
|
|
|
|
+def transactions(obj_name=None, limit=5):
|
|
|
|
+ limit = float(limit)
|
|
if obj_name is None: # TODO list some available objects
|
|
if obj_name is None: # TODO list some available objects
|
|
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('transactions', {"session_id": connection.session_id, "ownable": obj_name})
|
|
|
|
|
|
+ response = client_request('transactions', {"session_id": connection.session_id,
|
|
|
|
+ "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'],
|