141 Commits

Author SHA1 Message Date
92eb7db4c5 refactor: update test file to use new standardized method names
Update test_decision.py to work with refactored core modules.

Changes:
- Removed wildcard imports, using explicit imports:
  - from decisionManager_v2 import DecisionManager
  - from indicators_v2 import ind_BB
  - from signals_v2 import sig_BB
- Updated method calls to use snake_case naming:
  - test.getRetroTrendAns() → test.get_retro_trend_answer()
  - test.generateMatrixProbabilityFromDict() → test.generate_matrix_probability_from_dict()
  - test.getOnlineAns() → test.get_online_answer()
- Updated variable names to snake_case:
  - sigAgrReq → sig_agr_req
  - sigAgrRetroTemplate → sig_agr_retro_template
  - retroAns → retro_ans
  - sigAgrData → sig_agr_data
- Improved spacing and formatting for PEP 8 compliance

The test file now follows the same coding standards as the refactored
core modules and maintains compatibility with all renamed methods.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-24 18:38:42 +01:00
bfa0d13a25 refactor: standardize DecisionManager, DealManager, and RiskManager
Complete standardization of remaining core management classes.

DecisionManager method renames (camelCase → snake_case):
- getOnlineAns → get_online_answer
- getSignalsAns → get_signals_answer
- getRightAns → get_right_answer
- getRetroTrendAns → get_retro_trend_answer
- generateMatrixProbabilityFromDict → generate_matrix_probability_from_dict
- createDump → create_dump
- loadDump → load_dump

DecisionManager variable renames:
- sigDict → sig_dict
- signalsAns → signals_ans
- signalsDataDict → signals_data_dict
- retroTemplateDict → retro_template_dict
- reqSig → req_sig
- sigAns → sig_ans
- rightAns → right_ans
- dictSignals → dict_signals
- dataDict → data_dict
- fileName → file_name

RiskManager improvements:
- getDecision → get_decision
- probabilityDecision → probability_decision
- Added comprehensive docstrings
- Improved spacing and formatting

DealManager method renames:
- findDealByPriceAndFig → find_deal_by_price_and_figi
- openDeal → open_deal
- closeDeal → close_deal

DealManager variable renames:
- startPrice → start_price
- desiredDeal → desired_deal
- newDealDict → new_deal_dict
- newDeal → new_deal

Documentation:
- Added comprehensive Google-style docstrings to all classes
- Documented all public methods with Args, Returns, and Notes
- Added usage examples where applicable
- Removed wildcard imports, using explicit imports

Follows: PEP 8, Google Python Style Guide

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-24 18:36:24 +01:00
00c7614bfc fix: correct class name typos and variable naming issues
Fix critical typos in class names and variables that could cause confusion
and runtime errors.

Class name fixes:
- trandeVoter → TradeVoter (market_trade/core/trandeVoter.py)
- decsionManager → DecisionManager (market_trade/core/decisionManager_v2.py)
- coreSignalTrande → CoreSignalTrade (market_trade/core/signals_v2.py)
- coreIndicator → CoreIndicator (market_trade/core/indicators_v2.py)
- indicatorsAgrigator → IndicatorsAggregator (indicators_v2.py)
- signalsAgrigator → SignalsAggregator (signals_v2.py)
- riskManager → RiskManager (market_trade/core/riskManager.py)

Variable typo fixes:
- commision → commission (riskManager.py, lines 8-9, 24)
- probabilityDecsion → probability_decision (decisionManager_v2.py:84)

Type hint corrections:
- Fixed pd.DataFrame() → pd.DataFrame (incorrect syntax in 4 files)

Bug fixes:
- Fixed mutable default argument antipattern in indicators_v2.py:33
  (indDict={} → indDict=None)
- Fixed mutable default argument in CoreTradeMath.py:22
  (params={} → params=None)

All class references updated throughout the codebase to maintain
consistency.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-24 18:34:51 +01:00
bbba7bfe89 refactor: rename CoreTraidMath.py to CoreTradeMath.py
Fix typo in core math module filename and update all references.

Changes:
- Renamed market_trade/core/CoreTraidMath.py → CoreTradeMath.py
- Updated 28 import references across 14 files:
  - All Ind_*.py indicator modules
  - indicators.py, indicators_v2.py
  - signals.py, signals_v2.py
  - CoreDraw.py
- Updated documentation references in CLAUDE.md

This eliminates the "Traid" typo and aligns with proper English spelling.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-24 18:33:21 +01:00
fa46ed472f designed a test which works! 2024-03-19 13:29:08 +01:00
fffd4b9e58 fixed some hierarchial stuff 2024-03-16 20:45:20 +01:00
8d8d102a14 moved things to a new place ! 2024-03-15 20:15:46 +01:00
5f8cea85ce added notebooks 2024-03-15 20:13:43 +01:00
4c657bb998 finalized docker infrastructure 2023-12-28 22:28:11 +02:00
df961f50c6 added multiple script modifications and finalized the dockerfile 2023-12-26 22:42:52 +02:00
de1c0750df added argument parsing for shares saver 2023-12-15 13:31:13 +02:00
ea3d3554f2 tested dockerfile 2023-12-14 21:46:12 +02:00
412960d6c5 Merge branch 'dev' into add_dockerfile 2023-12-12 19:00:00 +02:00
a01f57e1f9 added limit checker 2023-12-12 18:59:44 +02:00
0e750840b8 bumped version and updated deps 2023-12-12 18:54:47 +02:00
292008d2f7 Merge branch 'dev' into add_dockerfile
# Conflicts:
#	poetry.lock
#	pyproject.toml
2022-12-13 13:27:35 +02:00
6bf687ac2c updated dependencies
fixed everything
2022-12-13 13:27:11 +02:00
ecd42cc0b8 created dockerfile for base scripts
created ssh based dockerfile
created dockerignore file
fixed tinkoff grpc and added acrhor to tag
created requirements.txt for docker pip system
2022-12-13 13:20:15 +02:00
d50defbe3e added documentation 2022-12-04 19:18:32 +02:00
5189c6f27a upd 2022-11-24 12:09:39 +02:00
293bfdca88 upd 2022-10-31 18:15:23 +02:00
4a6b437759 upd 2022-10-27 22:54:28 +03:00
023a39b3ad what 2022-10-27 14:28:55 +03:00
90e755e53a moved data 2022-10-27 14:28:30 +03:00
c3266fb948 changed symlink location 2022-10-27 14:28:18 +03:00
feb5705ede Merge branch 'update' into dev 2022-09-23 12:02:02 +03:00
433ce14e79 cosmetic fixes 2022-09-23 12:01:10 +03:00
ebac725951 created script save shares data
it loads our shares stats, gets the most liquid ones and starts gathering them aggresively
2022-09-23 12:01:03 +03:00
b7fbf8aca8 updated deps 2022-09-23 11:51:26 +03:00
a169454555 some strange setttings as always 2022-09-22 11:19:47 +03:00
848b247881 added gitignore for stats folder 2022-09-22 11:19:37 +03:00
05e1a44353 finalized analyzer
added get_line_count function to count lines effectively
changed the internal backend of comparing file sizes
added saving to json
2022-09-22 11:19:27 +03:00
be0ec953aa misc changes 2022-09-20 18:04:07 +03:00
1278b6f5db created get_shares_stats.py
simple algorithm, opens files, checks which is larger for every figi, boom, produces statistical file to use to determine which figi is maximumu liquiditiy
2022-09-20 17:59:24 +03:00
3e907b2004 changes related to shares analyzer
added stats path
added shares stats ptah
2022-09-20 11:24:22 +03:00
76c495e933 moved dataloader (may revise later) 2022-09-19 14:14:43 +03:00
3b3a487b0f changed signature of marketdata constants 2022-09-19 14:14:35 +03:00
7eb13b8542 moved notebooks to another place 2022-09-19 14:14:12 +03:00
b9e3cf783f changed pyproject.toml
updated poetry lock
2022-09-19 14:13:45 +03:00
281bf039f7 misc changes related to ide 2022-09-19 14:13:16 +03:00
d759da0d1a constants revision
changed constants placement
added credeentials to constants
added seeral folders for scripts
2022-09-19 14:13:00 +03:00
12657d5598 moved scripts 2022-09-19 14:12:14 +03:00
417d63a8b9 added respective gitignores 2022-09-18 21:20:21 +03:00
4c1282075e added environment.yml file 2022-09-18 21:06:01 +03:00
74c05149a8 deleted SHIT 2022-08-20 16:26:09 +03:00
f3ac721f43 Create test 2022-08-20 16:26:36 +03:00
030631abc1 Merge branch 'add_anaconda_support' 2022-08-18 15:12:55 +03:00
27bb797932 added environment.yml file 2022-08-18 12:06:11 +03:00
8a2a2615ac commented getextremum
realized the algorithm in get mean
2022-08-14 14:40:15 +03:00
4ad23a9bea commented init
fixed mutability
commented getans
2022-08-13 16:28:04 +03:00