多应用+插件架构,代码干净,二开方便,首家独创一键云编译技术,文档视频完善,免费商用码云13.8K 广告
# haasomeapi.enums package ## 子模块 ## haasomeapi.enums.EnumAccumulationBotStopType 模块 ``` class haasomeapi.enums.EnumAccumulationBotStopType.EnumAccumulationBotStopType Bases: enum.Enum An enumeration. MAX_TOTAL_AMOUNT = 1 TIMER = 0 ``` ## haasomeapi.enums.EnumBotTradeResult module ``` class haasomeapi.enums.EnumBotTradeResult.EnumBotTradeResult Bases: enum.Enum An enumeration. BUY = 1 SELL = 2 STAY = 0 ``` ## haasomeapi.enums.EnumBotType module ``` class haasomeapi.enums.EnumBotType.EnumBotType Bases: enum.Enum An enumeration. LEVERAGE_BOT = 2 MARGIN_BOT = 1 TRADE_BOT = 0 ``` ## haasomeapi.enums.EnumCoinPosition module ``` class haasomeapi.enums.EnumCoinPosition.EnumCoinPosition Bases: enum.Enum An enumeration. BOUGHT = 0 SOLD = 1 ``` ## haasomeapi.enums.EnumCurrencyType module ``` class haasomeapi.enums.EnumCurrencyType.EnumCurrencyType Bases: enum.Enum An enumeration. BASE = 0 QUOTE = 1 ``` ## haasomeapi.enums.EnumCustomBotType module ``` class haasomeapi.enums.EnumCustomBotType.EnumCustomBotType Bases: enum.Enum An enumeration. ACCUMULATION_BOT = 13 ADVANCED_INDEX_BOT = 20 BASE_CUSTOM_BOT = 1000 CRYPTO_INDEX_BOT = 17 EMAIL_BOT = 19 FLASH_CRASH_BOT = 6 HAAS_SCRIPT_BOT = 18 INTELLIBOT_ALICE_BOT = 9 INTER_EXCHANGE_ARBITRAGE_BOT = 8 MAD_HATTER_BOT = 15 MARKET_MAKING_BOT = 1 ORDER_BOT = 4 PING_PONG_BOT = 2 SCALPER_BOT = 3 SCRIPT_BOT = 16 TREND_LINES_BOT = 14 ZONE_RECOVERY_BOT = 12 ``` ## haasomeapi.enums.EnumErrorCode module ``` class haasomeapi.enums.EnumErrorCode.EnumErrorCode Bases: enum.Enum An enumeration. BOT_DOSENOT_EXIT = 9001 CONNECTION_FAILED = 9002 FAILURE = 9000 INVALID_ACCOUNT_GUID = 1005 INVALID_BOT_ELEMENT_GUID = 1004 INVALID_BOT_GUID = 1003 INVALID_ENUM = 1007 INVALID_MARKET = 1006 INVALID_PARAMETER = 1008 INVALID_REQUEST = 1001 INVALID_SIGNATURE = 1002 MISSING_PARAMETER = 1022 PRICE_MARKET_IS_SYNCING = 1021 PRICE_SOURCE_NOT_ACTIVE = 1020 SUCCESS = 100 UNKNOWN_ERROR = 2000 ``` ## haasomeapi.enums.EnumFlashSpreadOptions module ``` class haasomeapi.enums.EnumFlashSpreadOptions.EnumFlashSpreadOptions Bases: enum.Enum An enumeration. EXPONENTIAL = 3 FIXED_AMOUNT = 0 PERCENTAGE = 1 PERCENTAGE_WITH_BOOST = 2 ``` ## haasomeapi.enums.EnumFundMovingPosition module ``` class haasomeapi.enums.EnumFundMovingPosition.EnumFundMovingPosition Bases: enum.Enum An enumeration. ENTER_LONG = 2 ENTER_SHORT = 0 EXIT_LONG = 3 EXIT_SHORT = 1 ``` ## haasomeapi.enums.EnumFundPosition module ``` class haasomeapi.enums.EnumFundPosition.EnumFundPosition Bases: enum.Enum An enumeration. LONG = 2 NO_POSITION = 0 SHORT = 1 ``` ## haasomeapi.enums.EnumIndicator module ``` class haasomeapi.enums.EnumIndicator.EnumIndicator Bases: enum.Enum An enumeration. AROON = 0 AROON_OSCILLATOR = 1 AWESOME_OSCILLATOR = 2 BBANDS = 5 BBANDSB = 6 BBANDSW = 7 BBANDS_PSHAI = 51 BLIND = 3 BOP = 4 BUY_LOW_SELL_HIGH_DYNAMIC = 9 BUY_LOW_SELL_HIGH_FIXED = 8 CANDLE_PATTERN = 15 CCI = 11 CMO = 12 COPPOCK_CURVE = 13 CRSI = 14 DEMA = 16 DEMA_NEW = 52 DONCHIAN_CHANNELS = 17 DPO = 18 ELLIOT = 20 EMA = 19 EMA_NEW = 53 FASTRSI = 21 FIBONACCI = 22 FRACTIAL = 23 HAAS_SCRIPT_INDICATOR = 50 ICHIMOKU_CLOUDS = 24 JOHNS_CANDELIER = 25 KAMA = 27 KAMA_NEW = 54 KELTNERCHANNELS_NEW = 55 KELTNER_CHANNELS = 26 MACD = 28 MACD_NEW = 69 MFI = 29 MOMENTUM = 70 REGRESSION_SLOBE = 33 ROC = 30 ROCALT = 31 RSI = 32 RSI_NEW = 59 SAR = 34 SCRIPT_INDICATOR = 41 SLOWRSI = 35 SMA = 36 SMALL_FRACTIAL = 40 STOCHASTIC = 38 STOCHASTIC2 = 39 STOCHRSI = 37 STOCHRSI_NEW = 62 TD = 71 TELEGRAM_INDICATOR = 45 TEMA = 42 TEMA_NEW = 63 TIMED_BLIND = 49 TRIMA = 44 TRIMA_NEW = 65 TRIX = 43 TRIX_NEW = 64 ULTIMATE_OSCILLATOR = 46 ULTIMATE_OSCILLATOR_NEW = 66 WILLIAMSR_NEW = 67 WILLIAMSW = 48 WMA = 47 ``` ## haasomeapi.enums.EnumInsurance module ``` class haasomeapi.enums.EnumInsurance.EnumInsurance Bases: enum.Enum An enumeration. ABSOLUTE_PRICE_CHANGE = 0 BE_PROFITABLE_IN_X_TRADES = 1 DISABLE_ON_LOSSES = 2 HAAS_SCRIPT_INSURANCE = 12 NEVER_BUY_HIGHER = 11 NEVER_SELL_CHEAPER = 3 OVERCOME_DOUBLE_FEE = 5 OVERCOME_FEE = 4 PERCENTAGE_PRICE_CHANGE = 6 SCRIPT_INSURANCE = 7 STABLE_TREND_ONLY = 8 STAY_PROFITABLE = 9 TRENDING_TREND_ONLY = 10 WAIT_AFTER_ORDER = 13 ``` ## haasomeapi.enums.EnumLimitOrderPriceType module ``` class haasomeapi.enums.EnumLimitOrderPriceType.EnumLimitOrderPriceType Bases: enum.Enum An enumeration. BE_FIRST_ORDER = 0 PLACE_ON_FIRST_ORDER = 1 ``` ## haasomeapi.enums.EnumMadHatterIndicators module ``` class haasomeapi.enums.EnumMadHatterIndicators.EnumMadHatterIndicators Bases: enum.Enum An enumeration. BBANDS = 2 MACD = 0 RSI = 1 ``` ## haasomeapi.enums.EnumMadHatterSafeties module ``` class haasomeapi.enums.EnumMadHatterSafeties.EnumMadHatterSafeties Bases: enum.Enum An enumeration. PRICE_CHANGE_TO_BUY = 1 PRICE_CHANGE_TO_SELL = 2 STOP_LOSS = 0 ``` ## haasomeapi.enums.EnumOrderBotTriggerType module ``` class haasomeapi.enums.EnumOrderBotTriggerType.EnumOrderBotTriggerType Bases: enum.Enum An enumeration. HIGHER_THAN = 1 LOWER_THAN = 0 NORMAL = 2 ``` ## haasomeapi.enums.EnumOrderStatus module ``` class haasomeapi.enums.EnumOrderStatus.EnumOrderStatus Bases: enum.Enum An enumeration. CANCELLED = 7 COMPLETED = 5 OPEN = 3 UNKNOWN = 0 ``` ## haasomeapi.enums.EnumOrderType module ``` class haasomeapi.enums.EnumOrderType.EnumOrderType Bases: enum.Enum An enumeration. BUY = 1 SELL = 0 ``` ## haasomeapi.enums.EnumPlatform module ``` class haasomeapi.enums.EnumPlatform.EnumPlatform Bases: enum.Enum An enumeration. LEVERAGE_TRADING = 2 MARGIN_TRADING = 1 SPOT_TRADING = 0 ``` ## haasomeapi.enums.EnumPriceChartType module ``` class haasomeapi.enums.EnumPriceChartType.EnumPriceChartType Bases: enum.Enum An enumeration. CANDLESTICK = 0 CANDLESTICK_HLC = 1 HEIKIN_ASHI = 2 HLC = 4 LINE = 5 MOUNTAIN = 6 OHLC = 3 REDBLACK = 7 SPREAD = 8 ``` ## haasomeapi.enums.EnumPriceSource module ``` class haasomeapi.enums.EnumPriceSource.EnumPriceSource Bases: enum.Enum An enumeration. BINANCE = 21 BITFINEX = 1 BITMEX = 17 BITSTAMP = 10 BITTREX = 13 BTCE = 4 CCEX = 19 CEXIO = 5 COINBASE = 12 DERIBIT = 28 GEMINI = 20 HITBTC = 22 HUOBI = 26 KRAKEN = 15 KUCOIN = 27 NOVAEXCHANGE = 14 OKCOINCOM = 8 OKCOINFUTURES = 9 OKEX = 23 POLONIEX = 11 SCRIPTEDDRIVER = 18 ``` ## haasomeapi.enums.EnumSafety module ``` class haasomeapi.enums.EnumSafety.EnumSafety Bases: enum.Enum An enumeration. CLOSE_BEFORE_SETTLEMENT = 0 CLOSE_POSITION_WITH_LOSS = 14 CLOSE_POSITION_WITH_PROFIT = 15 DEACTIVATE_BOT_AFTER_BUY = 12 DEACTIVATE_BOT_AFTER_SELL = 13 DEAVTIVATE_BOT_AFTER_X_ACTIVE_MINUTES = 22 DEAVTIVATE_BOT_AFTER_X_IDLE_MINUTES = 21 DEAVTIVATE_BOT_AFTER_X_TRADES = 18 FORCE_TO_BOUGHT_LONG = 7 FORCE_TO_SOLD_SHORT = 8 HAAS_SCRIPT_SAFETY = 19 PRICE_DUMP = 17 PRICE_PUMP = 16 RESET_BUY_PRICE = 10 RESET_SELL_PRICE = 11 ROOF_IN_DYNAMIC = 1 ROOF_IN_FIXED = 2 ROOF_OUT_DYNAMIC = 3 ROOF_OUT_FIXED = 4 SCRIPT_SAFETY = 9 STOP_LOSS_DYNAMIC = 6 STOP_LOSS_FIXED = 5 TOT = 20 ``` ## haasomeapi.enums.EnumSlotType module ``` class haasomeapi.enums.EnumSlotType.EnumSlotType Bases: enum.Enum An enumeration. BUY = 0 EMPTY = 2 SELL = 1 ``` ## haasomeapi.enums.EnumSoftwareLicence module ``` class haasomeapi.enums.EnumSoftwareLicence.EnumSoftwareLicence Bases: enum.Enum An enumeration. ADVANCED = 3 BEGINNER = 1 SIMPLE = 2 ``` ## haasomeapi.enums.EnumTradeType module ``` class haasomeapi.enums.EnumTradeType.EnumTradeType Bases: enum.Enum An enumeration. BUY = 1 SELL = 2 ``` ## 模块内容