import ccxt import matplotlib.pyplot as plt import numpy as np import pandas as pd import talib from catalyst import run_algorithm from catalyst.api import symbol, order_target_percent, record from catalyst.exchange import exchange_errors as catalyst_errors from catalyst.exchange.exchange_errors import CreateOrderError from catalyst.exchange.utils.stats_utils import extract_transactions from logbook import Logger, notifiers error_handler = notifiers.PushoverHandler( application_name="Binance", apikey="amrpo9ogp97wsak7zrf6k4uu1mbz5g", userkey="gqwfvx21h6rtv42m4bq826c23uoj43", level="CRITICAL", bubble=True, ) NAMESPACE = "binance_t1" log = Logger(NAMESPACE) LIVE = True BUY_ALL = False LIQUIDATE_ALL = False def initialize(context): for attempt in context.attempts: context.attempts[attempt] = 100
import ccxt import matplotlib.pyplot as plt import numpy as np import pandas as pd import talib from catalyst import run_algorithm from catalyst.api import symbol, order_target_percent, record from catalyst.exchange import exchange_errors as catalyst_errors from catalyst.exchange.exchange_errors import CreateOrderError from catalyst.exchange.utils.stats_utils import extract_transactions from logbook import Logger, notifiers error_handler = notifiers.PushoverHandler( application_name="Bitfinex", apikey="ap39bb7o865s4nr1xmtj62svkzete3", userkey="gqwfvx21h6rtv42m4bq826c23uoj43", level="CRITICAL", bubble=True, ) NAMESPACE = "bitfinex_live" log = Logger(NAMESPACE) LIVE = True BUY_ALL = False LIQUIDATE_ALL = True def initialize(context): for attempt in context.attempts: context.attempts[attempt] = 100