* Add FundingRate interfaces and worker * Add build on PR * Remove zip * Specify the solution path * Add build for worker too * Set up StatisticService.cs for funding rate * Add Fundingrate alerts * Send alert when big funding rate change + add SlashCommands.cs for fundingrate * Remove fixtures * Refact names * Renames
29 lines
1.0 KiB
Markdown
29 lines
1.0 KiB
Markdown
```mermaid
|
|
sequenceDiagram
|
|
participant User
|
|
participant DeltaNeutralWatcher as Delta Neutral Watcher
|
|
participant GMX as GMX Exchange
|
|
participant Hyperliquid as Hyperliquid Exchange
|
|
participant Database
|
|
participant TradeBot as Trade Bot
|
|
|
|
User->>DeltaNeutralWatcher: Start Bot
|
|
|
|
loop Watcher
|
|
DeltaNeutralWatcher->>GMX: Request Market Data
|
|
DeltaNeutralWatcher->>Hyperliquid: Request Market Data
|
|
GMX-->>DeltaNeutralWatcher: Provide Market Data
|
|
Hyperliquid-->>DeltaNeutralWatcher: Provide Market Data
|
|
DeltaNeutralWatcher->>DeltaNeutralWatcher: Check Delta Neutral Opportunities
|
|
DeltaNeutralWatcher->>Database: Save Opportunities
|
|
end
|
|
|
|
loop Bot
|
|
TradeBot->>Database: Fetch Opportunities
|
|
TradeBot->>GMX: Send Orders for Long Position
|
|
TradeBot->>Hyperliquid: Send Orders for Short Position
|
|
GMX-->>TradeBot: Execution Report
|
|
Hyperliquid-->>TradeBot: Execution Report
|
|
TradeBot->>Database: Fetch for Better Opportunities
|
|
end
|
|
``` |