How stahk-collab/deribit_order_management works
Main Components
a) Client Application Layer:
• Main C++ application components:
• OrderManager (order_manager.h/cpp)
• WebSocketServer (websocket_server.h/cpp)
• Utils (utils.h/cpp)
• Configuration (config.h)
b) External Services Layer:
• Deribit API (Test Environment)
• Authentication Service
• Order Management Services
• Market Data Services
[Client Application]
• [Core Components]
• [Order Manager]
• [WebSocket Server]
• [Utils]
• [Configuration]
• [API Credentials]
• [External Interface]
• [HTTP/WebSocket Client]
• v
[Deribit API Gateway]
• [Authentication Service]
• [Order Services]
• Place Order
• Cancel Order
• Modify Order
• Get Positions
• [Market Data Services]
• Order Book
Component Relationships
• Data flow between OrderManager and WebSocket Server
• Authentication flow from client to Deribit API
• Order execution flow
• Market data flow
• Configuration dependencies
Specific Implementation Details
a) Client Components:
• OrderManager as the central component
• WebSocket Server handling real-time communications
• Utils providing support functions
• Config.h feeding credentials
b) API Integration:
• Six main API endpoints:
• Authentication
• Order
• Cancel Order
• Modify Order
• Get Order Book
• Get Positions
Technical Specifications
• C++ (11 or later)
• cURL dependency
• nlohmann/json library
• CMake build system
• vcpkg package manager