documentation.py 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. # the general syntax is
  2. # {attribute1: value, attribute2: value, ...}
  3. #
  4. # for example a valid request to /register would look like
  5. # {"email": "user123@example.org", "username": "user123", "password": "FILTERED", "preferred_language": "german"}
  6. # while a valid request to /events would be the empty object {}
  7. credits_required_attributes = []
  8. credits_possible_attributes = ['issuer', 'only_next_mro_qualified']
  9. buy_banking_license_required_attributes = ['session_id']
  10. buy_banking_license_possible_attributes = ['session_id']
  11. cancel_order_required_attributes = ['order_id', 'session_id']
  12. cancel_order_possible_attributes = ['order_id', 'session_id']
  13. change_password_required_attributes = ['password', 'session_id']
  14. change_password_possible_attributes = ['password', 'session_id']
  15. depot_required_attributes = ['session_id']
  16. depot_possible_attributes = ['session_id']
  17. gift_required_attributes = ['amount', 'object_name', 'session_id', 'username']
  18. gift_possible_attributes = ['amount', 'object_name', 'session_id', 'username']
  19. global_variables_required_attributes = []
  20. global_variables_possible_attributes = []
  21. issue_bond_required_attributes = ['coupon', 'name', 'run_time', 'session_id']
  22. issue_bond_possible_attributes = ['coupon', 'name', 'run_time', 'session_id']
  23. leaderboard_required_attributes = []
  24. leaderboard_possible_attributes = []
  25. loans_required_attributes = ['session_id']
  26. loans_possible_attributes = ['session_id']
  27. login_required_attributes = ['password', 'username']
  28. login_possible_attributes = ['password', 'username']
  29. logout_required_attributes = ['session_id']
  30. logout_possible_attributes = ['session_id']
  31. news_required_attributes = []
  32. news_possible_attributes = []
  33. old_orders_required_attributes = ['include_canceled', 'include_executed', 'limit', 'session_id']
  34. old_orders_possible_attributes = ['include_canceled', 'include_executed', 'limit', 'session_id']
  35. order_required_attributes = ['amount', 'buy', 'ownable', 'session_id', 'time_until_expiration']
  36. order_possible_attributes = ['amount', 'buy', 'ioc', 'limit', 'ownable', 'session_id', 'stop_loss', 'time_until_expiration']
  37. orders_required_attributes = ['session_id']
  38. orders_possible_attributes = ['session_id']
  39. orders_on_required_attributes = ['ownable', 'session_id']
  40. orders_on_possible_attributes = ['ownable', 'session_id']
  41. register_required_attributes = ['password', 'username']
  42. register_possible_attributes = ['password', 'username']
  43. repay_loan_required_attributes = ['amount', 'loan_id', 'session_id']
  44. repay_loan_possible_attributes = ['amount', 'loan_id', 'session_id']
  45. server_version_required_attributes = []
  46. server_version_possible_attributes = []
  47. take_out_personal_loan_required_attributes = ['amount', 'session_id']
  48. take_out_personal_loan_possible_attributes = ['amount', 'session_id']
  49. tradables_required_attributes = []
  50. tradables_possible_attributes = []
  51. trades_required_attributes = ['limit', 'session_id']
  52. trades_possible_attributes = ['limit', 'session_id']
  53. trades_on_required_attributes = ['limit', 'ownable', 'session_id']
  54. trades_on_possible_attributes = ['limit', 'ownable', 'session_id']