Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added 4 New Plugins, #41

Open
wants to merge 15 commits into
base: master
Choose a base branch
from
Open

Added 4 New Plugins, #41

wants to merge 15 commits into from

Conversation

prakash8083
Copy link
Collaborator

  1. BitStamp
  2. Gemini
  3. Kraken
  4. KuCoin

Prakash Sharma and others added 15 commits January 27, 2025 14:18
1. BitStamp
2. Gemini
3. Kraken
4. KuCoin
moved user order to private functions
added binance private orders.
Significantly refactored codebase to improve performance, thread-safety, and maintainability. Commented out or removed various analytical functionalities, including statistical calculations and PnL calculations. Introduced new classes and methods for better handling of positions and orders, and improved concurrency control using `ReaderWriterLockSlim`.

Enhanced unit testing capabilities by adding new test classes and methods to validate order book updates, position management, and private message handling. Introduced a new testing framework project targeting .NET 8.0, including methods for injecting test data and executing scenarios.

Updated project and solution files to reflect the inclusion of new resources and the removal of obsolete references. Improved logging and subscription mechanisms in `GenericTradesRetriever` and refactored `KuCoinPlugin` for better sequence handling and unit testing support.
- Added `throw` statement in `HelperOrderBook.cs` after logging errors.
- Added new constructor and `FilledPrice` property in `Order.cs`.
- Removed unnecessary `using` directives in `Position.cs`.
- Added scenarios to `eTestingPrivateMessageScenario` enum.
- Updated various package versions in multiple project files.
- Introduced `ITestOutputHelper` in `MarketDataTests.cs` for logging.
- Refactored `PrivateMessageTests.cs` to streamline namespaces.
- Implemented `IDataRetrieverTestable` interface in `GeminiPlugin.cs` and `KrakenPlugin.cs`.
- Added new test class `PluginFunctionalTests` and `JsonParser` class.
- Added JSON scenarios for order execution updates.
- Updated `App.config` and `demoTradingCore.csproj` for bindingRedirects and HintPaths.
- Added detailed order execution snapshots in `PrivateMessages_Scenario9.json`.
Added a validation check in `Position.cs` to ensure that the symbol of a new execution order matches the symbol of the position.

Introduced new test methods in `MarketDataTests.cs` and `PositionTests.cs` to verify various scenarios including handling of combined market data deltas, adding orders with different symbols, updating mid prices, FIFO order aggregation, and updating non-existing orders.

Corrected exposure and net position calculations to ensure they are positive and fixed the status assertion to check for `CANCELED` instead of `FILLED` in `PrivateMessageTests.cs`.
- Added `Reset` method to `HelperOrderBook` to unsubscribe all subscribers.
- Updated `PluginFunctionalTests.cs` to include `VisualHFT.Commons.Helpers` and removed `System.Reflection.Metadata`.
- Added calls to `HelperOrderBook.Instance.Reset()` in multiple test cases in `PluginFunctionalTests.cs`.
- Added exception handling in `Test_Plugin_CheckForCrossSpreadAfter5secs_Async` to ensure order book is not null after 10 seconds.
- Updated project reference in `VisualHFT.DataRetriever.TestingFramework.csproj` to include `MarketConnectors.KuCoin` instead of `MarketConnectors.Kraken`.
- Modified `KuCoinPlugin.cs` to manage event buffer consumer during order book snapshot loading.
- Added multiple new JSON message scenarios to `MarketConnectors.KuCoin.csproj` and ensured they are copied to the output directory.
- Updated `PrivateMessages_Scenario1.json` with new order change messages.
- Added empty JSON arrays to several scenario files.
- Added new order change messages to `PrivateMessages_Scenario3.json`.
Refactored `DeleteLevel` in `OrderBook.cs` to include `EntryID` checks and updated logic. Enhanced `MarketDataTests.cs` with `EntryID` values. Introduced `ITestOutputHelper` in `PrivateMessageTests.cs` for detailed test output. Updated `VisualHFT.DataRetriever.TestingFramework.csproj` with new project references.

Enhanced `BitfinexPlugin.cs` with new using directives, implemented `IDataRetrieverTestable`, and refactored to use `BitfinexRawOrderBookEntry`. Added methods for unit testing and JSON files for private message scenarios. Removed order execution updates from multiple JSON files and completely removed `PrivateMessages_Scenario9.json`.

Updated JSON file paths in `KrakenPlugin.cs`, `MarketConnectors.Kraken.csproj`, `KuCoinPlugin.cs`, and `MarketConnectors.KuCoin.csproj`. Added new JSON data to various `PrivateMessages_Scenario` files and marked some scenarios as invalid. Added empty JSON arrays to several scenario files.
- Enhanced test output readability and ensured clear logging of successful test executions.
- Improved robustness and clarity of the test suite.
Implemented Test Cases for Binance
Added Testing Messages in Gemini
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant