mywebapi-sdk 0.3.0__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (456) hide show
  1. cplugin_webapi_sdk/__init__.py +79 -0
  2. cplugin_webapi_sdk/_generated/__init__.py +8 -0
  3. cplugin_webapi_sdk/_generated/api/__init__.py +1 -0
  4. cplugin_webapi_sdk/_generated/api/mt4_v_2_authentication/__init__.py +1 -0
  5. cplugin_webapi_sdk/_generated/api/mt4_v_2_authentication/post_api_v_2_mt4_trade_platform_user_password_check_login.py +306 -0
  6. cplugin_webapi_sdk/_generated/api/mt4_v_2_authentication/post_api_v_2_mt4_trade_platform_user_password_set_login.py +377 -0
  7. cplugin_webapi_sdk/_generated/api/mt4_v_2_backup/__init__.py +1 -0
  8. cplugin_webapi_sdk/_generated/api/mt4_v_2_backup/get_api_v_2_mt4_trade_platform_backup_info_orders_mode.py +246 -0
  9. cplugin_webapi_sdk/_generated/api/mt4_v_2_backup/get_api_v_2_mt4_trade_platform_backup_info_users_mode.py +262 -0
  10. cplugin_webapi_sdk/_generated/api/mt4_v_2_backup/get_api_v_2_mt4_trade_platform_backup_request_orders_file.py +285 -0
  11. cplugin_webapi_sdk/_generated/api/mt4_v_2_backup/get_api_v_2_mt4_trade_platform_backup_request_users_file.py +325 -0
  12. cplugin_webapi_sdk/_generated/api/mt4_v_2_backup_destructive/__init__.py +1 -0
  13. cplugin_webapi_sdk/_generated/api/mt4_v_2_backup_destructive/post_api_v_2_mt4_trade_platform_backup_restore_orders.py +332 -0
  14. cplugin_webapi_sdk/_generated/api/mt4_v_2_backup_destructive/post_api_v_2_mt4_trade_platform_backup_restore_users.py +344 -0
  15. cplugin_webapi_sdk/_generated/api/mt4_v_2_common/__init__.py +1 -0
  16. cplugin_webapi_sdk/_generated/api/mt4_v_2_common/get_api_v_2_mt4_trade_platform_journal_request.py +326 -0
  17. cplugin_webapi_sdk/_generated/api/mt4_v_2_common/get_api_v_2_mt4_trade_platform_manager_common.py +229 -0
  18. cplugin_webapi_sdk/_generated/api/mt4_v_2_common/get_api_v_2_mt4_trade_platform_server_time.py +225 -0
  19. cplugin_webapi_sdk/_generated/api/mt4_v_2_config/__init__.py +1 -0
  20. cplugin_webapi_sdk/_generated/api/mt4_v_2_config/get_api_v_2_mt4_trade_platform_cfg_request_access.py +280 -0
  21. cplugin_webapi_sdk/_generated/api/mt4_v_2_config/get_api_v_2_mt4_trade_platform_cfg_request_backup.py +241 -0
  22. cplugin_webapi_sdk/_generated/api/mt4_v_2_config/get_api_v_2_mt4_trade_platform_cfg_request_common.py +237 -0
  23. cplugin_webapi_sdk/_generated/api/mt4_v_2_config/get_api_v_2_mt4_trade_platform_cfg_request_data_server.py +276 -0
  24. cplugin_webapi_sdk/_generated/api/mt4_v_2_config/get_api_v_2_mt4_trade_platform_cfg_request_feeder.py +276 -0
  25. cplugin_webapi_sdk/_generated/api/mt4_v_2_config/get_api_v_2_mt4_trade_platform_cfg_request_gateway_account.py +280 -0
  26. cplugin_webapi_sdk/_generated/api/mt4_v_2_config/get_api_v_2_mt4_trade_platform_cfg_request_gateway_markup.py +280 -0
  27. cplugin_webapi_sdk/_generated/api/mt4_v_2_config/get_api_v_2_mt4_trade_platform_cfg_request_gateway_rule.py +272 -0
  28. cplugin_webapi_sdk/_generated/api/mt4_v_2_config/get_api_v_2_mt4_trade_platform_cfg_request_holiday.py +296 -0
  29. cplugin_webapi_sdk/_generated/api/mt4_v_2_config/get_api_v_2_mt4_trade_platform_cfg_request_live_update.py +272 -0
  30. cplugin_webapi_sdk/_generated/api/mt4_v_2_config/get_api_v_2_mt4_trade_platform_cfg_request_manager.py +272 -0
  31. cplugin_webapi_sdk/_generated/api/mt4_v_2_config/get_api_v_2_mt4_trade_platform_cfg_request_sync.py +276 -0
  32. cplugin_webapi_sdk/_generated/api/mt4_v_2_config/get_api_v_2_mt4_trade_platform_cfg_request_time.py +245 -0
  33. cplugin_webapi_sdk/_generated/api/mt4_v_2_config/post_api_v_2_mt4_trade_platform_cfg_delete_access_pos.py +254 -0
  34. cplugin_webapi_sdk/_generated/api/mt4_v_2_config/post_api_v_2_mt4_trade_platform_cfg_delete_data_server_pos.py +234 -0
  35. cplugin_webapi_sdk/_generated/api/mt4_v_2_config/post_api_v_2_mt4_trade_platform_cfg_delete_feeder_pos.py +230 -0
  36. cplugin_webapi_sdk/_generated/api/mt4_v_2_config/post_api_v_2_mt4_trade_platform_cfg_delete_gateway_account_pos.py +230 -0
  37. cplugin_webapi_sdk/_generated/api/mt4_v_2_config/post_api_v_2_mt4_trade_platform_cfg_delete_gateway_markup_pos.py +230 -0
  38. cplugin_webapi_sdk/_generated/api/mt4_v_2_config/post_api_v_2_mt4_trade_platform_cfg_delete_gateway_rule_pos.py +230 -0
  39. cplugin_webapi_sdk/_generated/api/mt4_v_2_config/post_api_v_2_mt4_trade_platform_cfg_delete_holiday_pos.py +230 -0
  40. cplugin_webapi_sdk/_generated/api/mt4_v_2_config/post_api_v_2_mt4_trade_platform_cfg_delete_live_update_pos.py +230 -0
  41. cplugin_webapi_sdk/_generated/api/mt4_v_2_config/post_api_v_2_mt4_trade_platform_cfg_delete_manager_pos.py +230 -0
  42. cplugin_webapi_sdk/_generated/api/mt4_v_2_config/post_api_v_2_mt4_trade_platform_cfg_delete_symbol_pos.py +238 -0
  43. cplugin_webapi_sdk/_generated/api/mt4_v_2_config/post_api_v_2_mt4_trade_platform_cfg_delete_sync_pos.py +230 -0
  44. cplugin_webapi_sdk/_generated/api/mt4_v_2_config/post_api_v_2_mt4_trade_platform_cfg_shift_access_pos.py +250 -0
  45. cplugin_webapi_sdk/_generated/api/mt4_v_2_config/post_api_v_2_mt4_trade_platform_cfg_shift_data_server_pos.py +250 -0
  46. cplugin_webapi_sdk/_generated/api/mt4_v_2_config/post_api_v_2_mt4_trade_platform_cfg_shift_feeder_pos.py +250 -0
  47. cplugin_webapi_sdk/_generated/api/mt4_v_2_config/post_api_v_2_mt4_trade_platform_cfg_shift_gateway_account_pos.py +250 -0
  48. cplugin_webapi_sdk/_generated/api/mt4_v_2_config/post_api_v_2_mt4_trade_platform_cfg_shift_gateway_markup_pos.py +250 -0
  49. cplugin_webapi_sdk/_generated/api/mt4_v_2_config/post_api_v_2_mt4_trade_platform_cfg_shift_gateway_rule_pos.py +250 -0
  50. cplugin_webapi_sdk/_generated/api/mt4_v_2_config/post_api_v_2_mt4_trade_platform_cfg_shift_group_pos.py +250 -0
  51. cplugin_webapi_sdk/_generated/api/mt4_v_2_config/post_api_v_2_mt4_trade_platform_cfg_shift_holiday_pos.py +250 -0
  52. cplugin_webapi_sdk/_generated/api/mt4_v_2_config/post_api_v_2_mt4_trade_platform_cfg_shift_live_update_pos.py +250 -0
  53. cplugin_webapi_sdk/_generated/api/mt4_v_2_config/post_api_v_2_mt4_trade_platform_cfg_shift_manager_pos.py +250 -0
  54. cplugin_webapi_sdk/_generated/api/mt4_v_2_config/post_api_v_2_mt4_trade_platform_cfg_shift_plugin_pos.py +266 -0
  55. cplugin_webapi_sdk/_generated/api/mt4_v_2_config/post_api_v_2_mt4_trade_platform_cfg_shift_symbol_pos.py +250 -0
  56. cplugin_webapi_sdk/_generated/api/mt4_v_2_config/post_api_v_2_mt4_trade_platform_cfg_shift_sync_pos.py +250 -0
  57. cplugin_webapi_sdk/_generated/api/mt4_v_2_config/post_api_v_2_mt4_trade_platform_cfg_update_access_pos.py +378 -0
  58. cplugin_webapi_sdk/_generated/api/mt4_v_2_config/post_api_v_2_mt4_trade_platform_cfg_update_backup.py +361 -0
  59. cplugin_webapi_sdk/_generated/api/mt4_v_2_config/post_api_v_2_mt4_trade_platform_cfg_update_common.py +389 -0
  60. cplugin_webapi_sdk/_generated/api/mt4_v_2_config/post_api_v_2_mt4_trade_platform_cfg_update_data_server_pos.py +354 -0
  61. cplugin_webapi_sdk/_generated/api/mt4_v_2_config/post_api_v_2_mt4_trade_platform_cfg_update_feeder.py +305 -0
  62. cplugin_webapi_sdk/_generated/api/mt4_v_2_config/post_api_v_2_mt4_trade_platform_cfg_update_gateway_account.py +361 -0
  63. cplugin_webapi_sdk/_generated/api/mt4_v_2_config/post_api_v_2_mt4_trade_platform_cfg_update_gateway_markup.py +345 -0
  64. cplugin_webapi_sdk/_generated/api/mt4_v_2_config/post_api_v_2_mt4_trade_platform_cfg_update_gateway_rule.py +377 -0
  65. cplugin_webapi_sdk/_generated/api/mt4_v_2_config/post_api_v_2_mt4_trade_platform_cfg_update_holiday_pos.py +350 -0
  66. cplugin_webapi_sdk/_generated/api/mt4_v_2_config/post_api_v_2_mt4_trade_platform_cfg_update_live_update.py +385 -0
  67. cplugin_webapi_sdk/_generated/api/mt4_v_2_config/post_api_v_2_mt4_trade_platform_cfg_update_manager.py +385 -0
  68. cplugin_webapi_sdk/_generated/api/mt4_v_2_config/post_api_v_2_mt4_trade_platform_cfg_update_symbol_group_pos.py +342 -0
  69. cplugin_webapi_sdk/_generated/api/mt4_v_2_config/post_api_v_2_mt4_trade_platform_cfg_update_sync.py +349 -0
  70. cplugin_webapi_sdk/_generated/api/mt4_v_2_config/post_api_v_2_mt4_trade_platform_cfg_update_time.py +421 -0
  71. cplugin_webapi_sdk/_generated/api/mt4_v_2_groups/__init__.py +1 -0
  72. cplugin_webapi_sdk/_generated/api/mt4_v_2_groups/get_api_v_2_mt4_trade_platform_ensure_group_name_exist_group.py +274 -0
  73. cplugin_webapi_sdk/_generated/api/mt4_v_2_groups/get_api_v_2_mt4_trade_platform_group_record_get_group.py +242 -0
  74. cplugin_webapi_sdk/_generated/api/mt4_v_2_groups/get_api_v_2_mt4_trade_platform_group_sec_groups_get_group.py +246 -0
  75. cplugin_webapi_sdk/_generated/api/mt4_v_2_groups/get_api_v_2_mt4_trade_platform_group_sec_margins_get_group.py +246 -0
  76. cplugin_webapi_sdk/_generated/api/mt4_v_2_groups/get_api_v_2_mt4_trade_platform_groups_get.py +233 -0
  77. cplugin_webapi_sdk/_generated/api/mt4_v_2_groups/get_api_v_2_mt4_trade_platform_groups_request.py +256 -0
  78. cplugin_webapi_sdk/_generated/api/mt4_v_2_groups/patch_api_v_2_mt4_trade_platform_group_record_group.py +255 -0
  79. cplugin_webapi_sdk/_generated/api/mt4_v_2_groups/post_api_v_2_mt4_trade_platform_group_record_update_group.py +542 -0
  80. cplugin_webapi_sdk/_generated/api/mt4_v_2_history/__init__.py +1 -0
  81. cplugin_webapi_sdk/_generated/api/mt4_v_2_history/get_api_v_2_mt4_trade_platform_trades_user_history_login.py +292 -0
  82. cplugin_webapi_sdk/_generated/api/mt4_v_2_mail/__init__.py +1 -0
  83. cplugin_webapi_sdk/_generated/api/mt4_v_2_mail/get_api_v_2_mt4_trade_platform_mail_last.py +225 -0
  84. cplugin_webapi_sdk/_generated/api/mt4_v_2_margins/__init__.py +1 -0
  85. cplugin_webapi_sdk/_generated/api/mt4_v_2_margins/get_api_v_2_mt4_trade_platform_margin_level_get_login.py +246 -0
  86. cplugin_webapi_sdk/_generated/api/mt4_v_2_margins/get_api_v_2_mt4_trade_platform_margin_level_request_login.py +246 -0
  87. cplugin_webapi_sdk/_generated/api/mt4_v_2_margins/get_api_v_2_mt4_trade_platform_margins_get.py +233 -0
  88. cplugin_webapi_sdk/_generated/api/mt4_v_2_news/__init__.py +1 -0
  89. cplugin_webapi_sdk/_generated/api/mt4_v_2_news/get_api_v_2_mt4_trade_platform_news_body_get_key.py +238 -0
  90. cplugin_webapi_sdk/_generated/api/mt4_v_2_news/get_api_v_2_mt4_trade_platform_news_get.py +237 -0
  91. cplugin_webapi_sdk/_generated/api/mt4_v_2_news/get_api_v_2_mt4_trade_platform_news_topic_get_pos.py +246 -0
  92. cplugin_webapi_sdk/_generated/api/mt4_v_2_news/get_api_v_2_mt4_trade_platform_news_total.py +225 -0
  93. cplugin_webapi_sdk/_generated/api/mt4_v_2_news/post_api_v_2_mt4_trade_platform_news_body_request_key.py +254 -0
  94. cplugin_webapi_sdk/_generated/api/mt4_v_2_online/__init__.py +1 -0
  95. cplugin_webapi_sdk/_generated/api/mt4_v_2_online/get_api_v_2_mt4_trade_platform_online_get.py +276 -0
  96. cplugin_webapi_sdk/_generated/api/mt4_v_2_online/get_api_v_2_mt4_trade_platform_online_request.py +276 -0
  97. cplugin_webapi_sdk/_generated/api/mt4_v_2_plugins/__init__.py +1 -0
  98. cplugin_webapi_sdk/_generated/api/mt4_v_2_plugins/post_api_v_2_mt4_trade_platform_external_command_json.py +309 -0
  99. cplugin_webapi_sdk/_generated/api/mt4_v_2_prices/__init__.py +1 -0
  100. cplugin_webapi_sdk/_generated/api/mt4_v_2_prices/get_api_v_2_mt4_trade_platform_chart_request_symbol.py +332 -0
  101. cplugin_webapi_sdk/_generated/api/mt4_v_2_prices/get_api_v_2_mt4_trade_platform_tick_info_last.py +233 -0
  102. cplugin_webapi_sdk/_generated/api/mt4_v_2_prices/get_api_v_2_mt4_trade_platform_tick_info_last_symbol.py +250 -0
  103. cplugin_webapi_sdk/_generated/api/mt4_v_2_prices/get_api_v_2_mt4_trade_platform_ticks_request_symbol.py +311 -0
  104. cplugin_webapi_sdk/_generated/api/mt4_v_2_prices/post_api_v_2_mt4_trade_platform_chart_add_symbol.py +375 -0
  105. cplugin_webapi_sdk/_generated/api/mt4_v_2_prices/post_api_v_2_mt4_trade_platform_chart_delete_symbol.py +375 -0
  106. cplugin_webapi_sdk/_generated/api/mt4_v_2_prices/post_api_v_2_mt4_trade_platform_chart_update_symbol.py +367 -0
  107. cplugin_webapi_sdk/_generated/api/mt4_v_2_prices/post_api_v_2_mt4_trade_platform_history_correct_symbol.py +274 -0
  108. cplugin_webapi_sdk/_generated/api/mt4_v_2_reports/__init__.py +1 -0
  109. cplugin_webapi_sdk/_generated/api/mt4_v_2_reports/get_api_v_2_mt4_trade_platform_daily_reports_request.py +362 -0
  110. cplugin_webapi_sdk/_generated/api/mt4_v_2_reports/get_api_v_2_mt4_trade_platform_daily_reports_request_ex.py +334 -0
  111. cplugin_webapi_sdk/_generated/api/mt4_v_2_reports/get_api_v_2_mt4_trade_platform_performance_request.py +281 -0
  112. cplugin_webapi_sdk/_generated/api/mt4_v_2_reports/get_api_v_2_mt4_trade_platform_reports_request.py +370 -0
  113. cplugin_webapi_sdk/_generated/api/mt4_v_2_reports/post_api_v_2_mt4_trade_platform_daily_sync_read.py +253 -0
  114. cplugin_webapi_sdk/_generated/api/mt4_v_2_reports/post_api_v_2_mt4_trade_platform_daily_sync_start.py +289 -0
  115. cplugin_webapi_sdk/_generated/api/mt4_v_2_server_admin/__init__.py +1 -0
  116. cplugin_webapi_sdk/_generated/api/mt4_v_2_server_admin/get_api_v_2_mt4_trade_platform_license_check_license_name.py +250 -0
  117. cplugin_webapi_sdk/_generated/api/mt4_v_2_server_admin/get_api_v_2_mt4_trade_platform_srv_feeder_log_name.py +246 -0
  118. cplugin_webapi_sdk/_generated/api/mt4_v_2_server_admin/get_api_v_2_mt4_trade_platform_srv_feeders.py +288 -0
  119. cplugin_webapi_sdk/_generated/api/mt4_v_2_server_admin/post_api_v_2_mt4_trade_platform_notifications_send.py +289 -0
  120. cplugin_webapi_sdk/_generated/api/mt4_v_2_server_admin_destructive/__init__.py +1 -0
  121. cplugin_webapi_sdk/_generated/api/mt4_v_2_server_admin_destructive/post_api_v_2_mt4_trade_platform_srv_charts_sync.py +257 -0
  122. cplugin_webapi_sdk/_generated/api/mt4_v_2_server_admin_destructive/post_api_v_2_mt4_trade_platform_srv_feeds_restart.py +253 -0
  123. cplugin_webapi_sdk/_generated/api/mt4_v_2_server_admin_destructive/post_api_v_2_mt4_trade_platform_srv_live_update_start.py +253 -0
  124. cplugin_webapi_sdk/_generated/api/mt4_v_2_server_admin_destructive/post_api_v_2_mt4_trade_platform_srv_restart.py +281 -0
  125. cplugin_webapi_sdk/_generated/api/mt4_v_2_sidecar_batch_reads/__init__.py +1 -0
  126. cplugin_webapi_sdk/_generated/api/mt4_v_2_sidecar_batch_reads/get_api_v_2_mt4_trade_platform_trades_snapshot.py +245 -0
  127. cplugin_webapi_sdk/_generated/api/mt4_v_2_sidecar_batch_reads/get_api_v_2_mt4_trade_platform_trades_sync_read.py +249 -0
  128. cplugin_webapi_sdk/_generated/api/mt4_v_2_sidecar_batch_reads/get_api_v_2_mt4_trade_platform_users_snapshot.py +257 -0
  129. cplugin_webapi_sdk/_generated/api/mt4_v_2_sidecar_batch_reads/get_api_v_2_mt4_trade_platform_users_sync_read.py +253 -0
  130. cplugin_webapi_sdk/_generated/api/mt4_v_2_sidecar_external_command/__init__.py +1 -0
  131. cplugin_webapi_sdk/_generated/api/mt4_v_2_sidecar_external_command/post_api_v_2_mt4_trade_platform_external_command_binary.py +393 -0
  132. cplugin_webapi_sdk/_generated/api/mt4_v_2_sidecar_messaging/__init__.py +1 -0
  133. cplugin_webapi_sdk/_generated/api/mt4_v_2_sidecar_messaging/get_api_v_2_mt4_trade_platform_mails_request.py +233 -0
  134. cplugin_webapi_sdk/_generated/api/mt4_v_2_sidecar_messaging/post_api_v_2_mt4_trade_platform_mail_send.py +317 -0
  135. cplugin_webapi_sdk/_generated/api/mt4_v_2_sidecar_messaging/post_api_v_2_mt4_trade_platform_news_send.py +309 -0
  136. cplugin_webapi_sdk/_generated/api/mt4_v_2_sidecar_plugins/__init__.py +1 -0
  137. cplugin_webapi_sdk/_generated/api/mt4_v_2_sidecar_plugins/get_api_v_2_mt4_trade_platform_cfg_request_plugin.py +233 -0
  138. cplugin_webapi_sdk/_generated/api/mt4_v_2_sidecar_plugins/get_api_v_2_mt4_trade_platform_plugin_param_get_pos.py +242 -0
  139. cplugin_webapi_sdk/_generated/api/mt4_v_2_sidecar_plugins/get_api_v_2_mt4_trade_platform_plugins_get.py +233 -0
  140. cplugin_webapi_sdk/_generated/api/mt4_v_2_sidecar_plugins/post_api_v_2_mt4_trade_platform_cfg_update_plugin.py +301 -0
  141. cplugin_webapi_sdk/_generated/api/mt4_v_2_sidecar_plugins/post_api_v_2_mt4_trade_platform_plugin_update.py +293 -0
  142. cplugin_webapi_sdk/_generated/api/mt4_v_2_symbols/__init__.py +1 -0
  143. cplugin_webapi_sdk/_generated/api/mt4_v_2_symbols/get_api_v_2_mt4_trade_platform_cfg_request_symbol.py +229 -0
  144. cplugin_webapi_sdk/_generated/api/mt4_v_2_symbols/get_api_v_2_mt4_trade_platform_cfg_request_symbol_symbol.py +242 -0
  145. cplugin_webapi_sdk/_generated/api/mt4_v_2_symbols/get_api_v_2_mt4_trade_platform_symbol_info_get.py +253 -0
  146. cplugin_webapi_sdk/_generated/api/mt4_v_2_symbols/get_api_v_2_mt4_trade_platform_symbol_info_updated.py +268 -0
  147. cplugin_webapi_sdk/_generated/api/mt4_v_2_symbols/get_api_v_2_mt4_trade_platform_symbol_sessions_get_symbol.py +258 -0
  148. cplugin_webapi_sdk/_generated/api/mt4_v_2_symbols/get_api_v_2_mt4_trade_platform_symbols_groups_get.py +233 -0
  149. cplugin_webapi_sdk/_generated/api/mt4_v_2_symbols/patch_api_v_2_mt4_trade_platform_symbol_config_symbol.py +255 -0
  150. cplugin_webapi_sdk/_generated/api/mt4_v_2_symbols/post_api_v_2_mt4_trade_platform_cfg_update_symbol_symbol.py +530 -0
  151. cplugin_webapi_sdk/_generated/api/mt4_v_2_symbols/post_api_v_2_mt4_trade_platform_symbol_add_symbol.py +270 -0
  152. cplugin_webapi_sdk/_generated/api/mt4_v_2_symbols/post_api_v_2_mt4_trade_platform_symbol_change.py +417 -0
  153. cplugin_webapi_sdk/_generated/api/mt4_v_2_symbols/post_api_v_2_mt4_trade_platform_symbol_hide_symbol.py +246 -0
  154. cplugin_webapi_sdk/_generated/api/mt4_v_2_symbols/post_api_v_2_mt4_trade_platform_symbol_send_tick.py +319 -0
  155. cplugin_webapi_sdk/_generated/api/mt4_v_2_symbols/post_api_v_2_mt4_trade_platform_symbols_refresh.py +233 -0
  156. cplugin_webapi_sdk/_generated/api/mt4_v_2_trades/__init__.py +1 -0
  157. cplugin_webapi_sdk/_generated/api/mt4_v_2_trades/get_api_v_2_mt4_trade_platform_adm_trades_request_group.py +266 -0
  158. cplugin_webapi_sdk/_generated/api/mt4_v_2_trades/get_api_v_2_mt4_trade_platform_trade_record_get_order.py +246 -0
  159. cplugin_webapi_sdk/_generated/api/mt4_v_2_trades/get_api_v_2_mt4_trade_platform_trade_record_request_order.py +258 -0
  160. cplugin_webapi_sdk/_generated/api/mt4_v_2_trades/get_api_v_2_mt4_trade_platform_trade_records_request.py +278 -0
  161. cplugin_webapi_sdk/_generated/api/mt4_v_2_trades/get_api_v_2_mt4_trade_platform_trades_get.py +252 -0
  162. cplugin_webapi_sdk/_generated/api/mt4_v_2_trades/get_api_v_2_mt4_trade_platform_trades_get_by_login_login_group.py +259 -0
  163. cplugin_webapi_sdk/_generated/api/mt4_v_2_trades/get_api_v_2_mt4_trade_platform_trades_get_by_market.py +229 -0
  164. cplugin_webapi_sdk/_generated/api/mt4_v_2_trades/get_api_v_2_mt4_trade_platform_trades_get_by_symbol.py +249 -0
  165. cplugin_webapi_sdk/_generated/api/mt4_v_2_trades/get_api_v_2_mt4_trade_platform_trades_get_ticket.py +254 -0
  166. cplugin_webapi_sdk/_generated/api/mt4_v_2_trades/get_api_v_2_mt4_trade_platform_trades_request.py +299 -0
  167. cplugin_webapi_sdk/_generated/api/mt4_v_2_trades/post_api_v_2_mt4_trade_platform_adm_trade_record_modify_ticket.py +462 -0
  168. cplugin_webapi_sdk/_generated/api/mt4_v_2_trades/post_api_v_2_mt4_trade_platform_adm_trades_delete.py +290 -0
  169. cplugin_webapi_sdk/_generated/api/mt4_v_2_trades/post_api_v_2_mt4_trade_platform_trade_check_stops.py +453 -0
  170. cplugin_webapi_sdk/_generated/api/mt4_v_2_trades/post_api_v_2_mt4_trade_platform_trade_clear_rollback_order.py +262 -0
  171. cplugin_webapi_sdk/_generated/api/mt4_v_2_trades/post_api_v_2_mt4_trade_platform_trade_transaction.py +453 -0
  172. cplugin_webapi_sdk/_generated/api/mt4_v_2_trades/post_api_v_2_mt4_trade_platform_trades_sync_start.py +261 -0
  173. cplugin_webapi_sdk/_generated/api/mt4_v_2_users/__init__.py +1 -0
  174. cplugin_webapi_sdk/_generated/api/mt4_v_2_users/get_api_v_2_mt4_trade_platform_adm_balance_check.py +266 -0
  175. cplugin_webapi_sdk/_generated/api/mt4_v_2_users/get_api_v_2_mt4_trade_platform_adm_balance_check_login.py +266 -0
  176. cplugin_webapi_sdk/_generated/api/mt4_v_2_users/get_api_v_2_mt4_trade_platform_adm_users_request_safe_group.py +274 -0
  177. cplugin_webapi_sdk/_generated/api/mt4_v_2_users/get_api_v_2_mt4_trade_platform_user_record_get_login.py +250 -0
  178. cplugin_webapi_sdk/_generated/api/mt4_v_2_users/get_api_v_2_mt4_trade_platform_user_record_request_login.py +250 -0
  179. cplugin_webapi_sdk/_generated/api/mt4_v_2_users/get_api_v_2_mt4_trade_platform_user_records_request.py +274 -0
  180. cplugin_webapi_sdk/_generated/api/mt4_v_2_users/get_api_v_2_mt4_trade_platform_users_request.py +276 -0
  181. cplugin_webapi_sdk/_generated/api/mt4_v_2_users/patch_api_v_2_mt4_trade_platform_user_record_login.py +283 -0
  182. cplugin_webapi_sdk/_generated/api/mt4_v_2_users/post_api_v_2_mt4_trade_platform_adm_balance_fix.py +290 -0
  183. cplugin_webapi_sdk/_generated/api/mt4_v_2_users/post_api_v_2_mt4_trade_platform_user_record_new.py +465 -0
  184. cplugin_webapi_sdk/_generated/api/mt4_v_2_users/post_api_v_2_mt4_trade_platform_user_record_update_login.py +678 -0
  185. cplugin_webapi_sdk/_generated/api/mt4_v_2_users/post_api_v_2_mt4_trade_platform_users_group_op.py +349 -0
  186. cplugin_webapi_sdk/_generated/api/mt4_v_2_users/post_api_v_2_mt4_trade_platform_users_sync_start.py +273 -0
  187. cplugin_webapi_sdk/_generated/api/mt5_v_2_common/__init__.py +1 -0
  188. cplugin_webapi_sdk/_generated/api/mt5_v_2_common/get_api_v_2_mt5_trade_platform_server_time.py +205 -0
  189. cplugin_webapi_sdk/_generated/api/mt5_v_2_common/get_api_v_2_mt5_trade_platform_time_get.py +205 -0
  190. cplugin_webapi_sdk/_generated/api/mt5_v_2_groups/__init__.py +1 -0
  191. cplugin_webapi_sdk/_generated/api/mt5_v_2_groups/get_api_v_2_mt5_trade_platform_group_get_group.py +218 -0
  192. cplugin_webapi_sdk/_generated/api/mt5_v_2_groups/patch_api_v_2_mt5_trade_platform_group_record_group.py +255 -0
  193. cplugin_webapi_sdk/_generated/api/mt5_v_2_managers/__init__.py +1 -0
  194. cplugin_webapi_sdk/_generated/api/mt5_v_2_managers/get_api_v_2_mt5_trade_platform_manager_current.py +205 -0
  195. cplugin_webapi_sdk/_generated/api/mt5_v_2_symbols/__init__.py +1 -0
  196. cplugin_webapi_sdk/_generated/api/mt5_v_2_symbols/get_api_v_2_mt5_trade_platform_symbol_get_symbol.py +218 -0
  197. cplugin_webapi_sdk/_generated/api/mt5_v_2_symbols/patch_api_v_2_mt5_trade_platform_symbol_record_symbol.py +255 -0
  198. cplugin_webapi_sdk/_generated/api/mt5_v_2_trades/__init__.py +1 -0
  199. cplugin_webapi_sdk/_generated/api/mt5_v_2_trades/get_api_v_2_mt5_trade_platform_deal_by_group_mask.py +265 -0
  200. cplugin_webapi_sdk/_generated/api/mt5_v_2_trades/get_api_v_2_mt5_trade_platform_order_by_group_mask.py +265 -0
  201. cplugin_webapi_sdk/_generated/api/mt5_v_2_trades/get_api_v_2_mt5_trade_platform_position_by_group_mask.py +265 -0
  202. cplugin_webapi_sdk/_generated/api/mt5_v_2_users/__init__.py +1 -0
  203. cplugin_webapi_sdk/_generated/api/mt5_v_2_users/get_api_v_2_mt5_trade_platform_user_get_login.py +218 -0
  204. cplugin_webapi_sdk/_generated/api/mt5_v_2_users/patch_api_v_2_mt5_trade_platform_user_record_login.py +255 -0
  205. cplugin_webapi_sdk/_generated/client.py +271 -0
  206. cplugin_webapi_sdk/_generated/errors.py +14 -0
  207. cplugin_webapi_sdk/_generated/models/__init__.py +469 -0
  208. cplugin_webapi_sdk/_generated/models/activation_modes.py +10 -0
  209. cplugin_webapi_sdk/_generated/models/activation_type.py +15 -0
  210. cplugin_webapi_sdk/_generated/models/api_error.py +135 -0
  211. cplugin_webapi_sdk/_generated/models/api_meta.py +114 -0
  212. cplugin_webapi_sdk/_generated/models/arc_backup_execution_period.py +10 -0
  213. cplugin_webapi_sdk/_generated/models/arc_backup_store_period.py +11 -0
  214. cplugin_webapi_sdk/_generated/models/backup_execution_period.py +9 -0
  215. cplugin_webapi_sdk/_generated/models/backup_store_period.py +10 -0
  216. cplugin_webapi_sdk/_generated/models/boolean_api_response.py +143 -0
  217. cplugin_webapi_sdk/_generated/models/chart_period.py +15 -0
  218. cplugin_webapi_sdk/_generated/models/data_feed_mode.py +9 -0
  219. cplugin_webapi_sdk/_generated/models/date_time_api_response.py +154 -0
  220. cplugin_webapi_sdk/_generated/models/deal_action.py +27 -0
  221. cplugin_webapi_sdk/_generated/models/deal_reason.py +26 -0
  222. cplugin_webapi_sdk/_generated/models/en_auth_mode.py +10 -0
  223. cplugin_webapi_sdk/_generated/models/en_auth_otp_mode.py +9 -0
  224. cplugin_webapi_sdk/_generated/models/en_calc_mode.py +21 -0
  225. cplugin_webapi_sdk/_generated/models/en_chart_mode.py +9 -0
  226. cplugin_webapi_sdk/_generated/models/en_comm_action_mode.py +9 -0
  227. cplugin_webapi_sdk/_generated/models/en_comm_charge_mode.py +9 -0
  228. cplugin_webapi_sdk/_generated/models/en_comm_entry_mode.py +9 -0
  229. cplugin_webapi_sdk/_generated/models/en_comm_mode.py +9 -0
  230. cplugin_webapi_sdk/_generated/models/en_comm_profit_mode.py +9 -0
  231. cplugin_webapi_sdk/_generated/models/en_comm_range_mode.py +11 -0
  232. cplugin_webapi_sdk/_generated/models/en_commission_mode.py +14 -0
  233. cplugin_webapi_sdk/_generated/models/en_commission_volume_type.py +8 -0
  234. cplugin_webapi_sdk/_generated/models/en_execution_mode.py +10 -0
  235. cplugin_webapi_sdk/_generated/models/en_free_margin_mode.py +10 -0
  236. cplugin_webapi_sdk/_generated/models/en_gateway_account_flags.py +8 -0
  237. cplugin_webapi_sdk/_generated/models/en_gtc_mode.py +9 -0
  238. cplugin_webapi_sdk/_generated/models/en_history_limit.py +13 -0
  239. cplugin_webapi_sdk/_generated/models/en_industries.py +172 -0
  240. cplugin_webapi_sdk/_generated/models/en_instant_mode.py +7 -0
  241. cplugin_webapi_sdk/_generated/models/en_log_type.py +14 -0
  242. cplugin_webapi_sdk/_generated/models/en_mail_mode.py +8 -0
  243. cplugin_webapi_sdk/_generated/models/en_manager_limit.py +13 -0
  244. cplugin_webapi_sdk/_generated/models/en_manager_rights.py +82 -0
  245. cplugin_webapi_sdk/_generated/models/en_margin_mode.py +9 -0
  246. cplugin_webapi_sdk/_generated/models/en_news_mode.py +9 -0
  247. cplugin_webapi_sdk/_generated/models/en_option_mode.py +10 -0
  248. cplugin_webapi_sdk/_generated/models/en_reports_mode.py +10 -0
  249. cplugin_webapi_sdk/_generated/models/en_sectors.py +22 -0
  250. cplugin_webapi_sdk/_generated/models/en_splice_time_type.py +7 -0
  251. cplugin_webapi_sdk/_generated/models/en_splice_type.py +9 -0
  252. cplugin_webapi_sdk/_generated/models/en_stop_out_mode.py +8 -0
  253. cplugin_webapi_sdk/_generated/models/en_swap_days.py +14 -0
  254. cplugin_webapi_sdk/_generated/models/en_swap_mode.py +16 -0
  255. cplugin_webapi_sdk/_generated/models/en_trade_mode.py +11 -0
  256. cplugin_webapi_sdk/_generated/models/en_transfer_mode.py +10 -0
  257. cplugin_webapi_sdk/_generated/models/entry_flag.py +10 -0
  258. cplugin_webapi_sdk/_generated/models/export_execution_period.py +11 -0
  259. cplugin_webapi_sdk/_generated/models/gtc_mode.py +9 -0
  260. cplugin_webapi_sdk/_generated/models/int_32_api_response.py +143 -0
  261. cplugin_webapi_sdk/_generated/models/int_32mt4_daily_report_list_dictionary_api_response.py +170 -0
  262. cplugin_webapi_sdk/_generated/models/int_32mt4_daily_report_list_dictionary_api_response_data_type_0.py +107 -0
  263. cplugin_webapi_sdk/_generated/models/json_node.py +155 -0
  264. cplugin_webapi_sdk/_generated/models/json_node_api_response.py +170 -0
  265. cplugin_webapi_sdk/_generated/models/json_node_options.py +60 -0
  266. cplugin_webapi_sdk/_generated/models/margin_calculation_mode.py +11 -0
  267. cplugin_webapi_sdk/_generated/models/margin_controlling_type.py +8 -0
  268. cplugin_webapi_sdk/_generated/models/margin_level_type.py +9 -0
  269. cplugin_webapi_sdk/_generated/models/margin_mode.py +10 -0
  270. cplugin_webapi_sdk/_generated/models/mt4_access.py +106 -0
  271. cplugin_webapi_sdk/_generated/models/mt4_access_api_response.py +173 -0
  272. cplugin_webapi_sdk/_generated/models/mt4_access_list_api_response.py +180 -0
  273. cplugin_webapi_sdk/_generated/models/mt4_backup.py +442 -0
  274. cplugin_webapi_sdk/_generated/models/mt4_backup_api_response.py +174 -0
  275. cplugin_webapi_sdk/_generated/models/mt4_backup_info.py +107 -0
  276. cplugin_webapi_sdk/_generated/models/mt4_backup_info_list_api_response.py +180 -0
  277. cplugin_webapi_sdk/_generated/models/mt4_balance_diff.py +74 -0
  278. cplugin_webapi_sdk/_generated/models/mt4_balance_diff_api_response.py +174 -0
  279. cplugin_webapi_sdk/_generated/models/mt4_balance_diff_list_api_response.py +180 -0
  280. cplugin_webapi_sdk/_generated/models/mt4_chart_bar.py +121 -0
  281. cplugin_webapi_sdk/_generated/models/mt4_chart_bar_list_api_response.py +180 -0
  282. cplugin_webapi_sdk/_generated/models/mt4_chart_write_request.py +103 -0
  283. cplugin_webapi_sdk/_generated/models/mt4_common.py +124 -0
  284. cplugin_webapi_sdk/_generated/models/mt4_common_api_response.py +172 -0
  285. cplugin_webapi_sdk/_generated/models/mt4_common_update.py +201 -0
  286. cplugin_webapi_sdk/_generated/models/mt4_daily_report.py +212 -0
  287. cplugin_webapi_sdk/_generated/models/mt4_daily_report_list_api_response.py +180 -0
  288. cplugin_webapi_sdk/_generated/models/mt4_data_server.py +153 -0
  289. cplugin_webapi_sdk/_generated/models/mt4_data_server_api_response.py +174 -0
  290. cplugin_webapi_sdk/_generated/models/mt4_data_server_list_api_response.py +180 -0
  291. cplugin_webapi_sdk/_generated/models/mt4_external_command_binary_request.py +77 -0
  292. cplugin_webapi_sdk/_generated/models/mt4_external_command_binary_response.py +74 -0
  293. cplugin_webapi_sdk/_generated/models/mt4_external_command_binary_response_api_response.py +171 -0
  294. cplugin_webapi_sdk/_generated/models/mt4_feeder.py +235 -0
  295. cplugin_webapi_sdk/_generated/models/mt4_feeder_api_response.py +172 -0
  296. cplugin_webapi_sdk/_generated/models/mt4_feeder_list_api_response.py +180 -0
  297. cplugin_webapi_sdk/_generated/models/mt4_gateway_account.py +190 -0
  298. cplugin_webapi_sdk/_generated/models/mt4_gateway_account_api_response.py +174 -0
  299. cplugin_webapi_sdk/_generated/models/mt4_gateway_account_list_api_response.py +180 -0
  300. cplugin_webapi_sdk/_generated/models/mt4_gateway_markup.py +157 -0
  301. cplugin_webapi_sdk/_generated/models/mt4_gateway_markup_api_response.py +174 -0
  302. cplugin_webapi_sdk/_generated/models/mt4_gateway_markup_list_api_response.py +180 -0
  303. cplugin_webapi_sdk/_generated/models/mt4_gateway_rule.py +234 -0
  304. cplugin_webapi_sdk/_generated/models/mt4_gateway_rule_api_response.py +177 -0
  305. cplugin_webapi_sdk/_generated/models/mt4_gateway_rule_list_api_response.py +180 -0
  306. cplugin_webapi_sdk/_generated/models/mt4_group.py +505 -0
  307. cplugin_webapi_sdk/_generated/models/mt4_group_api_response.py +193 -0
  308. cplugin_webapi_sdk/_generated/models/mt4_group_list_api_response.py +180 -0
  309. cplugin_webapi_sdk/_generated/models/mt4_group_margin.py +104 -0
  310. cplugin_webapi_sdk/_generated/models/mt4_group_margin_list_api_response.py +180 -0
  311. cplugin_webapi_sdk/_generated/models/mt4_group_sec.py +321 -0
  312. cplugin_webapi_sdk/_generated/models/mt4_group_sec_list_api_response.py +180 -0
  313. cplugin_webapi_sdk/_generated/models/mt4_group_update.py +467 -0
  314. cplugin_webapi_sdk/_generated/models/mt4_holiday.py +153 -0
  315. cplugin_webapi_sdk/_generated/models/mt4_holiday_api_response.py +174 -0
  316. cplugin_webapi_sdk/_generated/models/mt4_holiday_list_api_response.py +180 -0
  317. cplugin_webapi_sdk/_generated/models/mt4_live_update.py +165 -0
  318. cplugin_webapi_sdk/_generated/models/mt4_live_update_api_response.py +177 -0
  319. cplugin_webapi_sdk/_generated/models/mt4_live_update_list_api_response.py +180 -0
  320. cplugin_webapi_sdk/_generated/models/mt4_mail_box.py +148 -0
  321. cplugin_webapi_sdk/_generated/models/mt4_mail_box_list_api_response.py +180 -0
  322. cplugin_webapi_sdk/_generated/models/mt4_mail_send_request.py +160 -0
  323. cplugin_webapi_sdk/_generated/models/mt4_manager_rights.py +338 -0
  324. cplugin_webapi_sdk/_generated/models/mt4_manager_rights_api_response.py +175 -0
  325. cplugin_webapi_sdk/_generated/models/mt4_manager_rights_list_api_response.py +180 -0
  326. cplugin_webapi_sdk/_generated/models/mt4_margin_level.py +201 -0
  327. cplugin_webapi_sdk/_generated/models/mt4_margin_level_api_response.py +174 -0
  328. cplugin_webapi_sdk/_generated/models/mt4_margin_level_list_api_response.py +180 -0
  329. cplugin_webapi_sdk/_generated/models/mt4_news_send_request.py +127 -0
  330. cplugin_webapi_sdk/_generated/models/mt4_news_topic.py +177 -0
  331. cplugin_webapi_sdk/_generated/models/mt4_news_topic_api_response.py +178 -0
  332. cplugin_webapi_sdk/_generated/models/mt4_news_topic_list_api_response.py +180 -0
  333. cplugin_webapi_sdk/_generated/models/mt4_notifications_send_request.py +114 -0
  334. cplugin_webapi_sdk/_generated/models/mt4_online.py +88 -0
  335. cplugin_webapi_sdk/_generated/models/mt4_online_list_api_response.py +180 -0
  336. cplugin_webapi_sdk/_generated/models/mt4_performance.py +124 -0
  337. cplugin_webapi_sdk/_generated/models/mt4_performance_list_api_response.py +180 -0
  338. cplugin_webapi_sdk/_generated/models/mt4_plugin.py +153 -0
  339. cplugin_webapi_sdk/_generated/models/mt4_plugin_config.py +96 -0
  340. cplugin_webapi_sdk/_generated/models/mt4_plugin_list_api_response.py +180 -0
  341. cplugin_webapi_sdk/_generated/models/mt4_plugin_param.py +137 -0
  342. cplugin_webapi_sdk/_generated/models/mt4_plugin_param_api_response.py +171 -0
  343. cplugin_webapi_sdk/_generated/models/mt4_plugin_param_list_api_response.py +180 -0
  344. cplugin_webapi_sdk/_generated/models/mt4_server_log.py +151 -0
  345. cplugin_webapi_sdk/_generated/models/mt4_server_log_list_api_response.py +180 -0
  346. cplugin_webapi_sdk/_generated/models/mt4_server_time.py +95 -0
  347. cplugin_webapi_sdk/_generated/models/mt4_server_time_api_response.py +178 -0
  348. cplugin_webapi_sdk/_generated/models/mt4_symbol_change_request.py +148 -0
  349. cplugin_webapi_sdk/_generated/models/mt4_symbol_config.py +683 -0
  350. cplugin_webapi_sdk/_generated/models/mt4_symbol_config_api_response.py +177 -0
  351. cplugin_webapi_sdk/_generated/models/mt4_symbol_config_list_api_response.py +180 -0
  352. cplugin_webapi_sdk/_generated/models/mt4_symbol_config_update.py +608 -0
  353. cplugin_webapi_sdk/_generated/models/mt4_symbol_day_sessions.py +171 -0
  354. cplugin_webapi_sdk/_generated/models/mt4_symbol_day_sessions_list_api_response.py +180 -0
  355. cplugin_webapi_sdk/_generated/models/mt4_symbol_group.py +99 -0
  356. cplugin_webapi_sdk/_generated/models/mt4_symbol_group_api_response.py +174 -0
  357. cplugin_webapi_sdk/_generated/models/mt4_symbol_group_list_api_response.py +180 -0
  358. cplugin_webapi_sdk/_generated/models/mt4_symbol_info.py +210 -0
  359. cplugin_webapi_sdk/_generated/models/mt4_symbol_info_api_response.py +178 -0
  360. cplugin_webapi_sdk/_generated/models/mt4_symbol_info_list_api_response.py +180 -0
  361. cplugin_webapi_sdk/_generated/models/mt4_symbol_session.py +91 -0
  362. cplugin_webapi_sdk/_generated/models/mt4_sync.py +176 -0
  363. cplugin_webapi_sdk/_generated/models/mt4_sync_api_response.py +173 -0
  364. cplugin_webapi_sdk/_generated/models/mt4_sync_list_api_response.py +180 -0
  365. cplugin_webapi_sdk/_generated/models/mt4_tick_info.py +117 -0
  366. cplugin_webapi_sdk/_generated/models/mt4_tick_info_api_response.py +175 -0
  367. cplugin_webapi_sdk/_generated/models/mt4_tick_info_list_api_response.py +180 -0
  368. cplugin_webapi_sdk/_generated/models/mt4_tick_record.py +126 -0
  369. cplugin_webapi_sdk/_generated/models/mt4_tick_record_list_api_response.py +180 -0
  370. cplugin_webapi_sdk/_generated/models/mt4_trade.py +409 -0
  371. cplugin_webapi_sdk/_generated/models/mt4_trade_api_response.py +179 -0
  372. cplugin_webapi_sdk/_generated/models/mt4_trade_list_api_response.py +180 -0
  373. cplugin_webapi_sdk/_generated/models/mt4_trade_restore_input.py +274 -0
  374. cplugin_webapi_sdk/_generated/models/mt4_trade_restore_result.py +72 -0
  375. cplugin_webapi_sdk/_generated/models/mt4_trade_restore_result_list_api_response.py +180 -0
  376. cplugin_webapi_sdk/_generated/models/mt4_trade_transaction.py +262 -0
  377. cplugin_webapi_sdk/_generated/models/mt4_trade_transaction_api_response.py +181 -0
  378. cplugin_webapi_sdk/_generated/models/mt4_trade_update.py +165 -0
  379. cplugin_webapi_sdk/_generated/models/mt4_user.py +533 -0
  380. cplugin_webapi_sdk/_generated/models/mt4_user_api_response.py +184 -0
  381. cplugin_webapi_sdk/_generated/models/mt4_user_create.py +420 -0
  382. cplugin_webapi_sdk/_generated/models/mt4_user_list_api_response.py +180 -0
  383. cplugin_webapi_sdk/_generated/models/mt4_user_restore_input.py +193 -0
  384. cplugin_webapi_sdk/_generated/models/mt4_user_update.py +441 -0
  385. cplugin_webapi_sdk/_generated/models/mt4_users_group_op.py +140 -0
  386. cplugin_webapi_sdk/_generated/models/mt5_con_comm_tier.py +246 -0
  387. cplugin_webapi_sdk/_generated/models/mt5_con_commission.py +409 -0
  388. cplugin_webapi_sdk/_generated/models/mt5_con_group.py +1162 -0
  389. cplugin_webapi_sdk/_generated/models/mt5_con_group_api_response.py +170 -0
  390. cplugin_webapi_sdk/_generated/models/mt5_con_group_commissions_type_0.py +83 -0
  391. cplugin_webapi_sdk/_generated/models/mt5_con_manager.py +227 -0
  392. cplugin_webapi_sdk/_generated/models/mt5_con_manager_api_response.py +156 -0
  393. cplugin_webapi_sdk/_generated/models/mt5_deal.py +1045 -0
  394. cplugin_webapi_sdk/_generated/models/mt5_deal_list_api_response.py +180 -0
  395. cplugin_webapi_sdk/_generated/models/mt5_order.py +1008 -0
  396. cplugin_webapi_sdk/_generated/models/mt5_order_list_api_response.py +180 -0
  397. cplugin_webapi_sdk/_generated/models/mt5_position.py +829 -0
  398. cplugin_webapi_sdk/_generated/models/mt5_position_list_api_response.py +180 -0
  399. cplugin_webapi_sdk/_generated/models/mt5_symbol.py +2743 -0
  400. cplugin_webapi_sdk/_generated/models/mt5_symbol_api_response.py +170 -0
  401. cplugin_webapi_sdk/_generated/models/mt5_symbol_margin_rate_initial_type_0.py +124 -0
  402. cplugin_webapi_sdk/_generated/models/mt5_symbol_margin_rate_maintenance_type_0.py +124 -0
  403. cplugin_webapi_sdk/_generated/models/mt5_symbol_session.py +182 -0
  404. cplugin_webapi_sdk/_generated/models/mt5_time.py +101 -0
  405. cplugin_webapi_sdk/_generated/models/mt5_time_api_response.py +170 -0
  406. cplugin_webapi_sdk/_generated/models/mt5_user.py +752 -0
  407. cplugin_webapi_sdk/_generated/models/mt5_user_api_response.py +172 -0
  408. cplugin_webapi_sdk/_generated/models/news_mode.py +9 -0
  409. cplugin_webapi_sdk/_generated/models/order_filling.py +10 -0
  410. cplugin_webapi_sdk/_generated/models/order_reason.py +26 -0
  411. cplugin_webapi_sdk/_generated/models/order_state.py +16 -0
  412. cplugin_webapi_sdk/_generated/models/order_time.py +10 -0
  413. cplugin_webapi_sdk/_generated/models/order_type.py +15 -0
  414. cplugin_webapi_sdk/_generated/models/otp_mode.py +8 -0
  415. cplugin_webapi_sdk/_generated/models/paging_meta.py +88 -0
  416. cplugin_webapi_sdk/_generated/models/patch_api_v2mt4_trade_platform_group_record_group_json_body.py +66 -0
  417. cplugin_webapi_sdk/_generated/models/patch_api_v2mt4_trade_platform_symbol_config_symbol_json_body.py +66 -0
  418. cplugin_webapi_sdk/_generated/models/patch_api_v2mt4_trade_platform_user_record_login_json_body.py +66 -0
  419. cplugin_webapi_sdk/_generated/models/patch_api_v2mt5_trade_platform_group_record_group_json_body.py +66 -0
  420. cplugin_webapi_sdk/_generated/models/patch_api_v2mt5_trade_platform_symbol_record_symbol_json_body.py +66 -0
  421. cplugin_webapi_sdk/_generated/models/patch_api_v2mt5_trade_platform_user_record_login_json_body.py +66 -0
  422. cplugin_webapi_sdk/_generated/models/position_actions.py +8 -0
  423. cplugin_webapi_sdk/_generated/models/position_reasons.py +26 -0
  424. cplugin_webapi_sdk/_generated/models/profit_calculation_mode.py +9 -0
  425. cplugin_webapi_sdk/_generated/models/request_mode.py +10 -0
  426. cplugin_webapi_sdk/_generated/models/result_code.py +46 -0
  427. cplugin_webapi_sdk/_generated/models/server_role.py +9 -0
  428. cplugin_webapi_sdk/_generated/models/string_api_response.py +155 -0
  429. cplugin_webapi_sdk/_generated/models/swap_type.py +10 -0
  430. cplugin_webapi_sdk/_generated/models/symbol_exec_mode.py +9 -0
  431. cplugin_webapi_sdk/_generated/models/symbol_price_direction.py +9 -0
  432. cplugin_webapi_sdk/_generated/models/synchronization_mode.py +11 -0
  433. cplugin_webapi_sdk/_generated/models/trade_command.py +14 -0
  434. cplugin_webapi_sdk/_generated/models/trade_mode.py +9 -0
  435. cplugin_webapi_sdk/_generated/models/trade_record_reason.py +14 -0
  436. cplugin_webapi_sdk/_generated/models/trade_record_state.py +13 -0
  437. cplugin_webapi_sdk/_generated/models/watchdog_failover_mode.py +9 -0
  438. cplugin_webapi_sdk/_generated/models/watchdog_state.py +9 -0
  439. cplugin_webapi_sdk/_generated/models/web_api_error_code.py +17 -0
  440. cplugin_webapi_sdk/_generated/operation_timeouts.py +181 -0
  441. cplugin_webapi_sdk/_generated/types.py +53 -0
  442. cplugin_webapi_sdk/auth.py +278 -0
  443. cplugin_webapi_sdk/client.py +1215 -0
  444. cplugin_webapi_sdk/discovery.py +109 -0
  445. cplugin_webapi_sdk/envelope.py +77 -0
  446. cplugin_webapi_sdk/environments.py +45 -0
  447. cplugin_webapi_sdk/errors.py +79 -0
  448. cplugin_webapi_sdk/flags.py +36 -0
  449. cplugin_webapi_sdk/pagination.py +141 -0
  450. cplugin_webapi_sdk/realtime.py +408 -0
  451. cplugin_webapi_sdk/timeouts.py +197 -0
  452. cplugin_webapi_sdk/unwrap.py +153 -0
  453. mywebapi_sdk-0.3.0.dist-info/METADATA +312 -0
  454. mywebapi_sdk-0.3.0.dist-info/RECORD +456 -0
  455. mywebapi_sdk-0.3.0.dist-info/WHEEL +4 -0
  456. mywebapi_sdk-0.3.0.dist-info/licenses/LICENSE +21 -0
@@ -0,0 +1,829 @@
1
+ from __future__ import annotations
2
+
3
+ from collections.abc import Mapping
4
+ from typing import Any, TypeVar, BinaryIO, TextIO, TYPE_CHECKING, Generator
5
+
6
+ from attrs import define as _attrs_define
7
+ from attrs import field as _attrs_field
8
+
9
+ from ..types import UNSET, Unset
10
+
11
+ from ..models.activation_modes import ActivationModes
12
+ from ..models.position_actions import PositionActions
13
+ from ..models.position_reasons import PositionReasons
14
+ from ..types import UNSET, Unset
15
+ from typing import cast
16
+ import datetime
17
+
18
+
19
+
20
+
21
+
22
+
23
+ T = TypeVar("T", bound="MT5Position")
24
+
25
+
26
+
27
+ @_attrs_define
28
+ class MT5Position:
29
+ """
30
+ Attributes:
31
+ login (int | None | Unset): Gets the login of the client, to whom the trade position belongs
32
+ symbol (None | str | Unset): position symbol
33
+ action (None | PositionActions | Unset): PositionAction
34
+ digits (int | None | Unset): price digits
35
+ digits_currency (int | None | Unset): currency digits
36
+ contract_size (float | None | Unset): symbol contract size
37
+ position (int | None | Unset): position ticket
38
+ external_id (None | str | Unset): The ticket of a position in an external trading system
39
+ time_create (datetime.datetime | None | Unset): position create time
40
+ time_update (datetime.datetime | None | Unset): position last update time
41
+ time_create_msc (datetime.datetime | None | Unset): position create time in msc since 1970.01.01
42
+ <br /><strong>If the value of this field is specified, the TimeCreate value will be filled in
43
+ automatically.</strong>
44
+ time_update_msc (datetime.datetime | None | Unset): position last update time in msc since 1970.01.01
45
+ <br /><strong>If the value of this field is specified, the TimeUpdate value will be filled in
46
+ automatically.</strong>
47
+ price_open (float | None | Unset): position weighted average open price
48
+ price_current (float | None | Unset): position current price
49
+ price_sl (float | None | Unset): position SL price
50
+ price_tp (float | None | Unset): position TP price
51
+ volume (int | None | Unset): position volume
52
+ volume_ext (int | None | Unset): position volume
53
+ profit (float | None | Unset): position floating profit
54
+ storage (float | None | Unset): position accumulated swaps
55
+ rate_profit (float | None | Unset): profit conversion rate (from symbol profit currency to deposit currency)
56
+ rate_margin (float | None | Unset): margin conversion rate (from symbol margin currency to deposit currency)
57
+ expert_id (int | None | Unset): expert id (filled by expert advisor)
58
+ expert_position_id (int | None | Unset): expert position id
59
+ comment (None | str | Unset):
60
+ dealer (int | None | Unset): The login of a dealer, who has processed the order that opened the position. 0
61
+ means that the order was processed automatically by the server
62
+ activation_mode (ActivationModes | None | Unset): order activation state, time and price
63
+ activation_time (datetime.datetime | None | Unset):
64
+ activation_price (float | None | Unset):
65
+ activation_flags (None | str | Unset):
66
+ modification_flags (None | str | Unset): modification flags
67
+ reason (None | PositionReasons | Unset): position reason - PositionReason
68
+ """
69
+
70
+ login: int | None | Unset = UNSET
71
+ symbol: None | str | Unset = UNSET
72
+ action: None | PositionActions | Unset = UNSET
73
+ digits: int | None | Unset = UNSET
74
+ digits_currency: int | None | Unset = UNSET
75
+ contract_size: float | None | Unset = UNSET
76
+ position: int | None | Unset = UNSET
77
+ external_id: None | str | Unset = UNSET
78
+ time_create: datetime.datetime | None | Unset = UNSET
79
+ time_update: datetime.datetime | None | Unset = UNSET
80
+ time_create_msc: datetime.datetime | None | Unset = UNSET
81
+ time_update_msc: datetime.datetime | None | Unset = UNSET
82
+ price_open: float | None | Unset = UNSET
83
+ price_current: float | None | Unset = UNSET
84
+ price_sl: float | None | Unset = UNSET
85
+ price_tp: float | None | Unset = UNSET
86
+ volume: int | None | Unset = UNSET
87
+ volume_ext: int | None | Unset = UNSET
88
+ profit: float | None | Unset = UNSET
89
+ storage: float | None | Unset = UNSET
90
+ rate_profit: float | None | Unset = UNSET
91
+ rate_margin: float | None | Unset = UNSET
92
+ expert_id: int | None | Unset = UNSET
93
+ expert_position_id: int | None | Unset = UNSET
94
+ comment: None | str | Unset = UNSET
95
+ dealer: int | None | Unset = UNSET
96
+ activation_mode: ActivationModes | None | Unset = UNSET
97
+ activation_time: datetime.datetime | None | Unset = UNSET
98
+ activation_price: float | None | Unset = UNSET
99
+ activation_flags: None | str | Unset = UNSET
100
+ modification_flags: None | str | Unset = UNSET
101
+ reason: None | PositionReasons | Unset = UNSET
102
+
103
+
104
+
105
+
106
+
107
+ def to_dict(self) -> dict[str, Any]:
108
+ login: int | None | Unset
109
+ if isinstance(self.login, Unset):
110
+ login = UNSET
111
+ else:
112
+ login = self.login
113
+
114
+ symbol: None | str | Unset
115
+ if isinstance(self.symbol, Unset):
116
+ symbol = UNSET
117
+ else:
118
+ symbol = self.symbol
119
+
120
+ action: None | str | Unset
121
+ if isinstance(self.action, Unset):
122
+ action = UNSET
123
+ elif isinstance(self.action, PositionActions):
124
+ action = self.action.value
125
+ else:
126
+ action = self.action
127
+
128
+ digits: int | None | Unset
129
+ if isinstance(self.digits, Unset):
130
+ digits = UNSET
131
+ else:
132
+ digits = self.digits
133
+
134
+ digits_currency: int | None | Unset
135
+ if isinstance(self.digits_currency, Unset):
136
+ digits_currency = UNSET
137
+ else:
138
+ digits_currency = self.digits_currency
139
+
140
+ contract_size: float | None | Unset
141
+ if isinstance(self.contract_size, Unset):
142
+ contract_size = UNSET
143
+ else:
144
+ contract_size = self.contract_size
145
+
146
+ position: int | None | Unset
147
+ if isinstance(self.position, Unset):
148
+ position = UNSET
149
+ else:
150
+ position = self.position
151
+
152
+ external_id: None | str | Unset
153
+ if isinstance(self.external_id, Unset):
154
+ external_id = UNSET
155
+ else:
156
+ external_id = self.external_id
157
+
158
+ time_create: None | str | Unset
159
+ if isinstance(self.time_create, Unset):
160
+ time_create = UNSET
161
+ elif isinstance(self.time_create, datetime.datetime):
162
+ time_create = self.time_create.isoformat()
163
+ else:
164
+ time_create = self.time_create
165
+
166
+ time_update: None | str | Unset
167
+ if isinstance(self.time_update, Unset):
168
+ time_update = UNSET
169
+ elif isinstance(self.time_update, datetime.datetime):
170
+ time_update = self.time_update.isoformat()
171
+ else:
172
+ time_update = self.time_update
173
+
174
+ time_create_msc: None | str | Unset
175
+ if isinstance(self.time_create_msc, Unset):
176
+ time_create_msc = UNSET
177
+ elif isinstance(self.time_create_msc, datetime.datetime):
178
+ time_create_msc = self.time_create_msc.isoformat()
179
+ else:
180
+ time_create_msc = self.time_create_msc
181
+
182
+ time_update_msc: None | str | Unset
183
+ if isinstance(self.time_update_msc, Unset):
184
+ time_update_msc = UNSET
185
+ elif isinstance(self.time_update_msc, datetime.datetime):
186
+ time_update_msc = self.time_update_msc.isoformat()
187
+ else:
188
+ time_update_msc = self.time_update_msc
189
+
190
+ price_open: float | None | Unset
191
+ if isinstance(self.price_open, Unset):
192
+ price_open = UNSET
193
+ else:
194
+ price_open = self.price_open
195
+
196
+ price_current: float | None | Unset
197
+ if isinstance(self.price_current, Unset):
198
+ price_current = UNSET
199
+ else:
200
+ price_current = self.price_current
201
+
202
+ price_sl: float | None | Unset
203
+ if isinstance(self.price_sl, Unset):
204
+ price_sl = UNSET
205
+ else:
206
+ price_sl = self.price_sl
207
+
208
+ price_tp: float | None | Unset
209
+ if isinstance(self.price_tp, Unset):
210
+ price_tp = UNSET
211
+ else:
212
+ price_tp = self.price_tp
213
+
214
+ volume: int | None | Unset
215
+ if isinstance(self.volume, Unset):
216
+ volume = UNSET
217
+ else:
218
+ volume = self.volume
219
+
220
+ volume_ext: int | None | Unset
221
+ if isinstance(self.volume_ext, Unset):
222
+ volume_ext = UNSET
223
+ else:
224
+ volume_ext = self.volume_ext
225
+
226
+ profit: float | None | Unset
227
+ if isinstance(self.profit, Unset):
228
+ profit = UNSET
229
+ else:
230
+ profit = self.profit
231
+
232
+ storage: float | None | Unset
233
+ if isinstance(self.storage, Unset):
234
+ storage = UNSET
235
+ else:
236
+ storage = self.storage
237
+
238
+ rate_profit: float | None | Unset
239
+ if isinstance(self.rate_profit, Unset):
240
+ rate_profit = UNSET
241
+ else:
242
+ rate_profit = self.rate_profit
243
+
244
+ rate_margin: float | None | Unset
245
+ if isinstance(self.rate_margin, Unset):
246
+ rate_margin = UNSET
247
+ else:
248
+ rate_margin = self.rate_margin
249
+
250
+ expert_id: int | None | Unset
251
+ if isinstance(self.expert_id, Unset):
252
+ expert_id = UNSET
253
+ else:
254
+ expert_id = self.expert_id
255
+
256
+ expert_position_id: int | None | Unset
257
+ if isinstance(self.expert_position_id, Unset):
258
+ expert_position_id = UNSET
259
+ else:
260
+ expert_position_id = self.expert_position_id
261
+
262
+ comment: None | str | Unset
263
+ if isinstance(self.comment, Unset):
264
+ comment = UNSET
265
+ else:
266
+ comment = self.comment
267
+
268
+ dealer: int | None | Unset
269
+ if isinstance(self.dealer, Unset):
270
+ dealer = UNSET
271
+ else:
272
+ dealer = self.dealer
273
+
274
+ activation_mode: None | str | Unset
275
+ if isinstance(self.activation_mode, Unset):
276
+ activation_mode = UNSET
277
+ elif isinstance(self.activation_mode, ActivationModes):
278
+ activation_mode = self.activation_mode.value
279
+ else:
280
+ activation_mode = self.activation_mode
281
+
282
+ activation_time: None | str | Unset
283
+ if isinstance(self.activation_time, Unset):
284
+ activation_time = UNSET
285
+ elif isinstance(self.activation_time, datetime.datetime):
286
+ activation_time = self.activation_time.isoformat()
287
+ else:
288
+ activation_time = self.activation_time
289
+
290
+ activation_price: float | None | Unset
291
+ if isinstance(self.activation_price, Unset):
292
+ activation_price = UNSET
293
+ else:
294
+ activation_price = self.activation_price
295
+
296
+ activation_flags: None | str | Unset
297
+ if isinstance(self.activation_flags, Unset):
298
+ activation_flags = UNSET
299
+ else:
300
+ activation_flags = self.activation_flags
301
+
302
+ modification_flags: None | str | Unset
303
+ if isinstance(self.modification_flags, Unset):
304
+ modification_flags = UNSET
305
+ else:
306
+ modification_flags = self.modification_flags
307
+
308
+ reason: None | str | Unset
309
+ if isinstance(self.reason, Unset):
310
+ reason = UNSET
311
+ elif isinstance(self.reason, PositionReasons):
312
+ reason = self.reason.value
313
+ else:
314
+ reason = self.reason
315
+
316
+
317
+ field_dict: dict[str, Any] = {}
318
+
319
+ field_dict.update({
320
+ })
321
+ if login is not UNSET:
322
+ field_dict["login"] = login
323
+ if symbol is not UNSET:
324
+ field_dict["symbol"] = symbol
325
+ if action is not UNSET:
326
+ field_dict["action"] = action
327
+ if digits is not UNSET:
328
+ field_dict["digits"] = digits
329
+ if digits_currency is not UNSET:
330
+ field_dict["digitsCurrency"] = digits_currency
331
+ if contract_size is not UNSET:
332
+ field_dict["contractSize"] = contract_size
333
+ if position is not UNSET:
334
+ field_dict["position"] = position
335
+ if external_id is not UNSET:
336
+ field_dict["externalId"] = external_id
337
+ if time_create is not UNSET:
338
+ field_dict["timeCreate"] = time_create
339
+ if time_update is not UNSET:
340
+ field_dict["timeUpdate"] = time_update
341
+ if time_create_msc is not UNSET:
342
+ field_dict["timeCreateMsc"] = time_create_msc
343
+ if time_update_msc is not UNSET:
344
+ field_dict["timeUpdateMsc"] = time_update_msc
345
+ if price_open is not UNSET:
346
+ field_dict["priceOpen"] = price_open
347
+ if price_current is not UNSET:
348
+ field_dict["priceCurrent"] = price_current
349
+ if price_sl is not UNSET:
350
+ field_dict["priceSL"] = price_sl
351
+ if price_tp is not UNSET:
352
+ field_dict["priceTP"] = price_tp
353
+ if volume is not UNSET:
354
+ field_dict["volume"] = volume
355
+ if volume_ext is not UNSET:
356
+ field_dict["volumeExt"] = volume_ext
357
+ if profit is not UNSET:
358
+ field_dict["profit"] = profit
359
+ if storage is not UNSET:
360
+ field_dict["storage"] = storage
361
+ if rate_profit is not UNSET:
362
+ field_dict["rateProfit"] = rate_profit
363
+ if rate_margin is not UNSET:
364
+ field_dict["rateMargin"] = rate_margin
365
+ if expert_id is not UNSET:
366
+ field_dict["expertId"] = expert_id
367
+ if expert_position_id is not UNSET:
368
+ field_dict["expertPositionId"] = expert_position_id
369
+ if comment is not UNSET:
370
+ field_dict["comment"] = comment
371
+ if dealer is not UNSET:
372
+ field_dict["dealer"] = dealer
373
+ if activation_mode is not UNSET:
374
+ field_dict["activationMode"] = activation_mode
375
+ if activation_time is not UNSET:
376
+ field_dict["activationTime"] = activation_time
377
+ if activation_price is not UNSET:
378
+ field_dict["activationPrice"] = activation_price
379
+ if activation_flags is not UNSET:
380
+ field_dict["activationFlags"] = activation_flags
381
+ if modification_flags is not UNSET:
382
+ field_dict["modificationFlags"] = modification_flags
383
+ if reason is not UNSET:
384
+ field_dict["reason"] = reason
385
+
386
+ return field_dict
387
+
388
+
389
+
390
+ @classmethod
391
+ def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T:
392
+ d = dict(src_dict)
393
+ def _parse_login(data: object) -> int | None | Unset:
394
+ if data is None:
395
+ return data
396
+ if isinstance(data, Unset):
397
+ return data
398
+ return cast(int | None | Unset, data)
399
+
400
+ login = _parse_login(d.pop("login", UNSET))
401
+
402
+
403
+ def _parse_symbol(data: object) -> None | str | Unset:
404
+ if data is None:
405
+ return data
406
+ if isinstance(data, Unset):
407
+ return data
408
+ return cast(None | str | Unset, data)
409
+
410
+ symbol = _parse_symbol(d.pop("symbol", UNSET))
411
+
412
+
413
+ def _parse_action(data: object) -> None | PositionActions | Unset:
414
+ if data is None:
415
+ return data
416
+ if isinstance(data, Unset):
417
+ return data
418
+ try:
419
+ if not isinstance(data, str):
420
+ raise TypeError()
421
+ action_type_1 = PositionActions(data)
422
+
423
+
424
+
425
+ return action_type_1
426
+ except (TypeError, ValueError, AttributeError, KeyError):
427
+ pass
428
+ return cast(None | PositionActions | Unset, data)
429
+
430
+ action = _parse_action(d.pop("action", UNSET))
431
+
432
+
433
+ def _parse_digits(data: object) -> int | None | Unset:
434
+ if data is None:
435
+ return data
436
+ if isinstance(data, Unset):
437
+ return data
438
+ return cast(int | None | Unset, data)
439
+
440
+ digits = _parse_digits(d.pop("digits", UNSET))
441
+
442
+
443
+ def _parse_digits_currency(data: object) -> int | None | Unset:
444
+ if data is None:
445
+ return data
446
+ if isinstance(data, Unset):
447
+ return data
448
+ return cast(int | None | Unset, data)
449
+
450
+ digits_currency = _parse_digits_currency(d.pop("digitsCurrency", UNSET))
451
+
452
+
453
+ def _parse_contract_size(data: object) -> float | None | Unset:
454
+ if data is None:
455
+ return data
456
+ if isinstance(data, Unset):
457
+ return data
458
+ return cast(float | None | Unset, data)
459
+
460
+ contract_size = _parse_contract_size(d.pop("contractSize", UNSET))
461
+
462
+
463
+ def _parse_position(data: object) -> int | None | Unset:
464
+ if data is None:
465
+ return data
466
+ if isinstance(data, Unset):
467
+ return data
468
+ return cast(int | None | Unset, data)
469
+
470
+ position = _parse_position(d.pop("position", UNSET))
471
+
472
+
473
+ def _parse_external_id(data: object) -> None | str | Unset:
474
+ if data is None:
475
+ return data
476
+ if isinstance(data, Unset):
477
+ return data
478
+ return cast(None | str | Unset, data)
479
+
480
+ external_id = _parse_external_id(d.pop("externalId", UNSET))
481
+
482
+
483
+ def _parse_time_create(data: object) -> datetime.datetime | None | Unset:
484
+ if data is None:
485
+ return data
486
+ if isinstance(data, Unset):
487
+ return data
488
+ try:
489
+ if not isinstance(data, str):
490
+ raise TypeError()
491
+ time_create_type_0 = datetime.datetime.fromisoformat(data)
492
+
493
+
494
+
495
+ return time_create_type_0
496
+ except (TypeError, ValueError, AttributeError, KeyError):
497
+ pass
498
+ return cast(datetime.datetime | None | Unset, data)
499
+
500
+ time_create = _parse_time_create(d.pop("timeCreate", UNSET))
501
+
502
+
503
+ def _parse_time_update(data: object) -> datetime.datetime | None | Unset:
504
+ if data is None:
505
+ return data
506
+ if isinstance(data, Unset):
507
+ return data
508
+ try:
509
+ if not isinstance(data, str):
510
+ raise TypeError()
511
+ time_update_type_0 = datetime.datetime.fromisoformat(data)
512
+
513
+
514
+
515
+ return time_update_type_0
516
+ except (TypeError, ValueError, AttributeError, KeyError):
517
+ pass
518
+ return cast(datetime.datetime | None | Unset, data)
519
+
520
+ time_update = _parse_time_update(d.pop("timeUpdate", UNSET))
521
+
522
+
523
+ def _parse_time_create_msc(data: object) -> datetime.datetime | None | Unset:
524
+ if data is None:
525
+ return data
526
+ if isinstance(data, Unset):
527
+ return data
528
+ try:
529
+ if not isinstance(data, str):
530
+ raise TypeError()
531
+ time_create_msc_type_0 = datetime.datetime.fromisoformat(data)
532
+
533
+
534
+
535
+ return time_create_msc_type_0
536
+ except (TypeError, ValueError, AttributeError, KeyError):
537
+ pass
538
+ return cast(datetime.datetime | None | Unset, data)
539
+
540
+ time_create_msc = _parse_time_create_msc(d.pop("timeCreateMsc", UNSET))
541
+
542
+
543
+ def _parse_time_update_msc(data: object) -> datetime.datetime | None | Unset:
544
+ if data is None:
545
+ return data
546
+ if isinstance(data, Unset):
547
+ return data
548
+ try:
549
+ if not isinstance(data, str):
550
+ raise TypeError()
551
+ time_update_msc_type_0 = datetime.datetime.fromisoformat(data)
552
+
553
+
554
+
555
+ return time_update_msc_type_0
556
+ except (TypeError, ValueError, AttributeError, KeyError):
557
+ pass
558
+ return cast(datetime.datetime | None | Unset, data)
559
+
560
+ time_update_msc = _parse_time_update_msc(d.pop("timeUpdateMsc", UNSET))
561
+
562
+
563
+ def _parse_price_open(data: object) -> float | None | Unset:
564
+ if data is None:
565
+ return data
566
+ if isinstance(data, Unset):
567
+ return data
568
+ return cast(float | None | Unset, data)
569
+
570
+ price_open = _parse_price_open(d.pop("priceOpen", UNSET))
571
+
572
+
573
+ def _parse_price_current(data: object) -> float | None | Unset:
574
+ if data is None:
575
+ return data
576
+ if isinstance(data, Unset):
577
+ return data
578
+ return cast(float | None | Unset, data)
579
+
580
+ price_current = _parse_price_current(d.pop("priceCurrent", UNSET))
581
+
582
+
583
+ def _parse_price_sl(data: object) -> float | None | Unset:
584
+ if data is None:
585
+ return data
586
+ if isinstance(data, Unset):
587
+ return data
588
+ return cast(float | None | Unset, data)
589
+
590
+ price_sl = _parse_price_sl(d.pop("priceSL", UNSET))
591
+
592
+
593
+ def _parse_price_tp(data: object) -> float | None | Unset:
594
+ if data is None:
595
+ return data
596
+ if isinstance(data, Unset):
597
+ return data
598
+ return cast(float | None | Unset, data)
599
+
600
+ price_tp = _parse_price_tp(d.pop("priceTP", UNSET))
601
+
602
+
603
+ def _parse_volume(data: object) -> int | None | Unset:
604
+ if data is None:
605
+ return data
606
+ if isinstance(data, Unset):
607
+ return data
608
+ return cast(int | None | Unset, data)
609
+
610
+ volume = _parse_volume(d.pop("volume", UNSET))
611
+
612
+
613
+ def _parse_volume_ext(data: object) -> int | None | Unset:
614
+ if data is None:
615
+ return data
616
+ if isinstance(data, Unset):
617
+ return data
618
+ return cast(int | None | Unset, data)
619
+
620
+ volume_ext = _parse_volume_ext(d.pop("volumeExt", UNSET))
621
+
622
+
623
+ def _parse_profit(data: object) -> float | None | Unset:
624
+ if data is None:
625
+ return data
626
+ if isinstance(data, Unset):
627
+ return data
628
+ return cast(float | None | Unset, data)
629
+
630
+ profit = _parse_profit(d.pop("profit", UNSET))
631
+
632
+
633
+ def _parse_storage(data: object) -> float | None | Unset:
634
+ if data is None:
635
+ return data
636
+ if isinstance(data, Unset):
637
+ return data
638
+ return cast(float | None | Unset, data)
639
+
640
+ storage = _parse_storage(d.pop("storage", UNSET))
641
+
642
+
643
+ def _parse_rate_profit(data: object) -> float | None | Unset:
644
+ if data is None:
645
+ return data
646
+ if isinstance(data, Unset):
647
+ return data
648
+ return cast(float | None | Unset, data)
649
+
650
+ rate_profit = _parse_rate_profit(d.pop("rateProfit", UNSET))
651
+
652
+
653
+ def _parse_rate_margin(data: object) -> float | None | Unset:
654
+ if data is None:
655
+ return data
656
+ if isinstance(data, Unset):
657
+ return data
658
+ return cast(float | None | Unset, data)
659
+
660
+ rate_margin = _parse_rate_margin(d.pop("rateMargin", UNSET))
661
+
662
+
663
+ def _parse_expert_id(data: object) -> int | None | Unset:
664
+ if data is None:
665
+ return data
666
+ if isinstance(data, Unset):
667
+ return data
668
+ return cast(int | None | Unset, data)
669
+
670
+ expert_id = _parse_expert_id(d.pop("expertId", UNSET))
671
+
672
+
673
+ def _parse_expert_position_id(data: object) -> int | None | Unset:
674
+ if data is None:
675
+ return data
676
+ if isinstance(data, Unset):
677
+ return data
678
+ return cast(int | None | Unset, data)
679
+
680
+ expert_position_id = _parse_expert_position_id(d.pop("expertPositionId", UNSET))
681
+
682
+
683
+ def _parse_comment(data: object) -> None | str | Unset:
684
+ if data is None:
685
+ return data
686
+ if isinstance(data, Unset):
687
+ return data
688
+ return cast(None | str | Unset, data)
689
+
690
+ comment = _parse_comment(d.pop("comment", UNSET))
691
+
692
+
693
+ def _parse_dealer(data: object) -> int | None | Unset:
694
+ if data is None:
695
+ return data
696
+ if isinstance(data, Unset):
697
+ return data
698
+ return cast(int | None | Unset, data)
699
+
700
+ dealer = _parse_dealer(d.pop("dealer", UNSET))
701
+
702
+
703
+ def _parse_activation_mode(data: object) -> ActivationModes | None | Unset:
704
+ if data is None:
705
+ return data
706
+ if isinstance(data, Unset):
707
+ return data
708
+ try:
709
+ if not isinstance(data, str):
710
+ raise TypeError()
711
+ activation_mode_type_1 = ActivationModes(data)
712
+
713
+
714
+
715
+ return activation_mode_type_1
716
+ except (TypeError, ValueError, AttributeError, KeyError):
717
+ pass
718
+ return cast(ActivationModes | None | Unset, data)
719
+
720
+ activation_mode = _parse_activation_mode(d.pop("activationMode", UNSET))
721
+
722
+
723
+ def _parse_activation_time(data: object) -> datetime.datetime | None | Unset:
724
+ if data is None:
725
+ return data
726
+ if isinstance(data, Unset):
727
+ return data
728
+ try:
729
+ if not isinstance(data, str):
730
+ raise TypeError()
731
+ activation_time_type_0 = datetime.datetime.fromisoformat(data)
732
+
733
+
734
+
735
+ return activation_time_type_0
736
+ except (TypeError, ValueError, AttributeError, KeyError):
737
+ pass
738
+ return cast(datetime.datetime | None | Unset, data)
739
+
740
+ activation_time = _parse_activation_time(d.pop("activationTime", UNSET))
741
+
742
+
743
+ def _parse_activation_price(data: object) -> float | None | Unset:
744
+ if data is None:
745
+ return data
746
+ if isinstance(data, Unset):
747
+ return data
748
+ return cast(float | None | Unset, data)
749
+
750
+ activation_price = _parse_activation_price(d.pop("activationPrice", UNSET))
751
+
752
+
753
+ def _parse_activation_flags(data: object) -> None | str | Unset:
754
+ if data is None:
755
+ return data
756
+ if isinstance(data, Unset):
757
+ return data
758
+ return cast(None | str | Unset, data)
759
+
760
+ activation_flags = _parse_activation_flags(d.pop("activationFlags", UNSET))
761
+
762
+
763
+ def _parse_modification_flags(data: object) -> None | str | Unset:
764
+ if data is None:
765
+ return data
766
+ if isinstance(data, Unset):
767
+ return data
768
+ return cast(None | str | Unset, data)
769
+
770
+ modification_flags = _parse_modification_flags(d.pop("modificationFlags", UNSET))
771
+
772
+
773
+ def _parse_reason(data: object) -> None | PositionReasons | Unset:
774
+ if data is None:
775
+ return data
776
+ if isinstance(data, Unset):
777
+ return data
778
+ try:
779
+ if not isinstance(data, str):
780
+ raise TypeError()
781
+ reason_type_1 = PositionReasons(data)
782
+
783
+
784
+
785
+ return reason_type_1
786
+ except (TypeError, ValueError, AttributeError, KeyError):
787
+ pass
788
+ return cast(None | PositionReasons | Unset, data)
789
+
790
+ reason = _parse_reason(d.pop("reason", UNSET))
791
+
792
+
793
+ mt5_position = cls(
794
+ login=login,
795
+ symbol=symbol,
796
+ action=action,
797
+ digits=digits,
798
+ digits_currency=digits_currency,
799
+ contract_size=contract_size,
800
+ position=position,
801
+ external_id=external_id,
802
+ time_create=time_create,
803
+ time_update=time_update,
804
+ time_create_msc=time_create_msc,
805
+ time_update_msc=time_update_msc,
806
+ price_open=price_open,
807
+ price_current=price_current,
808
+ price_sl=price_sl,
809
+ price_tp=price_tp,
810
+ volume=volume,
811
+ volume_ext=volume_ext,
812
+ profit=profit,
813
+ storage=storage,
814
+ rate_profit=rate_profit,
815
+ rate_margin=rate_margin,
816
+ expert_id=expert_id,
817
+ expert_position_id=expert_position_id,
818
+ comment=comment,
819
+ dealer=dealer,
820
+ activation_mode=activation_mode,
821
+ activation_time=activation_time,
822
+ activation_price=activation_price,
823
+ activation_flags=activation_flags,
824
+ modification_flags=modification_flags,
825
+ reason=reason,
826
+ )
827
+
828
+ return mt5_position
829
+