binaryoptionstoolsv2 0.2.15__tar.gz → 0.2.16__tar.gz

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 (158) hide show
  1. {binaryoptionstoolsv2-0.2.15 → binaryoptionstoolsv2-0.2.16}/BinaryOptionsToolsV2/BinaryOptionsToolsV2.pyi +18 -10
  2. {binaryoptionstoolsv2-0.2.15 → binaryoptionstoolsv2-0.2.16}/BinaryOptionsToolsV2/__init__.py +16 -2
  3. {binaryoptionstoolsv2-0.2.15 → binaryoptionstoolsv2-0.2.16}/BinaryOptionsToolsV2/closeoption/asynchronous.py +2 -6
  4. {binaryoptionstoolsv2-0.2.15 → binaryoptionstoolsv2-0.2.16}/BinaryOptionsToolsV2/pocketoption/__init__.py +3 -0
  5. {binaryoptionstoolsv2-0.2.15 → binaryoptionstoolsv2-0.2.16}/BinaryOptionsToolsV2/pocketoption/asynchronous.py +484 -466
  6. binaryoptionstoolsv2-0.2.16/BinaryOptionsToolsV2/pocketoption/models.py +61 -0
  7. {binaryoptionstoolsv2-0.2.15 → binaryoptionstoolsv2-0.2.16}/BinaryOptionsToolsV2/pocketoption/synchronous.py +357 -158
  8. {binaryoptionstoolsv2-0.2.15 → binaryoptionstoolsv2-0.2.16}/Cargo.lock +225 -213
  9. {binaryoptionstoolsv2-0.2.15 → binaryoptionstoolsv2-0.2.16}/PKG-INFO +29 -23
  10. {binaryoptionstoolsv2-0.2.15 → binaryoptionstoolsv2-0.2.16}/README.md +28 -22
  11. {binaryoptionstoolsv2-0.2.15 → binaryoptionstoolsv2-0.2.16}/crates/binary_options_tools/Cargo.toml +1 -1
  12. {binaryoptionstoolsv2-0.2.15 → binaryoptionstoolsv2-0.2.16}/crates/binary_options_tools/Readme.md +0 -1
  13. {binaryoptionstoolsv2-0.2.15 → binaryoptionstoolsv2-0.2.16}/crates/binary_options_tools/src/closeoption/client.rs +119 -7
  14. {binaryoptionstoolsv2-0.2.15 → binaryoptionstoolsv2-0.2.16}/crates/binary_options_tools/src/closeoption/types.rs +170 -1
  15. binaryoptionstoolsv2-0.2.16/crates/binary_options_tools/src/closeoption/utils.rs +169 -0
  16. {binaryoptionstoolsv2-0.2.15 → binaryoptionstoolsv2-0.2.16}/crates/binary_options_tools/src/error.rs +4 -0
  17. {binaryoptionstoolsv2-0.2.15 → binaryoptionstoolsv2-0.2.16}/crates/binary_options_tools/src/lib.rs +9 -2
  18. {binaryoptionstoolsv2-0.2.15 → binaryoptionstoolsv2-0.2.16}/crates/binary_options_tools/src/pocketoption/mod.rs +3 -0
  19. {binaryoptionstoolsv2-0.2.15 → binaryoptionstoolsv2-0.2.16}/crates/binary_options_tools/src/pocketoption/modules/assets.rs +14 -23
  20. {binaryoptionstoolsv2-0.2.15 → binaryoptionstoolsv2-0.2.16}/crates/binary_options_tools/src/pocketoption/modules/balance.rs +26 -23
  21. {binaryoptionstoolsv2-0.2.15 → binaryoptionstoolsv2-0.2.16}/crates/binary_options_tools/src/pocketoption/modules/deals.rs +75 -130
  22. {binaryoptionstoolsv2-0.2.15 → binaryoptionstoolsv2-0.2.16}/crates/binary_options_tools/src/pocketoption/modules/get_candles.rs +398 -144
  23. {binaryoptionstoolsv2-0.2.15 → binaryoptionstoolsv2-0.2.16}/crates/binary_options_tools/src/pocketoption/modules/historical_data.rs +61 -47
  24. {binaryoptionstoolsv2-0.2.15 → binaryoptionstoolsv2-0.2.16}/crates/binary_options_tools/src/pocketoption/modules/keep_alive.rs +20 -40
  25. {binaryoptionstoolsv2-0.2.15 → binaryoptionstoolsv2-0.2.16}/crates/binary_options_tools/src/pocketoption/modules/pending_trades.rs +96 -81
  26. {binaryoptionstoolsv2-0.2.15 → binaryoptionstoolsv2-0.2.16}/crates/binary_options_tools/src/pocketoption/modules/raw.rs +15 -0
  27. {binaryoptionstoolsv2-0.2.15 → binaryoptionstoolsv2-0.2.16}/crates/binary_options_tools/src/pocketoption/modules/subscriptions.rs +175 -21
  28. {binaryoptionstoolsv2-0.2.15 → binaryoptionstoolsv2-0.2.16}/crates/binary_options_tools/src/pocketoption/pocket_client.rs +126 -1
  29. {binaryoptionstoolsv2-0.2.15 → binaryoptionstoolsv2-0.2.16}/crates/binary_options_tools/src/pocketoption/ssid.rs +234 -6
  30. binaryoptionstoolsv2-0.2.16/crates/binary_options_tools/src/pocketoption/try_demo.rs +140 -0
  31. {binaryoptionstoolsv2-0.2.15 → binaryoptionstoolsv2-0.2.16}/crates/binary_options_tools/src/pocketoption/types.rs +10 -24
  32. {binaryoptionstoolsv2-0.2.15 → binaryoptionstoolsv2-0.2.16}/crates/binary_options_tools/src/pocketoption/utils.rs +109 -282
  33. {binaryoptionstoolsv2-0.2.15 → binaryoptionstoolsv2-0.2.16}/crates/binary_options_tools/src/utils/mod.rs +49 -10
  34. {binaryoptionstoolsv2-0.2.15 → binaryoptionstoolsv2-0.2.16}/crates/binary_options_tools/tests/closeoption_test.rs +17 -3
  35. {binaryoptionstoolsv2-0.2.15 → binaryoptionstoolsv2-0.2.16}/crates/binary_options_tools/tests/pending_trades_tests.rs +11 -11
  36. {binaryoptionstoolsv2-0.2.15 → binaryoptionstoolsv2-0.2.16}/crates/bindings_pyo3/Cargo.toml +2 -2
  37. {binaryoptionstoolsv2-0.2.15 → binaryoptionstoolsv2-0.2.16}/crates/bindings_pyo3/Readme.md +1 -2
  38. {binaryoptionstoolsv2-0.2.15 → binaryoptionstoolsv2-0.2.16}/crates/bindings_pyo3/src/closeoption.rs +48 -42
  39. {binaryoptionstoolsv2-0.2.15 → binaryoptionstoolsv2-0.2.16}/crates/bindings_pyo3/src/config.rs +0 -1
  40. {binaryoptionstoolsv2-0.2.15 → binaryoptionstoolsv2-0.2.16}/crates/bindings_pyo3/src/error.rs +5 -2
  41. {binaryoptionstoolsv2-0.2.15 → binaryoptionstoolsv2-0.2.16}/crates/bindings_pyo3/src/lib.rs +7 -3
  42. {binaryoptionstoolsv2-0.2.15 → binaryoptionstoolsv2-0.2.16}/crates/bindings_pyo3/src/pocketoption.rs +51 -36
  43. {binaryoptionstoolsv2-0.2.15 → binaryoptionstoolsv2-0.2.16}/crates/core/Cargo.toml +6 -1
  44. {binaryoptionstoolsv2-0.2.15 → binaryoptionstoolsv2-0.2.16}/crates/core/src/lib.rs +1 -0
  45. binaryoptionstoolsv2-0.2.16/crates/core/src/transport.rs +378 -0
  46. {binaryoptionstoolsv2-0.2.15 → binaryoptionstoolsv2-0.2.16}/crates/core/tests/runner_command_tests.rs +0 -1
  47. {binaryoptionstoolsv2-0.2.15 → binaryoptionstoolsv2-0.2.16}/crates/macros/ActionImpl_README.md +1 -1
  48. {binaryoptionstoolsv2-0.2.15 → binaryoptionstoolsv2-0.2.16}/crates/macros/Cargo.toml +1 -1
  49. binaryoptionstoolsv2-0.2.15/crates/binary_options_tools/src/closeoption/utils.rs +0 -393
  50. {binaryoptionstoolsv2-0.2.15 → binaryoptionstoolsv2-0.2.16}/BinaryOptionsToolsV2/closeoption/__init__.py +0 -0
  51. {binaryoptionstoolsv2-0.2.15 → binaryoptionstoolsv2-0.2.16}/BinaryOptionsToolsV2/closeoption/synchronous.py +0 -0
  52. {binaryoptionstoolsv2-0.2.15 → binaryoptionstoolsv2-0.2.16}/BinaryOptionsToolsV2/config.py +0 -0
  53. {binaryoptionstoolsv2-0.2.15 → binaryoptionstoolsv2-0.2.16}/BinaryOptionsToolsV2/pocketoption/tools/__init__.py +0 -0
  54. {binaryoptionstoolsv2-0.2.15 → binaryoptionstoolsv2-0.2.16}/BinaryOptionsToolsV2/pocketoption/tools/login.py +0 -0
  55. {binaryoptionstoolsv2-0.2.15 → binaryoptionstoolsv2-0.2.16}/BinaryOptionsToolsV2/tracing.py +0 -0
  56. {binaryoptionstoolsv2-0.2.15 → binaryoptionstoolsv2-0.2.16}/BinaryOptionsToolsV2/validator.py +0 -0
  57. {binaryoptionstoolsv2-0.2.15 → binaryoptionstoolsv2-0.2.16}/Cargo.toml +0 -0
  58. {binaryoptionstoolsv2-0.2.15 → binaryoptionstoolsv2-0.2.16}/LICENSE +0 -0
  59. {binaryoptionstoolsv2-0.2.15 → binaryoptionstoolsv2-0.2.16}/crates/binary_options_tools/.gitignore +0 -0
  60. {binaryoptionstoolsv2-0.2.15 → binaryoptionstoolsv2-0.2.16}/crates/binary_options_tools/LICENSE +0 -0
  61. {binaryoptionstoolsv2-0.2.15 → binaryoptionstoolsv2-0.2.16}/crates/binary_options_tools/data/expert_options_regions.json +0 -0
  62. {binaryoptionstoolsv2-0.2.15 → binaryoptionstoolsv2-0.2.16}/crates/binary_options_tools/data/pocket_options_regions.json +0 -0
  63. {binaryoptionstoolsv2-0.2.15 → binaryoptionstoolsv2-0.2.16}/crates/binary_options_tools/examples/pending_trades_example.rs +0 -0
  64. {binaryoptionstoolsv2-0.2.15 → binaryoptionstoolsv2-0.2.16}/crates/binary_options_tools/examples/test_demo.rs +0 -0
  65. {binaryoptionstoolsv2-0.2.15 → binaryoptionstoolsv2-0.2.16}/crates/binary_options_tools/mkds/README.md +0 -0
  66. {binaryoptionstoolsv2-0.2.15 → binaryoptionstoolsv2-0.2.16}/crates/binary_options_tools/src/closeoption/connect.rs +0 -0
  67. {binaryoptionstoolsv2-0.2.15 → binaryoptionstoolsv2-0.2.16}/crates/binary_options_tools/src/closeoption/error.rs +0 -0
  68. {binaryoptionstoolsv2-0.2.15 → binaryoptionstoolsv2-0.2.16}/crates/binary_options_tools/src/closeoption/mod.rs +0 -0
  69. {binaryoptionstoolsv2-0.2.15 → binaryoptionstoolsv2-0.2.16}/crates/binary_options_tools/src/closeoption/state.rs +0 -0
  70. {binaryoptionstoolsv2-0.2.15 → binaryoptionstoolsv2-0.2.16}/crates/binary_options_tools/src/config.rs +0 -0
  71. {binaryoptionstoolsv2-0.2.15 → binaryoptionstoolsv2-0.2.16}/crates/binary_options_tools/src/expertoptions/action.rs +0 -0
  72. {binaryoptionstoolsv2-0.2.15 → binaryoptionstoolsv2-0.2.16}/crates/binary_options_tools/src/expertoptions/client.rs +0 -0
  73. {binaryoptionstoolsv2-0.2.15 → binaryoptionstoolsv2-0.2.16}/crates/binary_options_tools/src/expertoptions/connect.rs +0 -0
  74. {binaryoptionstoolsv2-0.2.15 → binaryoptionstoolsv2-0.2.16}/crates/binary_options_tools/src/expertoptions/error.rs +0 -0
  75. {binaryoptionstoolsv2-0.2.15 → binaryoptionstoolsv2-0.2.16}/crates/binary_options_tools/src/expertoptions/mod.rs +0 -0
  76. {binaryoptionstoolsv2-0.2.15 → binaryoptionstoolsv2-0.2.16}/crates/binary_options_tools/src/expertoptions/modules/keep_alive.rs +0 -0
  77. {binaryoptionstoolsv2-0.2.15 → binaryoptionstoolsv2-0.2.16}/crates/binary_options_tools/src/expertoptions/modules/mod.rs +0 -0
  78. {binaryoptionstoolsv2-0.2.15 → binaryoptionstoolsv2-0.2.16}/crates/binary_options_tools/src/expertoptions/modules/profile.rs +0 -0
  79. {binaryoptionstoolsv2-0.2.15 → binaryoptionstoolsv2-0.2.16}/crates/binary_options_tools/src/expertoptions/regions.rs +0 -0
  80. {binaryoptionstoolsv2-0.2.15 → binaryoptionstoolsv2-0.2.16}/crates/binary_options_tools/src/expertoptions/state.rs +0 -0
  81. {binaryoptionstoolsv2-0.2.15 → binaryoptionstoolsv2-0.2.16}/crates/binary_options_tools/src/expertoptions/types.rs +0 -0
  82. {binaryoptionstoolsv2-0.2.15 → binaryoptionstoolsv2-0.2.16}/crates/binary_options_tools/src/framework/market.rs +0 -0
  83. {binaryoptionstoolsv2-0.2.15 → binaryoptionstoolsv2-0.2.16}/crates/binary_options_tools/src/framework/mod.rs +0 -0
  84. {binaryoptionstoolsv2-0.2.15 → binaryoptionstoolsv2-0.2.16}/crates/binary_options_tools/src/framework/virtual_market.rs +0 -0
  85. {binaryoptionstoolsv2-0.2.15 → binaryoptionstoolsv2-0.2.16}/crates/binary_options_tools/src/pocketoption/candle.rs +0 -0
  86. {binaryoptionstoolsv2-0.2.15 → binaryoptionstoolsv2-0.2.16}/crates/binary_options_tools/src/pocketoption/connect.rs +0 -0
  87. {binaryoptionstoolsv2-0.2.15 → binaryoptionstoolsv2-0.2.16}/crates/binary_options_tools/src/pocketoption/error.rs +0 -0
  88. {binaryoptionstoolsv2-0.2.15 → binaryoptionstoolsv2-0.2.16}/crates/binary_options_tools/src/pocketoption/modules/mod.rs +0 -0
  89. {binaryoptionstoolsv2-0.2.15 → binaryoptionstoolsv2-0.2.16}/crates/binary_options_tools/src/pocketoption/modules/server_time.rs +0 -0
  90. {binaryoptionstoolsv2-0.2.15 → binaryoptionstoolsv2-0.2.16}/crates/binary_options_tools/src/pocketoption/modules/trades.rs +0 -0
  91. {binaryoptionstoolsv2-0.2.15 → binaryoptionstoolsv2-0.2.16}/crates/binary_options_tools/src/pocketoption/regions.rs +0 -0
  92. {binaryoptionstoolsv2-0.2.15 → binaryoptionstoolsv2-0.2.16}/crates/binary_options_tools/src/pocketoption/state.rs +0 -0
  93. {binaryoptionstoolsv2-0.2.15 → binaryoptionstoolsv2-0.2.16}/crates/binary_options_tools/src/traits.rs +0 -0
  94. {binaryoptionstoolsv2-0.2.15 → binaryoptionstoolsv2-0.2.16}/crates/binary_options_tools/src/utils/serialize.rs +0 -0
  95. {binaryoptionstoolsv2-0.2.15 → binaryoptionstoolsv2-0.2.16}/crates/binary_options_tools/src/validator.rs +0 -0
  96. {binaryoptionstoolsv2-0.2.15 → binaryoptionstoolsv2-0.2.16}/crates/binary_options_tools/tests/common/mod.rs +0 -0
  97. {binaryoptionstoolsv2-0.2.15 → binaryoptionstoolsv2-0.2.16}/crates/binary_options_tools/tests/comprehensive_pocketoption_tests.rs +0 -0
  98. {binaryoptionstoolsv2-0.2.15 → binaryoptionstoolsv2-0.2.16}/crates/binary_options_tools/tests/concurrency.rs +0 -0
  99. {binaryoptionstoolsv2-0.2.15 → binaryoptionstoolsv2-0.2.16}/crates/binary_options_tools/tests/deals_module_cleanup.rs +0 -0
  100. {binaryoptionstoolsv2-0.2.15 → binaryoptionstoolsv2-0.2.16}/crates/binary_options_tools/tests/deals_tests.rs +0 -0
  101. {binaryoptionstoolsv2-0.2.15 → binaryoptionstoolsv2-0.2.16}/crates/binary_options_tools/tests/history_verification_tests.rs +0 -0
  102. {binaryoptionstoolsv2-0.2.15 → binaryoptionstoolsv2-0.2.16}/crates/binary_options_tools/tests/mod.rs +0 -0
  103. {binaryoptionstoolsv2-0.2.15 → binaryoptionstoolsv2-0.2.16}/crates/binary_options_tools/tests/pending_trades_cleanup.rs +0 -0
  104. {binaryoptionstoolsv2-0.2.15 → binaryoptionstoolsv2-0.2.16}/crates/binary_options_tools/tests/resilient_parsing_tests.rs +0 -0
  105. {binaryoptionstoolsv2-0.2.15 → binaryoptionstoolsv2-0.2.16}/crates/binary_options_tools/tests/test_ssid_debug.rs +0 -0
  106. {binaryoptionstoolsv2-0.2.15 → binaryoptionstoolsv2-0.2.16}/crates/binary_options_tools/tests/trade_state_regression.rs +0 -0
  107. {binaryoptionstoolsv2-0.2.15 → binaryoptionstoolsv2-0.2.16}/crates/bindings_pyo3/LICENSE +0 -0
  108. {binaryoptionstoolsv2-0.2.15 → binaryoptionstoolsv2-0.2.16}/crates/bindings_pyo3/build.rs +0 -0
  109. {binaryoptionstoolsv2-0.2.15 → binaryoptionstoolsv2-0.2.16}/crates/bindings_pyo3/src/framework.rs +0 -0
  110. {binaryoptionstoolsv2-0.2.15 → binaryoptionstoolsv2-0.2.16}/crates/bindings_pyo3/src/logs.rs +0 -0
  111. {binaryoptionstoolsv2-0.2.15 → binaryoptionstoolsv2-0.2.16}/crates/bindings_pyo3/src/runtime.rs +0 -0
  112. {binaryoptionstoolsv2-0.2.15 → binaryoptionstoolsv2-0.2.16}/crates/bindings_pyo3/src/stream.rs +0 -0
  113. {binaryoptionstoolsv2-0.2.15 → binaryoptionstoolsv2-0.2.16}/crates/bindings_pyo3/src/validator.rs +0 -0
  114. {binaryoptionstoolsv2-0.2.15 → binaryoptionstoolsv2-0.2.16}/crates/core/.gitignore +0 -0
  115. {binaryoptionstoolsv2-0.2.15 → binaryoptionstoolsv2-0.2.16}/crates/core/LICENSE +0 -0
  116. {binaryoptionstoolsv2-0.2.15 → binaryoptionstoolsv2-0.2.16}/crates/core/README.md +0 -0
  117. {binaryoptionstoolsv2-0.2.15 → binaryoptionstoolsv2-0.2.16}/crates/core/diagrams/architecture.txt +0 -0
  118. {binaryoptionstoolsv2-0.2.15 → binaryoptionstoolsv2-0.2.16}/crates/core/diagrams/diagram.txt +0 -0
  119. {binaryoptionstoolsv2-0.2.15 → binaryoptionstoolsv2-0.2.16}/crates/core/docs/testing-framework.md +0 -0
  120. {binaryoptionstoolsv2-0.2.15 → binaryoptionstoolsv2-0.2.16}/crates/core/examples/echo_client.rs +0 -0
  121. {binaryoptionstoolsv2-0.2.15 → binaryoptionstoolsv2-0.2.16}/crates/core/examples/middleware_example.rs +0 -0
  122. {binaryoptionstoolsv2-0.2.15 → binaryoptionstoolsv2-0.2.16}/crates/core/examples/testing_echo_client.rs +0 -0
  123. {binaryoptionstoolsv2-0.2.15 → binaryoptionstoolsv2-0.2.16}/crates/core/macros/Cargo.toml +0 -0
  124. {binaryoptionstoolsv2-0.2.15 → binaryoptionstoolsv2-0.2.16}/crates/core/macros/LICENSE +0 -0
  125. {binaryoptionstoolsv2-0.2.15 → binaryoptionstoolsv2-0.2.16}/crates/core/macros/src/lib.rs +0 -0
  126. {binaryoptionstoolsv2-0.2.15 → binaryoptionstoolsv2-0.2.16}/crates/core/macros/src/modules/lightweight.rs +0 -0
  127. {binaryoptionstoolsv2-0.2.15 → binaryoptionstoolsv2-0.2.16}/crates/core/macros/src/modules/mod.rs +0 -0
  128. {binaryoptionstoolsv2-0.2.15 → binaryoptionstoolsv2-0.2.16}/crates/core/macros/src/rule.rs +0 -0
  129. {binaryoptionstoolsv2-0.2.15 → binaryoptionstoolsv2-0.2.16}/crates/core/src/builder.rs +0 -0
  130. {binaryoptionstoolsv2-0.2.15 → binaryoptionstoolsv2-0.2.16}/crates/core/src/callback.rs +0 -0
  131. {binaryoptionstoolsv2-0.2.15 → binaryoptionstoolsv2-0.2.16}/crates/core/src/client.rs +0 -0
  132. {binaryoptionstoolsv2-0.2.15 → binaryoptionstoolsv2-0.2.16}/crates/core/src/connector.rs +0 -0
  133. {binaryoptionstoolsv2-0.2.15 → binaryoptionstoolsv2-0.2.16}/crates/core/src/error.rs +0 -0
  134. {binaryoptionstoolsv2-0.2.15 → binaryoptionstoolsv2-0.2.16}/crates/core/src/message.rs +0 -0
  135. {binaryoptionstoolsv2-0.2.15 → binaryoptionstoolsv2-0.2.16}/crates/core/src/middleware.rs +0 -0
  136. {binaryoptionstoolsv2-0.2.15 → binaryoptionstoolsv2-0.2.16}/crates/core/src/reimports.rs +0 -0
  137. {binaryoptionstoolsv2-0.2.15 → binaryoptionstoolsv2-0.2.16}/crates/core/src/rules.rs +0 -0
  138. {binaryoptionstoolsv2-0.2.15 → binaryoptionstoolsv2-0.2.16}/crates/core/src/signals.rs +0 -0
  139. {binaryoptionstoolsv2-0.2.15 → binaryoptionstoolsv2-0.2.16}/crates/core/src/statistics.rs +0 -0
  140. {binaryoptionstoolsv2-0.2.15 → binaryoptionstoolsv2-0.2.16}/crates/core/src/testing.rs +0 -0
  141. {binaryoptionstoolsv2-0.2.15 → binaryoptionstoolsv2-0.2.16}/crates/core/src/traits.rs +0 -0
  142. {binaryoptionstoolsv2-0.2.15 → binaryoptionstoolsv2-0.2.16}/crates/core/src/utils/mod.rs +0 -0
  143. {binaryoptionstoolsv2-0.2.15 → binaryoptionstoolsv2-0.2.16}/crates/core/src/utils/stream.rs +0 -0
  144. {binaryoptionstoolsv2-0.2.15 → binaryoptionstoolsv2-0.2.16}/crates/core/src/utils/time.rs +0 -0
  145. {binaryoptionstoolsv2-0.2.15 → binaryoptionstoolsv2-0.2.16}/crates/core/src/utils/tracing.rs +0 -0
  146. {binaryoptionstoolsv2-0.2.15 → binaryoptionstoolsv2-0.2.16}/crates/core/tests/middleware_tests.rs +0 -0
  147. {binaryoptionstoolsv2-0.2.15 → binaryoptionstoolsv2-0.2.16}/crates/core/tests/rule_macro_tests.rs +0 -0
  148. {binaryoptionstoolsv2-0.2.15 → binaryoptionstoolsv2-0.2.16}/crates/core/tests/stream_tests.rs +0 -0
  149. {binaryoptionstoolsv2-0.2.15 → binaryoptionstoolsv2-0.2.16}/crates/core/tests/testing_wrapper_tests.rs +0 -0
  150. {binaryoptionstoolsv2-0.2.15 → binaryoptionstoolsv2-0.2.16}/crates/core/tests/two_step_standalone.rs +0 -0
  151. {binaryoptionstoolsv2-0.2.15 → binaryoptionstoolsv2-0.2.16}/crates/macros/.gitignore +0 -0
  152. {binaryoptionstoolsv2-0.2.15 → binaryoptionstoolsv2-0.2.16}/crates/macros/Cargo.lock +0 -0
  153. {binaryoptionstoolsv2-0.2.15 → binaryoptionstoolsv2-0.2.16}/crates/macros/LICENSE +0 -0
  154. {binaryoptionstoolsv2-0.2.15 → binaryoptionstoolsv2-0.2.16}/crates/macros/src/action.rs +0 -0
  155. {binaryoptionstoolsv2-0.2.15 → binaryoptionstoolsv2-0.2.16}/crates/macros/src/lib.rs +0 -0
  156. {binaryoptionstoolsv2-0.2.15 → binaryoptionstoolsv2-0.2.16}/crates/macros/src/region.rs +0 -0
  157. {binaryoptionstoolsv2-0.2.15 → binaryoptionstoolsv2-0.2.16}/crates/macros/src/timeout.rs +0 -0
  158. {binaryoptionstoolsv2-0.2.15 → binaryoptionstoolsv2-0.2.16}/pyproject.toml +0 -0
@@ -5,15 +5,19 @@ class Action:
5
5
  Put: "Action"
6
6
 
7
7
  class PyConfig:
8
- def __init__(
9
- self,
10
- max_allowed_loops: int = 10,
11
- sleep_interval: int = 100,
12
- reconnect_time: int = 5,
13
- connection_initialization_timeout: float = 30.0,
14
- timeout: float = 10.0,
15
- urls: List[str] = [],
16
- ) -> None: ...
8
+ # The Rust constructor takes no arguments; fields are read/written through
9
+ # properties. Defaults mirror `binary_options_tools::config::Config`.
10
+ def __init__(self) -> None: ...
11
+ max_allowed_loops: int
12
+ sleep_interval: int
13
+ reconnect_time: int
14
+ connection_initialization_timeout_secs: int
15
+ timeout_secs: int
16
+ urls: List[str]
17
+ proxy: Optional[str]
18
+ user_agent: Optional[str]
19
+ origin: Optional[str]
20
+ sec_websocket_extensions: Optional[str]
17
21
 
18
22
  class RawValidator:
19
23
  @staticmethod
@@ -72,6 +76,10 @@ class RawPocketOption:
72
76
  def new_with_config(ssid: str, config: PyConfig) -> "RawPocketOption": ...
73
77
  @staticmethod
74
78
  async def create_with_config(ssid: str, config: PyConfig) -> "RawPocketOption": ...
79
+ @staticmethod
80
+ def new_try_demo(token: Optional[str] = None) -> "RawPocketOption": ...
81
+ @staticmethod
82
+ async def create_try_demo(token: Optional[str] = None) -> "RawPocketOption": ...
75
83
  async def wait_for_assets(self, timeout_secs: float) -> None: ...
76
84
  def is_demo(self) -> bool: ...
77
85
  async def buy(self, asset: str, amount: float, time: int) -> List[str]: ...
@@ -87,7 +95,7 @@ class RawPocketOption:
87
95
  open_type: int,
88
96
  amount: float,
89
97
  asset: str,
90
- open_time: int,
98
+ open_time: str,
91
99
  open_price: float,
92
100
  timeframe: int,
93
101
  min_payout: int,
@@ -8,13 +8,21 @@ from .pocketoption import (
8
8
  PocketOptionAsync as PocketOptionAsync,
9
9
  PocketOption as PocketOption,
10
10
  RawHandler as RawHandler,
11
+ RawHandlerSync as RawHandlerSync,
12
+ Trade as Trade,
13
+ TradeResult as TradeResult,
11
14
  Validator as Validator,
15
+ login as login,
16
+ login_async as login_async,
12
17
  __all__ as __pocket_all__,
13
18
  )
14
19
  from .closeoption import (
15
20
  CloseOptionAsync as CloseOptionAsync,
16
21
  CloseOption as CloseOption,
17
- RawHandler as CloseRawHandler,
22
+ AsyncRawSubscription as AsyncRawSubscription,
23
+ AsyncSubscription as AsyncSubscription,
24
+ SyncRawSubscription as SyncRawSubscription,
25
+ SyncSubscription as SyncSubscription,
18
26
  __all__ as __close_all__,
19
27
  )
20
28
 
@@ -56,7 +64,7 @@ _rust_exported_names = [
56
64
  __rust_all__ = [n for n in _rust_exported_names if n in globals()]
57
65
 
58
66
  __all__ = list(
59
- set(
67
+ dict.fromkeys(
60
68
  __pocket_all__
61
69
  + __close_all__
62
70
  + [
@@ -67,8 +75,14 @@ __all__ = list(
67
75
  "CloseOptionAsync",
68
76
  "CloseOption",
69
77
  "RawHandler",
78
+ "Trade",
79
+ "TradeResult",
70
80
  "Validator",
71
81
  ]
72
82
  + __rust_all__
73
83
  )
74
84
  )
85
+ # The subpackage `__all__` lists include submodule names (e.g. "asynchronous")
86
+ # that only exist there. Expose just the names this package actually resolves,
87
+ # so `from BinaryOptionsToolsV2 import *` works instead of raising AttributeError.
88
+ __all__ = [name for name in __all__ if name in globals()]
@@ -1,16 +1,12 @@
1
- import asyncio
2
1
  import json
3
- import re
4
2
  import sys
5
- import warnings
6
- from datetime import timedelta
7
- from typing import TYPE_CHECKING, Dict, List, Optional, Tuple, Union, AsyncGenerator
3
+ from typing import TYPE_CHECKING, List, Optional, Tuple, Union, AsyncGenerator
8
4
 
9
5
  from ..config import Config
10
6
  from ..validator import Validator
11
7
 
12
8
  if TYPE_CHECKING:
13
- from ..BinaryOptionsToolsV2 import Logger, RawCloseOption
9
+ from ..BinaryOptionsToolsV2 import Logger
14
10
 
15
11
  if sys.version_info < (3, 10):
16
12
 
@@ -14,8 +14,11 @@ __all__ = [
14
14
  "RawHandler",
15
15
  "RawHandlerSync",
16
16
  "Validator",
17
+ "Trade",
18
+ "TradeResult",
17
19
  ]
18
20
  from .tools.login import login, login_async
19
21
  from . import asynchronous, synchronous as synchronous
20
22
  from .asynchronous import PocketOptionAsync, RawHandler, Validator
21
23
  from .synchronous import PocketOption, RawHandlerSync
24
+ from .models import Trade, TradeResult