Han777
Programmer
- Dec 12, 2007
- 19
My need is simple. I need to send a URL to collective2 to place an order at a specific price defined by a variable in delphi. I know how to send the URL but how do I concatenate into the URL a variable containing the price? Here's what the urL looks like:
.com/cgi-perl/signal. mpl?cmd=signal&
systemid=1234&pw=abcd&instrument=future&action=BTO&quant=5&
symbol=@ESU6&limit=1000&duration=GTC&stoploss=900.50&profittarget=1200
Suppose the stoploss and profittarget values were in variables named mystop and mytarget. Can I concatenate something like this:
' .com/cgi-perl/signal. mpl?cmd=signal&
systemid=1234&pw=abcd&instrument=future&action=BTO&quant=5&
symbol=@ESU6&limit=1000&duration=GTC&stoploss=' + mystop + '&profittarget=' mytarget
.com/cgi-perl/signal. mpl?cmd=signal&
systemid=1234&pw=abcd&instrument=future&action=BTO&quant=5&
symbol=@ESU6&limit=1000&duration=GTC&stoploss=900.50&profittarget=1200
Suppose the stoploss and profittarget values were in variables named mystop and mytarget. Can I concatenate something like this:
' .com/cgi-perl/signal. mpl?cmd=signal&
systemid=1234&pw=abcd&instrument=future&action=BTO&quant=5&
symbol=@ESU6&limit=1000&duration=GTC&stoploss=' + mystop + '&profittarget=' mytarget