mirror of
https://github.com/vdemydiuk/mtapi.git
synced 2026-08-16 12:18:09 +00:00
Issue #100: update test application for testing function SymbolInfoString (MT5)
This commit is contained in:
@@ -458,6 +458,7 @@
|
|||||||
<Button Command="{Binding SymbolInfoDoubleCommand}" Content="SymbolInfoDouble" Margin="2"/>
|
<Button Command="{Binding SymbolInfoDoubleCommand}" Content="SymbolInfoDouble" Margin="2"/>
|
||||||
<Button Command="{Binding SymbolInfoIntegerCommand}" Content="SymbolInfoInteger" Margin="2"/>
|
<Button Command="{Binding SymbolInfoIntegerCommand}" Content="SymbolInfoInteger" Margin="2"/>
|
||||||
<Button Command="{Binding SymbolInfoStringCommand}" Content="SymbolInfoString" Margin="2"/>
|
<Button Command="{Binding SymbolInfoStringCommand}" Content="SymbolInfoString" Margin="2"/>
|
||||||
|
<Button Command="{Binding SymbolInfoString2Command}" Content="SymbolInfoString-2" Margin="2"/>
|
||||||
<Button Command="{Binding SymbolInfoTickCommand}" Content="SymbolInfoTick" Margin="2"/>
|
<Button Command="{Binding SymbolInfoTickCommand}" Content="SymbolInfoTick" Margin="2"/>
|
||||||
<Button Command="{Binding SymbolInfoSessionQuoteCommand}" Content="SymbolInfoSessionQuote" Margin="2"/>
|
<Button Command="{Binding SymbolInfoSessionQuoteCommand}" Content="SymbolInfoSessionQuote" Margin="2"/>
|
||||||
<Button Command="{Binding SymbolInfoSessionTradeCommand}" Content="SymbolInfoSessionTrade" Margin="2"/>
|
<Button Command="{Binding SymbolInfoSessionTradeCommand}" Content="SymbolInfoSessionTrade" Margin="2"/>
|
||||||
|
|||||||
@@ -57,6 +57,7 @@ namespace MtApi5TestClient
|
|||||||
public DelegateCommand SymbolInfoDoubleCommand { get; private set; }
|
public DelegateCommand SymbolInfoDoubleCommand { get; private set; }
|
||||||
public DelegateCommand SymbolInfoIntegerCommand { get; private set; }
|
public DelegateCommand SymbolInfoIntegerCommand { get; private set; }
|
||||||
public DelegateCommand SymbolInfoStringCommand { get; private set; }
|
public DelegateCommand SymbolInfoStringCommand { get; private set; }
|
||||||
|
public DelegateCommand SymbolInfoString2Command { get; private set; }
|
||||||
public DelegateCommand SymbolInfoTickCommand { get; private set; }
|
public DelegateCommand SymbolInfoTickCommand { get; private set; }
|
||||||
public DelegateCommand SymbolInfoSessionQuoteCommand { get; private set; }
|
public DelegateCommand SymbolInfoSessionQuoteCommand { get; private set; }
|
||||||
public DelegateCommand SymbolInfoSessionTradeCommand { get; private set; }
|
public DelegateCommand SymbolInfoSessionTradeCommand { get; private set; }
|
||||||
@@ -358,6 +359,7 @@ namespace MtApi5TestClient
|
|||||||
SymbolInfoDoubleCommand = new DelegateCommand(ExecuteSymbolInfoDouble);
|
SymbolInfoDoubleCommand = new DelegateCommand(ExecuteSymbolInfoDouble);
|
||||||
SymbolInfoIntegerCommand = new DelegateCommand(ExecuteSymbolInfoInteger);
|
SymbolInfoIntegerCommand = new DelegateCommand(ExecuteSymbolInfoInteger);
|
||||||
SymbolInfoStringCommand = new DelegateCommand(ExecuteSymbolInfoString);
|
SymbolInfoStringCommand = new DelegateCommand(ExecuteSymbolInfoString);
|
||||||
|
SymbolInfoString2Command = new DelegateCommand(ExecuteSymbolInfoString2);
|
||||||
SymbolInfoTickCommand = new DelegateCommand(ExecuteSymbolInfoTick);
|
SymbolInfoTickCommand = new DelegateCommand(ExecuteSymbolInfoTick);
|
||||||
SymbolInfoSessionQuoteCommand = new DelegateCommand(ExecuteSymbolInfoSessionQuote);
|
SymbolInfoSessionQuoteCommand = new DelegateCommand(ExecuteSymbolInfoSessionQuote);
|
||||||
SymbolInfoSessionTradeCommand = new DelegateCommand(ExecuteSymbolInfoSessionTrade);
|
SymbolInfoSessionTradeCommand = new DelegateCommand(ExecuteSymbolInfoSessionTrade);
|
||||||
@@ -956,6 +958,14 @@ namespace MtApi5TestClient
|
|||||||
AddLog($"SymbolInfoString(EURUSD, ENUM_SYMBOL_INFO_STRING.SYMBOL_DESCRIPTION): result = {retVal}");
|
AddLog($"SymbolInfoString(EURUSD, ENUM_SYMBOL_INFO_STRING.SYMBOL_DESCRIPTION): result = {retVal}");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private async void ExecuteSymbolInfoString2(object o)
|
||||||
|
{
|
||||||
|
string stringVar = null;
|
||||||
|
|
||||||
|
var retVal = await Execute(() => _mtApiClient.SymbolInfoString("EURUSD", ENUM_SYMBOL_INFO_STRING.SYMBOL_DESCRIPTION, out stringVar));
|
||||||
|
AddLog($"SymbolInfoString-2 (EURUSD, ENUM_SYMBOL_INFO_STRING.SYMBOL_DESCRIPTION): result = {retVal}, stringVar = {stringVar}");
|
||||||
|
}
|
||||||
|
|
||||||
private async void ExecuteSymbolInfoTick(object o)
|
private async void ExecuteSymbolInfoTick(object o)
|
||||||
{
|
{
|
||||||
var result = await Execute(() =>
|
var result = await Execute(() =>
|
||||||
|
|||||||
Reference in New Issue
Block a user