Skip to content

Instantly share code, notes, and snippets.

#!/bin/bash
set -e
echo "🔍 Checking for Node.js..."
if ! command -v node &> /dev/null; then
echo "❌ Node.js not found. Please install it from https://nodejs.org/"
exit 1
fi
@david-hummingbot
david-hummingbot / quickstart_script_2.py
Last active August 1, 2024 17:32
Simple PMM with Dynamic price ceiling/floor
import logging
from decimal import Decimal
from typing import List, Dict
import pandas as pd
import pandas_ta as ta # noqa: F401
from hummingbot.connector.connector_base import ConnectorBase
from hummingbot.core.data_type.common import OrderType, PriceType, TradeType
@david-hummingbot
david-hummingbot / mean-reversion-dmanv3-spot.py
Created December 12, 2023 14:04
mean reversion strategy using dmanv3 on spot
from decimal import Decimal
from typing import Dict
from hummingbot.connector.connector_base import ConnectorBase
from hummingbot.core.data_type.common import OrderType, PositionAction, PositionSide
from hummingbot.data_feed.candles_feed.candles_factory import CandlesConfig
from hummingbot.smart_components.controllers.dman_v3 import DManV3, DManV3Config
from hummingbot.smart_components.strategy_frameworks.data_types import ExecutorHandlerStatus, TripleBarrierConf
from hummingbot.smart_components.strategy_frameworks.market_making.market_making_executor_handler import (
MarketMakingExecutorHandler,
@david-hummingbot
david-hummingbot / market-making-dmanv2-spot.py
Created December 12, 2023 14:03
market making dman v2 script on spot
from decimal import Decimal
from typing import Dict
from hummingbot.connector.connector_base import ConnectorBase
from hummingbot.core.data_type.common import OrderType, PositionAction, PositionSide
from hummingbot.data_feed.candles_feed.candles_factory import CandlesConfig
from hummingbot.smart_components.controllers.dman_v2 import DManV2, DManV2Config
from hummingbot.smart_components.strategy_frameworks.data_types import ExecutorHandlerStatus, TripleBarrierConf
from hummingbot.smart_components.strategy_frameworks.market_making.market_making_executor_handler import (
MarketMakingExecutorHandler,
@david-hummingbot
david-hummingbot / mean-reversion-dmanv3-perp.py
Created December 12, 2023 11:55
mean reversion strategy using dmanv3 on perp
from decimal import Decimal
from typing import Dict
from hummingbot.connector.connector_base import ConnectorBase
from hummingbot.core.data_type.common import OrderType, PositionAction, PositionSide
from hummingbot.data_feed.candles_feed.candles_factory import CandlesConfig
from hummingbot.smart_components.controllers.dman_v3 import DManV3, DManV3Config
from hummingbot.smart_components.strategy_frameworks.data_types import ExecutorHandlerStatus, TripleBarrierConf
from hummingbot.smart_components.strategy_frameworks.market_making.market_making_executor_handler import (
MarketMakingExecutorHandler,
@david-hummingbot
david-hummingbot / market-making-dmanv2-perp.py
Created December 12, 2023 11:49
market making dman v2 script on perp
from decimal import Decimal
from typing import Dict
from hummingbot.connector.connector_base import ConnectorBase
from hummingbot.core.data_type.common import OrderType, PositionAction, PositionSide
from hummingbot.data_feed.candles_feed.candles_factory import CandlesConfig
from hummingbot.smart_components.controllers.dman_v2 import DManV2, DManV2Config
from hummingbot.smart_components.strategy_frameworks.data_types import ExecutorHandlerStatus, TripleBarrierConf
from hummingbot.smart_components.strategy_frameworks.market_making.market_making_executor_handler import (
MarketMakingExecutorHandler,
@david-hummingbot
david-hummingbot / v2-trend-following-perp.py
Last active December 12, 2023 11:37
example script using MACD_BB1 on perp
from decimal import Decimal
from typing import Dict
from hummingbot.connector.connector_base import ConnectorBase, TradeType
from hummingbot.core.data_type.common import OrderType
from hummingbot.data_feed.candles_feed.candles_factory import CandlesConfig
from hummingbot.smart_components.controllers.macd_bb_v1 import MACDBBV1, MACDBBV1Config
from hummingbot.smart_components.strategy_frameworks.data_types import (
ExecutorHandlerStatus,
OrderLevel,
@david-hummingbot
david-hummingbot / multiple_candles_no_indicators_examples.py
Created December 12, 2023 10:37
script example with multiple candle feeds without technical indicators
from typing import Dict
import pandas as pd
import pandas_ta as ta # noqa: F401
from hummingbot.connector.connector_base import ConnectorBase
from hummingbot.data_feed.candles_feed.candles_factory import CandlesConfig, CandlesFactory
from hummingbot.strategy.script_strategy_base import ScriptStrategyBase
@david-hummingbot
david-hummingbot / multiple_candles_example.py
Last active January 7, 2024 01:34
script example showing multiple candles
from typing import Dict
import pandas as pd
import pandas_ta as ta # noqa: F401
from hummingbot.connector.connector_base import ConnectorBase
from hummingbot.data_feed.candles_feed.candles_factory import CandlesConfig, CandlesFactory
from hummingbot.strategy.script_strategy_base import ScriptStrategyBase
@david-hummingbot
david-hummingbot / candles-eth-usdt.py
Last active December 12, 2023 10:01
status - display one-hour candlestick data for ETH-USDT
from typing import Dict
import pandas as pd
import pandas_ta as ta # noqa: F401
from hummingbot.connector.connector_base import ConnectorBase
from hummingbot.data_feed.candles_feed.candles_factory import CandlesConfig, CandlesFactory
from hummingbot.strategy.script_strategy_base import ScriptStrategyBase