Author Topic: Bitcoin Calculations  (Read 7328 times)

0 Members and 1 Guest are viewing this topic.

Offline gensenTopic starter

  • Newbie
  • Joined: Jul 2012
  • Posts: 1
  • Karma: +0/-1
    • View Profile
  • #otc: Gensen
Bitcoin Calculations
« on: July 11, 2012, 11:40:26 AM »

your ads here
Hi,

Does someone no how you easy can calculate on your website the amount of bitcoins you get if want to spent lets say 100 Euro?

Is the only way whit the Mtgox API ticker?

Offline dodoking

  • King of the coins!
  • Sr. Member
  • ***
  • Joined: Dec 2011
  • Location: Underwater
  • Posts: 283
  • Country: 00
  • Thanked: 1 times
  • Karma: +5/-0
  • DDK ALL DAY
    • twitter.com/dodoking1
    • View Profile
    • Under Construction
  • Bitcoin Address: 1AAmdfuC3psSNWgFmUUzqFCdVmCco7ZiRx
Re: Bitcoin Calculations
« Reply #1 on: July 12, 2012, 09:04:53 PM »
Yes I could code it in php if you need a visual example.

The best way would be to read from an api (mt.gox, btc-e, or vircurex) and do the calculations in php.

You could also make a cron job to store the price in a database every 1-5 minutes so that your webpage pulls the price from a local database and not have to connect to the api for every users page visit. This method would be better for your server.

 

Payb.tc (The Free Bitcoin Address Shortener)

Started by rTech

Replies: 3
Views: 11622
Last post February 07, 2012, 06:08:50 AM
by lzsaver
Paxum no longer accept any account related to Bitcoin

Started by bitcoinforum.com

Replies: 0
Views: 6817
Last post February 11, 2012, 12:16:32 PM
by bitcoinforum.com
OKPAY Launches the Complete Bitcoin Integration

Started by bitcoinforum.com

Replies: 1
Views: 17532
Last post September 25, 2012, 07:00:06 PM
by iBits
BitPay Surpasses 10k Bitcoin Merchant Transactions, Zero Cases of Payment Fraud

Started by bitcoinforum.com

Replies: 1
Views: 6622
Last post January 22, 2013, 03:45:36 PM
by bitcoinforum.com
thebitcointrader.com: A Second Look at OKPAY,Bitcoin's Largest Payment Processor

Started by bitcoinforum.com

Replies: 2
Views: 5701
Last post April 02, 2013, 11:47:56 PM
by nawanst