home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 35 Internet / 35-Internet.zip / libstock.zip / README < prev    next >
Text File  |  2000-08-06  |  3KB  |  106 lines

  1. The Stocks Quotes Library (libstocks)
  2. (http://libstocks.sourceforge.net)
  3. Version 0.4.0
  4. August 06, 2000
  5.  
  6. Written by Eric Laeuffer (laeuffer@cybercable.fr)
  7.  
  8.  
  9. Libstocks is a C library which can be included in any software to fetch
  10. stocks quotes. 
  11.  
  12. Features:
  13. - Support of a lot of markets :
  14.     * United States
  15.     * Canada
  16.     * Mexico
  17.     * Brasil
  18.     * Argentina
  19.     * Venezuela
  20.     * Chili
  21.     * Australia
  22.     * and European markets
  23.  
  24. (At the end of this README file you can find a lot of symbols as exemples)
  25.  
  26. - Proxy support
  27. - Currency exchange rates
  28.  
  29. - Historical stocks quotes from http://chart.yahoo.com/d
  30.   Unfortunately this feature just supports US stocks.
  31.  
  32. - This package includes a small client which can show you how to use libstocks
  33.  
  34. How to use libstocks_client
  35.  
  36. > libstocks_client "symbols"
  37.  
  38. for exemple :
  39.  
  40. > libstocks_client "RHAT+13000.PA"
  41.  
  42. this displays the quotes of RedHat and Alcatel (Paris) stocks like this:
  43.  
  44. "17h36" 
  45. ----------------------------------------
  46. | Symbol    | "13000.PA"               |
  47. | Price     | 71.50                    |
  48. | Yesterday | 72.50                    |
  49. | Open      | 70.70                    |
  50. | Min       | 69.40                    |
  51. | Max       | 73.50                    |
  52. | Var       | -1.00  (-1.38 %)         |
  53. | Volume    | 5050319                  |
  54. ----------------------------------------
  55.  
  56. "4:01PM" "6/23/2000"
  57. ----------------------------------------
  58. | Symbol    | "RHAT"                   |
  59. | Price     | 31.38                    |
  60. | Yesterday | 34.19                    |
  61. | Open      | 30.56                    |
  62. | Min       | 35.44                    |
  63. | Max       | 35.50                    |
  64. | Var       | -2.81  (-8.23 %)         |
  65. | Volume    | 8312600                  |
  66. ----------------------------------------
  67.  
  68. To access US quotes just use the stocks symbol to grep or with the .US 
  69. extension (RHAT=Red Hat Inc)
  70. and to acces european stocks use the stock symbol with the country extension 
  71. (13000.PA=Alcatel Paris)
  72. (use yahoo symbol lookup to find stocks symbol)
  73.  
  74. All symbols have to be separated by "+" caracter.
  75.  
  76. As exemple some symbols
  77.  
  78. USA : BOBJ.US, ENT.US
  79. CANADA: BMO.TO, IN.M, COT.V
  80. AUSTRALIA: BII.AX, BKL.AX
  81. MEXICO: TELMEXL.MX, TELECOMA1.MX, GFBO.MX
  82. BRASIL: ACES4.SA, TLPP4.SA, FNOR11.SA
  83. ARGENTINA: PCH.BA, IRS.BA, ERC.BA
  84. VENEZUELA: MPA.CR, EDC.CR, HLB.CR
  85. CHILI: END.SN, CIC.SN, LAB.SN
  86. NORWAY: STA.OL, IGE.OL, AVE.OL
  87. DANMARK: ISS.CO, DCO.CO, NBH.CO, TLD.CO
  88. GERMANY: 508900.F, 510440.F, 901599.FX, 542700.FX, 622700.FX
  89. ITALY: PLV.MI, HPI.MI, MB.MI, NM.MI
  90. SPAIN: TEF.MC, TAZ.MC, EUR.MC
  91. SWEDEN: VIKT.ST, TLOG.ST, CONN.ST, SION.ST
  92. UNITED KINGDOM: VOD.L, RTO.L, BPA.L
  93.  
  94. Here my test command:
  95. libstocks_client "BMO.TO+IN.M+COT.V+BOBJ.US+ENT.US+BII.AX+TELMEXL.MX+ACES4.SA
  96. +PCH.BA+MPA.CR+END.SN+LAB.SN+STA.OL+ISS.CO+508900.F+901599.FX+PLV.MI+TEF.MC
  97. +VIKT.ST+VOD.L+13000.PA"
  98.  
  99. To get historical quotes :
  100.  
  101. > libstocks_client BOBJ 2000/01/01 2000/08/01
  102.  
  103. (the date format is YY/MM/DD)
  104.  
  105. This exemple displays on the screen the DATE, OPEN, HIGH, LOW, CLOSE, VOLUME
  106.