commit
d657ca9e68
|
@ -25,9 +25,11 @@ namespace Core.Main.DataObjects
|
|||
|
||||
public ProfitTrailerData(PTMagicConfiguration systemConfiguration)
|
||||
{
|
||||
_systemConfiguration = systemConfiguration;
|
||||
|
||||
string html = "";
|
||||
string url = systemConfiguration.GeneralSettings.Application.ProfitTrailerMonitorURL + "api/data?token=" + systemConfiguration.GeneralSettings.Application.ProfitTrailerServerAPIToken;
|
||||
|
||||
|
||||
try
|
||||
{
|
||||
HttpWebRequest request = (HttpWebRequest)WebRequest.Create(url);
|
||||
|
|
|
@ -609,8 +609,8 @@ namespace Core.Main
|
|||
{
|
||||
bool result = true;
|
||||
|
||||
//Import Initial ProfitTrailer Information
|
||||
SettingsAPI.GetInitialProfitTrailerSettings(this.PTMagicConfiguration);
|
||||
//Import Initial ProfitTrailer Information(Deactivated for now)
|
||||
//SettingsAPI.GetInitialProfitTrailerSettings(this.PTMagicConfiguration);
|
||||
|
||||
// Check for valid default setting
|
||||
GlobalSetting defaultSetting = this.PTMagicConfiguration.AnalyzerSettings.GlobalSettings.Find(s => s.SettingName.Equals("default", StringComparison.InvariantCultureIgnoreCase));
|
||||
|
@ -963,8 +963,8 @@ namespace Core.Main
|
|||
|
||||
private void ValidateSettings()
|
||||
{
|
||||
//Reimport Initial ProfitTrailer Information
|
||||
SettingsAPI.GetInitialProfitTrailerSettings(this.PTMagicConfiguration);
|
||||
//Reimport Initial ProfitTrailer Information(Deactivated for now)
|
||||
//SettingsAPI.GetInitialProfitTrailerSettings(this.PTMagicConfiguration);
|
||||
|
||||
// Check for a valid exchange
|
||||
if (this.PTMagicConfiguration.GeneralSettings.Application.Exchange == null)
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -7,7 +7,7 @@ using Core.Helper;
|
|||
using Core.Main.DataObjects.PTMagicData;
|
||||
using Microsoft.Extensions.DependencyInjection;
|
||||
|
||||
[assembly: AssemblyVersion("2.0.6")]
|
||||
[assembly: AssemblyVersion("2.1.0")]
|
||||
[assembly: AssemblyProduct("PT Magic")]
|
||||
|
||||
namespace PTMagic
|
||||
|
|
|
@ -8,6 +8,10 @@
|
|||
"ProfitTrailerServerAPIToken": "", //Your Profit Trailer Server API Token
|
||||
"ProfitTrailerMonitorURL": "http://localhost:8081/", // The URL to your profit trailer monitor (needed to change your settings for PT 2.0 and above)
|
||||
"ProfitTrailerDefaultSettingName": "default", // Your Profit Trailer default setting name (needed to change your settings for PT 2.0 and above)
|
||||
"Exchange": "Bittrex", // The exchange your are running Profit Trailer on
|
||||
"StartBalance": 0, // The balance you had in your wallet when you started working with Profit Trailer
|
||||
"TimezoneOffset": "+0:00", // Your timezone offset from UTC time
|
||||
"MainFiatCurrency": "USD", // Your main fiat currency that will be used in the monitor
|
||||
"AlwaysLoadDefaultBeforeSwitch": true, // If this is enabled, PTMagic will always load default settings before switching to another setting
|
||||
"FloodProtectionMinutes": 15, // If a price trend is just zig-zagging around its trigger, you may want to protect your settings from getting switched back and forth every minute
|
||||
"InstanceName": "PT Magic", // The name of the instance of this bot. This will be used in your monitor and your Telegram messages. In case you are running more than one bot, you may set different names to separate them
|
||||
|
|
Loading…
Reference in New Issue