Add funding rate watcher (#2)
* 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
This commit is contained in:
29
assets/documentation/DeltaNeutralWorker.md
Normal file
29
assets/documentation/DeltaNeutralWorker.md
Normal file
@@ -0,0 +1,29 @@
|
||||
```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
|
||||
```
|
||||
Reference in New Issue
Block a user