docker files fixes from liaqat

This commit is contained in:
alirehmani
2024-05-03 16:39:25 +05:00
commit 464a8730e8
587 changed files with 44288 additions and 0 deletions

View File

@@ -0,0 +1,39 @@
namespace Managing.Common
{
public class Constants
{
public class DiscordSlashCommand
{
public const string Leaderboard = "leaderboard";
public const string Noobiesboard = "noobiesboard";
public const string LeaderboardPosition = "leaderboardposition";
}
public class DiscordButtonAction
{
public const string OpenPosition = "openposition";
public const string ClosePosition = "closeposition";
public const string CopyPosition = "ctp";
}
public class Databases
{
public const string InfluxDb = "InfluxDb";
public const string MongoDb = "ManagingDatabase";
}
public class Chains
{
public const string Ethereum = "Ethereum";
public const string Arbitrum = "Arbitrum";
public const string ArbitrumGoerli = "ArbitrumGoerli";
public const string Goerli = "Goerli";
}
public class Stablecoins
{
public const string Usd = "USD";
public const string Usdt = "USDT";
}
}
}

View File

@@ -0,0 +1,343 @@
namespace Managing.Common;
public static class Enums
{
public enum TradingExchanges
{
Binance,
Kraken,
Ftx,
Evm
}
public enum GmxOrderType
{
Increase,
Decrease,
Swap
}
public enum SubgraphProvider
{
UniswapV2,
ChainlinkPrice,
ChainlinkGmx,
Gbc
}
public enum WorkerAction
{
Start,
Stop
}
public enum AccountType
{
Cex,
Trader,
Watch,
Auth
}
public enum BotType
{
SimpleBot,
ScalpingBot,
FlippingBot
}
public enum StrategyType
{
RsiDivergence,
RsiDivergenceConfirm,
MacdCross,
EmaCross,
ThreeWhiteSoldiers,
SuperTrend,
ChandelierExit,
EmaTrend,
Composite,
StochRsiTrend,
Stc,
StDev
}
public enum SignalType
{
Signal,
Trend,
Context
}
public enum BotStatus
{
Down,
Starting,
Up
}
public enum SignalStatus
{
WaitingForPosition,
PositionOpen,
Expired
}
public enum Confidence
{
Low,
Medium,
High,
None
}
public enum TradeDirection
{
None,
Short,
Long
}
public enum RiskLevel
{
Low,
Medium,
High,
Adaptive
}
public enum TradeType
{
//
// 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
SettlePosition = 13
}
public enum TradeStatus
{
PendingOpen = 0,
Requested = 1,
Cancelled = 2,
Filled = 3,
}
public enum PositionStatus
{
New = 0,
Canceled = 1,
Rejected = 2,
Updating = 3,
PartiallyFilled = 4,
Filled = 5,
Flipped = 6,
Finished = 7
}
public enum PositionInitiator
{
PaperTrading,
Bot,
User,
CopyTrading
}
public enum Timeframe
{
/// <summary>
/// 5m
/// </summary>
FiveMinutes,
/// <summary>
/// 15m
/// </summary>
FifteenMinutes,
/// <summary>
/// 30m
/// </summary>
ThirtyMinutes,
/// <summary>
/// 1h
/// </summary>
OneHour,
/// <summary>
/// 4h
/// </summary>
FourHour,
/// <summary>
/// 1d
/// </summary>
OneDay,
}
public enum Ticker
{
ADA,
APE,
ALICE,
ALGO,
ATOM,
AVAX,
AXS,
BAT,
BNB,
BTC,
BAL,
C98,
CHR,
CHZ,
COMP,
CRO,
CRV,
CVC,
DEFI,
DOGE,
DOT,
DYDX,
ENS,
ETC,
ETH,
FIL,
FLM,
FTM,
GALA,
GMT,
GMX,
GRT,
HNT,
IMX,
JASMY,
KAVA,
KSM,
LDO,
LINK,
LOOKS,
LRC,
LTC,
MANA,
MATIC,
MKR,
NEAR,
NEO,
OMG,
ONE,
ONT,
QTUM,
REEF,
REN,
ROSE,
RSR,
RUNE,
SAND,
SOL,
SRM,
STMX,
SUSHI,
SXP,
THETA,
UNI,
USDC,
USDT,
VET,
WAVES,
XMR,
XRP,
XTZ,
YFI,
ZEC,
ZIL
}
public enum WorkerType
{
PriceOneMinute,
PriceFiveMinutes,
PriceFifteenMinutes,
PriceThirtyMinutes,
PriceOneHour,
PriceFourHour,
PriceOneDay,
TopVolumeTicker,
PositionManager,
Spotlight,
Fee,
PositionFetcher,
TraderWatcher,
LeaderboardWorker,
Noobiesboard
}
public enum WorkflowUsage
{
Trading,
Task
}
public enum FlowType
{
RsiDivergence,
FeedTicker,
OpenPosition
}
public enum FlowOutput
{
Signal,
Candles,
Position,
MoneyManagement
}
}

View File

@@ -0,0 +1,13 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net7.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Platforms>AnyCPU;x64</Platforms>
</PropertyGroup>
<ItemGroup>
<ProjectReference Include="..\Managing.Core\Managing.Core.csproj" />
</ItemGroup>
</Project>