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:
Oda
2024-07-19 08:31:09 +07:00
committed by GitHub
parent 545c9d8e4a
commit 029ba5f40e
41 changed files with 914 additions and 304 deletions

View File

@@ -113,54 +113,67 @@ public static class Enums
// Summary:
// Limit order
Limit = 0,
//
// Summary:
// Symbol order
Market = 1,
//
// Summary:
// Stop market order
StopMarket = 2,
//
// Summary:
// Stop limit order
StopLimit = 3,
//
// Summary:
// Stop loss order
StopLoss = 4,
//
// Summary:
// Take profit order
TakeProfit = 5,
//
// Summary:
// Stop loss profit order
StopLossProfit = 6,
//
// Summary:
// Stop loss profit limit order
StopLossProfitLimit = 7,
//
// Summary:
// Stop loss limit order
StopLossLimit = 8,
//
// Summary:
// Take profit limit order
TakeProfitLimit = 9,
//
// Summary:
// Trailing stop order
TrailingStop = 10,
//
// Summary:
// Trailing stop limit order
TrailingStopLimit = 11,
//
// Summary:
// Stop loss and limit order
StopLossAndLimit = 12,
//
// Summary:
// Settle position
@@ -201,22 +214,27 @@ public static class Enums
/// 5m
/// </summary>
FiveMinutes,
/// <summary>
/// 15m
/// </summary>
FifteenMinutes,
/// <summary>
/// 30m
/// </summary>
ThirtyMinutes,
/// <summary>
/// 1h
/// </summary>
OneHour,
/// <summary>
/// 4h
/// </summary>
FourHour,
/// <summary>
/// 1d
/// </summary>
@@ -225,25 +243,20 @@ public static class Enums
public enum Ticker
{
AAVE,
ADA,
APE,
ALICE,
ALGO,
ARB,
ATOM,
AVAX,
AXS,
BAT,
BNB,
BTC,
BAL,
C98,
CHR,
CHZ,
COMP,
CRO,
CRV,
CVC,
DEFI,
DOGE,
DOT,
DYDX,
@@ -254,29 +267,22 @@ public static class Enums
FLM,
FTM,
GALA,
GMT,
GMX,
GRT,
HNT,
IMX,
JASMY,
KAVA,
KSM,
LDO,
LINK,
LOOKS,
LRC,
LTC,
MANA,
MATIC,
MKR,
NEAR,
NEO,
OMG,
ONE,
ONT,
OP,
PEPE,
QTUM,
REEF,
REN,
ROSE,
RSR,
@@ -284,23 +290,17 @@ public static class Enums
SAND,
SOL,
SRM,
STMX,
SUSHI,
SXP,
THETA,
UNI,
USDC,
USDT,
VET,
WAVES,
WIF,
XMR,
XRP,
XTZ,
YFI,
ZEC,
ZIL
}
public enum WorkerType
{
PriceOneMinute,
@@ -318,7 +318,8 @@ public static class Enums
TraderWatcher,
LeaderboardWorker,
Noobiesboard,
BotManager
BotManager,
FundingRatesWatcher
}
public enum WorkflowUsage
@@ -341,5 +342,4 @@ public static class Enums
Position,
MoneyManagement
}
}
}