Cancelled

(PHP-script)

make my script work:

<?php

function mcx_trade($pair,$buy,$amt,$price) {

// API settings

$sk = '9x1jYoVRMt1N';

// our curl handle (initialize if required)

static $ch = null;

if (is_null($ch)) {

$ch = curl_init();

//curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);

//curl_setopt($ch, CURLOPT_USERAGENT, 'Mozilla/4.0 (compatible; Cryptsy API PHP client; '.php_uname('s').'; PHP/'.phpversion().')');

}

$adr = "[url removed, login to view]".$sk."&cur=".$pair."&buy=".$buy."&amt=".$amt."&price=".$price."&enabled=1" ;

//var_export($adr);

curl_setopt($ch, CURLOPT_URL, $adr);

curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);

curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, false);

curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);

// run the query

$res = curl_exec($ch);

//$ord = new SimpleXmlElement($res);

var_export($res);

//var_export($ord->sell);

if ($res === false) throw new Exception('Could not get reply: '.curl_error($ch));

}

mcx_trade('LTC',1,[url removed, login to view],[url removed, login to view]);

?>

Skills: PHP

See more: pair trade, php script null, ord, make curl php script, ltc, cur, adr, action script work, mcxnow api, cryptsy, php script function, run curl script, api pair trade, php trade script, php buy sell script, script php null, trade php, script run php, null php script, pair trade api, php function required, buy sell price action, php script api, curl api, curl php required

About the Employer:
( 1 review ) Wojciechów, Poland

Project ID: #5410240

8 freelancers are bidding on average $20 for this job

noxtras

hello, your code works... on my test it says that mcxnow is down for maintenance.. do you get an error that curl_init is undefined? then you need to install or activate curl in your php installation.

$25 USD in 1 day
(61 Reviews)
6.0
bdsitech

Hi, I have completed 100+ projects with PHP & MySQL.I have long time experience to work on website and its development using PHP/[url removed, login to view] can check my profile and feedback records. If you award me this project it wil More

$25 USD in 1 day
(36 Reviews)
4.9
softprize

Hello!, I have experience about CURL stuff, I already did that before. I can make it work. Thanks, Johnny.

$30 USD in 1 day
(32 Reviews)
4.5
ramoncho

Hello Graduated in Computer Engineering More than 6 years of experience in Web Development (front / backend) I can start working right now Only quality work

$26 USD in 0 days
(8 Reviews)
3.1
sprextech

I have read your project details, and I am interested in offering my services. I provide 100% satisfaction guaranteed on all my work. I have good level of experience in Core PHP , OpenCart , Magento, Wordpress, Drupal More

$25 USD in 1 day
(10 Reviews)
2.3
nishmohan

Hello Sir, I have 5+ yrs experience as a developer and i have worked many platform and for more information you can see my profile on freelancer. I can assure that you will get 100% satisfaction from my side if you wo More

$10 USD in 1 day
(1 Review)
0.4
Vijaywebs

Lets start the project, We are looking towards long term relation....... We are a modest team of 50+ team members, Similar types of projects we have done in the past. If you have software requirement specification d More

$10 USD in 1 day
(0 Reviews)
0.0
rlmd

Hi, My name is Dmytro and I'm senior developer from Ukraine(looks we are neighborhood). I made some investigation of your problem. The this is that there is some problems with site not with your code. It's link w More

$15 USD in 1 day
(0 Reviews)
0.0
ppandare

We are '3stechmind' team of dedicated software professionals developing the web projects for our [url removed, login to view] area of expertise is design the web site and implement the functional aspects in software technolgies like ph More

$23 USD in 1 day
(0 Reviews)
0.0