# haasomeapi.dataobjects.custombots package
## 子模块
## haasomeapi.dataobjects.custombots.AccumulationBot module
```
class haasomeapi.dataobjects.custombots.AccumulationBot.AccumulationBot
Bases: haasomeapi.dataobjects.custombots.BaseCustomBot.BaseCustomBot
```
Data Object containing a Accumlation Bot
| 变量|类型 |
|---|---|
amountDecimals |int:
priceDecimals |int:
nextOrderTime |int:
orderType |[EnumOrderType:](https://www.kancloud.cn/zbb1025/cccc/780202)
accumulatedSoFar |float:
stopType |[EnumAccumulationBotStopType:](https://www.kancloud.cn/zbb1025/cccc/780202)
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
| 变量|类型 |
|---|---|
botType |[EnumCustomBotType:](https://www.kancloud.cn/zbb1025/cccc/780202)
isBackTesting |bool:
guid |str:
name |str:
accountId |str:
priceMarket |[Market:](https://www.kancloud.cn/zbb1025/xxxx/780573)
leverage |float:
coinPosition |[EnumCoinPosition:](https://www.kancloud.cn/zbb1025/cccc/780202)
fundPosition |[EnumFundPosition:](https://www.kancloud.cn/zbb1025/cccc/780202)
currentTradeAmount |float:
correctedTradeAmount |float:
amountType |[EnumBotTradeAmount:](https://www.kancloud.cn/zbb1025/cccc/780202)
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](https://www.kancloud.cn/zbb1025/mmmm/780679)]:
## haasomeapi.dataobjects.custombots.CryptoIndexBot module
```
class haasomeapi.dataobjects.custombots.CryptoIndexBot.CryptoIndexBot
Bases: haasomeapi.dataobjects.custombots.BaseCustomBot.BaseCustomBot
```
Data Object containing a Crypto Index bot
| 变量|类型 |
|---|---|
baseCoin |str:
index |List[[CryptoIndexBotIndex](https://www.kancloud.cn/zbb1025/mmmm/780679)]:
totalExtraBuy |float:
totalExtraSell |float:
individualCoinGrowth |bool:
allocateProfits |bool:
lastOrderTimeStamp |datettime:
mappedIndexes |Dict[str, float]:
indexResults |Dict[str, [CryptoIndexBotIndexResult](https://www.kancloud.cn/zbb1025/mmmm/780679)]:
## haasomeapi.dataobjects.custombots.EmailBot module
```
class haasomeapi.dataobjects.custombots.EmailBot.EmailBot
Bases: haasomeapi.dataobjects.custombots.BaseCustomBot.BaseCustomBot
```
Data Object containing a Email Bot
| 变量|类型 |
|---|---|
actions |List[[EmailBotAction](https://www.kancloud.cn/zbb1025/mmmm/780679)]:
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
| 变量|类型 |
|---|---|
slots |Dict[int, [SlotObject](https://www.kancloud.cn/zbb1025/mmmm/780679)]:
baseKey |int:
totalBuyAmount |float:
totalSellAmount |float:
basePrice |float:
isStopping |bool:
priceSpreadType |[EnumFlashSpreadOptions:](https://www.kancloud.cn/zbb1025/cccc/780202)
priceSpread |float:
percentageBoost |float:
amountSpread |float:
amountDecimals |int:
priceDecimals |int:
amountType |[EnumCurrencyType:](https://www.kancloud.cn/zbb1025/cccc/780202)
amountSpreadType |[EnumFlashSpreadOptions:](https://www.kancloud.cn/zbb1025/cccc/780202)
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
| 变量|类型 |
|---|---|
currentFeePercentage2 |float:
accountId2 |str:
priceMarket2 |[Market:](https://www.kancloud.cn/zbb1025/xxxx/780573)
triggerLevel |float:
mainAccountIsBought |bool:
lastTick |[PriceTick:](https://www.kancloud.cn/zbb1025/xxxx/780573)
lastTick2 |[PriceTick:](https://www.kancloud.cn/zbb1025/xxxx/780573)
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
| 变量|类型 |
|---|---|
interval |int:
stopLoss |float:
stopLossPrice |float:
disableAfterStopLoss |bool:
priceChangeToBuy |float:
priceChangeToSell |float:
priceChangeTarget |float:
macd |Indicator:
bbands |Indicator:
rsi |Indicator:
mappedBuySignal |[EnumFundPosition:](https://www.kancloud.cn/zbb1025/cccc/780202)
mappedSellSignal |[EnumFundPosition:](https://www.kancloud.cn/zbb1025/cccc/780202)
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
| 变量|类型 |
|---|---|
tradeAmount |float:
customFee |float:
firstOrder |[MarketMakingBotSlot:](https://www.kancloud.cn/zbb1025/mmmm/780679)
secondOrder |[MarketMakingBotSlot:](https://www.kancloud.cn/zbb1025/mmmm/780679)
firstOffset |float:
secondOffset |float:
useSecondOrder |bool:
resetTimeout |int:
lastTick |[PriceTick:](https://www.kancloud.cn/zbb1025/xxxx/780573)
## haasomeapi.dataobjects.custombots.OrderBot module
```
class haasomeapi.dataobjects.custombots.OrderBot.OrderBot
Bases: haasomeapi.dataobjects.custombots.BaseCustomBot.BaseCustomBot
```
Data Object containing a Order Bot
| 变量|类型 |
|---|---|
preOrders |List[[OrderBotPreOrder](https://www.kancloud.cn/zbb1025/mmmm/780679)]:
## haasomeapi.dataobjects.custombots.ScalperBot module
```
class haasomeapi.dataobjects.custombots.ScalperBot.ScalperBot
Bases: haasomeapi.dataobjects.custombots.BaseCustomBot.BaseCustomBot
```
Data Object containing a Scalper Bot
| 变量|类型 |
|---|---|
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](https://www.kancloud.cn/zbb1025/mmmm/780679)]: :ivar finishedOrder = List[str]: :ivar cancelledOrders = List[str]: :ivar availableScript = Dict[str, str]: :ivar scriptId: str: :ivar fullScriptName: str: :ivar botSettings: List[[IndicatorOption](https://www.kancloud.cn/zbb1025/mmmm/780679)]: :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
| 变量|类型 |
|---|---|
factorShort |float:
factorLong |float:
zoneFactor |float:
targetPercentage |float:
tradeAmount |float:
maxTradeAmount |float:
triggerLevel |float:
useMarketOrders |bool:
roundAmount |bool:
basePrice |float:
firstAction |[EnumFundPosition:](https://www.kancloud.cn/zbb1025/cccc/780202)
calculatedZones |List[[ZoneDefinition](https://www.kancloud.cn/zbb1025/mmmm/780679)]
takeLongPrice |float
goLongPrice |float
goShortPrice |float
takeShortPrice |float
takenPositions |List[[OpenRecoveryPositionDefinition](https://www.kancloud.cn/zbb1025/mmmm/780679)]
## 模块内容