# haasomeapi.dataobjects.tradebot package
## 子模块
## haasomeapi.dataobjects.tradebot.TradeBot module
```
class haasomeapi.dataobjects.tradebot.TradeBot.TradeBot
Bases: object
```
数据对象包含交易机器人信息
| 变量 |类型 |
|---|---|
botType | [EnumBotType:](https://www.kancloud.cn/zbb1025/cccc/780202)
guid | str:
name | str:
accountId |str:
activated |bool:
currentTradeAmount | float:
currentFeePercentage | float:
coinsPosition | [EnumCoinPosition:](https://www.kancloud.cn/zbb1025/cccc/780202)
fundsPosition | [EnumFundPosition:](https://www.kancloud.cn/zbb1025/cccc/780202)
lastBuyPrice | float:
lastSellPrice | float:
lastLongPrice |float:
lastShortPrice |float:
adjustAmountDown |bool:
limitOrderType | EnumLimitOrderPriceType:
openOrderTimeout | int:
templateTimeout | int:
goAllIn | bool:
issuedOrders | List[str]:
completedOrders |List[[BaseOrder](https://www.kancloud.cn/zbb1025/vvvv/781234)]:
roi | float:
totalFeeCosts | float:
totalProfits | float:
lastPriceUpdate |float:
contractValue | float:
groupName | str:
botSignals | [TradeBotSignals:](https://www.kancloud.cn/zbb1025/nnnn/780246)
messageProfile | [MessageProfile:](https://www.kancloud.cn/zbb1025/mmmm/780679)
botLogBook | List[str]:
priceMarket | [Market:](https://www.kancloud.cn/zbb1025/xxxx/780573)
leverage | float:
unixSettlementDate |int:
highFrequencyUpdates |bool:
useHiddenOrders | bool:
buyOrderTemplateId |str:
sellOrderTemplateId | str:
enterPositionOrderTemplateId | str:
exitPositionOrderTemplateId | str:
profitLabel |str:
notes | str:
locked | bool:
activatedSince |int:
deactivatedSince | int:
consensusMode | bool:
safeties | Dict[str, [Safety](https://www.kancloud.cn/zbb1025/mmmm/780679)]:
indicators | Dict[str, [Indicator](https://www.kancloud.cn/zbb1025/mmmm/780679)]:
insurances |Dict[str, [Insurance](https://www.kancloud.cn/zbb1025/mmmm/780679)]:
## haasomeapi.dataobjects.tradebot.TradeBotSignals module
```
class haasomeapi.dataobjects.tradebot.TradeBotSignals.TradeBotSignals
Bases: object
```
包含交易机器人信号的数据对象
| 变量 |类型 |
|---|---|
priceSourceConnected |bool:
accountConnected|bool:
tradeAmountOk | bool:
openOrdersOk| bool:
isBenchmark | bool:
isSafetySignalNow | bool:
maxLongAmount| float:
maxNoPositionAmount | float:
maxShortAmount |float:
maxBuyAmount |float:
maxSellAmount | float:
botBuySellSignal |int = 50:
botLongShortSignal | int = 50:
lastPoolMoment | datettime:
unixLastPoolMoment | int:
buySellResult| [EnumBotTradeResult:](https://www.kancloud.cn/zbb1025/cccc/780202)
longShortResult |[ EnumFundPosition:](https://www.kancloud.cn/zbb1025/cccc/780202)
botBuySellSignal = 50
botLongShortSignal = 50
## 模块内容