API Documentation
<div id="QuoteDiv"></div>
<script language=”JavaScript” src=”https://www.b2i.us/b2i/QuoteApi.asp?v=1.0.6″ type=”text/javascript”></script>
<script language=”JavaScript” type=”text/javascript”>
oQuote.BizID="2626";
oQuote.sKey="Sf6Ic9Gy8";
oQuote.Symbol="OCC";
oQuote.sDiv="QuoteDiv"; //When using quote multiple times on same page, set unique div names
oQuote.Format="1";
oQuote.DecLen="2";
oQuote.CSS="1";
oQuote.sHttp="https";
getQuoteData();
</script>
oQuote.Format=”1″; | Format for stock data output. Need a different format, contact us We love expanding our product! |
oQuote.SymbolDisplay=”(OCC)”; | Override the symbol output |
oQuote.CSS=”1″; | Set to 0 to turn off default css |
oQuote.sDiv=””; | Sets the location to render the data |
oQuote.Dollar=”0″; | Show currency sign on left, set to “1” for dollar, “2” for euro, “3” for £ – pound – Default is “0” for none |
oQuote.DollarR=””; | Show currency sign on right, set to “1” for p – pound |
oQuote.DecLen=”2″; | Decimal places, Default is 2, dl=4 would show 4 places right of decimal |
oQuote.DateFormat=”0″; | Custom date format
1: Nov 19, 2020 2:07 PM 2: 11/19/20 2:07 PM 3: 19/11/2020 2:07 PM 4: 19 Nov 2020 2:07 PM 5: Tuesday, November 19, 2020 2:07 PM 6: November 19, 2020 2:07 PM 7: Nov 19, 2020 8: 19 Nov 2020 |
oQuote.Exchange=””; | Exchange override |
oQuote.Centseperator=””; | Cents seperator override – example: oQuote.Centseperator=”,”; |
oQuote.Numseperator=””; | Number seperator override – example: oQuote.Numseperator=”.”; |
oQuote.Upimage=””; | Custom up arrow image / character
oQuote.Upimage=”https://imageurl.com/imagename.extension”; oQuote.Upimage=”↑”; |
oQuote.Downimage=””; | Custom down arrow image / character
oQuote.Downimage=”https://imageurl.com/imagename.extension”; oQuote.Downimage=”↓”; |