API Documentation


<div id="HistoricalDiv"></div>
<script language="JavaScript" src="https://www.b2i.us/b2i/HistoricalQuoteApi.asp?v=1.0.6" type="text/javascript"></script>
<script language="JavaScript" type="text/javascript">
oHistoric.BizID="2626";
oHistoric.sDiv="HistoricalDiv"; //When using quote multiple times on same page, set unique div names
oHistoric.sKey="Sf6Ic9Gy8";
oHistoric.Symbol="OCC";
oHistoric.sHttp="https";
getHistoricalData();
</script>
Optional parameters: Should always come before calling the getHistoricalData(); method.
oHistoric.CSS="1"; Set to 0 to turn off default css
oHistoric.sDiv="HistoricalDiv"; Sets the location to render the data
oHistoric.Dollar="0"; Show currency sign on left, set to "1" for dollar, "2" for euro, "3" for £ – pound
oHistoric.DollarR=""; Show currency sign on right, set to "1" for p – pound
oHistoric.DecLen="2"; Decimal places, Default is 2, dl=4 would show 4 places right of decimal
oHistoric.DateFormat="0"; Custom date format
0: 11/19/2020

1: Nov 19, 2020

2: 11/19/20

3: 19/11/2020

4: 19 Nov 2020

5: Tuesday, November 19, 2020

6: November 19, 2020

oHistoric.Lang="1"; Language of Labels, Default is 1 for english
1: English

2: Spanish

3: Portuguese

4: French

5: German

6: Italian

oHistoric.Centseperator=""; Cents seperator override – example: oHistoric.Centseperator=",";
oHistoric.Numseperator=""; Number seperator override – example: oHistoric.Numseperator=".";