BON-BAST.com's API offers accurate and reliable gold prices and Iranian Rial (IRR) exchange rates for businesses. With seamless integration and guaranteed delivery, BON-BAST.com's exchange rates is the trusted choice for hundreds of organizations worldwide.
Currently, we accept payments only via cryptocurrencies.
Please send your desired plan and the cryptocurrency you wish to use for payment to [email protected] so we can provide you with our wallet address. After payment, your username and API Key will be sent to you.
Important: If you do not receive an email within 12 hours after submitting your request, please check your spam folder.
To ensure our emails do not go to your spam folder, please add our email address to your contact list.
$data = array('hash' => 'Your Secret Key'); $opts = array('http' => array( 'method' => 'POST', 'header' => "Content-type: application/x-www-form-urlencoded", 'content' => http_build_query($data) ) ); $context = stream_context_create($opts); $content = file_get_contents('https://www.bon-bast.com/api/USER_NAME', false, $context); $json = json_decode($content, true); print $content; print "USD(Sell) = $json[usd1]"; print "USD(Buy) = $json[usd2]";
URL = "https://www.bon-bast.com/api/USER_NAME" params = {'hash':'Your Secret Key'} data = urllib.parse.urlencode(params) req = urllib.request.Request(url=URL) req.data = data.encode('utf8') req.add_header('Content-Type', 'application/x-www-form-urlencoded') r = urllib.request.urlopen(req) prices = json.load(r) print("USD(Sell) = %s , USD(Buy) = %s" %(prices['usd1'],prices['usd2']))