I got the currency list to show by adding the Oanda nuget pkg, but I am not seeing the price of the security when i click on a currency.

I got the currency list to show by adding the Oanda nuget pkg, but I am not seeing the price of the security when i click on a currency.
Atom
9/2/2020
Vladimir Vincent


I got the currency list to show by adding the Oanda nuget pkg, but I am not seeing the price of the security when i click on a currency.

public partial class MainWindow : Window
{
private Connector _connector = new Connector();
private string _connectFile = "ConnectFile";

public MainWindow()
{
InitializeComponent();
if (File.Exists(_connectFile))
{
_connector.Load(new XmlSerializer<SettingsStorage>().Deserialize(_connectFile));
}
}

private void Setting_Click(object sender, RoutedEventArgs e)
{
if (_connector.Configure(this))
{
new XmlSerializer<SettingsStorage>().Serialize(_connector.Save(), _connectFile);
}
}

private void Connect_Click(object sender, RoutedEventArgs e)
{
SecurityPicker.SecurityProvider = _connector;
SecurityPicker.MarketDataProvider = _connector;
_connector.Connected += this.Connector_Connected;

_connector.Connect();
}

private void Connector_Connected()
{
_connector.LookupSecurities(new Security() { Code = "USD/JPY" });
}

private void SecurityPicker_SecuritySelected(Security security)
{
if (security == null) return;
_connector.SubscribeFilteredMarketDepth(security);
//_connector.RegisterSecurity(security);
}
}



Thanks:


< 1 2 
Vladimir Vincent

Avatar
Date: 9/3/2020
Reply


Yes, the price are showing for the key you provided. I am not sure why my key is not working.
Thanks:

Vladimir Vincent

Avatar
Date: 9/4/2020
Reply


I have contacted Oanda, They told me my account was on an old server, I had to re-recreate the account again. So, my new API key is working properly.
I am seeing price for all currency pair. Now, I can continue with the lessons.

Thank you for your patient and help.
Thanks:
< 1 2 

Attach files by dragging & dropping, , or pasting from the clipboard.

loading
clippy