Examples of VendorID


Examples of com.barchart.feed.api.model.meta.id.VendorID

      vendorSymbols.put(VendorID.BARCHART_HISTORICAL, hist);
    }

    /* Assign vendors */
    for(final Attributes a : vendors) {
      final VendorID id = new VendorID(xmlStringDecode(a, PROVIDER, XML_STOP));
      final String sym = xmlStringDecode(a, SYMBOL, XML_PASS);
      if(sym != null) {
        vendorSymbols.put(id, sym);
      }
    }
View Full Code Here

Examples of com.barchart.feed.api.model.meta.id.VendorID

            exchange(parts[0]),
            parts[1].toUpperCase());

      case 3:
        return new DefaultLookupSymbol(
            new VendorID(parts[0].toUpperCase()),
            exchange(parts[1]),
            parts[2].toUpperCase());

      default:
        throw new IllegalArgumentException("Symbol format not recognized: " + symbol);
View Full Code Here

Examples of com.barchart.feed.api.model.meta.id.VendorID

    if (!def.hasVendorId()) {
      return VendorID.NULL;
    }

    return new VendorID(def.getVendorId());

  }
View Full Code Here

Examples of com.barchart.feed.api.model.meta.id.VendorID

  public Map<VendorID, String> vendorSymbols() {

    final Map<VendorID, String> map = new HashMap<VendorID, String>();

    for (final Symbol symbol : def.getSymbolsList()) {
      map.put(new VendorID(symbol.getVendor()), symbol.getSymbol());
    }

    return Collections.unmodifiableMap(map);

  }
View Full Code Here

Examples of com.barchart.feed.api.model.meta.id.VendorID

  public Map<VendorID, String> vendorSymbols() {
   
    final Map<VendorID, String> map = new HashMap<VendorID, String>();
   
    for(final Symbol symbol : def.getSymbolsList()) {
      map.put(new VendorID(symbol.getVendor()), symbol.getSymbol());
    }
   
    return Collections.unmodifiableMap(map);
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.