Package com.moneychanger.core.dataobjects

Examples of com.moneychanger.core.dataobjects.MarketTicker


            }

            if (!Utility.VerifyStringVal(marketID)
             || (Utility.VerifyStringVal(marketID) && marketID.equals(marketData.getMarket_id()))) {

                MarketTicker marketTicker = new MarketTicker();
                marketTicker.setLastPrice(marketData.getLast_sale_price());
                marketTicker.setHighestBid(marketData.getCurrent_bid());
                marketTicker.setLowestAsk(marketData.getCurrent_ask());
                marketTicker.setHighPrice(marketData.getRecent_highest_bid());
                marketTicker.setLowPrice(marketData.getRecent_lowest_ask());
                return marketTicker;
            }
        }
        return null;
    }
View Full Code Here


                continue;
            }

            if (marketID.equals(marketData.getMarket_id())) {
                marketDetails = new MarketDetails();
                MarketTicker marketTicker = new MarketTicker();
                marketTicker.setLastPrice(marketData.getLast_sale_price());
                marketTicker.setHighestBid(marketData.getCurrent_bid());
                marketTicker.setLowestAsk(marketData.getCurrent_ask());
                marketTicker.setHighPrice(marketData.getRecent_highest_bid());
                marketTicker.setLowPrice(marketData.getRecent_lowest_ask());

                marketDetails.setMarketTicker(marketTicker);

                marketDetails.setAssetTypeID!Utility.VerifyStringVal(marketData.getAsset_type_id())    ? "" : marketData.getAsset_type_id());
                marketDetails.setCurrencyID(   !Utility.VerifyStringVal(marketData.getCurrency_type_id()) ? "" : marketData.getCurrency_type_id());
View Full Code Here

            if (nymRegisteredMap != null && nymRegisteredMap.size() > 0 && jComboBox6.getSelectedIndex() > -1) {
                nymID = ((String[]) nymRegisteredMap.get((Integer) jComboBox6.getSelectedIndex()))[1];
            }
            if (!"ALL".equalsIgnoreCase(nymID)) {
                MarketTicker marketTicker = Market.getTicker((String) jTable13.getModel().getValueAt(jTable13.getSelectedRow(), 1), serverID, nymID);
                if (marketTicker != null) {
                    jLabel3.setText("Last:" + marketTicker.getLastPrice() + "          Bid:" + marketTicker.getHighestBid() + "          Ask:" + marketTicker.getLowestAsk());
                }
                // FT: I just added this here.

                refreshMarketOfferList(serverID, nymID);
            }
View Full Code Here

            }
            if (!"ALL".equalsIgnoreCase(nymID)) {
                MarketDetails marketDetails = Market.getMarketDetails((String) jTable13.getModel().getValueAt(jTable13.getSelectedRow(), 1), serverID, nymID);
                System.out.println("marketDetails:" + marketDetails);
                if (marketDetails != null) {
                    MarketTicker marketTicker = marketDetails.getMarketTicker();
                    jLabel3.setText("Last:" + marketTicker.getLastPrice() + "          Bid:" + marketTicker.getHighestBid() + "          Ask:" + marketTicker.getLowestAsk());
                    jLabel46.setVisible(true);
                    jLabel46.setText(!Utility.VerifyStringVal(marketDetails.getAssetTypeID()) ? "" : marketDetails.getAssetTypeID());
                    jLabel46.setToolTipText(jLabel46.getText());
                    jLabel25.setVisible(true);
                    jLabel25.setText(!Utility.VerifyStringVal(marketDetails.getAssetTypeName()) ? "" : marketDetails.getAssetTypeName());
View Full Code Here

TOP

Related Classes of com.moneychanger.core.dataobjects.MarketTicker

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.