haasomeapi.dataobjects.custombots package

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:
  • orderTypeEnumOrderType:
  • accumulatedSoFar – float:
  • stopTypeEnumAccumulationBotStopType:
  • 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:
  • botTypeEnumCustomBotType:
  • isBackTesting – bool:
  • guid – str:
  • name – str:
  • accountId – str:
  • priceMarketMarket:
  • leverage – float:
  • coinPositionEnumCoinPosition:
  • fundPositionEnumFundPosition:
  • currentTradeAmount – float:
  • correctedTradeAmount – float:
  • amountTypeEnumBotTradeAmount:
  • 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]:

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:
  • lastOrderTimeStampdatettime:
  • 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:

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:
  • priceSpreadTypeEnumFlashSpreadOptions:
  • priceSpread – float:
  • percentageBoost – float:
  • amountSpread – float:
  • amountDecimals – int:
  • priceDecimals – int:
  • amountType – EnumCurrencyType:
  • amountSpreadTypeEnumFlashSpreadOptions:
  • 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:

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:
  • priceMarket2Market:
  • triggerLevel – float:
  • mainAccountIsBought – bool:
  • lastTickPriceTick:
  • lastTick2PriceTick:
  • 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:
  • macdIndicator:
  • bbandsIndicator:
  • rsiIndicator:
  • mappedBuySignalEnumFundPosition:
  • mappedSellSignalEnumFundPosition:
  • 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:
  • firstOrderMarketMakingBotSlot:
  • secondOrderMarketMakingBotSlot:
  • firstOffset – float:
  • secondOffset – float:
  • useSecondOrder – bool:
  • resetTimeout – int:
  • lastTickPriceTick:

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:
  • firstActionEnumFundPosition:
  • calculatedZones – List[ZoneDefinition]
  • takeLongPrice – float
  • goLongPrice – float
  • goShortPrice – float
  • takeShortPrice – float
  • takenPositions – List[OpenRecoveryPositionDefinition]

Module contents