{"id":19287972,"url":"https://github.com/pedrosfaria2/python_drop_copy","last_synced_at":"2025-02-23T23:24:26.202Z","repository":{"id":248747306,"uuid":"829569780","full_name":"pedrosfaria2/python_drop_copy","owner":"pedrosfaria2","description":"A dropcopy in python using fix protocol","archived":false,"fork":false,"pushed_at":"2024-07-17T19:00:14.000Z","size":67,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-05T19:23:01.474Z","etag":null,"topics":["fix-protocol","high-frequency-trading","pytest","python","python3","quick-fix","rich","test-driven-development","testing","trading","unit-testing"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pedrosfaria2.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-07-16T17:42:32.000Z","updated_at":"2024-07-18T00:37:13.000Z","dependencies_parsed_at":"2024-07-16T22:48:11.780Z","dependency_job_id":"ca7ba3ed-8f1a-4ce1-9d65-563a430afee7","html_url":"https://github.com/pedrosfaria2/python_drop_copy","commit_stats":null,"previous_names":["pedrosfaria2/python_drop_copy"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pedrosfaria2%2Fpython_drop_copy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pedrosfaria2%2Fpython_drop_copy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pedrosfaria2%2Fpython_drop_copy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pedrosfaria2%2Fpython_drop_copy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pedrosfaria2","download_url":"https://codeload.github.com/pedrosfaria2/python_drop_copy/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240392694,"owners_count":19794139,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["fix-protocol","high-frequency-trading","pytest","python","python3","quick-fix","rich","test-driven-development","testing","trading","unit-testing"],"created_at":"2024-11-09T22:07:43.386Z","updated_at":"2025-02-23T23:24:25.823Z","avatar_url":"https://github.com/pedrosfaria2.png","language":"Python","readme":"\n# FIX Client Drop Copy\n\nThis project is a FIX (Financial Information Exchange) client application designed for drop copy functionalities. It utilizes the QuickFIX library for handling FIX messages and provides a user-friendly interface for interacting with the client, sending ResendRequests, managing log files, and handling secondary hosts for disaster recovery.\n\n## Features\n\n- Logon and logout clients.\n- Send ResendRequest messages to clients.\n- Handle secondary hosts for disaster recovery.\n- Consolidate log files.\n- User-friendly command-line interface using the Rich library.\n\n## Requirements\n\n- Python 3.8+\n- QuickFIX\n- Rich\n\n## Installation\n\n1. Clone the repository:\n\n    ```sh\n    git clone https://github.com/pedrosfaria2/python_drop_copy.git\n    cd python_drop_copy\n    ```\n\n2. Configure your FIX sessions in `config.yaml` and `config.cfg`.\n\n## Configuration\n\n### `config.yaml`\n\nThis YAML file defines the sessions and their respective configuration files.\n\n```yaml\nsessions:\n  - config_file: \"path/to/your/fix1.cfg\"\n  - config_file: \"path/to/your/fix2.cfg\"\n  # Add more sessions as needed\n```\n\n### `config.cfg`\n\nThis is an example of a session configuration file.\n\n```ini\n[DEFAULT]\nConnectionType=initiator\nReconnectInterval=60\nFileStorePath=store\nFileLogPath=log\nStartTime=00:00:00\nEndTime=00:00:00\nUseDataDictionary=Y\nDataDictionary=data/FIX44.xml\nResetOnLogon=Y\nResetOnLogout=Y\n\n[SESSION]\nBeginString=FIX.4.4\nTargetCompID=ABCDE1234\nSenderCompID=FGHYJ6789\nRawData=password\nHeartBtInt=30\nSocketConnectPort=port\nSocketConnectHostPrimary=primary_ipAddress\nSocketConnectHostSecondary=secondary_ipAddress\nEncryptMethod=0\nRawDataLength=len(RawData)\nResetSeqNumFlag=Y\n```\n\n## Usage\n\n1. Run the main script:\n\n    ```sh\n    python main.py\n    ```\n\n2. Follow the on-screen instructions to logon, send ResendRequests, and logout.\n\n## Project Structure\n\n```plaintext\npython_drop_copy\n├── src/\n│   ├── fix_application.py\n│   ├── fix_client.py\n│   ├── menu.py\n│   ├── fix_field.py\n│   ├── fix_message.py\n├── config.yaml\n├── config.cfg\n├── main.py\n└── tests/\n    ├── test_fix_application.py\n    ├── test_fix_client.py\n    ├── test_main.py\n```\n\n## Testing\n\nUnit tests are included. To run the tests, use the following command:\n\n```sh\npytest\n```\n\n## Scripts\n\n### `main.py`\n\nThis is the entry point of the application. It loads the client configurations and displays the main menu.\n\n### `src/fix_application.py`\n\nDefines the `FIXApplication` class, which handles FIX message events and logging.\n\n### `src/fix_client.py`\n\nDefines the `FIXClient` class, which manages the FIX session, sends messages, and handles secondary hosts for disaster recovery.\n\n### `src/menu.py`\n\nHandles the user interface and interactions using the Rich library.\n\n## License\n\nThis project is licensed under the MIT License. See the [LICENSE](LICENSE) file for details.\n\n## Acknowledgments\n\n- [QuickFIX](http://www.quickfixengine.org/) - The FIX protocol engine.\n- [Rich](https://github.com/Textualize/rich) - Python library for rich text and beautiful formatting in the terminal.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpedrosfaria2%2Fpython_drop_copy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpedrosfaria2%2Fpython_drop_copy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpedrosfaria2%2Fpython_drop_copy/lists"}