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,1045 @@
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.deal_action import DealAction
12
+ from ..models.deal_reason import DealReason
13
+ from ..models.entry_flag import EntryFlag
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="MT5Deal")
24
+
25
+
26
+
27
+ @_attrs_define
28
+ class MT5Deal:
29
+ """
30
+ Attributes:
31
+ deal (int): deal ticket
32
+ external_id (None | str | Unset): deal ticket in external system (exchange, ECN, etc)
33
+ login (int | None | Unset): client login
34
+ dealer (int | None | Unset): processed dealer login (0-means auto)
35
+ party_id (int | None | Unset): counterparty identification
36
+ order (int | None | Unset): deal order ticket
37
+ action (DealAction | None | Unset): DealAction
38
+ entry (EntryFlag | None | Unset): EntryFlags
39
+ digits (int | None | Unset): price digits
40
+ digits_currency (int | None | Unset): currency digits
41
+ contract_size (float | None | Unset): symbol contract size
42
+ time (datetime.datetime | None | Unset): deal creation datetime in seconds. If the value of this field is
43
+ specified, the IMTDeal::TimeMsc value will be filled in automatically.
44
+ symbol (None | str | Unset): deal symbol
45
+ price (float | None | Unset): deal price
46
+ price_sl (float | None | Unset): order SL
47
+ price_tp (float | None | Unset): order TP
48
+ volume (int | None | Unset): deal volume
49
+ volume_ext (int | None | Unset): deal volume with extended accuracy
50
+ volume_closed (int | None | Unset): closed volume
51
+ volume_closed_ext (int | None | Unset): closed volume with extended accuracy
52
+ profit (float | None | Unset): deal profit
53
+ value (float | None | Unset): value
54
+ storage (float | None | Unset): deal collected swaps
55
+ commission (float | None | Unset): deal commission
56
+ obsolete_value (float | None | Unset): obsolete value
57
+ fee (float | None | Unset): fee
58
+ rate_profit (float | None | Unset): profit conversion rate (from symbol profit currency to deposit currency)
59
+ rate_margin (float | None | Unset): margin conversion rate (from symbol margin currency to deposit currency)
60
+ expert_id (int | None | Unset): expert id (filled by expert advisor)
61
+ position_id (int | None | Unset): position id
62
+ comment (None | str | Unset): deal comment
63
+ profit_raw (float | None | Unset): deal profit in symbol's profit currency
64
+ price_position (float | None | Unset): closed position price
65
+ tick_value (float | None | Unset): tick value
66
+ tick_size (float | None | Unset): tick size
67
+ flags (int | None | Unset): flags
68
+ time_msc (datetime.datetime | None | Unset): deal creation datetime in msc since 1970.01.01. If the value of
69
+ this field is specified, the IMTDeal::Time value will be filled in automatically
70
+ reason (DealReason | None | Unset): DealReason
71
+ gateway (None | str | Unset): source gateway name
72
+ price_gateway (float | None | Unset): deal price on gateway
73
+ market_bid (float | None | Unset): <strong>Has No Setter In ManagerAPI, so all you can is to read this
74
+ value.</strong>
75
+ <br />
76
+ <br />
77
+ Get the market Bid price as at the time of deal execution by the server
78
+ market_ask (float | None | Unset): <strong>Has No Setter In ManagerAPI, so all you can is to read this
79
+ value.</strong>
80
+ <br />
81
+ <br />
82
+ Get the market Ask price as at the time of deal execution by the server
83
+ market_last (float | None | Unset): <strong>Has No Setter In ManagerAPI, so all you can is to read this
84
+ value.</strong>
85
+ <br />
86
+ <br />
87
+ Get the market Last price as at the time of deal execution by the server
88
+ modification_flags (None | str | Unset): <strong>Has No Setter In ManagerAPI, so all you can is to read this
89
+ value.</strong>
90
+ <br />
91
+ <br />
92
+ modification flags
93
+ """
94
+
95
+ deal: int
96
+ external_id: None | str | Unset = UNSET
97
+ login: int | None | Unset = UNSET
98
+ dealer: int | None | Unset = UNSET
99
+ party_id: int | None | Unset = UNSET
100
+ order: int | None | Unset = UNSET
101
+ action: DealAction | None | Unset = UNSET
102
+ entry: EntryFlag | None | Unset = UNSET
103
+ digits: int | None | Unset = UNSET
104
+ digits_currency: int | None | Unset = UNSET
105
+ contract_size: float | None | Unset = UNSET
106
+ time: datetime.datetime | None | Unset = UNSET
107
+ symbol: None | str | Unset = UNSET
108
+ price: float | None | Unset = UNSET
109
+ price_sl: float | None | Unset = UNSET
110
+ price_tp: float | None | Unset = UNSET
111
+ volume: int | None | Unset = UNSET
112
+ volume_ext: int | None | Unset = UNSET
113
+ volume_closed: int | None | Unset = UNSET
114
+ volume_closed_ext: int | None | Unset = UNSET
115
+ profit: float | None | Unset = UNSET
116
+ value: float | None | Unset = UNSET
117
+ storage: float | None | Unset = UNSET
118
+ commission: float | None | Unset = UNSET
119
+ obsolete_value: float | None | Unset = UNSET
120
+ fee: float | None | Unset = UNSET
121
+ rate_profit: float | None | Unset = UNSET
122
+ rate_margin: float | None | Unset = UNSET
123
+ expert_id: int | None | Unset = UNSET
124
+ position_id: int | None | Unset = UNSET
125
+ comment: None | str | Unset = UNSET
126
+ profit_raw: float | None | Unset = UNSET
127
+ price_position: float | None | Unset = UNSET
128
+ tick_value: float | None | Unset = UNSET
129
+ tick_size: float | None | Unset = UNSET
130
+ flags: int | None | Unset = UNSET
131
+ time_msc: datetime.datetime | None | Unset = UNSET
132
+ reason: DealReason | None | Unset = UNSET
133
+ gateway: None | str | Unset = UNSET
134
+ price_gateway: float | None | Unset = UNSET
135
+ market_bid: float | None | Unset = UNSET
136
+ market_ask: float | None | Unset = UNSET
137
+ market_last: float | None | Unset = UNSET
138
+ modification_flags: None | str | Unset = UNSET
139
+
140
+
141
+
142
+
143
+
144
+ def to_dict(self) -> dict[str, Any]:
145
+ deal = self.deal
146
+
147
+ external_id: None | str | Unset
148
+ if isinstance(self.external_id, Unset):
149
+ external_id = UNSET
150
+ else:
151
+ external_id = self.external_id
152
+
153
+ login: int | None | Unset
154
+ if isinstance(self.login, Unset):
155
+ login = UNSET
156
+ else:
157
+ login = self.login
158
+
159
+ dealer: int | None | Unset
160
+ if isinstance(self.dealer, Unset):
161
+ dealer = UNSET
162
+ else:
163
+ dealer = self.dealer
164
+
165
+ party_id: int | None | Unset
166
+ if isinstance(self.party_id, Unset):
167
+ party_id = UNSET
168
+ else:
169
+ party_id = self.party_id
170
+
171
+ order: int | None | Unset
172
+ if isinstance(self.order, Unset):
173
+ order = UNSET
174
+ else:
175
+ order = self.order
176
+
177
+ action: None | str | Unset
178
+ if isinstance(self.action, Unset):
179
+ action = UNSET
180
+ elif isinstance(self.action, DealAction):
181
+ action = self.action.value
182
+ else:
183
+ action = self.action
184
+
185
+ entry: None | str | Unset
186
+ if isinstance(self.entry, Unset):
187
+ entry = UNSET
188
+ elif isinstance(self.entry, EntryFlag):
189
+ entry = self.entry.value
190
+ else:
191
+ entry = self.entry
192
+
193
+ digits: int | None | Unset
194
+ if isinstance(self.digits, Unset):
195
+ digits = UNSET
196
+ else:
197
+ digits = self.digits
198
+
199
+ digits_currency: int | None | Unset
200
+ if isinstance(self.digits_currency, Unset):
201
+ digits_currency = UNSET
202
+ else:
203
+ digits_currency = self.digits_currency
204
+
205
+ contract_size: float | None | Unset
206
+ if isinstance(self.contract_size, Unset):
207
+ contract_size = UNSET
208
+ else:
209
+ contract_size = self.contract_size
210
+
211
+ time: None | str | Unset
212
+ if isinstance(self.time, Unset):
213
+ time = UNSET
214
+ elif isinstance(self.time, datetime.datetime):
215
+ time = self.time.isoformat()
216
+ else:
217
+ time = self.time
218
+
219
+ symbol: None | str | Unset
220
+ if isinstance(self.symbol, Unset):
221
+ symbol = UNSET
222
+ else:
223
+ symbol = self.symbol
224
+
225
+ price: float | None | Unset
226
+ if isinstance(self.price, Unset):
227
+ price = UNSET
228
+ else:
229
+ price = self.price
230
+
231
+ price_sl: float | None | Unset
232
+ if isinstance(self.price_sl, Unset):
233
+ price_sl = UNSET
234
+ else:
235
+ price_sl = self.price_sl
236
+
237
+ price_tp: float | None | Unset
238
+ if isinstance(self.price_tp, Unset):
239
+ price_tp = UNSET
240
+ else:
241
+ price_tp = self.price_tp
242
+
243
+ volume: int | None | Unset
244
+ if isinstance(self.volume, Unset):
245
+ volume = UNSET
246
+ else:
247
+ volume = self.volume
248
+
249
+ volume_ext: int | None | Unset
250
+ if isinstance(self.volume_ext, Unset):
251
+ volume_ext = UNSET
252
+ else:
253
+ volume_ext = self.volume_ext
254
+
255
+ volume_closed: int | None | Unset
256
+ if isinstance(self.volume_closed, Unset):
257
+ volume_closed = UNSET
258
+ else:
259
+ volume_closed = self.volume_closed
260
+
261
+ volume_closed_ext: int | None | Unset
262
+ if isinstance(self.volume_closed_ext, Unset):
263
+ volume_closed_ext = UNSET
264
+ else:
265
+ volume_closed_ext = self.volume_closed_ext
266
+
267
+ profit: float | None | Unset
268
+ if isinstance(self.profit, Unset):
269
+ profit = UNSET
270
+ else:
271
+ profit = self.profit
272
+
273
+ value: float | None | Unset
274
+ if isinstance(self.value, Unset):
275
+ value = UNSET
276
+ else:
277
+ value = self.value
278
+
279
+ storage: float | None | Unset
280
+ if isinstance(self.storage, Unset):
281
+ storage = UNSET
282
+ else:
283
+ storage = self.storage
284
+
285
+ commission: float | None | Unset
286
+ if isinstance(self.commission, Unset):
287
+ commission = UNSET
288
+ else:
289
+ commission = self.commission
290
+
291
+ obsolete_value: float | None | Unset
292
+ if isinstance(self.obsolete_value, Unset):
293
+ obsolete_value = UNSET
294
+ else:
295
+ obsolete_value = self.obsolete_value
296
+
297
+ fee: float | None | Unset
298
+ if isinstance(self.fee, Unset):
299
+ fee = UNSET
300
+ else:
301
+ fee = self.fee
302
+
303
+ rate_profit: float | None | Unset
304
+ if isinstance(self.rate_profit, Unset):
305
+ rate_profit = UNSET
306
+ else:
307
+ rate_profit = self.rate_profit
308
+
309
+ rate_margin: float | None | Unset
310
+ if isinstance(self.rate_margin, Unset):
311
+ rate_margin = UNSET
312
+ else:
313
+ rate_margin = self.rate_margin
314
+
315
+ expert_id: int | None | Unset
316
+ if isinstance(self.expert_id, Unset):
317
+ expert_id = UNSET
318
+ else:
319
+ expert_id = self.expert_id
320
+
321
+ position_id: int | None | Unset
322
+ if isinstance(self.position_id, Unset):
323
+ position_id = UNSET
324
+ else:
325
+ position_id = self.position_id
326
+
327
+ comment: None | str | Unset
328
+ if isinstance(self.comment, Unset):
329
+ comment = UNSET
330
+ else:
331
+ comment = self.comment
332
+
333
+ profit_raw: float | None | Unset
334
+ if isinstance(self.profit_raw, Unset):
335
+ profit_raw = UNSET
336
+ else:
337
+ profit_raw = self.profit_raw
338
+
339
+ price_position: float | None | Unset
340
+ if isinstance(self.price_position, Unset):
341
+ price_position = UNSET
342
+ else:
343
+ price_position = self.price_position
344
+
345
+ tick_value: float | None | Unset
346
+ if isinstance(self.tick_value, Unset):
347
+ tick_value = UNSET
348
+ else:
349
+ tick_value = self.tick_value
350
+
351
+ tick_size: float | None | Unset
352
+ if isinstance(self.tick_size, Unset):
353
+ tick_size = UNSET
354
+ else:
355
+ tick_size = self.tick_size
356
+
357
+ flags: int | None | Unset
358
+ if isinstance(self.flags, Unset):
359
+ flags = UNSET
360
+ else:
361
+ flags = self.flags
362
+
363
+ time_msc: None | str | Unset
364
+ if isinstance(self.time_msc, Unset):
365
+ time_msc = UNSET
366
+ elif isinstance(self.time_msc, datetime.datetime):
367
+ time_msc = self.time_msc.isoformat()
368
+ else:
369
+ time_msc = self.time_msc
370
+
371
+ reason: None | str | Unset
372
+ if isinstance(self.reason, Unset):
373
+ reason = UNSET
374
+ elif isinstance(self.reason, DealReason):
375
+ reason = self.reason.value
376
+ else:
377
+ reason = self.reason
378
+
379
+ gateway: None | str | Unset
380
+ if isinstance(self.gateway, Unset):
381
+ gateway = UNSET
382
+ else:
383
+ gateway = self.gateway
384
+
385
+ price_gateway: float | None | Unset
386
+ if isinstance(self.price_gateway, Unset):
387
+ price_gateway = UNSET
388
+ else:
389
+ price_gateway = self.price_gateway
390
+
391
+ market_bid: float | None | Unset
392
+ if isinstance(self.market_bid, Unset):
393
+ market_bid = UNSET
394
+ else:
395
+ market_bid = self.market_bid
396
+
397
+ market_ask: float | None | Unset
398
+ if isinstance(self.market_ask, Unset):
399
+ market_ask = UNSET
400
+ else:
401
+ market_ask = self.market_ask
402
+
403
+ market_last: float | None | Unset
404
+ if isinstance(self.market_last, Unset):
405
+ market_last = UNSET
406
+ else:
407
+ market_last = self.market_last
408
+
409
+ modification_flags: None | str | Unset
410
+ if isinstance(self.modification_flags, Unset):
411
+ modification_flags = UNSET
412
+ else:
413
+ modification_flags = self.modification_flags
414
+
415
+
416
+ field_dict: dict[str, Any] = {}
417
+
418
+ field_dict.update({
419
+ "deal": deal,
420
+ })
421
+ if external_id is not UNSET:
422
+ field_dict["externalID"] = external_id
423
+ if login is not UNSET:
424
+ field_dict["login"] = login
425
+ if dealer is not UNSET:
426
+ field_dict["dealer"] = dealer
427
+ if party_id is not UNSET:
428
+ field_dict["partyID"] = party_id
429
+ if order is not UNSET:
430
+ field_dict["order"] = order
431
+ if action is not UNSET:
432
+ field_dict["action"] = action
433
+ if entry is not UNSET:
434
+ field_dict["entry"] = entry
435
+ if digits is not UNSET:
436
+ field_dict["digits"] = digits
437
+ if digits_currency is not UNSET:
438
+ field_dict["digitsCurrency"] = digits_currency
439
+ if contract_size is not UNSET:
440
+ field_dict["contractSize"] = contract_size
441
+ if time is not UNSET:
442
+ field_dict["time"] = time
443
+ if symbol is not UNSET:
444
+ field_dict["symbol"] = symbol
445
+ if price is not UNSET:
446
+ field_dict["price"] = price
447
+ if price_sl is not UNSET:
448
+ field_dict["priceSL"] = price_sl
449
+ if price_tp is not UNSET:
450
+ field_dict["priceTP"] = price_tp
451
+ if volume is not UNSET:
452
+ field_dict["volume"] = volume
453
+ if volume_ext is not UNSET:
454
+ field_dict["volumeExt"] = volume_ext
455
+ if volume_closed is not UNSET:
456
+ field_dict["volumeClosed"] = volume_closed
457
+ if volume_closed_ext is not UNSET:
458
+ field_dict["volumeClosedExt"] = volume_closed_ext
459
+ if profit is not UNSET:
460
+ field_dict["profit"] = profit
461
+ if value is not UNSET:
462
+ field_dict["value"] = value
463
+ if storage is not UNSET:
464
+ field_dict["storage"] = storage
465
+ if commission is not UNSET:
466
+ field_dict["commission"] = commission
467
+ if obsolete_value is not UNSET:
468
+ field_dict["obsoleteValue"] = obsolete_value
469
+ if fee is not UNSET:
470
+ field_dict["fee"] = fee
471
+ if rate_profit is not UNSET:
472
+ field_dict["rateProfit"] = rate_profit
473
+ if rate_margin is not UNSET:
474
+ field_dict["rateMargin"] = rate_margin
475
+ if expert_id is not UNSET:
476
+ field_dict["expertID"] = expert_id
477
+ if position_id is not UNSET:
478
+ field_dict["positionID"] = position_id
479
+ if comment is not UNSET:
480
+ field_dict["comment"] = comment
481
+ if profit_raw is not UNSET:
482
+ field_dict["profitRaw"] = profit_raw
483
+ if price_position is not UNSET:
484
+ field_dict["pricePosition"] = price_position
485
+ if tick_value is not UNSET:
486
+ field_dict["tickValue"] = tick_value
487
+ if tick_size is not UNSET:
488
+ field_dict["tickSize"] = tick_size
489
+ if flags is not UNSET:
490
+ field_dict["flags"] = flags
491
+ if time_msc is not UNSET:
492
+ field_dict["timeMsc"] = time_msc
493
+ if reason is not UNSET:
494
+ field_dict["reason"] = reason
495
+ if gateway is not UNSET:
496
+ field_dict["gateway"] = gateway
497
+ if price_gateway is not UNSET:
498
+ field_dict["priceGateway"] = price_gateway
499
+ if market_bid is not UNSET:
500
+ field_dict["marketBid"] = market_bid
501
+ if market_ask is not UNSET:
502
+ field_dict["marketAsk"] = market_ask
503
+ if market_last is not UNSET:
504
+ field_dict["marketLast"] = market_last
505
+ if modification_flags is not UNSET:
506
+ field_dict["modificationFlags"] = modification_flags
507
+
508
+ return field_dict
509
+
510
+
511
+
512
+ @classmethod
513
+ def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T:
514
+ d = dict(src_dict)
515
+ deal = d.pop("deal")
516
+
517
+ def _parse_external_id(data: object) -> None | str | Unset:
518
+ if data is None:
519
+ return data
520
+ if isinstance(data, Unset):
521
+ return data
522
+ return cast(None | str | Unset, data)
523
+
524
+ external_id = _parse_external_id(d.pop("externalID", UNSET))
525
+
526
+
527
+ def _parse_login(data: object) -> int | None | Unset:
528
+ if data is None:
529
+ return data
530
+ if isinstance(data, Unset):
531
+ return data
532
+ return cast(int | None | Unset, data)
533
+
534
+ login = _parse_login(d.pop("login", UNSET))
535
+
536
+
537
+ def _parse_dealer(data: object) -> int | None | Unset:
538
+ if data is None:
539
+ return data
540
+ if isinstance(data, Unset):
541
+ return data
542
+ return cast(int | None | Unset, data)
543
+
544
+ dealer = _parse_dealer(d.pop("dealer", UNSET))
545
+
546
+
547
+ def _parse_party_id(data: object) -> int | None | Unset:
548
+ if data is None:
549
+ return data
550
+ if isinstance(data, Unset):
551
+ return data
552
+ return cast(int | None | Unset, data)
553
+
554
+ party_id = _parse_party_id(d.pop("partyID", UNSET))
555
+
556
+
557
+ def _parse_order(data: object) -> int | None | Unset:
558
+ if data is None:
559
+ return data
560
+ if isinstance(data, Unset):
561
+ return data
562
+ return cast(int | None | Unset, data)
563
+
564
+ order = _parse_order(d.pop("order", UNSET))
565
+
566
+
567
+ def _parse_action(data: object) -> DealAction | None | Unset:
568
+ if data is None:
569
+ return data
570
+ if isinstance(data, Unset):
571
+ return data
572
+ try:
573
+ if not isinstance(data, str):
574
+ raise TypeError()
575
+ action_type_1 = DealAction(data)
576
+
577
+
578
+
579
+ return action_type_1
580
+ except (TypeError, ValueError, AttributeError, KeyError):
581
+ pass
582
+ return cast(DealAction | None | Unset, data)
583
+
584
+ action = _parse_action(d.pop("action", UNSET))
585
+
586
+
587
+ def _parse_entry(data: object) -> EntryFlag | None | Unset:
588
+ if data is None:
589
+ return data
590
+ if isinstance(data, Unset):
591
+ return data
592
+ try:
593
+ if not isinstance(data, str):
594
+ raise TypeError()
595
+ entry_type_1 = EntryFlag(data)
596
+
597
+
598
+
599
+ return entry_type_1
600
+ except (TypeError, ValueError, AttributeError, KeyError):
601
+ pass
602
+ return cast(EntryFlag | None | Unset, data)
603
+
604
+ entry = _parse_entry(d.pop("entry", UNSET))
605
+
606
+
607
+ def _parse_digits(data: object) -> int | None | Unset:
608
+ if data is None:
609
+ return data
610
+ if isinstance(data, Unset):
611
+ return data
612
+ return cast(int | None | Unset, data)
613
+
614
+ digits = _parse_digits(d.pop("digits", UNSET))
615
+
616
+
617
+ def _parse_digits_currency(data: object) -> int | None | Unset:
618
+ if data is None:
619
+ return data
620
+ if isinstance(data, Unset):
621
+ return data
622
+ return cast(int | None | Unset, data)
623
+
624
+ digits_currency = _parse_digits_currency(d.pop("digitsCurrency", UNSET))
625
+
626
+
627
+ def _parse_contract_size(data: object) -> float | None | Unset:
628
+ if data is None:
629
+ return data
630
+ if isinstance(data, Unset):
631
+ return data
632
+ return cast(float | None | Unset, data)
633
+
634
+ contract_size = _parse_contract_size(d.pop("contractSize", UNSET))
635
+
636
+
637
+ def _parse_time(data: object) -> datetime.datetime | None | Unset:
638
+ if data is None:
639
+ return data
640
+ if isinstance(data, Unset):
641
+ return data
642
+ try:
643
+ if not isinstance(data, str):
644
+ raise TypeError()
645
+ time_type_0 = datetime.datetime.fromisoformat(data)
646
+
647
+
648
+
649
+ return time_type_0
650
+ except (TypeError, ValueError, AttributeError, KeyError):
651
+ pass
652
+ return cast(datetime.datetime | None | Unset, data)
653
+
654
+ time = _parse_time(d.pop("time", UNSET))
655
+
656
+
657
+ def _parse_symbol(data: object) -> None | str | Unset:
658
+ if data is None:
659
+ return data
660
+ if isinstance(data, Unset):
661
+ return data
662
+ return cast(None | str | Unset, data)
663
+
664
+ symbol = _parse_symbol(d.pop("symbol", UNSET))
665
+
666
+
667
+ def _parse_price(data: object) -> float | None | Unset:
668
+ if data is None:
669
+ return data
670
+ if isinstance(data, Unset):
671
+ return data
672
+ return cast(float | None | Unset, data)
673
+
674
+ price = _parse_price(d.pop("price", UNSET))
675
+
676
+
677
+ def _parse_price_sl(data: object) -> float | None | Unset:
678
+ if data is None:
679
+ return data
680
+ if isinstance(data, Unset):
681
+ return data
682
+ return cast(float | None | Unset, data)
683
+
684
+ price_sl = _parse_price_sl(d.pop("priceSL", UNSET))
685
+
686
+
687
+ def _parse_price_tp(data: object) -> float | None | Unset:
688
+ if data is None:
689
+ return data
690
+ if isinstance(data, Unset):
691
+ return data
692
+ return cast(float | None | Unset, data)
693
+
694
+ price_tp = _parse_price_tp(d.pop("priceTP", UNSET))
695
+
696
+
697
+ def _parse_volume(data: object) -> int | None | Unset:
698
+ if data is None:
699
+ return data
700
+ if isinstance(data, Unset):
701
+ return data
702
+ return cast(int | None | Unset, data)
703
+
704
+ volume = _parse_volume(d.pop("volume", UNSET))
705
+
706
+
707
+ def _parse_volume_ext(data: object) -> int | None | Unset:
708
+ if data is None:
709
+ return data
710
+ if isinstance(data, Unset):
711
+ return data
712
+ return cast(int | None | Unset, data)
713
+
714
+ volume_ext = _parse_volume_ext(d.pop("volumeExt", UNSET))
715
+
716
+
717
+ def _parse_volume_closed(data: object) -> int | None | Unset:
718
+ if data is None:
719
+ return data
720
+ if isinstance(data, Unset):
721
+ return data
722
+ return cast(int | None | Unset, data)
723
+
724
+ volume_closed = _parse_volume_closed(d.pop("volumeClosed", UNSET))
725
+
726
+
727
+ def _parse_volume_closed_ext(data: object) -> int | None | Unset:
728
+ if data is None:
729
+ return data
730
+ if isinstance(data, Unset):
731
+ return data
732
+ return cast(int | None | Unset, data)
733
+
734
+ volume_closed_ext = _parse_volume_closed_ext(d.pop("volumeClosedExt", UNSET))
735
+
736
+
737
+ def _parse_profit(data: object) -> float | None | Unset:
738
+ if data is None:
739
+ return data
740
+ if isinstance(data, Unset):
741
+ return data
742
+ return cast(float | None | Unset, data)
743
+
744
+ profit = _parse_profit(d.pop("profit", UNSET))
745
+
746
+
747
+ def _parse_value(data: object) -> float | None | Unset:
748
+ if data is None:
749
+ return data
750
+ if isinstance(data, Unset):
751
+ return data
752
+ return cast(float | None | Unset, data)
753
+
754
+ value = _parse_value(d.pop("value", UNSET))
755
+
756
+
757
+ def _parse_storage(data: object) -> float | None | Unset:
758
+ if data is None:
759
+ return data
760
+ if isinstance(data, Unset):
761
+ return data
762
+ return cast(float | None | Unset, data)
763
+
764
+ storage = _parse_storage(d.pop("storage", UNSET))
765
+
766
+
767
+ def _parse_commission(data: object) -> float | None | Unset:
768
+ if data is None:
769
+ return data
770
+ if isinstance(data, Unset):
771
+ return data
772
+ return cast(float | None | Unset, data)
773
+
774
+ commission = _parse_commission(d.pop("commission", UNSET))
775
+
776
+
777
+ def _parse_obsolete_value(data: object) -> float | None | Unset:
778
+ if data is None:
779
+ return data
780
+ if isinstance(data, Unset):
781
+ return data
782
+ return cast(float | None | Unset, data)
783
+
784
+ obsolete_value = _parse_obsolete_value(d.pop("obsoleteValue", UNSET))
785
+
786
+
787
+ def _parse_fee(data: object) -> float | None | Unset:
788
+ if data is None:
789
+ return data
790
+ if isinstance(data, Unset):
791
+ return data
792
+ return cast(float | None | Unset, data)
793
+
794
+ fee = _parse_fee(d.pop("fee", UNSET))
795
+
796
+
797
+ def _parse_rate_profit(data: object) -> float | None | Unset:
798
+ if data is None:
799
+ return data
800
+ if isinstance(data, Unset):
801
+ return data
802
+ return cast(float | None | Unset, data)
803
+
804
+ rate_profit = _parse_rate_profit(d.pop("rateProfit", UNSET))
805
+
806
+
807
+ def _parse_rate_margin(data: object) -> float | None | Unset:
808
+ if data is None:
809
+ return data
810
+ if isinstance(data, Unset):
811
+ return data
812
+ return cast(float | None | Unset, data)
813
+
814
+ rate_margin = _parse_rate_margin(d.pop("rateMargin", UNSET))
815
+
816
+
817
+ def _parse_expert_id(data: object) -> int | None | Unset:
818
+ if data is None:
819
+ return data
820
+ if isinstance(data, Unset):
821
+ return data
822
+ return cast(int | None | Unset, data)
823
+
824
+ expert_id = _parse_expert_id(d.pop("expertID", UNSET))
825
+
826
+
827
+ def _parse_position_id(data: object) -> int | None | Unset:
828
+ if data is None:
829
+ return data
830
+ if isinstance(data, Unset):
831
+ return data
832
+ return cast(int | None | Unset, data)
833
+
834
+ position_id = _parse_position_id(d.pop("positionID", UNSET))
835
+
836
+
837
+ def _parse_comment(data: object) -> None | str | Unset:
838
+ if data is None:
839
+ return data
840
+ if isinstance(data, Unset):
841
+ return data
842
+ return cast(None | str | Unset, data)
843
+
844
+ comment = _parse_comment(d.pop("comment", UNSET))
845
+
846
+
847
+ def _parse_profit_raw(data: object) -> float | None | Unset:
848
+ if data is None:
849
+ return data
850
+ if isinstance(data, Unset):
851
+ return data
852
+ return cast(float | None | Unset, data)
853
+
854
+ profit_raw = _parse_profit_raw(d.pop("profitRaw", UNSET))
855
+
856
+
857
+ def _parse_price_position(data: object) -> float | None | Unset:
858
+ if data is None:
859
+ return data
860
+ if isinstance(data, Unset):
861
+ return data
862
+ return cast(float | None | Unset, data)
863
+
864
+ price_position = _parse_price_position(d.pop("pricePosition", UNSET))
865
+
866
+
867
+ def _parse_tick_value(data: object) -> float | None | Unset:
868
+ if data is None:
869
+ return data
870
+ if isinstance(data, Unset):
871
+ return data
872
+ return cast(float | None | Unset, data)
873
+
874
+ tick_value = _parse_tick_value(d.pop("tickValue", UNSET))
875
+
876
+
877
+ def _parse_tick_size(data: object) -> float | None | Unset:
878
+ if data is None:
879
+ return data
880
+ if isinstance(data, Unset):
881
+ return data
882
+ return cast(float | None | Unset, data)
883
+
884
+ tick_size = _parse_tick_size(d.pop("tickSize", UNSET))
885
+
886
+
887
+ def _parse_flags(data: object) -> int | None | Unset:
888
+ if data is None:
889
+ return data
890
+ if isinstance(data, Unset):
891
+ return data
892
+ return cast(int | None | Unset, data)
893
+
894
+ flags = _parse_flags(d.pop("flags", UNSET))
895
+
896
+
897
+ def _parse_time_msc(data: object) -> datetime.datetime | None | Unset:
898
+ if data is None:
899
+ return data
900
+ if isinstance(data, Unset):
901
+ return data
902
+ try:
903
+ if not isinstance(data, str):
904
+ raise TypeError()
905
+ time_msc_type_0 = datetime.datetime.fromisoformat(data)
906
+
907
+
908
+
909
+ return time_msc_type_0
910
+ except (TypeError, ValueError, AttributeError, KeyError):
911
+ pass
912
+ return cast(datetime.datetime | None | Unset, data)
913
+
914
+ time_msc = _parse_time_msc(d.pop("timeMsc", UNSET))
915
+
916
+
917
+ def _parse_reason(data: object) -> DealReason | None | Unset:
918
+ if data is None:
919
+ return data
920
+ if isinstance(data, Unset):
921
+ return data
922
+ try:
923
+ if not isinstance(data, str):
924
+ raise TypeError()
925
+ reason_type_1 = DealReason(data)
926
+
927
+
928
+
929
+ return reason_type_1
930
+ except (TypeError, ValueError, AttributeError, KeyError):
931
+ pass
932
+ return cast(DealReason | None | Unset, data)
933
+
934
+ reason = _parse_reason(d.pop("reason", UNSET))
935
+
936
+
937
+ def _parse_gateway(data: object) -> None | str | Unset:
938
+ if data is None:
939
+ return data
940
+ if isinstance(data, Unset):
941
+ return data
942
+ return cast(None | str | Unset, data)
943
+
944
+ gateway = _parse_gateway(d.pop("gateway", UNSET))
945
+
946
+
947
+ def _parse_price_gateway(data: object) -> float | None | Unset:
948
+ if data is None:
949
+ return data
950
+ if isinstance(data, Unset):
951
+ return data
952
+ return cast(float | None | Unset, data)
953
+
954
+ price_gateway = _parse_price_gateway(d.pop("priceGateway", UNSET))
955
+
956
+
957
+ def _parse_market_bid(data: object) -> float | None | Unset:
958
+ if data is None:
959
+ return data
960
+ if isinstance(data, Unset):
961
+ return data
962
+ return cast(float | None | Unset, data)
963
+
964
+ market_bid = _parse_market_bid(d.pop("marketBid", UNSET))
965
+
966
+
967
+ def _parse_market_ask(data: object) -> float | None | Unset:
968
+ if data is None:
969
+ return data
970
+ if isinstance(data, Unset):
971
+ return data
972
+ return cast(float | None | Unset, data)
973
+
974
+ market_ask = _parse_market_ask(d.pop("marketAsk", UNSET))
975
+
976
+
977
+ def _parse_market_last(data: object) -> float | None | Unset:
978
+ if data is None:
979
+ return data
980
+ if isinstance(data, Unset):
981
+ return data
982
+ return cast(float | None | Unset, data)
983
+
984
+ market_last = _parse_market_last(d.pop("marketLast", UNSET))
985
+
986
+
987
+ def _parse_modification_flags(data: object) -> None | str | Unset:
988
+ if data is None:
989
+ return data
990
+ if isinstance(data, Unset):
991
+ return data
992
+ return cast(None | str | Unset, data)
993
+
994
+ modification_flags = _parse_modification_flags(d.pop("modificationFlags", UNSET))
995
+
996
+
997
+ mt5_deal = cls(
998
+ deal=deal,
999
+ external_id=external_id,
1000
+ login=login,
1001
+ dealer=dealer,
1002
+ party_id=party_id,
1003
+ order=order,
1004
+ action=action,
1005
+ entry=entry,
1006
+ digits=digits,
1007
+ digits_currency=digits_currency,
1008
+ contract_size=contract_size,
1009
+ time=time,
1010
+ symbol=symbol,
1011
+ price=price,
1012
+ price_sl=price_sl,
1013
+ price_tp=price_tp,
1014
+ volume=volume,
1015
+ volume_ext=volume_ext,
1016
+ volume_closed=volume_closed,
1017
+ volume_closed_ext=volume_closed_ext,
1018
+ profit=profit,
1019
+ value=value,
1020
+ storage=storage,
1021
+ commission=commission,
1022
+ obsolete_value=obsolete_value,
1023
+ fee=fee,
1024
+ rate_profit=rate_profit,
1025
+ rate_margin=rate_margin,
1026
+ expert_id=expert_id,
1027
+ position_id=position_id,
1028
+ comment=comment,
1029
+ profit_raw=profit_raw,
1030
+ price_position=price_position,
1031
+ tick_value=tick_value,
1032
+ tick_size=tick_size,
1033
+ flags=flags,
1034
+ time_msc=time_msc,
1035
+ reason=reason,
1036
+ gateway=gateway,
1037
+ price_gateway=price_gateway,
1038
+ market_bid=market_bid,
1039
+ market_ask=market_ask,
1040
+ market_last=market_last,
1041
+ modification_flags=modification_flags,
1042
+ )
1043
+
1044
+ return mt5_deal
1045
+