mirror of
https://github.com/d0zingcat/deploy.git
synced 2026-05-19 15:09:58 +00:00
(feat) update bots folde
This commit is contained in:
@@ -1,9 +1,9 @@
|
||||
from decimal import Decimal
|
||||
from typing import Dict, List, Optional, Set
|
||||
from typing import List, Optional
|
||||
|
||||
from pydantic import Field
|
||||
|
||||
from hummingbot.core.data_type.common import OrderType, PositionMode, PriceType, TradeType
|
||||
from hummingbot.core.data_type.common import MarketDict, OrderType, PositionMode, PriceType, TradeType
|
||||
from hummingbot.data_feed.candles_feed.data_types import CandlesConfig
|
||||
from hummingbot.strategy_v2.controllers import ControllerBase, ControllerConfigBase
|
||||
from hummingbot.strategy_v2.executors.data_types import ConnectorPair
|
||||
@@ -52,11 +52,8 @@ class GridStrikeConfig(ControllerConfigBase):
|
||||
take_profit_order_type=OrderType.LIMIT_MAKER,
|
||||
)
|
||||
|
||||
def update_markets(self, markets: Dict[str, Set[str]]) -> Dict[str, Set[str]]:
|
||||
if self.connector_name not in markets:
|
||||
markets[self.connector_name] = set()
|
||||
markets[self.connector_name].add(self.trading_pair)
|
||||
return markets
|
||||
def update_markets(self, markets: MarketDict) -> MarketDict:
|
||||
return markets.add_or_update(self.connector_name, self.trading_pair)
|
||||
|
||||
|
||||
class GridStrike(ControllerBase):
|
||||
|
||||
Reference in New Issue
Block a user