예제 #1
0
 public DukascopyAccountInfoToAdapt(Layer2.FIXServices.BrokerAdapters.Dukascopy.AccountInfo message)
 {
     this.Leverage     = message.isSetLeverage() ? message.getLeverage() : null;
     this.UsableMargin = message.isSetUsableMargin() ? message.getUsableMargin() : null;
     this.Equity       = message.isSetEquity() ? message.getEquity() : null;
     this.Currency     = message.isSetCurrency() ? message.getCurrency() : null;
     this.AccountName  = message.isSetAccountName() ? message.getAccountName() : null;
 }
예제 #2
0
        public void onMessage(Layer2.FIXServices.BrokerAdapters.Dukascopy.AccountInfo message, SessionID session)
        {
            // getting attributes

            Leverage     leverage     = message.getLeverage();
            UsableMargin usableMargin = message.getUsableMargin();
            Equity       equity       = message.getEquity();
            Currency     currency     = message.getCurrency();
            AccountName  accountName  = message.getAccountName();

            // firing event

            Console.WriteLine("Dukascopy.AccountInfo: {0}, {1}, {2}, {3}, {4}", leverage, usableMargin, equity, currency, accountName);

            this.fixServices.NotifyAccountInfo(Counterpart.Dukascopy, DataAdaptors.AdaptAccountInfo(new DukascopyAccountInfoToAdapt(message)));
        }