Example #1
0
     validator=lambda v: validate_decimal(v, 0, 100, inclusive=False),
     prompt_on_new=True),
 "ask_spread":
 ConfigVar(
     key="ask_spread",
     prompt="How far away from the mid price do you want to place the "
     "first ask order? (Enter 1 to indicate 1%) >>> ",
     type_str="decimal",
     validator=lambda v: validate_decimal(v, 0, 100, inclusive=False),
     prompt_on_new=True),
 "order_refresh_time":
 ConfigVar(
     key="order_refresh_time",
     prompt="How often do you want to cancel and replace bids and asks "
     "(in seconds)? >>> ",
     required_if=lambda: not (using_exchange("radar_relay")() or
                              (using_exchange("bamboo_relay")
                               () and not using_bamboo_coordinator_mode())),
     type_str="float",
     validator=lambda v: validate_decimal(v, 0, inclusive=False),
     prompt_on_new=True),
 "order_amount":
 ConfigVar(key="order_amount",
           prompt=order_amount_prompt,
           type_str="decimal",
           validator=validate_order_amount,
           prompt_on_new=True),
 "order_expiration_time":
 ConfigVar(
     key="order_expiration_time",
     prompt="How long should your limit orders remain valid until they "
Example #2
0
               validator=validate_minimum_periods,
               default=-1, ),
 "aroon_osc_strength_factor":
     ConfigVar(key="aroon_osc_strength_factor",
               prompt="How strong will the Aroon Osc value affect the spread adjustement? "
                      "A strong trend indicator (when Aroon Osc is close to -100 or 100) "
                      "will increase the trend side spread, and decrease the opposite side spread. "
                      "Values below 1 will decrease its affect, increasing trade likelihood, but decrease risk. ",
               type_str="decimal",
               validator=lambda v: validate_decimal(v, min_value=0, max_value=1, inclusive=True),
               default=Decimal("0.5")),
 "order_refresh_time":
     ConfigVar(key="order_refresh_time",
               prompt="How often do you want to cancel and replace bids and asks "
                      "(in seconds)? >>> ",
               required_if=lambda: not (using_exchange("radar_relay")() or
                                        (using_exchange("bamboo_relay")())),
               type_str="float",
               validator=lambda v: validate_decimal(v, 0, inclusive=False),
               prompt_on_new=True),
 "max_order_age":
     ConfigVar(key="max_order_age",
               prompt="How long do you want to cancel and replace bids and asks "
                      "with the same price (in seconds)? >>> ",
               required_if=lambda: not (using_exchange("radar_relay")() or
                                        (using_exchange("bamboo_relay")())),
               type_str="float",
               default=Decimal("1800"),
               validator=lambda v: validate_decimal(v, 0, inclusive=False)),
 "order_refresh_tolerance_pct":
     ConfigVar(key="order_refresh_tolerance_pct",