BullionVault’s live price widget shows the current buy and sell price for gold, silver and platinum from our Zurich vault. You will determine which currency, metal and weight units are shown by default in your widget. Your users will then be able to choose which display options they would like to see. Your referral id can be added into the code for the widgets.
There are four widget sizes for you to choose from:
You may also be interested in embedding the BullionVault gold, silver, platinum and palladium chart on to your website. Like the price widget, it's highly customisable, with referral tracking incorporated in the code. While we endeavour to provide a reliable and accurate service, BullionVault makes no guarantees of the stability of the price charts or widgets or the accuracy of the data they provide.
The below explains how to add the widgets to your website and lists all the available configuration options that can be used to customize the widget. If you have any problems with embedding the widget please contact us at referrals@BullionVault.com.
The referrer banner library is written in javascript and is hosted on BullionVault‘s server. There is no need to download the library to any other server. Just add the following script tag into the head element of the page you want to embed the live price widget into.
<!doctype html>
<head>
<script src="https://www.bullionvault.com/banners/live_price_widget.js?v=1"></script>
</head>
The live price widget is added by calling the new BullionVaultPriceWidget(...) with two arguments. The first argument is the ID of the DOM element the live price widget should embed into. This can be a DIV or any other block element. The second argument is an object containing configuration options. All available options are listed below.
<div id="bannerContainer"></div>
<script>
var options = {bullion: 'gold'};
new BullionVaultPriceWidget('bannerContainer', options);
</script>
referrerID | Your referrerID will be your BullionVault username. i.e. if your username is JOHNSMITH101, you
should enter this as your referrerID. Accepted values: Your BullionVault username, e.g. 'MYUSERNAME' |
size | Selects which size banner to load. Accepted values: '728x90', '250x250', '120x240', or '160x600' |
bullion | Selects the bullion type to display. Accepted values: 'gold', 'silver' or 'platinum' |
currency | Selects the currency which should be displayed. Accepted values: 'USD', 'GBP', or 'EUR' |
weightUnit | Selects which units to display the prices in - per KG or per troy ounce. Accepted values: 'KG', or 'TOZ' |
<html>
<head>
<script src="https://www.bullionvault.com/banners/live_price_widget.js"></script>
</head>
<body>
<div id="banner1"></div>
<script type="text/javascript">
var options = {
referrerID: "JOHNSMITH101",
size: "250x250",
bullion: "gold",
currency: "EUR",
weightUnit: "TOZ"
};
new BullionVaultPriceWidget('banner1', options);
</script>
</body>
</html>
BullionVault Ltd 版權所有; 2024
我們使用 cookies 來記住您使用本網站時的偏好,並以此來追蹤推薦人並改善我們網站的表現以及使我們在第三方網站上展示的任何廣告更具相關性。有關詳情,請參閱我們的 cookie 政策。
請選擇下方的一個選項,並『保存』您的偏好設置。
您可以通過我們網頁下方的‘Cookies’鏈接,隨時更改自己的 cookie 喜好設置。
您的賬戶已經有一段時間沒有進行操作。
為了您的安全,若沒有任何行動,帳戶將在幾分鐘內登出。