Author

Topic: PHP Request (smallish bounty!) (Read 1347 times)

donator
Activity: 640
Merit: 500
May 08, 2012, 03:56:34 PM
#14
Oh ok, very happy you could use it. always up for making people happy.
legendary
Activity: 2058
Merit: 1005
this space intentionally left blank
May 08, 2012, 03:54:55 PM
#13
Since you don't have any chat client, can I get you to use:

http://laybit.com/irc

--
Kris

no need, I guess.
You did an awesome job.
donator
Activity: 640
Merit: 500
May 08, 2012, 03:35:44 PM
#12
Since you don't have any chat client, can I get you to use:

http://laybit.com/irc

--
Kris
donator
Activity: 640
Merit: 500
May 08, 2012, 03:28:35 PM
#11
Ok done.
donator
Activity: 640
Merit: 500
May 08, 2012, 03:07:30 PM
#10
Sure I'll fix,
legendary
Activity: 2058
Merit: 1005
this space intentionally left blank
May 08, 2012, 02:25:21 PM
#9
Oh man, I knew I shouldnt have been so secretive.

What I am trying to get is the following:

A website that says "I buy 1 BTC for $buy_price_1btc" and "I 1 BTC sell for $sell_price_1btc"
Then it displays how many BTC are currently available from an adress I put into the source code.
Then there should be a simple table to display how many BTC you can buy for 10, 20, 30, 50, 100€
And how many BTC you need to sell to me for 10, 20, 30, 50, 100€ etc etc.
I'd like to specify these others as variables


$buy_price_1btc = bid * 0,95
$sell_price_1btc = ask * 1.05

and

$buy_10euro = 10/$buy_price_1btc
$sell_10euro = 10/$sell_price_1btc
.
.
.
$buy_100euro = 100/$buy_price_1btc
$sell_100euro = 100/$sell_price_1btc


so I can easily make new ones, change the premiums (ie change the .95 to .975 etc) and display them in the text.
The numbers should be rounded to the 2nd decimal.

As far as I have that, I can hack the rest together myself.

So Kris, you're still first in line if you still want it.
donator
Activity: 640
Merit: 500
May 08, 2012, 01:26:43 PM
#8
Hi mate, I'm done.

http://throughads.com/2weiX.php

25 minutes.

Hehe, this is what I did but not quite what he wants. Smiley

He wants addresses to be hardcoded (probably in an array) on the backend, I believe. Smiley

Interesting Smiley
sr. member
Activity: 322
Merit: 251
May 08, 2012, 12:55:38 PM
#7
Hi mate, I'm done.

http://throughads.com/2weiX.php

25 minutes.

Hehe, this is what I did but not quite what he wants. Smiley

He wants addresses to be hardcoded (probably in an array) on the backend, I believe. Smiley
donator
Activity: 640
Merit: 500
May 08, 2012, 12:20:18 PM
#6
Hi mate, I'm done.

http://throughads.com/2weiX.php

25 minutes.
legendary
Activity: 2058
Merit: 1005
this space intentionally left blank
May 08, 2012, 11:23:30 AM
#5
Send a PM first, I think Smiley

youre still on,  kris
donator
Activity: 640
Merit: 500
May 08, 2012, 10:57:22 AM
#4
Send a PM first, I think Smiley
legendary
Activity: 2058
Merit: 1005
this space intentionally left blank
May 08, 2012, 09:02:36 AM
#3
Probably should have posted this in the Marketplace. Tongue

Either way, I've sent you a PM. Smiley

sent you a PM back.
sr. member
Activity: 322
Merit: 251
May 08, 2012, 08:55:46 AM
#2
Probably should have posted this in the Marketplace. Tongue

Either way, I've sent you a PM. Smiley
legendary
Activity: 2058
Merit: 1005
this space intentionally left blank
May 08, 2012, 05:11:14 AM
#1
I hope this is the right place. If not, please direct me elsewhere.

If you should be interested in programming one little PHP-page for me, plz PM me and tell me what would be an acceptable donation for this.


I need you to:

Pull the BUY and SELL prices of the EURBTC from here https://mtgox.com/api/1/BTCEUR/public/ticker.
Provide me with an easy way / example to put the resulting number in a HTML text, rounded up/down to the 2nd decimal.
Provide me with a simple explanation on how to manipulate these numbers (ie 10/(BUY*0,95)) within the HTML.
Take a BTC adress I may specify (eg 1FnBjFWrg2rtPq1shkVXoj9odf4n3SNJCU) and subtract "Sent BTC" from "Received BTC" from the blockexplorer output and put the difference in a variable.

This all needs to be in ONE php file so I can easily move it, enhance it, crop it, drop, turn it, pass it!

You can see I don't know jackshit about PHP.

The thing should always load the current data from the MTGOX API on load, I'll take care of the cronjob / F5ing.


I think for someone that is proficient in PHP this should take less than 15 minutes or so. But then again - what do I know, right?


Thanks anyways!

Dennis
Jump to: