haasomeapi.dataobjects.custombots package¶
Subpackages¶
- haasomeapi.dataobjects.custombots.dataobjects package
- Submodules
- haasomeapi.dataobjects.custombots.dataobjects.CryptoIndexBotIndex module
- haasomeapi.dataobjects.custombots.dataobjects.CryptoIndexBotIndexResult module
- haasomeapi.dataobjects.custombots.dataobjects.CryptoIndexBotIndexSaveObject module
- haasomeapi.dataobjects.custombots.dataobjects.EmailBotAction module
- haasomeapi.dataobjects.custombots.dataobjects.EnumBotActionMessage module
- haasomeapi.dataobjects.custombots.dataobjects.FlashCrashBotSaveObject module
- haasomeapi.dataobjects.custombots.dataobjects.Indicator module
- haasomeapi.dataobjects.custombots.dataobjects.IndicatorOption module
- haasomeapi.dataobjects.custombots.dataobjects.Insurance module
- haasomeapi.dataobjects.custombots.dataobjects.MarketMakingBotSlot module
- haasomeapi.dataobjects.custombots.dataobjects.MarketMakingBotSlotObject module
- haasomeapi.dataobjects.custombots.dataobjects.MessageProfile module
- haasomeapi.dataobjects.custombots.dataobjects.OpenRecoveryPositionDefinition module
- haasomeapi.dataobjects.custombots.dataobjects.OrderBotPreOrder module
- haasomeapi.dataobjects.custombots.dataobjects.Safety module
- haasomeapi.dataobjects.custombots.dataobjects.ScriptBotOrder module
- haasomeapi.dataobjects.custombots.dataobjects.SlotObject module
- haasomeapi.dataobjects.custombots.dataobjects.ZoneDefinition module
- Module contents
Submodules¶
haasomeapi.dataobjects.custombots.AccumulationBot module¶
-
class
haasomeapi.dataobjects.custombots.AccumulationBot.
AccumulationBot
¶ Bases:
haasomeapi.dataobjects.custombots.BaseCustomBot.BaseCustomBot
Data Object containing a Accumlation Bot
Variables: - amountDecimals – int:
- priceDecimals – int:
- nextOrderTime – int:
- orderType –
EnumOrderType
: - accumulatedSoFar – float:
- stopType –
EnumAccumulationBotStopType
: - stopTypeValue – float:
- randomOrderTimeX – int:
- randomOrderTimeY – int:
- randomOrderSizeX – int:
- randomOrderSizeY – int:
- triggerOnPrice – bool:
- triggerWhenHigher – bool:
- triggerValue – float:
haasomeapi.dataobjects.custombots.BaseCustomBot module¶
-
class
haasomeapi.dataobjects.custombots.BaseCustomBot.
BaseCustomBot
¶ Bases:
object
Data Object containing the Base Custom Bot
Variables: - botType –
EnumCustomBotType
: - isBackTesting – bool:
- guid – str:
- name – str:
- accountId – str:
- priceMarket –
Market
: - leverage – float:
- coinPosition –
EnumCoinPosition
: - fundPosition –
EnumFundPosition
: - currentTradeAmount – float:
- correctedTradeAmount – float:
- amountType –
EnumBotTradeAmount
: - lastBuyPrice – float:
- lastSellPrice – float:
- currentFeePercentage – float:
- settlementDate – int:
- profitLabel – str:
- activated – bool:
- activatedSince – int:
- deactivatedSince – int:
- statusPriceSourceOk – bool:
- statusAccountOk – bool:
- openOrdersOk – bool:
- walletOk – bool:
- openOrderId – str:
- totalFeeCosts – float:
- totalProfits – float:
- roi – float:
- lastPriceUpdate – float:
- contractValue – float:
- lastUpdateTime – int:
- groupName – str:
- notes – str:
- customTemplate – str:
- botLogBook – List[str]:
- completedOrders – List[
BaseOrder
]:
- botType –
haasomeapi.dataobjects.custombots.CryptoIndexBot module¶
-
class
haasomeapi.dataobjects.custombots.CryptoIndexBot.
CryptoIndexBot
¶ Bases:
haasomeapi.dataobjects.custombots.BaseCustomBot.BaseCustomBot
Data Object containing a Crypto Index bot
Variables: - baseCoin – str:
- index – List[
CryptoIndexBotIndex
]: - totalExtraBuy – float:
- totalExtraSell – float:
- individualCoinGrowth – bool:
- allocateProfits – bool:
- lastOrderTimeStamp –
datettime
: - mappedIndexes – Dict[str, float]:
- indexResults – Dict[str,
CryptoIndexBotIndexResult
]:
haasomeapi.dataobjects.custombots.EmailBot module¶
-
class
haasomeapi.dataobjects.custombots.EmailBot.
EmailBot
¶ Bases:
haasomeapi.dataobjects.custombots.BaseCustomBot.BaseCustomBot
Data Object containing a Email Bot
Variables: - actions – List[
EmailBotAction
]: - stopLoss – float:
- stopLossPrice – float:
- priceChangeToBuy – float:
- priceChangeToSell – float:
- priceChangeTarget – float:
- maximumLossOnPosition – float:
- minimumProfitOnPosition – float:
- actions – List[
haasomeapi.dataobjects.custombots.FlashCrashBot module¶
-
class
haasomeapi.dataobjects.custombots.FlashCrashBot.
FlashCrashBot
¶ Bases:
haasomeapi.dataobjects.custombots.BaseCustomBot.BaseCustomBot
Data Object containing a Flash Crash Bot
Variables: - slots – Dict[int,
SlotObject
]: - baseKey – int:
- totalBuyAmount – float:
- totalSellAmount – float:
- basePrice – float:
- isStopping – bool:
- priceSpreadType –
EnumFlashSpreadOptions
: - priceSpread – float:
- percentageBoost – float:
- amountSpread – float:
- amountDecimals – int:
- priceDecimals – int:
- amountType – EnumCurrencyType:
- amountSpreadType –
EnumFlashSpreadOptions
: - refillDelay – int:
- minPercentage – float:
- maxPercentage – float:
- quickRestartPossible – bool:
- followTheTrend – bool:
- followTheTrendTimeout – int:
- followTheTrendChannelRange – int:
- followTheTrendChannelRange – int:
- followTheTrendChannelOffset – int:
- safetyEnabled – bool:
- safetyTriggerLevel – float:
- safetyMoveInOut – bool:
- safetyMoveInOutTarget – float:
- slots – Dict[int,
haasomeapi.dataobjects.custombots.InterExchangeArbitrageBot module¶
-
class
haasomeapi.dataobjects.custombots.InterExchangeArbitrageBot.
InterExchangeArbitrageBot
¶ Bases:
haasomeapi.dataobjects.custombots.BaseCustomBot.BaseCustomBot
Data Object containing a Inter Exchange Arbitrage Bot
Variables: - currentFeePercentage2 – float:
- accountId2 – str:
- priceMarket2 –
Market
: - triggerLevel – float:
- mainAccountIsBought – bool:
- lastTick –
PriceTick
: - lastTick2 –
PriceTick
: - priceDecimals1 – int:
- priceDecimals2 – int:
- openOrderIdMain – str:
- openOrderIdSecondary – str:
- totalTradesSoFar – float:
- maxTradeAmount – float:
- maxTradesPerDay – int:
haasomeapi.dataobjects.custombots.MadHatterBot module¶
-
class
haasomeapi.dataobjects.custombots.MadHatterBot.
MadHatterBot
¶ Bases:
haasomeapi.dataobjects.custombots.BaseCustomBot.BaseCustomBot
Data Object containing a Mad Hatter Bot
Variables: - interval – int:
- stopLoss – float:
- stopLossPrice – float:
- disableAfterStopLoss – bool:
- priceChangeToBuy – float:
- priceChangeToSell – float:
- priceChangeTarget – float:
- macd –
Indicator
: - bbands –
Indicator
: - rsi –
Indicator
: - mappedBuySignal –
EnumFundPosition
: - mappedSellSignal –
EnumFundPosition
: - useTwoSIgnals – bool:
haasomeapi.dataobjects.custombots.MarketMakingBot module¶
-
class
haasomeapi.dataobjects.custombots.MarketMakingBot.
MarketMakingBot
¶ Bases:
haasomeapi.dataobjects.custombots.BaseCustomBot.BaseCustomBot
Data Object containin a Market Making Bot
Variables: - tradeAmount – float:
- customFee – float:
- firstOrder –
MarketMakingBotSlot
: - secondOrder –
MarketMakingBotSlot
: - firstOffset – float:
- secondOffset – float:
- useSecondOrder – bool:
- resetTimeout – int:
- lastTick –
PriceTick
:
haasomeapi.dataobjects.custombots.OrderBot module¶
-
class
haasomeapi.dataobjects.custombots.OrderBot.
OrderBot
¶ Bases:
haasomeapi.dataobjects.custombots.BaseCustomBot.BaseCustomBot
Data Object containing a Order Bot
Variables: preOrders – List[ OrderBotPreOrder
]:
haasomeapi.dataobjects.custombots.ScalperBot module¶
-
class
haasomeapi.dataobjects.custombots.ScalperBot.
ScalperBot
¶ Bases:
haasomeapi.dataobjects.custombots.BaseCustomBot.BaseCustomBot
Data Object containing a Scalper Bot
Variables: - minimumTargetChange – float:
- maxAllowedReverseChange – float:
haasomeapi.dataobjects.custombots.ScriptBot module¶
-
class
haasomeapi.dataobjects.custombots.ScriptBot.
ScriptBot
¶ Bases:
haasomeapi.dataobjects.custombots.BaseCustomBot.BaseCustomBot
Data Object containing a Script Bot
:ivar openOrders = Dict[str,
ScriptBotOrder
]: :ivar finishedOrder = List[str]: :ivar cancelledOrders = List[str]: :ivar availableScript = Dict[str, str]: :ivar scriptId: str: :ivar fullScriptName: str: :ivar botSettings: List[IndicatorOption
]: :ivar scriptStatusOk: bool: :ivar localScriptPath: str: :ivar lastLongBuyPrice: float: :ivar lastShortBuyPrice: float: :ivar lastLongSellPrice: float: :ivar lastShortSellPrice: float:-
availableScript
= typing.Dict[str, str]¶
-
cancelledOrders
= typing.List[str]¶
-
finishedOrder
= typing.List[str]¶
-
openOrders
= typing.Dict[str, haasomeapi.dataobjects.custombots.dataobjects.ScriptBotOrder.ScriptBotOrder]¶
-
haasomeapi.dataobjects.custombots.ZoneRecoveryBot module¶
-
class
haasomeapi.dataobjects.custombots.ZoneRecoveryBot.
ZoneRecoveryBot
¶ Bases:
haasomeapi.dataobjects.custombots.BaseCustomBot.BaseCustomBot
Data Object containing a Zone Recovery Bot
Variables: - factorShort – float:
- factorLong – float:
- zoneFactor – float:
- targetPercentage – float:
- tradeAmount – float:
- maxTradeAmount – float:
- triggerLevel – float:
- useMarketOrders – bool:
- roundAmount – bool:
- basePrice – float:
- firstAction –
EnumFundPosition
: - calculatedZones – List[
ZoneDefinition
] - takeLongPrice – float
- goLongPrice – float
- goShortPrice – float
- takeShortPrice – float
- takenPositions – List[
OpenRecoveryPositionDefinition
]