Skip to content

Commit 8e9992c

Browse files
dYdX Brokerage basics (#2)
* add macOS-specific files to gitignore * rename TemplateBrokerage to dYdXBrokerage * implement preliminary dYdXBrokerage functionality including API clients and configuration * wip: GetAccountHoldings & GetExchangeInfo * skip symbols with commas in ticker in dYdXExchangeInfoDownloader * fixup naming * fix cs project file * Place & Cancel orders (#2) * add proto files, create a wallet * update dYdXBrokerage to support both REST and gRPC endpoints for node API and improve configuration usage * add gRPC proto files and implement basic gRPC client functionality for dYdX order broadcasts * refactor dYdXBrokerage with wallet-centric architecture; update API client methods to enhance flexibility and alignment with dYdX chain model * wip: sort usings * fetch public key id * get Gaz limit from order properties or default value * wip: add Market * update dYdXBrokerage to improve API client functionality, refine order processing, and enhance alignment with dYdX chain model * refactor dYdXBrokerage to implement order cancellation, improve order placement handling, and enhance resource cleanup with proper disposal patterns * Stream address data (#3) * Add WebSocket support for dYdX indexer, implement subscription/unsubscription functionality, and enhance dYdXBrokerage for live market data handling. * Refactor and enhance market subscription handling, improve WebSocket message processing, and introduce support for real-time oracle price updates. * Remove locks as ws messages handled in proper order and in thread safe manner. * change market ticker in csv file, use proper ticker name, bot ids * Refactor `dYdXBrokerage` to support open order retrieval, enhance order parsing, and improve market handling with string-based tickers. * Refactor `dYdXBrokerage` with improved order handling, add block height tracking, update market refresh logic, and introduce subaccount message processing. * Enhance `dYdXBrokerage` order handling: refine fills, improve order status parsing, handle additional fields in message processing, and update DTOs for compatibility. * add defaults for dydx node * add validation for dYdX subscription * Update project files for dYdXBrokerage integration, including proper naming and project references * Remove mnemonic-based wallet support in `dYdXBrokerage` and associated tests and refactor. * remove frommnemonic builder method * remove unused IDataQueueUniverseProvider * Refactor `dYdXBrokerage`: improve logging, enhance `IDataAggregator` dependency resolution, update configuration defaults for mainnet, and add metadata file for dYdX integration. * Refactor `dYdXBrokerage`: improve order handling by extracting gas limit earlier, enhance fill processing with additional validations, and update fee property handling. * Refactor `dYdXBrokerage`: replace lazy initialization with direct instantiation to simplify client creation, add validation for chainId and enhanced DTOs, and improve resource cleanup logic.
1 parent 120fa2d commit 8e9992c

File tree

105 files changed

+7181
-638
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

105 files changed

+7181
-638
lines changed

.gitignore

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,9 @@
6565
*.sln.docstates
6666
*.userprefs
6767

68+
# OS-specific files
69+
**/.DS_Store
70+
6871
# Build results
6972
[Dd]ebug/
7073
[Dd]ebugPublic/
@@ -189,7 +192,7 @@ publish/
189192
# Publish Web Output
190193
*.[Pp]ublish.xml
191194
*.azurePubxml
192-
# TODO: Comment the next line if you want to checkin your web deploy settings
195+
# TODO: Comment the next line if you want to checkin your web deploy settings
193196
# but database connection strings (with potential passwords) will be unencrypted
194197
*.pubxml
195198
*.publishproj

QuantConnect.TemplateBrokerage.Tests/InteractiveBrokersBrokerageRegressionAlgorithm.cs

Lines changed: 0 additions & 40 deletions
This file was deleted.

QuantConnect.TemplateBrokerage.Tests/TemplateBrokerageTests.cs

Lines changed: 0 additions & 104 deletions
This file was deleted.

QuantConnect.TemplateBrokerage.Tests/config.json

Lines changed: 0 additions & 3 deletions
This file was deleted.

QuantConnect.TemplateBrokerage.ToolBox/TemplateExchangeInfoDownloader.cs

Lines changed: 0 additions & 40 deletions
This file was deleted.

QuantConnect.TemplateBrokerage/QuantConnect.TemplateBrokerage.csproj

Lines changed: 0 additions & 32 deletions
This file was deleted.

0 commit comments

Comments
 (0)