auto cancel
This commit is contained in:
@@ -33,6 +33,8 @@ namespace AutoSellerNS
|
||||
m_Data.Add("time-down", 0.02);
|
||||
m_Data.Add("ignore-price", 50000);
|
||||
m_Data.Add("mock-trading", false);
|
||||
m_Data.Add("auto-cancel", false);
|
||||
m_Data.Add("auto-cancel-delay", 30);
|
||||
|
||||
Load();
|
||||
}
|
||||
@@ -145,6 +147,13 @@ namespace AutoSellerNS
|
||||
public static int GetTimeLimit() { return (int)m_Data["time-limit"]; }
|
||||
public static double GetTimeDown() { return (double)m_Data["time-down"]; }
|
||||
public static int GetIgnorePrice() { return (int)m_Data["ignore-price"]; }
|
||||
public static void SetAutoCancel(bool bCancel, int iDelay)
|
||||
{
|
||||
m_Data["auto-cancel"] = bCancel;
|
||||
m_Data["auto-cancel-delay"] = iDelay;
|
||||
}
|
||||
public static bool IsAutoCancel() { return (bool)m_Data["auto-cancel"]; }
|
||||
public static int GetAutoCancelDelay() { return (int)m_Data["auto-cancel-delay"]; }
|
||||
public static void SetMockTrading(bool bMockTrading) { m_Data["mock-trading"] = bMockTrading; Save(); }
|
||||
public static bool GetMockTrading() { return (bool)m_Data["mock-trading"]; }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user