46 lines
1.8 KiB
C#
46 lines
1.8 KiB
C#
using ArgsUniform;
|
|
|
|
namespace AutoClient
|
|
{
|
|
public class Configuration
|
|
{
|
|
[Uniform("codex-host", "ch", "CODEXHOST", false, "Codex Host address. (default 'http://localhost')")]
|
|
public string CodexHost { get; set; } = "http://localhost";
|
|
|
|
[Uniform("codex-port", "cp", "CODEXPORT", false, "port number of Codex API. (8080 by default)")]
|
|
public int CodexPort { get; set; } = 8080;
|
|
|
|
[Uniform("datapath", "dp", "DATAPATH", false, "Root path where all data files will be saved.")]
|
|
public string DataPath { get; set; } = "datapath";
|
|
|
|
[Uniform("purchases", "np", "PURCHASES", false, "Number of concurrent purchases.")]
|
|
public int NumConcurrentPurchases { get; set; } = 1;
|
|
|
|
[Uniform("contract-duration", "cd", "CONTRACTDURATION", false, "contract duration in minutes. (default 30)")]
|
|
public int ContractDurationMinutes { get; set; } = 30;
|
|
|
|
[Uniform("contract-expiry", "ce", "CONTRACTEXPIRY", false, "contract expiry in minutes. (default 15)")]
|
|
public int ContractExpiryMinutes { get; set; } = 15;
|
|
|
|
[Uniform("num-hosts", "nh", "NUMHOSTS", false, "Number of hosts for contract. (default 5)")]
|
|
public int NumHosts { get; set; } = 5;
|
|
|
|
[Uniform("num-hosts-tolerance", "nt", "NUMTOL", false, "Number of host tolerance for contract. (default 2)")]
|
|
public int HostTolerance { get; set; } = 2;
|
|
|
|
[Uniform("price","p", "PRICE", false, "Price of contract. (default 10)")]
|
|
public int Price { get; set; } = 10;
|
|
|
|
[Uniform("collateral", "c", "COLLATERAL", false, "Required collateral. (default 1)")]
|
|
public int RequiredCollateral { get; set; } = 1;
|
|
|
|
public string LogPath
|
|
{
|
|
get
|
|
{
|
|
return Path.Combine(DataPath, "logs");
|
|
}
|
|
}
|
|
}
|
|
}
|