PHP trading API

This is a discussion on PHP trading API within the Trading Software forums, part of the Commercial category; Let's hope this is in the right forum. I'm interested in writing a stock robot. I've coded in C, C++, ...

Reply
 
LinkBack Thread Tools Search this Thread
Old May 9, 2007, 11:10pm   #1
 
2 Posts
Joined May 2007
PHP trading API

Let's hope this is in the right forum. I'm interested in writing a stock robot. I've coded in C, C++, and PHP. By far I prefer PHP for development time. C is pretty cryptic but 10x faster than C++ with pointer arithmetic. So I'd like to develop an application in PHP. As you can imagine I need a sandbox.

I suppose I could build an API layer around a Java API. But as I understand it that would mean program -> java -> php. Too many abstraction layers.

Suggestions?
Atomical is offline   Reply With Quote
Old May 10, 2007, 2:56pm   #2
The Staff are paid members that perform various roles such as editorial, advertising, support or technical work.
 
Trader333's Avatar
Joined Jan 2003
Have you considered Powerbasic ?


Paul
Trader333 is offline   Reply With Quote
Old May 10, 2007, 3:35pm   #3
Joined Nov 2004
Quote:
Originally Posted by Atomical View Post
Let's hope this is in the right forum. I'm interested in writing a stock robot. I've coded in C, C++, and PHP. By far I prefer PHP for development time. C is pretty cryptic but 10x faster than C++ with pointer arithmetic. So I'd like to develop an application in PHP. As you can imagine I need a sandbox.

I suppose I could build an API layer around a Java API. But as I understand it that would mean program -> java -> php. Too many abstraction layers.

Suggestions?
If you want something that is (supposedly) easier than Java or C++ consider Python or Jython which runs on JVM. Integration with Java API should be easier and cleaner and allows a mix on Python and Java in the application.

I use Java almost exclusively these days and I'm glad I do. I put in a number of years as contract developer with C/C++ on Unix systems and for most (but not all) things, I would use Java. Performance is more than enough for most things you are likely to do and if you are planning something for which you need lots of performance you should have the knowledge and experience to choose the right tool anyway.

As for Power Basic, I have no experience so cannot comment , but it does not have the huge user community and vast availability of free libraries and applications that are a huge plus with more mainstream dev environments.
dcraig1 is offline   Reply With Quote
Old Jul 16, 2009, 6:35pm   #4
 
1 Posts
Joined Jul 2008
Hi....its old this message :-((( nobody idea for php? please nooooooooooo java and blablabla...only php please.........i have a social project in my mind.....can anybody help me?

Regards from Italy
erapaglia is offline Software vendor   Reply With Quote
Old Mar 28, 2010, 3:20pm   #5
 
1 Posts
Joined Mar 2010
Re: PHP trading API

Did anyone find a stock trading API that supports PHP?

I've been able to get TD Ameritrade's API to interface with PHP. However, their commissions a pretty high compared to other brokerages like Interactive Brokers.

Has anyone been able to get PHP to work with any brokerage API?

Thanks
WaPoFan is offline   Reply With Quote
Old May 1, 2010, 6:41pm   #6
 
7 Posts
Joined May 2010
Re: PHP trading API

Ug, I absolutely hate it when someone answers a question by saying "I see you're asking about PHP, but let me tell you something completely irrelevant, like a different programming language"

To answer your question, no broker that I've found has a PHP API, but don't fret...plenty of brokers can utilize PHP just fine. TD Ameritrade as mentioned above does, as well as Just2Trade and Lightspeed. All of these use sockets (and streaming) or urls to do all of their interaction, which php does just fine, and can be written with just a few lines of code. Google "php sockets" and learn how to use sockets. After that, connecting to the above systems is fairly easy, and they provide ample socket "message" examples (just no PHP information)

Don't even attempt PHP with interactive brokers, haha
corbel is offline   Reply With Quote
Old May 27, 2010, 8:41am   #7
 
1 Posts
Joined May 2010
Re: PHP trading API

try stocktale.com
mamit100 is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Similar Threads
Thread Thread Starter Forum Replies Last Post
Cheap ISA API Trading anyone? (Interactive Brokers) mutantcar Direct Access 5 Jun 19, 2010 12:29pm

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)