haasomeapi.dataobjects.tradebot package¶
Submodules¶
haasomeapi.dataobjects.tradebot.TradeBot module¶
-
class
haasomeapi.dataobjects.tradebot.TradeBot.TradeBot¶ Bases:
objectData Object cotaining a trade bots information
Variables: - botType –
EnumBotType: - guid – str:
- name – str:
- accountId – str:
- activated – bool:
- currentTradeAmount – float:
- currentFeePercentage – float:
- coinsPosition –
EnumCoinPosition: - fundsPosition –
EnumFundPosition: - lastBuyPrice – float:
- lastSellPrice – float:
- lastLongPrice – float:
- lastShortPrice – float:
- adjustAmountDown – bool:
- limitOrderType –
EnumLimitOrderPriceType: - openOrderTimeout – int:
- templateTimeout – int:
- goAllIn – bool:
- issuedOrders – List[str]:
- completedOrders – List[
BaseOrder]: - roi – float:
- totalFeeCosts – float:
- totalProfits – float:
- lastPriceUpdate – float:
- contractValue – float:
- groupName – str:
- botSignals –
TradeBotSignals: - messageProfile –
MessageProfile: - botLogBook – List[str]:
- priceMarket –
Market: - 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]: - indicators – Dict[str,
Indicator]: - insurances – Dict[str,
Insurance]:
- botType –
haasomeapi.dataobjects.tradebot.TradeBotSignals module¶
-
class
haasomeapi.dataobjects.tradebot.TradeBotSignals.TradeBotSignals¶ Bases:
objectData Object containing a trade bot signals
Variables: - 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: - longShortResult –
EnumFundPosition:
-
botBuySellSignal= 50¶
-
botLongShortSignal= 50¶