Data Objects

Market Data

Market

1
public class Market
2
{
3
public EnumPriceSource PriceSource { get; set; }
4
public string PrimaryCurrency { get; set; }
5
public string SecondaryCurrency { get; set; }
6
public string ContractName { get; set; }
7
8
public string DisplayName { get; set; }
9
public string ShortName { get; set; }
10
11
public int AmountDecimals { get; set; }
12
public int PriceDecimals { get; set; }
13
public decimal MinimumTradeAmount { get; set; }
14
public decimal MinimumTradeVolume { get; set; }
15
16
public decimal TradeFee { get; set; }
17
public int SettlementDate { get; set; }
18
}
Copied!

Orderbook

1
public class Orderbook
2
{
3
public DateTime Timestamp { get; set; }
4
public long UnixLastUpdate { get; set; }
5
6
public Market PriceMarket { get; set; }
7
public List<OrderbookRecord> Bid { get; set; }
8
public List<OrderbookRecord> Ask { get; set; }
9
}
Copied!

Orderbook

1
public class OrderbookRecord
2
{
3
public decimal Price { get; set; }
4
public decimal Amount { get; set; }
5
}
Copied!

PriceTick

1
public class PriceTick
2
{
3
public DateTime Timestamp { get; set; }
4
public long UnixTimestamp { get; set; }
5
6
public decimal Open { get; set; }
7
public decimal HighValue { get; set; }
8
public decimal LowValue { get; set; }
9
public decimal Close { get; set; }
10
public decimal Volume { get; set; }
11
12
public decimal CurrentBuyValue { get; set; }
13
public decimal CurrentSellValue { get; set; }
14
}
Copied!

Trade

1
public class Trade
2
{
3
public DateTime Timestamp { get; set; }
4
public long UnixTimestamp { get; set; }
5
6
public EnumTradeType TradeType { get; set; }
7
public decimal Price { get; set; }
8
public decimal Amount { get; set; }
9
}
Copied!

TradeContainer

1
public class TradeContainer
2
{
3
public DateTime Timestamp { get; set; }
4
public long UnixTimestamp { get; set; }
5
6
public List<Trade> LastTrades { get; set; }
7
}
Copied!

Account Data

AccountInformation

1
public class AccountInformation
2
{
3
public string Guid { get; set; }
4
public string Name { get; set; }
5
public EnumPlatformType PlatformType { get; set; }
6
public EnumPriceSource ConnectedPriceSource { get; set; }
7
8
public bool IsSimulatedAccount { get; set; }
9
public Dictionary<string, string> AvailableOrderTemplates { get; set; }
10
}
Copied!

Wallet

1
public class Wallet
2
{
3
public Dictionary<string, decimal> Coins { get; set; }
4
public Dictionary<string, Position> Positions { get; set; }
5
}
Copied!

Position

1
public class Position
2
{
3
[JsonProperty("Position")]
4
public EnumFundsPosition Side { get; set; }
5
public decimal UsedMargin { get; set; }
6
public decimal Amount { get; set; }
7
public decimal Leverage { get; set; }
8
public Market PriceMarket { get; set; }
9
public decimal InvestmentPrice { get; set; }
10
public decimal ProfitLossRatio { get; set; }
11
public decimal ProfitLossNow { get; set; }
12
public decimal MarginCallPrice { get; set; }
13
public string AmountLabel { get; set; }
14
public string ProfitLabel { get; set; }
15
}
Copied!

OrderContainer

1
public class OrderContainer
2
{
3
[JsonProperty("ExchangeOrderList")]
4
public Dictionary<string, BaseOrder> SpotOrders { get; set; }
5
6
[JsonProperty("MarginOrderList")]
7
public Dictionary<string, BaseOrder> MarginOrders { get; set; }
8
9
[JsonProperty("LeverageOrderList")]
10
public Dictionary<string, BaseOrder> LeverageOrders { get; set; }
11
}
Copied!

BaseOrder

1
public class BaseOrder
2
{
3
public Market Market { get; set; }
4
public string OrderId { get; set; }
5
public EnumOrderStatus OrderStatus { get; set; }
6
7
public EnumOrderType OrderType { get; set; }
8
public EnumFundsMovingPosition FundsMovement { get; set; }
9
10
public decimal Price { get; set; }
11
public decimal Amount { get; set; }
12
public decimal AmountFilled { get; set; }
13
14
public DateTime AddedTime { get; set; }
15
public int UnixAddedTime { get; set; }
16
}
Copied!

Trade Bot Data

Trade Bot

1
public class TradeBot
2
{
3
public EnumBotType BotType { get; set; }
4
public string GUID { get; set; }
5
6
public string Name { get; set; }
7
public string AccountId { get; set; }
8
9
public bool Activated { get; set; }
10
public decimal CurrentTradeAmount { get; set; }
11
public decimal CurrentFeePercentage { get; set; }
12
13
public EnumCoinsPosition CoinsPosition { get; set; }
14
public EnumFundsPosition FundsPosition { get; set; }
15
16
public decimal LastBuyPrice { get; set; }
17
public decimal LastSellPrice { get; set; }
18
19
public decimal LastLongPrice { get; set; }
20
public decimal LastShortPrice { get; set; }
21
22
public bool AdjustAmountDown { get; set; }
23
public EnumLimitOrderPriceType LimitOrderType { get; set; }
24
25
public int OpenOrderTimeout { get; set; }
26
public int TemplateTimeout { get; set; }
27
public bool GoAllIn { get; set; }
28
29
public List<string> IssuedOrders { get; set; }
30
public List<BaseOrder> CompletedOrders { get; set; }
31
32
public decimal ROI { get; set; }
33
public decimal TotalFeeCosts { get; set; }
34
public decimal TotalProfits { get; set; }
35
36
public decimal LastPriceUpdate { get; set; }
37
public decimal ContractValue { get; set; }
38
public string GroupName { get; set; }
39
40
public TradeBotSignals BotSignals { get; set; }
41
42
public List<string> BotLogBook { get; set; }
43
44
public Market PriceMarket { get; set; }
45
public decimal Leverage { get; set; }
46
47
public int UnixSettlementDate { get; set; }
48
49
public bool HighFrequencyUpdates { get; set; }
50
public bool UseHiddenOrders { get; set; }
51
52
public string BuyOrderTemplateId { get; set; }
53
public string SellOrderTemplateId { get; set; }
54
55
public string EnterPositionOrderTemplateId { get; set; }
56
public string ExitPositionOrderTemplateId { get; set; }
57
58
public string ProfitLabel { get; set; }
59
60
public string Notes { get; set; }
61
public bool Locked { get; set; }
62
public uint ActivatedSince { get; set; }
63
public uint DeactivatedSince { get; set; }
64
public bool ConsensusMode { get; set; }
65
66
public Dictionary<string, Safety> Safeties { get; set; }
67
public Dictionary<string, Indicator> Indicators { get; set; }
68
public Dictionary<string, Insurance> Insurances { get; set; }
69
}
Copied!

TradeBotSignals

1
public class TradeBotSignals
2
{
3
public bool PriceSourceConnected { get; set; }
4
5
public bool AccountConnected { get; set; }
6
public bool TradeAmountOk { get; set; }
7
public bool OpenOrdersOk { get; set; }
8
public bool InBenchmark { get; set; }
9
public bool IsSafetySignalNow { get; set; }
10
11
public decimal MaxLongAmount { get; set; }
12
public decimal MaxNoPositionAmount { get; set; }
13
public decimal MaxShortAmount { get; set; }
14
15
public decimal MaxBuyAmount { get; set; }
16
public decimal MaxSellAmount { get; set; }
17
18
public int BotBuySellSignal = 50;
19
public int BotLongShortSignal = 50;
20
21
public DateTime LastPollMoment { get; set; }
22
public int UnixLastPollMoment { get; set; }
23
24
public EnumBotTradeResult BuySellResult { get; set; }
25
public EnumFundsPosition LongShortResult { get; set; }
26
}
Copied!

Custom Bots

AccumulationBot

1
public class AccumulationBot : BaseCustomBot
2
{
3
public int AmountDecimals { get; set; }
4
public int PriceDecimals { get; set; }
5
6
public long NextOrderTime { get; set; }
7
8
public EnumOrderType OrderType { get; set; }
9
public decimal AccumulatedSoFar { get; set; }
10
11
public EnumAccumulationBotStopType StopType { get; set; }
12
public decimal StopTypeValue { get; set; } = 0.0M;
13
14
public int RandomOrderTimeX { get; set; } = 1;
15
public int RandomOrderTimeY { get; set; } = 60;
16
17
public decimal RandomOrderSizeX { get; set; } = 1;
18
public decimal RandomOrderSizeY { get; set; } = 60;
19
20
public bool TriggerOnPrice { get; set; }
21
public bool TriggerWhenHigher { get; set; }
22
public decimal TriggerValue { get; set; }
23
}
Copied!

BaseCustomBot

1
public class BaseCustomBot
2
{
3
public EnumCustomBotType BotType { get; set; }
4
public bool IsBacktesting { get; set; }
5
public string GUID { get; set; }
6
public string Name { get; set; }
7
public string AccountId { get; set; }
8
public Market PriceMarket { get; set; }
9
public decimal Leverage { get; set; }
10
11
public EnumCoinsPosition CoinPosition { get; set; }
12
public EnumFundsPosition FundsPosition { get; set; }
13
14
15
public decimal CurrentTradeAmount { get; set; }
16
public decimal CorrectedTradeAmount { get; set; }
17
public EnumBotTradeAmount AmountType { get; set; }
18
19
public decimal LastBuyPrice { get; set; }
20
public decimal LastSellPrice { get; set; }
21
22
23
public decimal CurrentFeePercentage { get; set; }
24
public int SettlementDate { get; set; }
25
public virtual string ProfitLabel { get; set; }
26
public bool Activated { get; set; }
27
public uint ActivatedSince { get; set; }
28
public uint DeactivatedSince { get; set; }
29
public bool StatusPriceSourceOk { get; set; }
30
public bool StatusAccountOk { get; set; }
31
public bool OpenOrdersOk { get; set; }
32
public bool WalletOk { get; set; }
33
34
public string OpenOrderId { get; set; }
35
public decimal TotalFeeCosts { get; set; }
36
public decimal TotalProfits { get; set; }
37
public decimal ROI { get; set; }
38
39
public decimal LastPriceUpdate { get; set; }
40
public decimal ContractValue { get; set; }
41
public long LastUpdateTime { get; set; }
42
43
public string GroupName { get; set; }
44
public string Notes { get; set; }
45
46
public virtual string CustomTemplate { get; set; }
47
48
public List<string> BotLogBook { get; set; }
49
public List<BaseOrder> CompletedOrders { get; set; }
50
}
Copied!

CryptoIndexBot

1
public class CryptoIndexBot : BaseCustomBot
2
{
3
public string BaseCoin { get; set; }
4
public decimal CurrentTradeAmount { get; set; }
5
public List<CryptoIndexBotIndex> Index { get; set; }
6
7
public decimal TotalExtraBuy { get; set; }
8
public decimal TotalExtraSell { get; set; }
9
10
public bool IndividualCoinGrowth { get; set; }
11
public bool AllocateProfits { get; set; }
12
public DateTime LastOrderTimestamp { get; set; }
13
14
public Dictionary<string, decimal> MappendIndexes { get; set; }
15
public Dictionary<string, CryptoIndexBotIndexResult> IndexResult { get; set; }
16
}
Copied!

EmailBot

1
public class EmailBot : BaseCustomBot
2
{
3
public List<EmailBotAction> Actions { get; set; }
4
public decimal StopLoss { get; set; }
5
public decimal StopLossPrice { get; set; }
6
7
// On leverage this is the minimum profit
8
public decimal PriceChangeToBuy { get; set; }
9
10
// On leverage this is the stop loss
11
public decimal PriceChangeToSell { get; set; }
12
public decimal PriceChangeTarget { get; set; }
13
14
public decimal MaximumLossOnPosition
15
{
16
get { return PriceChangeToBuy; }
17
set { }
18
}
19
20
public decimal MinimumProfitOnPosition
21
{
22
get { return PriceChangeToBuy; }
23
set { }
24
}
25
26
}
Copied!

FlashCrashBot

1
public class FlashCrashBot : BaseCustomBot
2
{
3
public Dictionary<int, SlotObject> Slots { get; set; }
4
public int BaseKey { get; set; }
5
6
public decimal TotalBuyAmount { get; set; }
7
public decimal TotalSellAmount { get; set; }
8
9
public decimal BasePrice { get; set; }
10
public bool IsStopping { get; set; }
11
12
public EnumFlashSpreadOptions PriceSpreadType { get; set; }
13
public decimal PriceSpread { get; set; }
14
public decimal PercentageBoost { get; set; }
15
16
public decimal AmountSpread { get; set; }
17
public int AmountDecimals { get; set; }
18
public int PriceDecimals { get; set; }
19
20
public EnumCurrencyType AmountType { get; set; }
21
public EnumFlashSpreadOptions AmountSpreadType { get; set; }
22
public int RefillDelay { get; set; }
23
24
public decimal MinPercentage { get; set; }
25
public decimal MaxPercentage { get; set; }
26
27
public bool QuickRestartPossible { get; set; }
28
29
public bool FollowTheTrend { get; set; }
30
public int FollowTheTrendTimeout { get; set; }
31
public int FollowTheTrendChannelRange { get; set; }
32
public int FollowTheTrendChannelOffset { get; set; }
33
34
public bool SafetyEnabled { get; set; }
35
public decimal SafetyTriggerLevel { get; set; }
36
37
public bool SafetyMoveInOut { get; set; }
38
public decimal SafetyMoveInOutTarget { get; set; }
39
}
Copied!

InterExchangeArbitrageBot

1
public class InterExchangeArbitrageBot : BaseCustomBot
2
{
3
public decimal CurrentFeePercentage2 { get; set; }
4
public decimal CurrentTradeAmount { get; set; }
5
public string AccountId2 { get; set; }
6
7
public Market PriceMarket2 { get; set; }
8
9
public decimal TriggerLevel { get; set; }
10
public bool MainAccountIsBought { get; set; }
11
12
public PriceTick LastTick { get; set; }
13
public PriceTick LastTick2 { get; set; }
14
15
public int PriceDecimals1 { get; set; }
16
public int PriceDecimals2 { get; set; }
17
18
public string OpenOrderIDMain { get; set; }
19
public string OpenOrderIDSecondairy { get; set; }
20
21
public decimal TotalTradesSoFar { get; set; }
22
public decimal MaxTradeAmount { get; set; }
23
public int MaxTradesPerDay { get; set; }
24
}
Copied!

MadHatterBot

1
public class MadHatterBot : BaseCustomBot
2
{
3
public int Interval { get; set; }
4
5
public decimal StopLoss { get; set; }
6
public decimal StopLossPrice { get; set; }
7
public bool DisableAfterStopLoss { get; set; }
8
9
public decimal PriceChangeToBuy { get; set; }
10
public decimal PriceChangeToSell { get; set; }
11
public decimal PriceChangeTarget { get; set; }
12
13
public Indicator Macd { get; set; }
14
public Indicator BBands { get; set; }
15
public Indicator Rsi { get; set; }
16
public bool UseTwoSignals { get; set; }
17
18
public EnumFundsPosition MappedBuySignal { get; set; }
19
public EnumFundsPosition MappedSellSignal { get; set; }
20
}
Copied!

MarketMarkingBot

1
public class MarketMarkingBot : BaseCustomBot
2
{
3
public decimal TradeAmount { get; set; }
4
public decimal CustomFee { get; set; }
5
6
public MarketMarkingBotSlot FirstOrder { get; set; }
7
public MarketMarkingBotSlot SecondOrder { get; set; }
8
9
public decimal FirstOffset { get; set; }
10
public decimal SecondOffset { get; set; }
11
12
public bool UseSecondOrder { get; set; }
13
public int ResetTimeout { get; set; }
14
15
public PriceTick LastTick { get; set; }
16
}
Copied!

OrderBot

1
public class OrderBot : BaseCustomBot
2
{
3
public List<OrderBotPreOrder> PreOrders { get; set; }
4
}
Copied!

ScalperBot

1
public class ScalperBot : BaseCustomBot
2
{
3
public decimal MinimumTargetChange { get; set; }
4
public decimal MaxAllowedReverseChange { get; set; }
5
}
Copied!

ScriptBot

1
public class ScriptBot : BaseCustomBot
2
{
3
public Dictionary<string, ScriptBotOrder> OpenOrders { get; set; }
4
5
public List<string> FinishedOrders { get; set; }
6
public List<string> CancelledOrders { get; set; }
7
public Dictionary<string, string> AvailableScript { get; set; }
8
9
public string ScriptId { get; set; }
10
public string FullScriptName { get; set; }
11
12
public List<IndicatorOption> BotSettings { get; set; }
13
public bool ScriptStatusOk { get; set; }
14
public string LocalScriptPath { get; set; }
15
16
public decimal LastLongBuyPrice { get; set; }
17
public decimal LastShortBuyPrice { get; set; }
18
public decimal LastLongSellPrice { get; set; }
19
public decimal LastShortSellPrice { get; set; }
20
}
Copied!

ZoneRecoveryBot

1
public class ZoneRecoveryBot : BaseCustomBot
2
{
3
public decimal FactorShort { get; set; }
4
public decimal FactorLong { get; set; }
5
public decimal ZoneFactor { get; set; }
6
public decimal TargetPercentage { get; set; }
7
public decimal TradeAmount { get; set; }
8
public decimal MaxTradeAmount { get; set; }
9
10
public decimal TriggerLevel { get; set; }
11
public bool UseMarketOrders { get; set; }
12
public bool RoundAmount { get; set; }
13
14
public decimal BasePrice { get; set; }
15
public EnumFundsPosition FirstAction { get; set; }
16
17
public List<ZoneDefinition> CalculatedZones { get; set; }
18
public decimal TakeLongPrice { get; set; }
19
public decimal GoLongPrice { get; set; }
20
public decimal GoShortPrice { get; set; }
21
public decimal TakeShortPrice { get; set; }
22
public List<OpenRecoveryPositionDefinition> TakenPositions { get; set; }
23
}
Copied!

Custom Bot Data Objects

CryptoIndexBotIndex

1
public class CryptoIndexBotIndex
2
{
3
public string Coin { get; set; }
4
public decimal Amount { get; set; }
5
6
public decimal StartPrice { get; set; }
7
public decimal ConversionRate { get; set; }
8
9
public decimal BuyThreshold { get; set; }
10
public decimal SellThreshold { get; set; }
11
12
public bool NeedsRebalancing { get; set; }
13
public bool HasOpenOrder { get; set; }
14
15
public bool IsStopLossActive { get; set; }
16
public decimal StopLoss { get; set; }
17
}
Copied!

CryptoIndexBotIndexResult

1
public class CryptoIndexBotIndexResult
2
{
3
public string Coin { get; set; }
4
public decimal InWallet { get; set; }
5
public decimal IndexValue { get; set; }
6
7
public bool Deactivated { get; set; } = false;
8
public decimal TargetPercentage { get; set; }
9
public decimal CurrentPercentage { get; set; }
10
}
Copied!

CryptoIndexBotIndexSaveObject

1
public class CryptoIndexBotIndexSaveObject
2
{
3
public string Coin { get; set; }
4
public decimal Amount { get; set; }
5
6
public decimal BuyThreshold { get; set; }
7
public decimal SellThreshold { get; set; }
8
public decimal StopLoss { get; set; }
9
}
Copied!

EmailBotAction

1
public class EmailBotAction
2
{
3
public string Guid { get; set; }
4
public string ProviderGuid { get; set; }
5
public List<EmailBotActionMessage> Messages { get; set; }
6
7
public int TimeoutInSeconds { get; set; }
8
9
public EnumBotTradeResult SpotAction { get; set; }
10
public EnumFundsMovingPosition LeverageAction { get; set; }
11
}
Copied!

EmailBotActionMessage

1
public class EmailBotActionMessage
2
{
3
public string Message { get; set; }
4
public long LastReceivedTime { get; set; }
5
public string TemplateGuid { get; set; }
6
}
Copied!

FlashCrashBotSaveObject

1
public class FlashCrashBotSaveObject
2
{
3
public string BotName { get; set; }
4
public string BotGuid { get; set; }
5
public string AccountId { get; set; }
6
public decimal Fee { get; set; }
7
public Market PriceMarket { get; set; }
8
9
public decimal BasePrice { get; set; }
10
public EnumFlashSpreadOptions PriceSpreadType { get; set; }
11
public decimal PriceSpread { get; set; }
12
public decimal PercentageBoost { get; set; }
13
public decimal MinPercentage { get; set; }
14
public decimal MaxPercentage { get; set; }
15
16
public EnumCurrencyType AmountType { get; set; }
17
public decimal AmountSpread { get; set; }
18
public decimal BuyAmount { get; set; }
19
public decimal SellAmount { get; set; }
20
public int RefillDelay { get; set; }
21
22
public bool SafetyEnabled { get; set; }
23
public decimal SafetyTriggerLevel { get; set; }
24
public bool SafetyMoveInOut { get; set; }
25
26
public bool FollowTheTrend { get; set; }
27
public int FollowTheTrendChannelRange { get; set; }
28
public int FollowTheTrendChannelOffset { get; set; }
29
public int FollowTheTrendTimeout { get; set; }
30
}
Copied!

Indicator

1
public class Indicator
2
{
3
public string GUID { get; set; }
4
public EnumIndicator IndicatorType { get; set; }
5
6
public string IndicatorName { get; set; }
7
public List<IndicatorOption> IndicatorInterface { get; set; }
8
9
public string IndicatorTypeShortName { get; set; }
10
public string IndicatorTypeFullName { get; set; }
11
12
public Market PriceMarket { get; set; }
13
public EnumPriceChartType ChartType { get; set; }
14
public int Timer { get; set; }
15
public int Deviation { get; set; }
16
17
18
public bool UseBuySignals { get; set; }
19
public bool UseSellSignals { get; set; }
20
public bool UseLongSignals { get; set; }
21
public bool UseNoPositionSignals { get; set; }
22
public bool UseShortSignals { get; set; }
23
24
public virtual bool ReverseSignals { get; set; }
25
public bool StandAlone { get; set; }
26
27
public EnumBotTradeResult BuySellResult { get; set; }
28
public EnumFundsPosition ShortLongResult { get; set; }
29
30
public EnumFundsPosition MappedLongSignal { get; set; }
31
public EnumFundsPosition MappedShortSignal { get; set; }
32
}
Copied!

IndicatorOption

1
public class IndicatorOption
2
{
3
public string Title { get; set; }
4
public string Value { get; set; }
5
public List<object> Options { get; set; }
6
}
Copied!

Insurance

1
public class Insurance
2
{
3
public string GUID { get; set; }
4
public EnumInsurances InsuranceType { get; set; }
5
6
public string InsuranceTypeShortName { get; set; }
7
public string InsuranceTypeFullName { get; set; }
8
public bool AgreeToTrade { get; set; }
9
public string InsuranceName { get; set; }
10
public List<IndicatorOption> InsuranceInterface { get; set; }
11
}
Copied!

MarketMarkingBotSlot

1
public class MarketMarkingBotSlot
2
{
3
public MarketMarkingBotSlotObject BuyOrder { get; set; }
4
public MarketMarkingBotSlotObject SellOrder { get; set; }
5
public decimal Offset { get; set; }
6
public bool Active { get; set; }
7
}
Copied!

MarketMarkingBotSlotObject

1
public class MarketMarkingBotSlotObject
2
{
3
public string OrderID { get; set; }
4
public decimal Price { get; set; }
5
public decimal TempAmount { get; set; }
6
public DateTime Timestamp { get; set; }
7
public bool Locked { get; set; }
8
}
Copied!

OpenRecoveryPositionDefinition

1
public class OpenRecoveryPositionDefinition
2
{
3
public decimal Amount { get; set; }
4
public decimal Price { get; set; }
5
public decimal TargetPrice { get; set; }
6
public string PositionId { get; set; }
7
}
Copied!

OrderBotPreOrder

1
public class OrderBotPreOrder : BaseOrder
2
{
3
public EnumOrderBotTriggerType Trigger { get; set; }
4
public decimal TriggerPrice { get; set; }
5
public string CustomTemplate { get; set; }
6
public string DependsOn { get; set; }
7
public string DependsOnNotExecuted { get; set; }
8
9
}
Copied!

Safety

1
public class Safety
2
{
3
public string GUID { get; set; }
4
public EnumSafety SafetyType { get; set; }
5
6
public string SafetyName { get; set; }
7
public string SafetyTypeShortName { get; set; }
8
public string SafetyTypeFullName { get; set; }
9
10
public Market PriceMarket { get; set; }
11
12
public EnumBotTradeResult BuySellResult { get; set; }
13
public EnumFundsPosition ShortLongResult { get; set; }
14
15
public EnumFundsPosition MapBuySignal { get; set; }
16
public EnumFundsPosition MapSellSignal { get; set; }
17
18
public List<IndicatorOption> SafetyInterface { get; set; }
19
}
Copied!

ScriptBotOrder

1
public class ScriptBotOrder
2
{
3
public string Guid { get; set; }
4
public decimal Price { get; set; }
5
public decimal Amount { get; set; }
6
public EnumOrderType OrderType { get; set; }
7
public EnumFundsMovingPosition FundsMovement { get; set; }
8
}
Copied!

SlotObject

1
public class SlotObject
2
{
3
public string OrderID { get; set; }
4
public decimal Price { get; set; }
5
public decimal Amount { get; set; }
6
public bool InUse { get; set; }
7
public bool ActiveSlot { get; set; }
8
public EnumSlotType Type { get; set; }
9
public bool WaitingForExecuting { get; set; }
10
public DateTime LockTimeStamp { get; set; }
11
public List<string> OrderIDs { get; set; }
12
}
Copied!

SoftwareInformation

1
public class SoftwareInformation
2
{
3
public bool IsBeta { get; set; }
4
public string VersionNumber { get; set; }
5
public EnumSoftwareLicence LicenceType { get; set; }
6
}
Copied!

ZoneDefinition

1
public class ZoneDefinition
2
{
3
public decimal Amount { get; set; }
4
public decimal Price { get; set; }
5
public decimal TargetPrice { get; set; }
6
7
public decimal ExposureNow { get; set; }
8
public decimal TakenProfit { get; set; }
9
public decimal TakenLosses { get; set; }
10
public decimal Exit { get; set; }
11
public decimal FeeCosts { get; set; }
12
}
Copied!

Advanced Orders Objects

AdvancedOrderBase

1
public class AdvancedOrderBase
2
{
3
public EnumPlatform PlatformType { get; set; }
4
5
public string Guid { get; set; }
6
public string Name { get; set; }
7
public bool Activated { get; set; }
8
9
public string AccountGuid { get; set; } = "";
10
public Market Market { get; set; } = new Market();
11
public decimal Leverage { get; set; }
12
13
public decimal Amount { get; set; }
14
public decimal CorrectedAmount { get; set; }
15
16
public int OrderDirection { get; set; }
17
18
public bool StartOrderOnActivation { get; set; }
19
public decimal StartOrderPrice { get; set; }
20
public string StartTemplateGuid { get; set; }
21
22
public bool IsPlacingStartOrder { get; set; }
23
public bool IsTracking { get; set; }
24
25
public virtual string TemplateGuid { get; set; }
26
27
public List<BaseOrder> CompletedOrders { get; set; }
28
}
Copied!

StopTakeProfitOrder

1
public class StopTakeProfitOrder : AdvancedOrderBase
2
{
3
/// <summary>
4
/// When this price is breached, a order will be executed
5
/// </summary>
6
public decimal TriggerPrice { get; set; }
7
8
/// <summary>
9
/// When a order is executed, this price will be used.
10
/// </summary>
11
public decimal ExecutionPrice { get; set; }
12
}
Copied!

TrailingStop

1
public class TrailingStop : AdvancedOrderBase
2
{
3
public decimal TrailingStopPercentage { get; set; }
4
public decimal RecordedPrice { get; set; }
5
}
Copied!
Last modified 2yr ago