Guest User

Untitled

a guest
Aug 9th, 2012
173
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.60 KB | None | 0 0
  1. using System;
  2. using EveAI.Live;
  3. using EveAI.Live.Market;
  4.  
  5. namespace GetPricesForMyRigs
  6. {
  7.     class Program
  8.     {
  9.         static void Main(string[] args)
  10.         {
  11.             var api = new EveCentralMarketApi(new EveApi().EveApiCore);
  12.  
  13.             var product = api.EveApiCore.FindProductType(34); //product ID, in this case Tritanium
  14.             ProductOrders orders =  api.GetProductOrders(product);
  15.            
  16.             foreach(Order o in orders.BuyOrders)
  17.             {
  18.                 Console.WriteLine(o.Price);
  19.             }
  20.             Console.ReadKey();
  21.  
  22.         }
  23.  
  24.     }
  25. }
Advertisement
Add Comment
Please, Sign In to add comment