Jump to content
Sign in to follow this  
blackmage234

The examples for GetPriceBars in HTTPRequests all return error 404.

Recommended Posts

Here is example code for the AJAX test harness.

var userName = "DM631479";
doPost('/session',{ "UserName": userName, "Password": "password"}, function (data, textCode) {    
   // Smoke Test
   doGet('/smoketest');

   setRequestHeader("UserName", userName);
   setRequestHeader("Session", data.Session);

   // Authentication Test
   doGet('/smoketest/authenticated');

   // Account Information Tests
   doGet('/market/1234/history?interval=MINUTE&span=15&PriceBars=180');
   doGet('/market/735/history?interval=HOUR&span=1&PriceBars=240');
   doGet('/market/1577/history?interval=DAY&span=1&PriceBars=10');

   //Logoff
   doPost('/session/deleteSession?userName='+userName+'&session='+data.Session);
});

Share this post


Link to post
Guest andreif

This sample is obsolete; try

doGet('/market/1234/barhistory?interval=MINUTE&span=15&PriceBars=180');

instead

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  
×